Problem Installing OnlyOffice. Possible rabbitmq-server Issue?

My YunoHost server

Hardware: Debian Server at home
YunoHost version: 11.2.10.3 (stable)
I have access to my server : Yes
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
If your request is related to an app, specify its name and version: OnlyOffice 7.5~ynh1

Install Fails

When I try to install it fails with “An error occured inside the script snippet”

Seems to be something to do with rabbit-server?

Full logs here: https://paste.yunohost.org/raw/uxonenomob

I see others have had issues like this, but I couldn’t understand what the solution was.

Any advice would be appreciated.

2024-04-08 16:34:12,585: DEBUG - Created symlink /etc/systemd/system/multi-user.target.wants/rabbitmq-server.service -> /lib/systemd/system/rabbitmq-server.service.
2024-04-08 16:34:46,374: WARNING - Job for rabbitmq-server.service failed because the control process exited with error code.
2024-04-08 16:34:46,375: WARNING - See "systemctl status rabbitmq-server.service" and "journalctl -xe" for details.
2024-04-08 16:34:46,375: WARNING - invoke-rc.d: initscript rabbitmq-server, action "start" failed.
2024-04-08 16:34:46,384: DEBUG - * rabbitmq-server.service - RabbitMQ Messaging Server
2024-04-08 16:34:46,384: DEBUG -      Loaded: loaded (/lib/systemd/system/rabbitmq-server.service; enabled; vendor preset: enabled)
2024-04-08 16:34:46,385: DEBUG -      Active: activating (auto-restart) (Result: exit-code) since Mon 2024-04-08 16:34:46 CDT; 4ms ago
2024-04-08 16:34:46,385: DEBUG -     Process: 1074574 ExecStart=/usr/lib/rabbitmq/bin/rabbitmq-server (code=exited, status=1/FAILURE)
2024-04-08 16:34:46,385: DEBUG -    Main PID: 1074574 (code=exited, status=1/FAILURE)
2024-04-08 16:34:46,385: DEBUG -         CPU: 1.438s
2024-04-08 16:34:46,385: DEBUG - 
2024-04-08 16:34:46,385: DEBUG - Apr 08 16:34:46 maindomain.tld systemd[1]: rabbitmq-server.service: Consumed 1.438s CPU time.
2024-04-08 16:34:46,385: WARNING - dpkg: error processing package rabbitmq-server (--configure):
2024-04-08 16:34:46,386: WARNING -  installed rabbitmq-server package post-installation script subprocess returned error exit status 1
2024-04-08 16:34:46,386: DEBUG - Processing triggers for man-db (2.9.4-2) ...
2024-04-08 16:34:48,299: DEBUG - Processing triggers for libc-bin (2.31-13+deb11u8) ...
2024-04-08 16:34:48,367: WARNING - Errors were encountered while processing:
2024-04-08 16:34:48,368: WARNING -  rabbitmq-server
2024-04-08 16:34:48,461: WARNING - E: Sub-process /usr/bin/dpkg returned an error code (1)

Anybody have anything on this? Still can’t get OnlyOffice to work.

1 Like

Can you share the output of sudo journalctl -xe --unit=rabbitmq-server ?

I have the same problem, here the logs

I don’t understand why

Unpacking onlyoffice-ynh-deps (7.5~ynh2) over (7.5~ynh2) …
2024-04-17 17:39:04,926: DEBUG - Setting up onlyoffice-ynh-deps (7.5~ynh2) …
2024-04-17 17:39:04,970: DEBUG - + ynh_package_install --fix-broken
2024-04-17 17:39:04,971: DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=–force-confdef --option Dpkg::Options::=–force-confold install --fix-broken
2024-04-17 17:39:04,971: DEBUG - + ynh_wait_dpkg_free
2024-04-17 17:39:05,364: DEBUG - + return 0
2024-04-17 17:39:05,364: DEBUG - + LC_ALL=C
2024-04-17 17:39:05,364: DEBUG - + DEBIAN_FRONTEND=noninteractive
2024-04-17 17:39:05,365: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=–force-confdef --option Dpkg::Options::=–force-confold install --fix-broken
2024-04-17 17:39:05,503: DEBUG - Reading package lists…
2024-04-17 17:39:05,603: DEBUG - Building dependency tree…
2024-04-17 17:39:05,604: DEBUG - Reading state information…
2024-04-17 17:39:05,686: DEBUG - The following packages were automatically installed and are no longer required:
2024-04-17 17:39:05,686: DEBUG - erlang-asn1 erlang-base erlang-crypto erlang-eldap erlang-ftp erlang-inets
2024-04-17 17:39:05,686: DEBUG - erlang-mnesia erlang-os-mon erlang-parsetools erlang-public-key
2024-04-17 17:39:05,687: DEBUG - erlang-runtime-tools erlang-snmp erlang-ssl erlang-syntax-tools erlang-tftp
2024-04-17 17:39:05,687: DEBUG - erlang-tools erlang-xmerl libcurl4-openssl-dev libsctp1
2024-04-17 17:39:05,687: DEBUG - onlyoffice-documentserver pwgen rabbitmq-server
2024-04-17 17:39:05,687: DEBUG - Use ‘sudo apt autoremove’ to remove them.

rabbitmq-server is no longer installed

@Strathy ok we found the problem.

It should be fixed by the next upgrade (tested on my server)

Edit: it’s maybe not the same issue, I’m sorry for the noise

Hello, the Rabbitmq server runs now but still the same 502 issue within the connector inside Nextcloud (“bad healthcheck status”)

● rabbitmq-server.service - RabbitMQ Messaging Server
Loaded: loaded (/lib/systemd/system/rabbitmq-server.service; enabled; vend>
Active: active (running) since Thu 2024-04-18 11:06:01 CEST; 5min ago
Main PID: 710 (beam.smp)
Status: “Initialized”
Tasks: 86 (limit: 4599)
Memory: 105.5M
CPU: 12.981s
CGroup: /system.slice/rabbitmq-server.service
├─ 710 /usr/lib/erlang/erts-11.1.8/bin/beam.smp -W w -K true -A 64>
├─1259 erl_child_setup 65536
├─1911 inet_gethost 4
└─1915 inet_gethost 4

avril 18 11:05:38 ratko.ynh.fr systemd[1]: Starting RabbitMQ Messaging Server…
avril 18 11:06:01 ratko.ynh.fr systemd[1]: Started RabbitMQ Messaging Server.

I also have a problem with php

sudo -u www-data php /var/www/nextcloud/occ db:add-missing-indicesThis version of Nextcloud requires at least PHP 8.0
You are currently running 7.4.33. Please update your PHP version.

Concerning the “PHP OPcache n’est pas correctement configuré. Le tampon mémoire des chaînes internes OPcache est presque plein.”
Nextcloud documentation specifies
PHP 8.0 and above ship with a JIT compiler that can be enabled to benefit any CPU intensive apps you might be running.

Onlyoffice update fails - #3 by vr_38 has found a workaround

It must be on root user

sudo -u nextcloud php8.2 --define apc.enable_cli=1 /var/www/nextcloud/occ db:add-missing-indices

If you use the yunohost package… The user is nextcloud, the php version depends on the version, but le the last versions on 28.* are with php8.2., you need add --define apc.enable_cli=1

Hello worked like a charm thank you