documentserver_community icon indicating copy to clipboard operation
documentserver_community copied to clipboard

OnlyOffice Cannot be reached. Please Contact Admin & Error while testing x2t binary & error while loading shared libraries: libkernel_network.so

Open PfeifferJosef-96 opened this issue 2 years ago • 1 comments

Problem

After installation of this package via the NextCloud GUI, I was not able to display any document. The healtcheck returned "true". I hunted down some log messages, which were only partly helpful. My Nextcloud instance is located at a commercial webhoster, so unfortunately I can not provide any OS information beside Linux x86_64. Nextcloud has version 23.0.12 and documentserver is installed as version 0.1.13.

Debugging

I saw that the GUI showed the error message "OnlyOffice cannot be reached. Please Contact Admin" after I was opening any file. The messages received in the debugging console of the firefox-browser, showed an internal server error after calling the api script of the documentserver.

The first log messages:

_/index.php/apps/documentserver_community/web-apps/apps/api/documents/api.js","message":"trim() expects parameter 1 to be string, bool given in file

/index.php/apps/documentserver_community/web-apps/apps/api/documents/api.js","message":"Error while testing x2t binary

/index.php/apps/documentserver_community/web-apps/apps/api/documents/api.js","message":"Temporary directory /www/htdocs/<my.domain>/tmp/ is not present or writable

After I actually created the tmp folder, I was led to the actual root cause of the problem, which is described in the next log message:

./x2t: error while loading shared libraries: libkernel_network.so: cannot open shared object file: No such file or directory\n

Possible Solution

I was able to solve this issue with the help of the following issue: https://github.com/nextcloud/documentserver_community/issues/195 and the included comments. So in my case, all of the libraries where located beside the x2t script, but the path was not known (see https://github.com/nextcloud/documentserver_community/issues/195#issuecomment-761549137). The file to edit is "apps/documentserver_community/lib/Document/ConverterBinary.php"

I opened another issue, as the "helpful" error message was only shown after creating the tmp folder. This issue is also different, as not the libgraphics.so was missing but libkernel_network.so. This might help someone as future reference!

Edit:

  • Added file which needs edit

PfeifferJosef-96 avatar Apr 30 '23 16:04 PfeifferJosef-96

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 60 days. Thank you for your contribution!

Retaking repo management include inheritance of old, not treated, and probablty obsolete issues, this is why it was decided to mark issues as stale.

github-actions[bot] avatar Feb 19 '24 00:02 github-actions[bot]