[Onlyoffice] Error while downloading the document file to be converted

Hello @alexander_onlyoffice
Thank you very much for your response. No reason to apologize, I’m just glad you help me here :slight_smile:

NC and OO run on the same machine. Onlyoffice is reachable via https://office.mydomain.tld and it forwards to http://127.0.0.1:8000

When I run the healthcheck against that IP and also against the FQDN it returns true:

bash$ curl 127.0.0.1:8000/healthcheck
true
bash$ curl https://office.mydomain.tld/healthcheck
true

So it seems reachable.

The only log in /var/log/onlyoffice/documentserver/ is nginx.error.log. And it is empty. It only contains entries from January 15th when the services were not running and the documentserver was not reachable.
I just tried to integrate OO in NC again, received the error message in the NC web GUI and still, there is no new entry in the log.

@Schmu, we will try to reproduce the describe issue on our side. I will notify you about the result.

It is very odd behavior when there are no logs in this folder. Please check the status of Document Server services with a command supervisorctl status all

Did you delete just the docker image or a container with Document Server from your previous setup too?

@Schmu, could you please also show us the content of local.json. It should be in /etc/onlyoffice/documentserver/

Yes, I stopped the docker image and even deleted it completely. The services are all running:

/root/ # systemctl status onlyoffice-spellchecker
● onlyoffice-spellchecker.service - Onlyoffice documentserver
   Loaded: loaded (/usr/lib/systemd/system/onlyoffice-spellchecker.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2019-01-16 00:17:19 CET; 5 days ago
 Main PID: 706 (node)
    Tasks: 16 (limit: 4915)
   Memory: 77.2M
   CGroup: /system.slice/onlyoffice-spellchecker.service
           ├─706 /usr/bin/node /usr/share/webapps/onlyoffice/documentserver/server/SpellChecker/sources/server.js
           └─965 /usr/bin/node /usr/share/webapps/onlyoffice/documentserver/server/SpellChecker/sources/server.js

Jan 16 00:17:19 nextcloud systemd[1]: Started Onlyoffice documentserver.
Jan 16 00:17:19 nextcloud node[706]: [2019-01-16T00:17:19.609] [WARN] nodeJS - start cluster with 1 workers
Jan 16 00:17:19 nextcloud node[706]: [2019-01-16T00:17:19.618] [WARN] nodeJS - worker 965 started.
Jan 16 00:17:20 nextcloud node[706]: [2019-01-16T00:17:20.493] [WARN] nodeJS - Express server starting...
Jan 16 00:17:20 nextcloud node[706]: [2019-01-16T00:17:20.631] [WARN] nodeJS - Express server listening on port 8080 in production-linux mode
/root/ # systemctl status onlyoffice-docservice
● onlyoffice-docservice.service - Onlyoffice documentserver
   Loaded: loaded (/usr/lib/systemd/system/onlyoffice-docservice.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2019-01-16 00:17:19 CET; 5 days ago
 Main PID: 711 (node)
    Tasks: 20 (limit: 4915)
   Memory: 103.9M
   CGroup: /system.slice/onlyoffice-docservice.service
           ├─ 711 /usr/bin/node /usr/share/webapps/onlyoffice/documentserver/server/DocService/sources/server.js
           └─1015 /usr/bin/node /usr/share/webapps/onlyoffice/documentserver/server/DocService/sources/server.js

Jan 16 00:17:21 nextcloud node[711]: [2019-01-16T00:17:21.140] [ERROR] nodeJS - [AMQP] Error: connect ECONNREFUSED 127.0.0.1:5672
Jan 16 00:17:21 nextcloud node[711]:     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)
Jan 16 00:17:22 nextcloud node[711]: [2019-01-16T00:17:22.142] [ERROR] nodeJS - [AMQP] Error: connect ECONNREFUSED 127.0.0.1:5672
Jan 16 00:17:22 nextcloud node[711]:     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)
Jan 16 00:17:23 nextcloud node[711]: [2019-01-16T00:17:23.266] [WARN] nodeJS - Express server listening on port 8000 in production-linux mode
Jan 17 00:17:20 nextcloud node[711]: [2019-01-17T00:17:20.083] [WARN] nodeJS - update cluster with 1 workers
Jan 18 00:17:20 nextcloud node[711]: [2019-01-18T00:17:20.085] [WARN] nodeJS - update cluster with 1 workers
Jan 19 00:17:20 nextcloud node[711]: [2019-01-19T00:17:20.090] [WARN] nodeJS - update cluster with 1 workers
Jan 20 00:17:20 nextcloud node[711]: [2019-01-20T00:17:20.094] [WARN] nodeJS - update cluster with 1 workers
Jan 21 00:17:20 nextcloud node[711]: [2019-01-21T00:17:20.098] [WARN] nodeJS - update cluster with 1 workers
/root/ # systemctl status onlyoffice-spellchecker
● onlyoffice-spellchecker.service - Onlyoffice documentserver
   Loaded: loaded (/usr/lib/systemd/system/onlyoffice-spellchecker.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2019-01-16 00:17:19 CET; 5 days ago
 Main PID: 706 (node)
    Tasks: 16 (limit: 4915)
   Memory: 77.2M
   CGroup: /system.slice/onlyoffice-spellchecker.service
           ├─706 /usr/bin/node /usr/share/webapps/onlyoffice/documentserver/server/SpellChecker/sources/server.js
           └─965 /usr/bin/node /usr/share/webapps/onlyoffice/documentserver/server/SpellChecker/sources/server.js

Jan 16 00:17:19 nextcloud systemd[1]: Started Onlyoffice documentserver.
Jan 16 00:17:19 nextcloud node[706]: [2019-01-16T00:17:19.609] [WARN] nodeJS - start cluster with 1 workers
Jan 16 00:17:19 nextcloud node[706]: [2019-01-16T00:17:19.618] [WARN] nodeJS - worker 965 started.
Jan 16 00:17:20 nextcloud node[706]: [2019-01-16T00:17:20.493] [WARN] nodeJS - Express server starting...
Jan 16 00:17:20 nextcloud node[706]: [2019-01-16T00:17:20.631] [WARN] nodeJS - Express server listening on port 8080 in production-linux mode
/root/ #

Should I really have a folder /etc/onlyoffice/? There is none actually. I searched for local* in the webapps folder instead, just in case on my system that is maybe the folder you mean, but I only found these results:

# find /usr/share/webapps/onlyoffice/ -name local*
/usr/share/webapps/onlyoffice/documentserver/server/Common/node_modules/amazon-s3-url-signer/local_test.js
/usr/share/webapps/onlyoffice/documentserver/server/DocService/node_modules/moment/locale
/usr/share/webapps/onlyoffice/documentserver/server/DocService/node_modules/moment/min/locales.js
/usr/share/webapps/onlyoffice/documentserver/server/DocService/node_modules/moment/min/locales.min.js
/usr/share/webapps/onlyoffice/documentserver/server/DocService/node_modules/moment/src/lib/create/local.js
/usr/share/webapps/onlyoffice/documentserver/server/DocService/node_modules/moment/src/lib/locale
/usr/share/webapps/onlyoffice/documentserver/server/DocService/node_modules/moment/src/lib/locale/locale.js
/usr/share/webapps/onlyoffice/documentserver/server/DocService/node_modules/moment/src/lib/locale/locales.js
/usr/share/webapps/onlyoffice/documentserver/server/DocService/node_modules/moment/src/lib/moment/locale.js
/usr/share/webapps/onlyoffice/documentserver/server/DocService/node_modules/moment/src/locale
/usr/share/webapps/onlyoffice/documentserver/server/Metrics/node_modules/statsd/debian/localConfig.js
/usr/share/webapps/onlyoffice/documentserver/web-apps/apps/documenteditor/main/locale
/usr/share/webapps/onlyoffice/documentserver/web-apps/apps/documenteditor/mobile/locale
/usr/share/webapps/onlyoffice/documentserver/web-apps/apps/presentationeditor/main/locale
/usr/share/webapps/onlyoffice/documentserver/web-apps/apps/presentationeditor/mobile/locale
/usr/share/webapps/onlyoffice/documentserver/web-apps/apps/spreadsheeteditor/main/locale
/usr/share/webapps/onlyoffice/documentserver/web-apps/apps/spreadsheeteditor/mobile/locale

And there is the folder:
/usr/share/webapps/onlyoffice/documentserver/web-apps/apps/documenteditor/main/locale/
which contains json files for languages; for example de.json and en.json. These seem to be the translations only.

I just created the folder /etc/onlyoffice manually, gave it the user and group ownership onlyoffice:onlyoffice and triggered a re-installation/ rebuild of the package. I’ll check if that folder is filled with files and folders afterwards.

Just to make sure I made everything right:
After I installed the package I created the web server config files like posted in my second post and copied the web server conf files from /home/username/.cache/yay/onlyoffice-documentserver/src/etc/nginx/includes/ to /etc/nginx/includes/:

ll /etc/nginx/includes/
total 20K
drwxr-x--- 2 root root  179 Jan  6 13:48 .
drwxr-x--- 9 root root 4.0K Jan  6 13:48 ..
-rw-r----- 1 root root  523 Apr 22  2018 onlyoffice-documentserver-common.conf
-rw-r----- 1 root root 1.5K Apr 22  2018 onlyoffice-documentserver-docservice.conf
-rw-r----- 1 root root  122 Apr 22  2018 onlyoffice-documentserver-spellchecker.conf
-rw-r----- 1 root root  806 Apr 22  2018 onlyoffice-http.conf

I restarted nginx and afterwards the onlyoffice welcome page was accessible and the healthcheck succeeded. So I thought everything is alright.

@Schmu, could you please contact us at support@onlyoffice.com. The problem looks much more difficult and it seems that there is something wrong with the installation of Document Server. There are no logs, despite the services are active, and no configs, which have to be in this version. We would like to gather more information, as this is not a standard situation.

Hello @alexander_onlyoffice

Thank you again for your reply. I just sent the email. While describing some additional information in the mail and checking again on the server, I just found out that the package doesn’t install the config files to /etc/onlyoffice/
but to
/etc/webapps/onlyoffice/

So in this folder I have the default.json, but still I can’t find the local.json somewhere.
I downloaded the docker image again (didn’t start it), extracted the local.json from this docker image and copied it to /etc/webapps/onlyoffice/documentserver/

The content is:

{
  "services": {
    "CoAuthoring": {
      "sql": {
        "dbHost": "localhost",
        "dbName": "onlyoffice",
        "dbUser": "onlyoffice",
        "dbPass": "onlyoffice"
      },
      "redis": {
        "host": "localhost"
      },
      "token": {
        "enable": {
          "request": {
            "inbox": false,
            "outbox": false
          },
          "browser": false
        },
        "inbox": {
          "header": "Authorization"
        },
        "outbox": {
          "header": "Authorization"
        }
      },
      "secret": {
        "inbox": {
          "string": "secret"
        },
        "outbox": {
          "string": "secret"
        },
        "session": {
          "string": "secret"
        }
      }
    }
  },
  "rabbitmq": {
    "url": "amqp://guest:guest@localhost"
  }
}

After restarting the onlyoffice services I tried again to activate the integration, but still it failed with the error message, that converting is not possible.

Hello @alexander_onlyoffice

I checked my nextcloud log again and noticed these error message, that come up as soon as I open the Onlyoffice configuration page within the admin’s settings section “Onlyoffice”:

[PHP] Error: implode(): Invalid arguments passed at /var/www/nextcloud/apps/onlyoffice/templates/settings.php#66
GET /settings/admin/onlyoffice

[PHP] Error: count(): Parameter must be an array or an object that implements Countable at /var/www/nextcloud/apps/onlyoffice/templates/settings.php#64
GET /settings/admin/onlyoffice

Might this be the root cause? There was an PHP upgrade to version 7.3 on my server recently. Not sure if the app works fine with PHP 7.3.

I get exactly the same php error! :frowning:

[PHP] Error: implode(): Invalid arguments passed at /var/www/nextcloud/apps/onlyoffice/templates/settings.php#66
GET /settings/admin/onlyoffice

[PHP] Error: count(): Parameter must be an array or an object that implements Countable at /var/www/nextcloud/apps/onlyoffice/templates/settings.php#64
GET /settings/admin/onlyoffice

@ Schmu did you get an answer? Is there a fix?

Thanks

Hi @LukeVader,

We had an exchange of messages, but the last one is from 11 days ago, unfortunately. So far we didn’t make any progress. I don’t know how to debug this issue any further, nor do I have a solution yet.

It was said that my installation is probably broken, but I installed Onlyoffice from Arch Linux user repository
https://aur.archlinux.org/packages/onlyoffice-documentserver/

And it seems to work for other people.

If you have the same problem, maybe you can provide your log files (mine are empty or not existent). The following information was requested:

  • all log files you can find regarding onlyoffice
  • can Nextcloud and Document Server access each other? Please try:
    • wget https://nextcloud_address
    • wget https://documentserver_address

Hi @Schmu,

I had the same problem as you. I’ve updated my OnlyOffice container some days ago and I’ve been facing the same error message.

For me the problem came from the token feature. I’ve set up a token to prevent other people to use my OnlyOffice but since the local.json file was not located in a docker volume, the update of the docker erased the all content.

Hope that it can help.

Hi @LeVerbeux,

Thanks for that hint. I will check that. Need to setup the docker env then again. I tried a native Onlyoffice server (no docker) meanwhile, which had the same issue.

Dear All… I am having the same issues… I can get my site running but nothing else… Can edit documents or create them… Any suggestions…

I do have it under trust sites…

I did also add "‘onlyoffice’ => array (
‘verify_peer_off’ => true
)

But I am still getting this error when going under nextcloud -> [onlyoffice] Error: GetConvertedUri on check error: Error occurred in the document service: Error while downloading the document file to be converted.

PUT /apps/onlyoffice/ajax/settings/address

In additional to these.
https://help.nextcloud.com/t/onlyoffice-error-while-downloading-the-document-file-to-be-converted/45195/17?u=acecombat2

Don’t forget to overwrite the cli < tested it works. on Nextcloud version 16.x.x

The following is an example:

'trusted_domains' => 
      array (
        0 => '192.168.0.8:80',  #for local access
        1 => 'myddns.domain.org', #access externally
        2 => 'myddns.second.domain.org', #access externally second domain if you have one.
      ),

If nextcloud are behind reverse proxy webserver,

      'overwrite.cli.url' => 'https://myddns.domain.org:port', #it forcefully nc to use this as base link
      'overwritehost' => 'myddns.domain.org:port', #it forcefully nc to use this as base link
      'overwriteprotocol' => 'https', # force to use SSL because of reverse proxy by let's encrypt

Using Docker Images Nextcloud, OnlyOffice and Caddy Webserver.

1 Like

Still does not work for me! :frowning:

Hello, I have the same problem, and I found out that my document server (docker) doesn’t have access to Nextcloud: if I launch wget myoffice.mysite.com from docker (docker exec -it ID_CONTAINER /bin/bash), I don’t get anything (the connexion is impossible). But in fact, I can’t access any site. If I do wget 77.95.65.121 (a google IP), I can’t access it either.

For information, the document server is accessible from Nextcloud and all healtcheck are OK.
I’m using a proxy on Apache and a certificate from Let’s encrypt.

Any idea? (notably @alexanderonlyoffice ?)

I had the same problem. I fixed it by changeing the host of my nextcloud domain.

Look into the interaction betwenn onlyoffice componnents. I had the same issue and solved it by noticing that the docservice could not connect to rabbitmq. So I set the password for rabbitmq one again and it was working. Look closely in your /var/log/rabbitmq files
Hope it helps

Fellows, Onlyoffice DocumentServer 5.5.1 seems to be broken. I have downgraded to Onlyoffice Document Server 5.5.0 using GitHub deb file and my Nextcloud instance is connecting back to the Document Server without issues.
Here is the link I used to download deb file. I followed all pre-requisites installation instructions including postgresql from the Onlyoffice forum.

I had the same issue, since my Nextcloud and my OnlyOffice share the same server and they are behind reverse proxies, I just add ‘trusted_proxies’ into my config.php file
image
Hope this can help.