ONLYOFFICE / onlyoffice-nextcloud

The app which enables the users to edit office documents from Nextcloud using ONLYOFFICE Document Server, allows multiple users to collaborate in real time and to save back those changes to Nextcloud
GNU Affero General Public License v3.0
565 stars 161 forks source link

Continouse Connection Erros without real issues #1035

Open GVLLIFESTYLE opened 1 week ago

GVLLIFESTYLE commented 1 week ago

The Plugin is after a few hours always telling that there is no connection to the onlyoffice server. But this is not the case. It always has one.

After navigation to the settings and clicking again on save in the app, I'll receive:

Settings have been successfully updated (version 8.2.0.143)

Version Nextcloud:30.0.1 Version App: 9.5.0

No Errors at Nextcloud Logs.

rob-sve commented 14 hours ago

I'm seeing this as well. I get that notification every few hours. When that happens it actually does NOT work on my end, but as you say it's as simple as going into the app settings and hitting Save to fix it until it happens again.

Nextcloud version: 30.0.1 ONLYOFFICE app version: 9.5.0 Community Document Server app version: 0.1.18

I also found that if I run the occ onlyoffice:documentserver --check command it will instantly break, and I have to go back into the app settings and save again. And I'm not sure if this is related or not, but while testing that command I noticed that it is apparently looking in the wrong sub directory:

$ sudo occ onlyoffice:documentserver --check
Error connection: Client error: `GET https://example.com/nc/nc/index.php/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.DztXNNQZoLfcOxdXU1ZM7mMFbeqsImW_j_GRrGFhplE` resulted in a `404 Not Found` response:
<!DOCTYPE html>
        <head>
                <meta charset="utf-8" />
                <title>Error 404 - Not Found</title>
                <style>
                        html, body { marg (truncated...)

I have my nextcloud installation accessible from a subdirectory of my web server's document root, under /nc/, but as you can see in the error above it is looking in /nc/nc/ which does in fact not exist. nextcloud-server actually fixed an issue just like this recently in https://github.com/nextcloud/server/pull/47883. Perhaps a similar fix is needed for the onlyoffice integration?