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

Built in CODE server not loading #237

Open
Jolopu opened this issue Aug 31, 2023 · 7 comments
Open

Built in CODE server not loading #237

Jolopu opened this issue Aug 31, 2023 · 7 comments

Comments

@Jolopu
Copy link

Jolopu commented Aug 31, 2023

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
Copy link
Author

Jolopu commented Sep 22, 2023

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!

@joshtrichards
Copy link
Contributor

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

@Jolopu
Copy link
Author

Jolopu commented Nov 1, 2023

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.

@joshtrichards
Copy link
Contributor

joshtrichards commented Nov 1, 2023

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:

richdocumentscode/proxy.php

Lines 159 to 161 in b7fe65d

exec('( /sbin/ldconfig -p || scanelf -l ) | grep fontconfig > /dev/null 2>&1', $output, $return);
if ($return)
return 'no_fontconfig';

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
Copy link
Contributor

Duplicate of #162

@Janoo1606
Copy link

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?

@timur-g
Copy link

timur-g commented Dec 11, 2023

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

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

4 participants