Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade failure after supervisorctl -> systemd migration #112

Open
zamentur opened this issue Oct 8, 2023 · 0 comments
Open

Upgrade failure after supervisorctl -> systemd migration #112

zamentur opened this issue Oct 8, 2023 · 0 comments

Comments

@zamentur
Copy link
Contributor

zamentur commented Oct 8, 2023

Describe the bug

New version of onlyoffice use systemd intead supervisorctl.

However, upgrade of the app doesnt give all write access everywhere and systemd services are not enabled...

Context

  • Hardware: VPS
  • YunoHost version: 11.2.4
  • I have access to my server: SSH
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
    • If yes, please explain:
  • Using, or trying to install package version/branch:
  • If upgrading, current package version: can be found in the admin, or with yunohost app info $app_id

Steps to reproduce

  1. Upgrade to new onlyoffice version.
  2. The healthcheck URL return false or 502...

Expected behavior

The healthcheck and the service should run properly

To fix that:

chown -R ds:ds /var/log/onlyoffice/documentserver/docservice
chown -R ds:ds /var/log/onlyoffice/documentserver/converter
chown -R ds:ds /var/log/onlyoffice/documentserver/metrics
chown -R ds:ds /var/lib/onlyoffice/documentserver/App_Data/
systemctl restart ds-docservice
systemctl restart ds-converter
systemctl restart ds-metrics
systemctl enable ds-docservice
systemctl enable ds-converter
systemctl enable ds-metrics

Logs

[2023-10-08T19:36:24.762] [ERROR] [localhost] [docId] [userId] nodeJS - healthCheck error Error: EACCES: permission denied, mkdir '/var/lib/onlyoffice/documentserver/App_Data/cache/files/data'

And

Oct 08 19:33:37 domain.tld sh[2797996]: /bin/sh: 1: cannot create /var/log/onlyoffice/documentserver/converter/out.log: Permission denied
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant