PARTIAL SOLVING…
Yes, when I save it says:
Erreur durant la tentative de connexion (Une erreur s’est produite dans le service de document: Unknown error) (version 7.5.1.23)
Thank you for the location. Indeed, /var/log/onlyoffice/documentserver/docservice/out.log
was appended with the following errors:
[2024-01-24T14:14:25.429] [WARN] [localhost] [conv_check_359861432_docx] [userId] nodeJS - sqlQuery error sqlCommand: INSERT INTO task_result (tenant, id, status, statu: error: relation “task_result” does not exist
at /snapshot/server/build/server/DocService/node_modules/pg-pool/index.js:45:11
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:95:5)
[2024-01-24T14:14:25.429] [ERROR] [localhost] [conv_check_359861432_docx] [userId] nodeJS - convertRequest error: error: relation “task_result” does not exist
at /snapshot/server/build/server/DocService/node_modules/pg-pool/index.js:45:11
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:95:5)
So this put me on the way of empty Postgresql database. I don’t know why it couldn’t write into it. So I recreated it and reinstalled onlyoffice-documentserver
without removing the database when it asked it too (of course).
… BUT STILL
After this reinstall, when I validate in nextcloud, the error changed to:
Server error: GET https://onlyoffice.crieppam.fr/healthcheck
resulted in a 502 Bad Gateway
And indeed: netstat -anp| grep 8000
doesn’t return anything: docservice
is not listening.
systemctl status ds-*
seems ok:
● ds-converter.service - Docs Converter
Loaded: loaded (/lib/systemd/system/ds-converter.service; enabled; preset: enabled)
Active: active (running) since Wed 2024-01-24 17:07:56 CET; 6min ago
Main PID: 794 (converter)
Tasks: 20 (limit: 38183)
Memory: 167.6M
CPU: 2.388s
CGroup: /system.slice/ds-converter.service
├─ 794 /var/www/onlyoffice/documentserver/server/FileConverter/converter
└─1041 /var/www/onlyoffice/documentserver/server/FileConverter/converter /snapshot/server/build/server/FileConverter/sources/convertermaster.js
Jan 24 17:07:56 myhostname systemd[1]: Started ds-converter.service - Docs Converter.
● ds-metrics.service - Docs Metrics
Loaded: loaded (/lib/systemd/system/ds-metrics.service; enabled; preset: enabled)
Active: active (running) since Wed 2024-01-24 17:07:54 CET; 6min ago
Main PID: 681 (statsd ./config)
Tasks: 10 (limit: 38183)
Memory: 40.9M
CPU: 258ms
CGroup: /system.slice/ds-metrics.service
└─681 /var/www/onlyoffice/documentserver/server/Metrics/metrics ./config/config.js
Jan 24 17:07:54 myhostname systemd[1]: Started ds-metrics.service - Docs Metrics.
● ds-docservice.service - Docs Docservice
Loaded: loaded (/lib/systemd/system/ds-docservice.service; enabled; preset: enabled)
Active: active (running) since Wed 2024-01-24 17:07:56 CET; 6min ago
Main PID: 796 (docservice)
Tasks: 10 (limit: 38183)
Memory: 135.9M
CPU: 2.337s
CGroup: /system.slice/ds-docservice.service
└─796 /var/www/onlyoffice/documentserver/server/DocService/docservice
Jan 24 17:07:56 myhostname systemd[1]: Started ds-docservice.service - Docs Docservice.
And debconf-show onlyoffice-documentserver
shows 8000 as expected:
- onlyoffice/db-pwd: (password omitted)
onlyoffice/rabbitmq-pwd: (password omitted)
- onlyoffice/docservice-port: 8000
- onlyoffice/ds-port: 80
onlyoffice/rabbitmq-user: guest
onlyoffice/remove-db: false
- onlyoffice/example-port: 3000
onlyoffice/db-name: onlyoffice
- onlyoffice/jwt-enabled: true
onlyoffice/db-port:
- onlyoffice/cluster-mode: false
- onlyoffice/db-type: postgres
- onlyoffice/jwt-header: Authorization
- onlyoffice/jwt-secret: sPi4tNH0q8dehfhGfeCV6LDRtTDbPh8s
onlyoffice/db-user: onlyoffice
onlyoffice/plugins-enabled: true
onlyoffice/rabbitmq-host: localhost
onlyoffice/rabbitmq-proto: amqp
onlyoffice/db-host: localhost
So now I am turning back to the initial question of my post: How do I start docserver? Why doesn’t it launch by itself? That’s weird because on another server of mine, docserver is running. I compared the above configs and the nginx proxy definition, and everything looks the same. Any idea?