[SOLVED] Another "Failed to load Collabora Online - please try again later" problem

Just installed Nextcloud via snap on brand-new Ubuntu 20.04.2 server. Despite trying various things, I am unable to downgrade the ā€œCollabora Online - Built-in CODE Serverā€.

If I extract the tar to the ā€¦/extra-apps folder, I see it showing me the app listed as the old version on the ā€¦/settings/apps page, but the buttons there are ā€œRemoveā€ and ā€œDownload and enableā€. Choosing the latter will always get the latest for me. Other times in my fiddling with replacing that folder, the web app goes into update mode and gets the new version of that despite wanting what I had there before.

What am I doing wrong?

Try the following steps:

  • first install (download and enable) the latest version via the GUI interface.
  • extract the tar in the extra-apps and make sure you overwrite the files from the latest version.

After a few moments the GUI interface will tell you that it is installing a new package. After the installation the older version is installed and in the GUI you will see that there is a newer version available.

@Gery_Alaerts That worked exactly as you described. Thank you.

jtkouz@nextcloud:~$ wget https://github.com/CollaboraOnline/richdocumentscode/releases/download/6.4.608/richdocumentscode.tar.gz
sudo su
<Enter password>
root@nextcloud:/home/jtkouz# cd /var/snap/nextcloud/current/nextcloud/extra-apps/
root@nextcloud:/var/snap/nextcloud/current/nextcloud/extra-apps# tar xvf /home/jtkouz/richdocumentscode.tar.gz

Then the GUI showed the update screen, which scared me, but it then said it was upgrading this component to 6.4.608 and the web editing of an ODT file worked great.

Hi - I was running Nextcloud 21 (on Ubuntu 20.04, and via the snap package) and this thread helped me get Collabora to work - I downgraded the CODE server to version 6.4.608 as suggested and all was up and running fine. However, with the snap having upgraded to Nextcloud version 22, this seems no longer to be an option. The snap has Collabora online version 4.2.3 and CODE server 6.4.1103, which throws up the familiar message ā€œFailed to load Collabora Online - please try again laterā€ when you try to open a document through the web interface, and the line ā€œCould not find urlsrc in WOPIā€ in the logs. However, the 6.4.608 version of the CODE server now shows in the apps as no longer compatible with Nextcloud 22 and so is disabled. Does anyone know, is there a version of the CODE server which is compatible with the current version of Nextcloud and gets Collabora up and working?

@jtkouz
You can still use the ā€˜unsupportedā€™ version v6.4.608. Just follow the steps I have described in a earlier post.

Thanks so much for your help Gery_Alaerts - yes, that worked - I re-downloaded and enabled the ā€˜unsupportedā€™ version as you suggested (in spite of warnings), and this has got the Collabora web interface up and running again. Many thanks!

If thereā€™s someone out there who is looking further into this issue, one thing I spotted was a post (Collabora failure when using Snap on Ubuntu SERVER but it works on Ubuntu DESKTOP) which noted this not working on snap on ubuntu server, but working on ubuntu desktop. Interestingly, Iā€™ve basically had the same experience - I initially set up nextcloud via snap on a machine on my own network on a machine with Ubuntu 20.04 desktop, and collbora works fine on that (and still works fine after the latest updates, with the versions of Collabora and Collabora CODE server that are not working on the Ubuntu server version I set up on the ā€˜cloudā€™. Both were basically set up in the same way with lets-encrypt, etc. I hope this bit of data helps someone work out why the more recent versions of the CODE server donā€™t work on my install, or the various other people with snap or docker who are having similar problems. Could there be some kind of dependency that is there on the desktop but not the server? Or something in the latter which conflicts, and that is missing from the former?

Thanks for this topic I was able to solve my initial problem on Ubuntu Server + Nextcloud Snap to downgrade the ā€œCollabora Online - Built-in CODE Serverā€.

However, like stated above on desktop variants of Linux the built in server works out of the box with no issues. Surely a dependency is missing (introduced somewhere after v6.4.608) which causes issues on Ubuntu Server.

So I thought why not install LibreOffice on Ubuntu Server and see what happensā€¦ and guess what the latest version of Collabora working is working fine now in Nextcloud. I unfortunately donā€™t have to expertise to narrow this down to a single dependency, but maybe someone can pick it up from here.

1 Like

Apologies for coming back to this issue, but I havenā€™t been able to solve it despite following @Gery_Alaerts postā€™s instructions.

I receive the message ā€œFailed to load Collabora Online - please try again laterā€.

I have Nextcould 23 installed (snap, on a Raspberry Pi), and in the active apps list I have Collabora Online CODE (ARM64) v. 6.4.608 (and Collabora Online, obviously).

Anyone can help? :slight_smile:

Edit: I just realised I am running NC version 22.2.3.0 - apparently the Snap package hasnā€™t updated to v.23 yet.

@pierat

No need to install an older version of Collabora on the nextcloud snap. The default installed ones: Collabora Online 4.2.3 and Collabora Online - Built-in CODE Server 21.11.6 are working fine. At least its working fine for me on a Ubuntu server.

I manually updated CODE to v. 21.11.6 (the latest one available from the NC GUI was 21.11.4); disabled and enabled both Collabora Online (v. 4.2.3) and CODE. Still the same issue:
ā€œFailed to load Collabora Online - please try again laterā€.

Is there a way to debug it to see whatā€™s wrong?

I recently installed NC 23 Hub II on a V-Server with 4 vCore and 8 GB RAM at the hosting service Strato.de. I installed the Collabora app and the CODE server. While loading an *.odt document I get the error message: ā€œDocument loading failed. Try again later.ā€
RAM is enough but Iā€™m afraid that the server (virtual server) is not suffiend enough. I tried the Collabora demo server and that works fine. Back to CODE I get the same error message.

Sadly, my rented server is to small for that. But I donā€™t use LibreOffice often, so I deleted it from NC. But that could possibly be the issue on the Raspberry Pies. Perhaps in some time I will use a bigger server (My whole family use it) and maybe CODE will works then.

Hi,
Iā€™m expiring the same issue - every try to open a file with the built-in CODE server ends up in error ā€œFailed to load Collabora Online - please try again laterā€

Looking into the error console of the browser i see 502 Proxy Errors and therefor I looked directly onto the server. There I tried to run the Collabora_Online.AppImage as user www-data and Iā€™m getting a ā€œpermission deniedā€ error.
Looking at the file permissions i see: -rw-r--r-- and this seems pretty strange to meā€¦ Modifying the permissions lets me start the AppImage but then I get an other error (that maybe is connected to some other work happened lately on my server and I think this isnā€™t happening to everyone).
Could someone maybe confirm that the permissions have changed with the last update of CODE to Version 21.11.103?

Hi, I recently open a threat with this problem, but I am not runing on docker or snap. I see that my permissions of my CODE built-in and collabor app are www-data:www-data and ā€œ-rwx r-x r-xā€ at the root folders. The files inside are ā€œ-rw- r-- rā€“ā€ with same user and group

1 Like

Hi!!

I just solved my problem adding the line
ā€™allow_local_remote_serversā€™ => true,
to my config.php, restart apache (systemctl restart apache2) and now it is working!!!

Hope it be helpful!

3 Likes

Thanks a lot for your reply - unfortunately this didnā€™t changed anything in my situation :man_shrugging:.
As before the last CODE Update everything has worked without problems i have a suspect that this could have generated the problemā€¦
The missing permission to execute the AppImage from shell is also strange - before the update this seemed to work. Maybe this has been changed intentionallyā€¦

I use the Docker Collabora not the Appimage but updating my Nginx (https://sdk.collaboraonline.com/docs/installation/Proxy_settings.html#reverse-proxy-with-nginx-webserver) solved it for me. They changed ā€œloolā€ to ā€œcoolā€ which broke literally everything in the reverse proxy plus changed the ā€œstatic filesā€ location.

Copying and pasting the changed locations from the link above fixed it for me using 5.0.1 of the app.

1 Like

Hi,

Iā€™ve found the solution for my problem: the process of coolwsd blocked the port on the serverā€¦ therefore after the update the newly started AppImage couldnā€™t connect to the portā€¦

Thanks a lot!

Oh my god you are a life saver

you saved my day

Iā€™m sure theyā€™ve created a frustrating confusing disaster for many people because who thinks to look at a working reverse proxy configuration? I donā€™t know why they didnā€™t just do a symlink in the container instead of wasting hours of peopleā€™s time trying to hunt down the problem but oh well. :slight_smile: