My Android phone is not rooted and I installed Debian 12 Bookworm using proot-distro install debian in Termux
Referencing OnlyOffice’s official guide on “Installing ONLYOFFICE Docs Community Edition on Debian systems for the 64-bit ARM architecture”:
https://helpcenter.onlyoffice.com/installation/docs-community-install-ubuntu-arm64.aspx
My device boasts 30GB of RAM and a 1TB hard drive, fully meeting the requirements for ARM64 architecture.
Following the official tutorial, I have installed the necessary dependencies, ensuring all versions meet the specified criteria:
- PostgreSQL 17.2
- NGINX 1.22.1
- libstdc++6 12.2.0
- RabbitMQ 3.13
Given that RabbitMQ 3.13 requires Erlang 26, I have also installed Erlang 26 to ensure compatibility and optimal performance.
RabbitMQ status is normal:
service rabbitmq-server status
I can log in to RabbitMQ by visiting:
http://localhost:15672
Nginx status is normal:
service nginx status
This indicates that Nginx is running properly.
PostgreSQL status is also normal:
su - postgres -c '/usr/lib/postgresql/17/bin/pg_ctl -D /var/lib/postgresql/17/main -l logfile start'
After confirming that all dependencies are functioning correctly, I proceeded with installing the document server according to the official guide. During the installation, I encountered the following warning:
Warning: The home directory `/var/www/onlyoffice/documentserver'
And an error:
installed onlyoffice-documentserver package post-installation script subprocess returned error exit status 1
ls -ld /var/www/onlyoffice/documentserver
The directory owner is the root user.
debconf-show onlyoffice-documentserver
`
onlyoffice/db-pwd:(password omitted)
onlyoffice/rabbitmq-pwd:(password omitted)
onlyoffice/db-name: onlyoffice
onlyoffice/db-port:
onlyoffice/rabbitmq-user: guest
onlyoffice/db-type: postgres
onlyoffice/jwt-secret:y27Jx****
onlyoffice/example-port:3000
onlyoffice/jwt-enabled:true
onlyoffice/jwt-header: Authorization
onlyoffice/plugins-enabled: true
onlyoffice/rabbitmq-proto: amqp
onlyoffice/docservice-port:8000
onlyoffice/db-user:
onlyoffice/onlyoffice/remove-db: false
onlyoffice/db-host: localhost
onlyoffice/wopi-enabled:false
onlyoffice/ds-port:8088
onlyoffice/rabbitmq-host: localhost
onlyoffice/cluster-mode: false
i can log in to the ONLYOFFICE welcome page using:
When I put`https://mydomain.com:4443` in the ONLYOFFICE plugin for Nextcloud to connect to my ONLYOFFICE Docs, a 502 error occurs.
'GET
https://zvkai.com:4443/healthcheck
resulted in a `502 Bad Gateway
response:
502 Bad Gateway
ngin (truncated..)
I tried setting the WOPI enable to true in the local.json file, but it did not resolve the issue.
nano /etc/onlyoffice/documentserver/local.json
Could someone please advise on how to fix this problem? I have spent two weeks trying various solutions without success.
Note: Termux does not support Docker and Snapd, so please do not suggest installation methods involving Docker or Snapd for the document server.