NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.15k stars 14.18k forks source link

Onlyoffice document server fail to start #352443

Open hatch01 opened 2 weeks ago

hatch01 commented 2 weeks ago

Describe the bug

When enabling the onlyoffice documentserver service, it fail to start

Steps To Reproduce

set

services.onlyoffice = {
        enable = true;
};

Expected behavior

oct. 30 19:56:39 jonquille onlyoffice-wrapper[74471]: bwrap: Can't mkdir parents for var/www/onlyoffice/documentserver/sdkjs/common/: Permission denied
oct. 30 19:56:39 jonquille onlyoffice-wrapper[74472]: bwrap: Can't mkdir parents for var/www/onlyoffice/documentserver/sdkjs/common/: Permission denied
oct. 30 19:56:39 jonquille systemd[1]: onlyoffice-docservice.service: Main process exited, code=exited, status=1/FAILURE
oct. 30 19:56:39 jonquille systemd[1]: onlyoffice-docservice.service: Failed with result 'exit-code'.
oct. 30 19:56:39 jonquille systemd[1]: onlyoffice-converter.service: Main process exited, code=exited, status=1/FAILURE
oct. 30 19:56:39 jonquille systemd[1]: onlyoffice-converter.service: Failed with result 'exit-code'.
oct. 30 19:56:39 jonquille systemd[1]: onlyoffice-docservice.service: Scheduled restart job, restart counter is at 5.
oct. 30 19:56:39 jonquille systemd[1]: onlyoffice-converter.service: Scheduled restart job, restart counter is at 15.
oct. 30 19:56:39 jonquille systemd[1]: Stopped onlyoffice converter.
oct. 30 19:56:39 jonquille systemd[1]: onlyoffice-docservice.service: Start request repeated too quickly.
oct. 30 19:56:39 jonquille systemd[1]: onlyoffice-docservice.service: Failed with result 'exit-code'.
oct. 30 19:56:39 jonquille systemd[1]: Failed to start onlyoffice documentserver.
oct. 30 19:56:39 jonquille systemd[1]: Dependency failed for onlyoffice converter.

More steps

I tried to mkdir this folder in / and set the owner to onlyoffice and I get this error now:

oct. 30 19:57:10 jonquille systemd[1]: Started onlyoffice documentserver.
oct. 30 19:57:10 jonquille systemd[1]: Started onlyoffice converter.
oct. 30 19:57:10 jonquille onlyoffice-wrapper[74744]: /nix/store/i2jzisnmj62s8nvazq9v3qn5kjis4qww-onlyoffice-documentserver-run-script: line 52: /var/www/onlyoffice/documentserver/server/FileConverter/converter: No such file or directory
oct. 30 19:57:10 jonquille systemd[1]: onlyoffice-converter.service: Main process exited, code=exited, status=127/n/a
oct. 30 19:57:10 jonquille systemd[1]: onlyoffice-converter.service: Failed with result 'exit-code'.
oct. 30 19:57:10 jonquille onlyoffice-wrapper[74745]: Generating AllFonts.js, please wait...
oct. 30 19:57:10 jonquille onlyoffice-wrapper[74757]: /nix/store/i2jzisnmj62s8nvazq9v3qn5kjis4qww-onlyoffice-documentserver-run-script: line 22: var/www/onlyoffice/documentserver/server/tools/allfontsgen: No such file or directory
oct. 30 19:57:10 jonquille onlyoffice-wrapper[74745]: Done
oct. 30 19:57:10 jonquille onlyoffice-wrapper[74745]: Generating presentation themes, please wait...
oct. 30 19:57:10 jonquille onlyoffice-wrapper[74758]: /nix/store/i2jzisnmj62s8nvazq9v3qn5kjis4qww-onlyoffice-documentserver-run-script: line 33: var/www/onlyoffice/documentserver/server/tools/allthemesgen: No such file or directory
oct. 30 19:57:10 jonquille onlyoffice-wrapper[74759]: /nix/store/i2jzisnmj62s8nvazq9v3qn5kjis4qww-onlyoffice-documentserver-run-script: line 38: var/www/onlyoffice/documentserver/server/tools/allthemesgen: No such file or directory
oct. 30 19:57:10 jonquille onlyoffice-wrapper[74760]: /nix/store/i2jzisnmj62s8nvazq9v3qn5kjis4qww-onlyoffice-documentserver-run-script: line 45: var/www/onlyoffice/documentserver/server/tools/allthemesgen: No such file or directory
oct. 30 19:57:10 jonquille onlyoffice-wrapper[74745]: Done
oct. 30 19:57:10 jonquille onlyoffice-wrapper[74745]: /nix/store/i2jzisnmj62s8nvazq9v3qn5kjis4qww-onlyoffice-documentserver-run-script: line 52: /var/www/onlyoffice/documentserver/server/DocService/docservice: No such file or directory
oct. 30 19:57:10 jonquille systemd[1]: onlyoffice-docservice.service: Main process exited, code=exited, status=127/n/a
oct. 30 19:57:10 jonquille systemd[1]: onlyoffice-docservice.service: Failed with result 'exit-code'.
oct. 30 19:57:10 jonquille systemd[1]: onlyoffice-converter.service: Scheduled restart job, restart counter is at 20.
oct. 30 19:57:10 jonquille systemd[1]: onlyoffice-docservice.service: Scheduled restart job, restart counter is at 4.
oct. 30 19:57:10 jonquille systemd[1]: Stopped onlyoffice converter.
oct. 30 19:57:10 jonquille systemd[1]: onlyoffice-docservice.service: Start request repeated too quickly.
oct. 30 19:57:10 jonquille systemd[1]: onlyoffice-docservice.service: Failed with result 'exit-code'.
oct. 30 19:57:10 jonquille systemd[1]: Failed to start onlyoffice documentserver.
oct. 30 19:57:10 jonquille systemd[1]: Dependency failed for onlyoffice converter.
oct. 30 19:57:10 jonquille systemd[1]: onlyoffice-converter.service: Job onlyoffice-converter.service/start failed with result 'dependency'.

Additional context

I see no modification in onlyoffice package and service so I think it maybe due to a bwrap update or something else in nixpkgs but can't find it.

Notify maintainers

@SuperSandro2000

Metadata

[root@jonquille:/]# nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.58, NixOS, 24.11 (Vicuna), 24.11.20241025.18536bf`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.24.9`
 - nixpkgs: `/nix/store/wb6agba4kfsxpbnb5hzlq58vkjzvbsk6-source`

Add a :+1: reaction to issues you find important.

hatch01 commented 1 week ago

If it can help someone, I switched to a docker installation with this :

virtualisation.oci-containers.containers.onlyoffice =  {
      image = "onlyoffice/documentserver:latest";
      ports = ["8000:80"];
      environmentFiles = [
        config.age.secrets.onlyofficeDocumentServerKey.path
      ];
    };