documentserver_community icon indicating copy to clipboard operation
documentserver_community copied to clipboard

OnlyOffice does not load- Need Help finding and locking Logs to find the Error

Open speefak opened this issue 1 year ago • 4 comments

Document Server version: Community Document Server / Version 0.1.20, AGPL-lizensiert Type of installation: native via NC APP ( no docker) OS: Debain 12 (LAMP) Browser version: Firefox 133 Additional information:

Hi everyone,

I’m facing an issue with my Nextcloud installation, specifically with the integration of OnlyOffice and the Community Document Server (CDS). Here are the details of my setup:

System: Nextcloud running on a native host (no Docker containers). Installation: The Community Document Server was installed via the Nextcloud interface, as was the OnlyOffice app. Both are running directly on the same host.

Problem Description:

The installation seemed to work fine: I can select Office files under New in the Nextcloud interface. In the app settings, I can save the configuration for the Document Server, and it returns an OK message. However, when I try to open or create a document, Nextcloud freezes completely for about 1–2 minutes. After that, it works again until I attempt to open or create another document.

Error Message:

The command

sudo -u www-data php occ onlyoffice:documentserver --check

returns the following error:

Error connection: Client error: GET http://xxxxxxxxxxxxx/index.php/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.aAc0vopezHHGE05XpXgB25QttjczMRxbdOcLnxq9ekU resulted in a 404 Not Found response: File not found.

Additional Information:

How can I check if the Document Server is running correctly? I read that the CDS listens on port 5999, but when I check with nmap localhost, port 5999 isn’t reachable on the host. Does the CDS expect connections on port 5999? I’m unsure where the issue lies because I don’t know where to start troubleshooting.

Questions:

Where can I find the configuration files for both apps? Should I set the Document Server URL in the OnlyOffice configuration, the CDS configuration, or both? Are there any known issues with running this setup on a native installation without Docker? How can I confirm whether the CDS is running properly and listening on the correct port?

I would greatly appreciate any tips or ideas on how to resolve this issue.

Where can i find the matching nc log entry ? The NC logfile is horrorable - no formations like other linux log files. Its a totaly string chaos when looking into the nextcloud logfile.

Thanks in advance!

speefak avatar Dec 27 '24 16:12 speefak

При попытке соединения возникла ошибка (Client error: POST https://cloud.ххххххх.ru/index.php/apps/documentserver_community/converter resulted in a 404 Not Found response:

sudo -u www-data php /var/www/nextcloud/occ onlyoffice:documentserver --check

{"reqId":"6kbQTOcg6LYlf5v8iLkI","level":3,"time":"February 13, 2025 05:18:12","remoteAddr":"","user":"--","app":"onlyoffice","method":"","url":"--","message":"getConvertedUri on check error","userAgent":"--","version":"30.0.5.1","exception":{"Exception":"GuzzleHttp\Exception\ClientException","Message":"Client error: POST https://cloud.a1exak.ru/index.php/apps/documentserver_community/converter resulted in a 404 Not Found response:\n\n\n\t<head\n (truncated...)\n","Code":404,"Trace":[{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":72,"function":"create","class":"GuzzleHttp\Exception\RequestException","type":"::","args":["*** sensitive parameters replaced "]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":209,"function":"GuzzleHttp{closure}","class":"GuzzleHttp\Middleware","type":"::","args":[" sensitive parameters replaced "]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":158,"function":"callHandler","class":"GuzzleHttp\Promise\Promise","type":"::"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/TaskQueue.php","line":52,"function":"GuzzleHttp\Promise{closure}","class":"GuzzleHttp\Promise\Promise","type":"::","args":[" sensitive parameters replaced "]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":251,"function":"run","class":"GuzzleHttp\Promise\TaskQueue","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":227,"function":"invokeWaitFn","class":"GuzzleHttp\Promise\Promise","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":272,"function":"waitIfPending","class":"GuzzleHttp\Promise\Promise","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":229,"function":"invokeWaitList","class":"GuzzleHttp\Promise\Promise","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":69,"function":"waitIfPending","class":"GuzzleHttp\Promise\Promise","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php","line":189,"function":"wait","class":"GuzzleHttp\Promise\Promise","type":"->"},{"file":"/var/www/nextcloud/lib/private/Http/Client/Client.php","line":276,"function":"request","class":"GuzzleHttp\Client","type":"->"},{"file":"/var/www/nextcloud/apps/onlyoffice/lib/DocumentService.php","line":377,"function":"post","class":"OC\Http\Client\Client","type":"->","args":[" sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/onlyoffice/lib/DocumentService.php","line":190,"function":"request","class":"OCA\Onlyoffice\DocumentService","type":"->"},{"file":"/var/www/nextcloud/apps/onlyoffice/lib/DocumentService.php","line":100,"function":"sendRequestToConvertService","class":"OCA\Onlyoffice\DocumentService","type":"->"},{"file":"/var/www/nextcloud/apps/onlyoffice/lib/DocumentService.php","line":441,"function":"getConvertedUri","class":"OCA\Onlyoffice\DocumentService","type":"->"},{"file":"/var/www/nextcloud/apps/onlyoffice/lib/Command/DocumentServer.php","line":126,"function":"checkDocServiceUrl","class":"OCA\Onlyoffice\DocumentService","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/console/Command/Command.php","line":326,"function":"execute","class":"OCA\Onlyoffice\Command\DocumentServer","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/console/Application.php","line":1078,"function":"run","class":"Symfony\Component\Console\Command\Command","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/console/Application.php","line":324,"function":"doRunCommand","class":"Symfony\Component\Console\Application","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/console/Application.php","line":175,"function":"doRun","class":"Symfony\Component\Console\Application","type":"->"},{"file":"/var/www/nextcloud/lib/private/Console/Application.php","line":183,"function":"run","class":"Symfony\Component\Console\Application","type":"->"},{"file":"/var/www/nextcloud/console.php","line":87,"function":"run","class":"OC\Console\Application","type":"->"},{"file":"/var/www/nextcloud/occ","line":11,"args":["/var/www/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Exception/RequestException.php","Line":113,"message":"getConvertedUri on check error","CustomMessage":"getConvertedUri on check error"}} Error connection: Client error: POST https://cloud.a1exak.ru/index.php/apps/documentserver_community/converter resulted in a 404 Not Found response:

a1ex-ak avatar Feb 13 '25 13:02 a1ex-ak

Document Server version: Community Document Server / Version 0.1.20, AGPL-lizensiert Type of installation: native via NC APP ( no docker) OS: Debain 12 (LAMP) Browser version: Firefox 133 Additional information:

Hi everyone,

I’m facing an issue with my Nextcloud installation, specifically with the integration of OnlyOffice and the Community Document Server (CDS). Here are the details of my setup:

System: Nextcloud running on a native host (no Docker containers). Installation: The Community Document Server was installed via the Nextcloud interface, as was the OnlyOffice app. Both are running directly on the same host.

Problem Description:

The installation seemed to work fine: I can select Office files under New in the Nextcloud interface. In the app settings, I can save the configuration for the Document Server, and it returns an OK message. However, when I try to open or create a document, Nextcloud freezes completely for about 1–2 minutes. After that, it works again until I attempt to open or create another document.

Error Message:

The command

sudo -u www-data php occ onlyoffice:documentserver --check

returns the following error:

Error connection: Client error: GET http://xxxxxxxxxxxxx/index.php/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.aAc0vopezHHGE05XpXgB25QttjczMRxbdOcLnxq9ekU resulted in a 404 Not Found response: File not found.

Additional Information:

How can I check if the Document Server is running correctly? I read that the CDS listens on port 5999, but when I check with nmap localhost, port 5999 isn’t reachable on the host. Does the CDS expect connections on port 5999? I’m unsure where the issue lies because I don’t know where to start troubleshooting.

Questions:

Where can I find the configuration files for both apps? Should I set the Document Server URL in the OnlyOffice configuration, the CDS configuration, or both? Are there any known issues with running this setup on a native installation without Docker? How can I confirm whether the CDS is running properly and listening on the correct port?

I would greatly appreciate any tips or ideas on how to resolve this issue.

Where can i find the matching nc log entry ? The NC logfile is horrorable - no formations like other linux log files. Its a totaly string chaos when looking into the nextcloud logfile.

Thanks in advance!

on Feb 13, 2025

Can confirm since OO update to 9.6.0 and documentserver_community 0.1.20 (most recent on NC App Store as of now). It's quite likely related to these changes:

    URL for requests to Conversion API
    reading JSON instead of XML from Conversion API

I assume there's been an update to the Onlyoffice document server software that supports these API calls, but it hasn't yet been ported to the NC app - which seems to be quite a slow process oftentimes.

As for now, my best guess (works for me) is to downgrade the Onlyoffice app back to 9.5.0:

Disable the app as admin
Delete the folder apps/onlyoffice in your NC installation dir
Download v9.5.0 from https://github.com/ONLYOFFICE/onlyoffice-nextcloud/releases/download/v9.5.0/onlyoffice.tar.gz
Extract and copy the folder onlyoffice and its contents into the apps folder of your NC installation
Enable the app again
Don't accidentally update it again before an updated documentserver_community is available 😄

a1ex-ak avatar Feb 13 '25 13:02 a1ex-ak

However, even in version 9.5.0, the CDS or the OO plugin very often causes extreme delays in Nextcloud itself. When using CDS with OO v9.5.0, after opening a few documents, the reaction time in Nextcloud increases to up to 30 seconds per click. This is unusable, so I deactivated CDS and OO.

speefak avatar Feb 14 '25 17:02 speefak

https://github.com/nextcloud/documentserver_community/issues/347

a1ex-ak avatar Feb 19 '25 11:02 a1ex-ak

Shoud be fix with 0.2.0

chadek avatar May 01 '25 18:05 chadek