richdocumentscode icon indicating copy to clipboard operation
richdocumentscode copied to clipboard

Built in CODE server not loading

Open Jolopu opened this issue 2 years ago • 7 comments

I'm on a shared host and have all the latest versions of NC and collabora installed. I'm on PHP 8.2. Since 23.5.102 all versions of collabora server are not loading. When downgrading to 23.5.5 it loads. I don't know what the issue is. Maybe it has something to do with fontconfig. Anyway I will stay on 23..5.5 until a newer version is loading again.

I think this might affect also other users on shared hosts. If any developer is interested in researching this issue, I can provide access to my test server. Just give me an email.

Thanks!

Jolopu avatar Aug 31 '23 05:08 Jolopu

I just updated to NC 27.1.1 an richdocumentscode 23.5.402 and the server is loading. Even if nobody commented on this issue, it seems to be resolved now. Thanks a lot!

Jolopu avatar Sep 22 '23 14:09 Jolopu

Hi @Jolopu - Sounds like your matter is resolved. Feel free to close your issue out!

joshtrichards avatar Nov 01 '23 11:11 joshtrichards

Hi @joshtrichards - Unfortunately the matter is not resolved. I have to comment out these lines in proxy.php: if ($return) return 'no_fontconfig'; If I don't the server still wont load in the latest version 23.5.503.

Jolopu avatar Nov 01 '23 15:11 Jolopu

That means the server you're running it on doesn't meet the requirements:

https://github.com/CollaboraOnline/richdocumentscode#system-requirements

Fontconfig (libfontconfig.so.1 - required by Collabora_Online.AppImage)

https://github.com/nextcloud/richdocuments/blob/99ec60ca8163bb3c74c28c4d76911c860414769d/src/document.js#L53-L54

The fontconfig is required (see #30).

I'm not sure why this would have suddently stopped working in v23.5.102. The requirement (and check) has been in there for many years - since v4.2.404(!). My best guess is that something changed on your shared hosting server (maybe they upgraded the server or migrated servers or something). Suggestions:

  • see if they/you can install fontconfig via the package manager
  • see if there is something that would prevent the check in the exec line here from running on your server:

https://github.com/CollaboraOnline/richdocumentscode/blob/b7fe65df4cfbb8bcf148f891256e83c6932c393a/proxy.php#L159-L161

This is likely a "won't fix" issue unless you can confirm:

  • fontconfig is installed
  • the above check succeeds in the exec() call (or should succeed)

joshtrichards avatar Nov 01 '23 16:11 joshtrichards

Duplicate of #162

joshtrichards avatar Nov 01 '23 16:11 joshtrichards

I have also a problem with the built-in code server. The documents get stuck while loading. But it affects all documents whether in the group folder or in my own directory. And also newly created ones.

Use the extensions: Nextcloud Office with Collabora Online - Built-in CODE Server. It works with the demo server setting, but not with the built-in Collabora Online Development Edition setting.

The protocol says: Failed to generate token for existing file on direct editing

Collabora Online - Built-in CODE Server: 23.5.503 Nextcloud: 27.1.3 Nextcloud Office: 8.2.2

Does somebody has any idea?

Janoo1606 avatar Nov 03 '23 11:11 Janoo1606

Let us slose ad duplicate. Last post seems out of topic.

timur-g avatar Dec 11 '23 11:12 timur-g