CollaboraOnline / richdocumentscode

Built-in CODE Server app
https://apps.nextcloud.com/apps/richdocumentscode
Apache License 2.0
121 stars 29 forks source link

After every server reboot: Documents do not open, download is offerd #206

Closed jakobroehrl closed 1 year ago

jakobroehrl commented 2 years ago

I can work with office without any problems till I reboot the server. Then Documents do not open, a download is offered. To solve this I must click here: image and when it says: image Offices works again


Collabora Online - Built-in CODE Server 22.5.802

Moxified commented 2 years ago

I have the same issue.

kvetal commented 2 years ago

And me have the same issue.

jakobroehrl commented 1 year ago

I found out, it's the restart of the php service that triggers the problem.

ernolf commented 1 year ago

I have had the same issue but... not allways

I solved it for me with this dirty but effective workaround:

Create this file /etc/systemd/system/richdocuments.service

[Unit]
Description = richdocuments activate-config
After=network.target

[Service]
ExecStart=/usr/bin/php -f /var/www/nextcloud/occ richdocuments:activate-config
User=www-data
Group=www-data

[Install]
WantedBy = multi-user.target

enable with sudo systemctl enable --now richdocuments.service

Do not forget to remove this workaround after this issue is solved by the package maintainers:

sudo systemctl disable richdocuments.service && sudo rm /etc/systemd/system/richdocuments.service

I hope this helps.

Moxified commented 1 year ago

I have had the same issue but... not allways

I solved it for me with this dirty but effective workaround:

Thank you! This works for now.

rursache commented 1 year ago

having the same issue using the linuxserver/nextcloud container

Moxified commented 1 year ago

I found that the workaround service wasn't reliably working for me. I changed the dependency to:

After=apache2.service

This has worked better for my build. FWIW.

jorge-vitrubio commented 1 year ago

non of this helped on my issue with how the proxy.php handles files.

I have tried a collabora "demo" server and it works the one in Ireland, but not the one in Sweden.

the Irish ones responds like this:

COOLWSD version:
22.05.9.1snapshot git hash: 
[2a9ba59](javascript:void(window.open('https://github.com/CollaboraOnline/online/commits/2a9ba59'));)
LOKit version:
built on 
[a great technology base](javascript:void(window.open('http://col.la/lot'));)
Collabora Office 22.05.9.1 git hash: 
[a2ec3af](javascript:void(window.open('https://hub.libreoffice.org/git-core/a2ec3af'));)
Served by: Ubuntu 18.04.6 LTS 
[de10396d](https://demo.eu.collaboraonline.com/hosting/discovery)

Copyright © 2022, Collabora Productivity Limited.

So the COOLWSD version has defenetly something to do with it

I have tried to downgrade the richdocumentscode to versions 22.5.502 or 22.5.702 unsuccessfully, nexctcloud will upgrade automatically to the 22.5.802 version.

./occ status
  - installed: true
  - version: 25.0.2.3
  - versionstring: 25.0.2
  - edition: 
  - maintenance: false
  - needsDbUpgrade: false
  - productname: Nextcloud
  - extendedSupport: false
lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:    11
Codename:   bullseye
jakobroehrl commented 1 year ago

On my systems it's not occurring any more