Documentserver Build Error

Hi,

we are trying to build the latest OnlyOffice Server on a Debian 11 Linux Server. We followed the instructions like described:

OO_BUILD_ROOT=~/onlyoffice
mkdir ${OO_BUILD_ROOT}
git clone GitHub - ONLYOFFICE/build_tools: Used to build ONLYOFFICE DocumentServer-related products
cd ${OO_BUILD_ROOT}/build_tools/tools/linux
./automate.py server --no-apps=1

The error message is:

[…]

gn gen out.gn/linux_64 --args=“v8_static_library=true is_component_build=false v8_monolithic=true v8_use_external_startup_data=false treat_warnings_as_errors=false target_cpu="x64" v8_target_cpu="x64" is_debug=false is_clang=true use_sysroot=false use_custom_libcxx=false”
python3_bin_reldir.txt not found. need to initialize depot_tools by
running gclient, update_depot_tools or ensure_bootstrap.
Error (gn): 1
Error (./make.py): 1

Also after installing depot_tools, running update_depot_tools or ensure_bootstrap doesn’t help.

I would be happy if somebody can help.

Best
Volker

Document Server version: latest
OS: Debian GNU/Linux 11 (bullseye)
Browser version: /
Additional information:

I solved the problem by myself. The issue was the default python version on Debian. I pointed on python version 2.
apt install python-is-python3 sets Python 3 as default. A new clean build worked out.

Hi Volker, the issue seems to stem from GN/V8 requiring a properly initialized depot_tools environment. After installing depot_tools, ensure it’s correctly added to your PATH and sourced in the same shell session where you’re running the build. Then run gclient inside the depot_tools directory before re-running the build command. Also, make sure you’re using straight quotes (") in the gn gen arguments instead of curly quotes (“ ”) to avoid syntax issues.