Error after upgrading app

I have fixed this by manally downgrading the app version to 7.1.2.

These were the steps taken:

NOTE: The instructions below are for the non-docker installation of Nextcloud on a debian based server with NginX. If you have a different web server, check who owns the current folders and files in your NC root folder and change the www-data below accordingly.

  1. Disable and remove the OnlyOffice app from the Nextcloud web UI.

  2. Open your CLI, ssh to server where your NextCloud is hosted and go to the apps folder (cd <path to your NC>/apps)

  3. Download the previous version of the OnlyOffice app:

sudo -u www-data wget https://github.com/ONLYOFFICE/onlyoffice-nextcloud/releases/download/v7.1.2/onlyoffice.tar.gz

  1. Unpack the archive:

sudo -u www-data tar xvf onlyoffice.tar.gz

  1. Fix the access permissions of the underlying files and folders:

sudo -u www-data find ./onlyoffice -type d -exec chmod 0750 {} \;
sudo -u www-data find ./onlyoffice -type f -exec chmod 0640 {} \;

Open the Disabled apps list in your NextCloud web UI (reload the page if it was already open) and you’ll see the OnlyOffice app which should be enabled. There’s also the “Update to 7.2.0” button which you now know you shouldn’t click :slight_smile: You’ll now be able to access the OnlyOffice settings (mine were remembered from earlier).

And that’s it… OnlyOffice will work again.

5 Likes