Can't use onlyoffice after migrating NC to new server (error nodeJS - error downloadFile)

Do you want to: Ask a how-to question

Document Server version: latest patch of 7.2
Connector version: latest
DMS (platform) version: latest patch of 24
OS: CentOS 8 Stream, fully patched
Browser version: latest Chrome

So, I have a CentOS 8 Stream server with a rootless podman installation of NC and OO. If it’s important, the installation was migrated from a different server that was (almost) the same in configuration (same os, podman, NC, OO,…). Everything was working fine on the old server.

On the new server I thought it was going to be easy peasy. Migrated everything (db, storage, webroot of NC) and NC opens up nicely with all the apps, themes, configuration, files…everything.

Except for the OO.

So, my frontend is an nginx container that does ssl termination and just forwards everything to the NC nginx container :

server {
    listen 443      ssl http2;
    server_name nextcloud.example.com;

    ssl_certificate /etc/letsencrypt/nextcloud.example.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/nextcloud.example.com/privkey.pem;
    ssl_trusted_certificate /etc/letsencrypt/nextcloud.example.com/chain.pem;

    location / {
      proxy_pass http://192.168.124.20:10000;
    }
}

10000 is the port of NC’s nginx web server (with all the complex configuration) from here (removed the certs and changed the ports, proxy endpoints…).

I also have a OO container :

  onlyoffice:
    image: onlyoffice/documentserver:7.2
    container_name: nextcloud_onlyoffice
    hostname: nextcloud_onlyoffice
    restart: unless-stopped
    volumes:
      - volume_docs:/var/www/onlyoffice/Data
    environment:
      JWT_ENABLED: true
      JWT_SECRET: aaabbbcccSecretaaabbbccc
      JWT_HEADER: "AuthorizationJwt"
      USE_UNAUTHORIZED_STORAGE: true
      JWT_IN_BODY: 'true'

In config.php I also have :

  array (
    'verify_peer_off' => true,
    'jwt_header' => "AuthorizationJwt"
  ),

Settings are as is and from each pods I can ping both ways by the DNS name.

But, when I do ‘Save’ I get :

Error when trying to connect (Error occurred in the document service: Error while downloading the document file to be converted.) (version 7.2.1.34)

and in the logs I get :

[
    2022 - 12 - 05T20: 32: 42.560
][ERROR
][localhost
][conv_check_1059346562_docx
][userId
] nodeJS - error downloadFile: url = "http://nextcloud_nginx/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.2-rBqngr8IBSqjb8JgP4tGf40bVtlJy0YcfP9iinLG8"; attempt = 3; code: undefined; connect:undefined Error: Error response: statusCode: 403; headers: {
    "server": "nginx/1.21.6",
    "date": "Mon, 05 Dec 2022 20:32:42 GMT",
    "content-type": "application/json; charset=utf-8",
    "content-length": "27",
    "connection": "keep-alive",
    "expires": "Thu, 19 Nov 1981 08:52:00 GMT",
    "pragma": "no-cache",
    "set-cookie": [
        "oc_sessionPassphrase=UGbfp4l1lnk6ws90qcFBDTOr6Tw2%2FMufaq92XZeOUdaKO3PZ4kwjttMCqTDWpE7YsL8rSNacHujbd83G07E005SdqGYskH5f5PbVvslIWWelxU6q8c0agI0QwNTE70Cr; path=/; secure; HttpOnly; SameSite=Lax",
        "octry5ihd3s1=ffc6de588fe08397905402d8e5d981db; path=/; secure; HttpOnly; SameSite=Lax",
        "__Host-nc_sameSiteCookielax=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax",
        "__Host-nc_sameSiteCookiestrict=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=strict"
    ],
    "cache-control": "no-cache, no-store, must-revalidate",
    "x-request-id": "u4PRzxxrIBwvD9VdRz70",
    "content-security-policy": "default-src 'none';base-uri 'none';manifest-src 'self';frame-ancestors 'none'",
    "feature-policy": "autoplay 'none';camera 'none';fullscreen 'none';geolocation 'none';microphone 'none';payment 'none'",
    "x-robots-tag": "none, none",
    "referrer-policy": "no-referrer",
    "x-content-type-options": "nosniff",
    "x-download-options": "noopen",
    "x-frame-options": "SAMEORIGIN",
    "x-permitted-cross-domain-policies": "none",
    "x-xss-protection": "1; mode=block"
};
at Request.fResponse(/snapshot/server / build / server / Common / sources / utils.js)
at Request.emit(events.js: 400: 28)
at Request.onRequestResponse(/snapshot/server / build / server / Common / node_modules / request / request.js: 1059: 10)
at ClientRequest.emit(events.js: 400: 28)
at HTTPParser.parserOnIncomingClient(_http_client.js: 647: 27)
at HTTPParser.parserOnHeadersComplete(_http_common.js: 127: 17)
at Socket.socketOnData(_http_client.js: 515: 22)
at Socket.emit(events.js: 400: 28)
at addChunk(internal / streams / readable.js: 293: 12)
at readableAddChunk(internal / streams / readable.js: 267: 9)
at Socket.Readable.push(internal / streams / readable.js: 206: 10)
at TCP.onStreamRead(internal / stream_base_commons.js: 188: 23)

When I do ‘curl’ for the file above, I also get 403.

Sort of interesting :
When I open https://nextcloud.example.com/ds-vpath/ I get the OO test webpage. I can create a document, but when I try to open the file for editing, it’s only blank.

What else should I check?

Hello @Klemenn

Please execute next command in the Document Server container bash documentserver-update-securelink.sh then try connecting.
If problem persists ever after please share log files of Document Server located in /var/log/onlyoffice/documentserver inside the container and logs of Nextcloud so we can check out the situation.

Waiting your feedback.

Hi,

your solution made no difference but bash autocomplete showed me that there is another script that does :


documentserver-jwt-status.sh
Your JWT settings:
JWT enabled -  false

This surprised me because in docker-compose I have :


version: "3.9"
services:
  onlyoffice:
    image: onlyoffice/documentserver:7.2
    container_name: nextcloud_onlyoffice
    hostname: nextcloud_onlyoffice
    restart: unless-stopped
    volumes:
      - volume_docs:/var/www/onlyoffice/Data
    environment:
      JWT_ENABLED: true
      JWT_SECRET: aaabbbccc111222333
      JWT_HEADER: "AuthorizationJwt"
      USE_UNAUTHORIZED_STORAGE: true
      JWT_IN_BODY: 'true'

and in the container I can clearly see that those env vars are properly set :

JWT_ENABLED=True
JWT_HEADER=AuthorizationJwt
JWT_IN_BODY=true
JWT_SECRET=BGhm6c6kn8H2BwB2IrNE
USE_UNAUTHORIZED_STORAGE=True

If I manually set variables in ‘/etc/onlyoffice/documentserver/default.json’ and do supervisor restart - it makes no difference.

When I modify ‘/etc/onlyoffice/documentserver/local.json’ and do supervisor restart then I get :

documentserver-jwt-status.sh
Your JWT settings:
JWT enabled -  true
JWT secret  -  aaabbbccc111222333
JWT header  -  AuthorizationJwt

What am I doing wrong and why is my env var not enabling jwt?

I was following this instructions.

In the version 7.2.1 JWT token is enabled by default.
Probably it didn’t modify the values because of wrong syntax. It should look like that:

      - JWT_ENABLED=true
      - JWT_SECRET=<your_secret>
      - JWT_HEADER=<your_header>
      - JWT_IN_BODY=true

As for the configs, there is specific order of them when loading Document Server:
default.json > production-linux.json > local.json
That’s why your changes were applied after modifying local.json. Basically, all changes are rewritten in that order.
Did configuring JWT credentials manually solved your problem? If not please share with us logs of Document Server and Nextcloud.

Don’t really know what to make of it. Removed the image, restarted, it works.

Just using this:

    environment:
      JWT_ENABLED: "true"
      JWT_SECRET: "aaabbbccc123123123"

Don’t really know anymore what to make out of this. Now it (again) doesn’t work.

This is the only error :

10.89.0.7 -  07/Dec/2022:22:03:28 +0000 "GET /index.php" 400
10.89.0.2 - - [07/Dec/2022:22:03:28 +0000] "GET /apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.o4z-FCf-pviq-uipnFXT68h-TixRpYewm8P3LY3uIfw HTTP/1.1" 400 7075 "-" "Node.js/6.13" "-"
[2022-12-07T22:03:28.580] [ERROR] [localhost] [conv_check_17485164_docx] [userId] nodeJS - error downloadFile:url=http://nextcloud_nginx/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.o4z-FCf-pviq-uipnFXT68h-TixRpYewm8P3LY3uIfw;attempt=1;code:undefined;connect:undefined Error: Error response: statusCode:400; headers:{"server":"nginx/1.23.2","date":"Wed, 07 Dec 2022 22:03:28 GMT","content-type":"text/html; charset=UTF-8","transfer-encoding":"chunked","connection":"keep-alive","expires":"Thu, 19 Nov 1981 08:52:00 GMT","cache-control":"no-store, no-cache, must-revalidate","pragma":"no-cache","set-cookie":["oc_sessionPassphrase=2EjjBITuiW613kkpNL7EDhOmAkk7I%2BzlwjzYdaeSvukkmEhzhKiSIDpkblz%2BZCdmLG23awdjO6zY9CraE3F%2FlIru1b1j0OY7XHj05S39DliIvuD9Z8aYvF%2FoZZfjkp4A; path=/; secure; HttpOnly; SameSite=Lax","octry5ihd3s1=de1a086532dad14937c58552592e0e28; path=/; secure; HttpOnly; SameSite=Lax","__Host-nc_sameSiteCookielax=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax","__Host-nc_sameSiteCookiestrict=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=strict"],"content-security-policy":"default-src 'self'; script-src 'self' 'nonce-WHNQeTR1K01HbWRIS2RPbndjNzhWYXFqei9QcTA5MnhpTjVnMENXK0FQaz06SnJtMG9ZSHZmVGRvUnVDUnN1V1pNY1BadThUZG9xV0k4cWNuZ0hmWE5iVT0='; style-src 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:; media-src *; connect-src *; object-src 'none'; base-uri 'self';","referrer-policy":"no-referrer","x-content-type-options":"nosniff","x-download-options":"noopen","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-robots-tag":"none","x-xss-protection":"1; mode=block"};
    at Request.fResponse (/snapshot/server/build/server/Common/sources/utils.js)
    at Request.emit (events.js:400:28)
    at Request.onRequestResponse (/snapshot/server/build/server/Common/node_modules/request/request.js:1059:10)
    at ClientRequest.emit (events.js:400:28)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:647:27)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:127:17)
    at Socket.socketOnData (_http_client.js:515:22)
    at Socket.emit (events.js:400:28)
    at addChunk (internal/streams/readable.js:293:12)
    at readableAddChunk (internal/streams/readable.js:267:9)
    at Socket.Readable.push (internal/streams/readable.js:206:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:188:23)

Huh, it seems that the problem was in config.php - I had two ‘2’-s in allowed domain list :]

Now it works - nc24 and oo7.2, but I get this error when I try to open a file :

==> /var/log/onlyoffice/documentserver/docservice/out.log <==
[2022-12-07T23:07:53.387] [ERROR] [localhost] [3020840916] [octry5ihd3s1_kkobetic1] nodeJS - changesError: Error: Uncaught TypeError: Cannot read properties of null (reading 'zsj') Script: https://nextcloud.example.com/ds-vpath/7.2.1-34/sdkjs/cell/sdk-all-min.js Line: 1527:320 userAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 platform: Linux x86_64 isLoadFullApi: true isDocumentLoadComplete: false StackTrace: TypeError: Cannot read properties of null (reading 'zsj')
    at Sb.w$g (https://nextcloud.example.com/ds-vpath/7.2.1-34/sdkjs/cell/sdk-all-min.js:1527:320)
    at i.onDocumentContentReady (https://nextcloud.example.com/ds-vpath/7.2.1-34/web-apps/apps/spreadsheeteditor/main/app.js:8:2367962)
    at i.onLongActionEnd (https://nextcloud.example.com/ds-vpath/7.2.1-34/web-apps/apps/spreadsheeteditor/main/app.js:8:2363052)
    at D (https://nextcloud.example.com/ds-vpath/7.2.1-34/web-apps/apps/spreadsheeteditor/main/app.js:8:7870)
    at z.<anonymous> (https://nextcloud.example.com/ds-vpath/7.2.1-34/web-apps/apps/spreadsheeteditor/main/app.js:8:8074)
    at z.<anonymous> (https://nextcloud.example.com/ds-vpath/7.2.1-34/web-apps/apps/spreadsheeteditor/main/app.js:8:1249)
    at z.trigger (https://nextcloud.example.com/ds-vpath/7.2.1-34/sdkjs/cell/sdk-all-min.js:1160:262)
    at Sb.ee (https://nextcloud.example.com/ds-vpath/7.2.1-34/sdkjs/cell/sdk-all-min.js:1427:462)
    at Sb.iw (https://nextcloud.example.com/ds-vpath/7.2.1-34/sdkjs/cell/sdk-all-min.js:1256:78)
    at https://nextcloud.example.com/ds-vpath/7.2.1-34/sdkjs/cell/sdk-all-min.js:1265:480

Developer tools say it cant download

1. Request URL:

http://nextcloud.sos-sw.si/ds-vpath/cache/files/data/3020840916/Editor.bin/Editor.bin?md5=y1JC1-OQjQ1M7ZXBfCEQHQ&expires=1673073228&filename=Editor.bin

due to mixed content rule.

Please close Advanced server settings in the connector, hit the ‘Save’ button, preproduce the issue and share a log archive with me (via PM if sensitive data can be found).
Also attach next configs and screenshots to the archive:

  • /etc/onlyoffice/documentserver/local.json
  • /etc/onlyoffice/documentserver/nginx/ds.conf
  • /etc/onlyoffice/documentserver/nginx/includes/ds-docservice.conf
  • /etc/nginx/conf.d/default.conf
  • screenshots of browser’s console Network and Console tabs.

To do these screenshots please follow this scenario:

  1. open any document in the editor to reproduce the issue;
  2. open browser’s console (F12 in Chrome/Firefox/Edge);
  3. reload the page;
  4. make screenshots of Network and Console tabs of browser’s console.

I see from your log entries that these errors are occurring for specific 3020840916 file. Is it so or it happens to all files?

Hi,

thank you for your support.

I have found the issue - missing the host header(-s) in external web server. It’s working now.

Hi all. Looks like I have a similar problem… I have spent a few days on it and haven’t resulted.

I use traefik as a reverse proxy… In the local hosts file I have setup http://onlyoffice.local like url for onlyoffice server. Inside docker network it can be accessible by onlyoffice name.

From web-browser by address http://onlyoffice.local/healthcheck/ I receive true.
Also, document server example is working well.
But integration with Nextcloud I can’t finish…
Nextcloud Hub 3 (25.0.3)

I think I have an incorrect header name for the token but I can’t understand where I should change it…

Also, nextcloud shows me a warning that reverse proxy not secure or incorrect configurated… but I think it is not a case and related to not configurated https.

My docker-compose.yml

version: '3.9'
services:
  nextcloud:
    container_name: nextcloud
    image: nextcloud:latest
    restart: unless-stopped
    depends_on:
      - nextcloud_postgres
      - onlyoffice
    labels:
    #need to config headers in traefik https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md#traefik-2 | also need to get list of plugins from previous volume
      traefik.enable: true
      traefik.docker.network: media
      traefik.http.routers.nextcloud.rule: Host(`nextcloud.local`)
      traefik.http.routers.nextcloud.entrypoints: web
    environment:
      POSTGRES_HOST: nextcloud_postgres
      POSTGRES_DB: nextcloud
      POSTGRES_USER: nextcloud
      POSTGRES_PASSWORD: 1
    volumes:
      - nextcloud:/var/www/html
    networks:
      media:
      nextcloud:

  nextcloud_postgres:
    container_name: nextcloud_postgres
    restart: unless-stopped
    image: postgres:9-alpine
    environment:
      POSTGRES_DB: nextcloud
      POSTGRES_USER: nextcloud
      POSTGRES_PASSWORD: 1
    volumes:
      - db:/var/lib/postgresql/data
    networks:
      nextcloud:


  onlyoffice:
    container_name: onlyoffice
    image: onlyoffice/documentserver
    restart: unless-stopped
    labels:
      traefik.enable: true
      traefik.http.routers.onlyoffice.rule: Host(`onlyoffice.local`)
      traefik.http.routers.onlyoffice.entrypoints: web
    environment:
      ONLYOFFICE_HTTPS_HSTS_ENABLED: false #Advanced configuration option for turning off the HSTS configuration. Applicable only when SSL is in use. Defaults to true.
      # ONLYOFFICE_HTTPS_HSTS_MAXAGE: #Advanced configuration option for setting the HSTS max-age in the onlyoffice NGINX vHost configuration. Applicable only when SSL is in use. Defaults to 31536000.
      # SSL_CERTIFICATE_PATH: #The path to the SSL certificate to use. Defaults to /var/www/onlyoffice/Data/certs/tls.crt.
      # SSL_KEY_PATH: #The path to the SSL certificate private key. Defaults to /var/www/onlyoffice/Data/certs/tls.key.
      # SSL_DHPARAM_PATH: #The path to the Diffie-Hellman parameter. Defaults to /var/www/onlyoffice/Data/certs/dhparam.pem.
      # SSL_VERIFY_CLIENT: #Enable verification of client certificates using the CA_CERTIFICATES_PATH file. Defaults to false.
      # DB_TYPE: #The database type. Supported values are postgres, mariadb or mysql. Defaults to postgres.
      # DB_HOST: #The IP address or the name of the host where the database server is running.
      # DB_PORT: #The database server port number.
      # DB_NAME: #The name of a database to be created on the image startup.
      # DB_USER: #The new user name with superuser permissions for the database account.
      # DB_PWD: #The password set for the database account.
      # AMQP_URI: #The AMQP URI to connect to the message broker server.
      # AMQP_TYPE: #The message broker type. Supported values are rabbitmq or activemq. Defaults to rabbitmq.
      # REDIS_SERVER_HOST: #The IP address or the name of the host where the Redis server is running.
      # REDIS_SERVER_PORT: #The Redis server port number.
      # NGINX_WORKER_PROCESSES: #Defines the number of NGINX worker processes.
      # NGINX_WORKER_CONNECTIONS: #Sets the maximum number of simultaneous connections that can be opened by a NGINX worker process.
      # JWT_ENABLED: false #Specifies the enabling the JSON web token validation by ONLYOFFICE Docs. Defaults to true.
  #Defines the secret key to validate the JSON web token in the request to ONLYOFFICE Docs. Defaults to secret.
      JWT_SECRET: eyJhbGciOiJIUzUxMiJ9.eyJSb2xlIjoiQWRtaW4iLCJJc3N1ZXIiOiJJc3N1ZXIiLCJVc2VybmFtZSI6IkphdmFJblVzZSIsImV4cCI6MTY3NjE0MDIwMywiaWF0IjoxNjc2MTQwMjAzfQ.ZfZnZuYkIPGN0CaSRSiEVkOLWxQPvvZkVrHM9G6kNbQzqPP_leuUR3_eXRwCxgH7r9DS9cz-3xaQFEgPQQOaqw
  #Defines the HTTP header that will be used to send the JSON web token. Defaults to Authorization.
      JWT_HEADER: AuthorizationJwt
  #Specifies the enabling the token validation in the request body to the ONLYOFFICE Docs. Defaults to false.
      JWT_IN_BODY: true
      USE_UNAUTHORIZED_STORAGE: true #Set to true if using self-signed certificates for your storage server, e.g. Nextcloud. Defaults to false.
      # GENERATE_FONTS: #When true, regenerates fonts list and the fonts thumbnails etc. at each start. Defaults to true.
      # METRICS_ENABLED: #Specifies the enabling StatsD for ONLYOFFICE Docs. Defaults to false.
      # METRICS_HOST: #Defines StatsD listening host. Defaults to localhost.
      # METRICS_PORT: #Defines StatsD listening port. Defaults to 8125.
      # METRICS_PREFIX: #Defines StatsD metrics prefix for backend services. Defaults to ds..
      # LETS_ENCRYPT_DOMAIN: #Defines the domain for Let's Encrypt certificate.
      # LETS_ENCRYPT_MAIL: #Defines the domain administrator mail address for Let's Encrypt certificate.

    # Uncomment this string produce next error -> Error response from daemon: invalid IP address in add-host: "nextcloud"
    # extra_hosts:
    #   - nextcloud:nextcloud
    networks:
      nextcloud:
      media:
    # ports:
    #   - 8085:80

volumes:
  db:
    driver: local
    driver_opts:
      type: none
      o: bind
      device: $VOLUMES_PATH_PREFIX/nextcloud/volumes/db
  nextcloud:
    driver: local
    driver_opts:
      type: none
      o: bind
      device: $VOLUMES_PATH_PREFIX/nextcloud/volumes/nextcloud
networks:
  nextcloud:
    name: nextcloud
  media:
    external: true

If I disable JWT I have another error in the nextcloud:

Log from onlyoffice container:

[2023-02-11T20:33:13.581] [ERROR] [localhost] [conv_check_834847617_docx] [userId] nodeJS - error downloadFile:url=http://nextcloud.local/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.FasF9JGfxOAcfX89a0yTez9-yrX9LlhfvkB62ewgfrs;attempt=3;code:undefined;connect:undefined Error: Error response: statusCode:404; headers:{“server”:“nginx”,“date”:“Sat, 11 Feb 2023 20:33:13 GMT”,“content-type”:“text/html; charset=utf-8”,“transfer-encoding”:“chunked”,“connection”:“keep-alive”,“vary”:“Accept-Encoding”,“content-security-policy”:“default-src ‘none’”,“x-content-type-options”:“nosniff”,“content-encoding”:“gzip”};
at Request.fResponse (/snapshot/server/build/server/Common/sources/utils.js)
at Request.emit (events.js:400:28)
at Request.onRequestResponse (/snapshot/server/build/server/Common/node_modules/request/request.js:1059:10)
at ClientRequest.emit (events.js:400:28)
at HTTPParser.parserOnIncomingClient (_http_client.js:647:27)
at HTTPParser.parserOnHeadersComplete (_http_common.js:127:17)
at Socket.socketOnData (_http_client.js:515:22)
at Socket.emit (events.js:400:28)
at addChunk (internal/streams/readable.js:293:12)
at readableAddChunk (internal/streams/readable.js:267:9)
at Socket.Readable.push (internal/streams/readable.js:206:10)
at TCP.onStreamRead (internal/stream_base_commons.js:188:23)

if disable extra setting - another error:

Log from container:

==> /var/log/onlyoffice/documentserver/metrics/out.log <==
Flushing stats at Sat Feb 11 2023 20:35:52 GMT+0000 (Coordinated Universal Time)
{
counters: {
‘statsd.bad_lines_seen’: 0,
‘statsd.packets_received’: 0,
‘statsd.metrics_received’: 0
},
timers: {},
gauges: {},
timer_data: {},
counter_rates: {
‘statsd.bad_lines_seen’: 0,
‘statsd.packets_received’: 0,
‘statsd.metrics_received’: 0
},
sets: {},
pctThreshold: [ 90 ]

also connection to demo server not working. recived next error:
“При попытке соединения возникла ошибка (Возникла ошибка в службе документов: Error while downloading the document file to be converted.) (версия 7.3.0.184)”

Hello @deimjons

Please go to the connector app page in Nextcloud and make a screenshot with current settings and the error that pops up after hitting Save button to share with us.
After an attempt to connect to Document Server please share full log catalog of Document Server located in /var/log/onlyoffice/documentserver/ inside the container.
By the way, is JWT Token enabled right now?

Hello, Constantine.
Thank you for your answer.
It is with disabled JWT Token

It is with enabled JWT Token

This is screenshot of log catalog after both attempts ( with JWT and disabled JWT Token). Please pay attention that nginx.error.log is empty.

Hello @deimjons
I would like to be involved in this case too.

This is screenshot of log catalog after both attempts ( with JWT and disabled JWT Token).

Please provide us with whole logs folder (all folders and contents from your screenshot).

Hello Alexandre
Attaching copy from the bash. Folder structure and not empty files you can find below.
P.S. All err.log is empty, so there are only out.log files:

root@2787525b5cd7:/var/log/onlyoffice/documentserver# ls -la
total 20
drwxr-xr-x 5 ds   ds   4096 Feb 23 21:00 .
drwxr-xr-x 4 ds   ds   4096 Feb 23 20:59 ..
drwxr-xr-x 2 ds   ds   4096 Feb 23 21:09 converter
drwxr-xr-x 2 ds   ds   4096 Feb 23 21:08 docservice
drwxr-xr-x 2 ds   ds   4096 Feb 25 11:21 metrics
-rw-r--r-- 1 root root    0 Feb 23 21:00 nginx.error.log
root@2787525b5cd7:/var/log/onlyoffice/documentserver# cd converter/ ; ls -la
total 12
drwxr-xr-x 2 ds   ds   4096 Feb 23 21:09 .
drwxr-xr-x 5 ds   ds   4096 Feb 23 21:00 ..
-rw-r--r-- 1 root root    0 Feb 23 21:00 err.log
-rw-r--r-- 1 root root  586 Feb 23 21:00 out.log
root@2787525b5cd7:/var/log/onlyoffice/documentserver/converter# cat out.log 
[2023-02-23T21:00:06.299] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2023-02-23T21:00:06.308] [WARN] [localhost] [docId] [userId] nodeJS - worker 695 started.
[2023-02-23T21:00:06.311] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2023-02-23T21:00:38.676] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2023-02-23T21:00:38.684] [WARN] [localhost] [docId] [userId] nodeJS - worker 892 started.
[2023-02-23T21:00:38.685] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
root@2787525b5cd7:/var/log/onlyoffice/documentserver/converter# cd .. ; cd docservice/ ; ls -la
total 12
drwxr-xr-x 2 ds   ds   4096 Feb 23 21:08 .
drwxr-xr-x 5 ds   ds   4096 Feb 23 21:00 ..
-rw-r--r-- 1 root root    0 Feb 23 21:00 err.log
-rw-r--r-- 1 root root  998 Feb 23 21:00 out.log
root@2787525b5cd7:/var/log/onlyoffice/documentserver/docservice# cat out.log 
[2023-02-23T21:00:06.655] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting...
[2023-02-23T21:00:06.660] [WARN] [localhost] [docId] [userId] nodeJS - Failed to subscribe to plugin folder updates. When changing the list of plugins, you must restart the server. https://nodejs.org/docs/latest/api/fs.html#fs_availability
[2023-02-23T21:00:06.812] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 7.2.2. Build: 56
[2023-02-23T21:00:37.032] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting...
[2023-02-23T21:00:37.035] [WARN] [localhost] [docId] [userId] nodeJS - Failed to subscribe to plugin folder updates. When changing the list of plugins, you must restart the server. https://nodejs.org/docs/latest/api/fs.html#fs_availability
[2023-02-23T21:00:37.135] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 7.2.2. Build: 56
root@2787525b5cd7:/var/log/onlyoffice/documentserver/docservice# cd .. ; cd metrics/ ; ls -la
total 16
drwxr-xr-x 2 ds   ds   4096 Feb 25 11:21 .
drwxr-xr-x 5 ds   ds   4096 Feb 23 21:00 ..
-rw-r--r-- 1 root root    0 Feb 23 21:00 err.log
-rw-r--r-- 1 root root 6618 Feb 25 11:20 out.log
root@2787525b5cd7:/var/log/onlyoffice/documentserver/metrics# cat out.log 
23 Feb 21:00:05 - [657] reading config file: ./config/config.js
23 Feb 21:00:05 - server is up INFO
Flushing stats at  Thu Feb 23 2023 21:10:06 GMT+0000 (Coordinated Universal Time)
{
  counters: {
    'statsd.bad_lines_seen': 0,
    'statsd.packets_received': 0,
    'statsd.metrics_received': 0
  },
  timers: {},
  gauges: {},
  timer_data: {},
  counter_rates: {
    'statsd.bad_lines_seen': 0,
    'statsd.packets_received': 0,
    'statsd.metrics_received': 0
  },
  sets: {},
  pctThreshold: [ 90 ]
}
Flushing stats at  Thu Feb 23 2023 21:20:06 GMT+0000 (Coordinated Universal Time)
{
  counters: {
    'statsd.bad_lines_seen': 0,
    'statsd.packets_received': 0,
    'statsd.metrics_received': 0
  },
  timers: {},
  gauges: { 'statsd.timestamp_lag': 0 },
  timer_data: {},
  counter_rates: {
    'statsd.bad_lines_seen': 0,
    'statsd.packets_received': 0,
    'statsd.metrics_received': 0
  },
  sets: {},
  pctThreshold: [ 90 ]
}
Flushing stats at  Fri Feb 24 2023 03:59:49 GMT+0000 (Coordinated Universal Time)
{
  counters: {
    'statsd.bad_lines_seen': 0,
    'statsd.packets_received': 0,
    'statsd.metrics_received': 0
  },
  timers: {},
  gauges: { 'statsd.timestamp_lag': 23383 },
  timer_data: {},
  counter_rates: {
    'statsd.bad_lines_seen': 0,
    'statsd.packets_received': 0,
    'statsd.metrics_received': 0
  },
  sets: {},
  pctThreshold: [ 90 ]
}
Flushing stats at  Fri Feb 24 2023 07:08:54 GMT+0000 (Coordinated Universal Time)
{
  counters: {
    'statsd.bad_lines_seen': 0,
    'statsd.packets_received': 0,
    'statsd.metrics_received': 0
  },
  timers: {},
  gauges: { 'statsd.timestamp_lag': 10745 },
  timer_data: {},
  counter_rates: {
    'statsd.bad_lines_seen': 0,
    'statsd.packets_received': 0,
    'statsd.metrics_received': 0
  },
  sets: {},
  pctThreshold: [ 90 ]
}
Flushing stats at  Fri Feb 24 2023 07:20:06 GMT+0000 (Coordinated Universal Time)
{
  counters: {
    'statsd.bad_lines_seen': 0,
    'statsd.packets_received': 0,
    'statsd.metrics_received': 0
  },
  timers: {},
  gauges: { 'statsd.timestamp_lag': 72 },
  timer_data: {},
  counter_rates: {
    'statsd.bad_lines_seen': 0,
    'statsd.packets_received': 0,
    'statsd.metrics_received': 0
  },
  sets: {},
  pctThreshold: [ 90 ]
}
Flushing stats at  Fri Feb 24 2023 07:30:06 GMT+0000 (Coordinated Universal Time)
{
  counters: {
    'statsd.bad_lines_seen': 0,
    'statsd.packets_received': 0,
    'statsd.metrics_received': 0
  },
  timers: {},
  gauges: { 'statsd.timestamp_lag': 0 },
  timer_data: {},
  counter_rates: {
    'statsd.bad_lines_seen': 0,
    'statsd.packets_received': 0,
    'statsd.metrics_received': 0
  },
  sets: {},
  pctThreshold: [ 90 ]
}
Flushing stats at  Fri Feb 24 2023 07:40:06 GMT+0000 (Coordinated Universal Time)
{
  counters: {
    'statsd.bad_lines_seen': 0,
    'statsd.packets_received': 0,
    'statsd.metrics_received': 0
  },
  timers: {},
  gauges: { 'statsd.timestamp_lag': 0 },
  timer_data: {},
  counter_rates: {
    'statsd.bad_lines_seen': 0,
    'statsd.packets_received': 0,
    'statsd.metrics_received': 0
  },
  sets: {},
  pctThreshold: [ 90 ]
}
Flushing stats at  Fri Feb 24 2023 07:50:06 GMT+0000 (Coordinated Universal Time)
{
  counters: {
    'statsd.bad_lines_seen': 0,
    'statsd.packets_received': 0,
    'statsd.metrics_received': 0
  },
  timers: {},
  gauges: { 'statsd.timestamp_lag': 0 },
  timer_data: {},
  counter_rates: {
    'statsd.bad_lines_seen': 0,
    'statsd.packets_received': 0,
    'statsd.metrics_received': 0
  },
  sets: {},
  pctThreshold: [ 90 ]
}
Flushing stats at  Fri Feb 24 2023 08:00:06 GMT+0000 (Coordinated Universal Time)
{
  counters: {
    'statsd.bad_lines_seen': 0,
    'statsd.packets_received': 0,
    'statsd.metrics_received': 0
  },
  timers: {},
  gauges: { 'statsd.timestamp_lag': 0 },
  timer_data: {},
  counter_rates: {
    'statsd.bad_lines_seen': 0,
    'statsd.packets_received': 0,
    'statsd.metrics_received': 0
  },
  sets: {},
  pctThreshold: [ 90 ]
}
Flushing stats at  Fri Feb 24 2023 08:10:06 GMT+0000 (Coordinated Universal Time)
{
  counters: {
    'statsd.bad_lines_seen': 0,
    'statsd.packets_received': 0,
    'statsd.metrics_received': 0
  },
  timers: {},
  gauges: { 'statsd.timestamp_lag': 0 },
  timer_data: {},
  counter_rates: {
    'statsd.bad_lines_seen': 0,
    'statsd.packets_received': 0,
    'statsd.metrics_received': 0
  },
  sets: {},
  pctThreshold: [ 90 ]
}
Flushing stats at  Fri Feb 24 2023 08:20:06 GMT+0000 (Coordinated Universal Time)
{
  counters: {
    'statsd.bad_lines_seen': 0,
    'statsd.packets_received': 0,
    'statsd.metrics_received': 0
  },
  timers: {},
  gauges: { 'statsd.timestamp_lag': 0 },
  timer_data: {},
  counter_rates: {
    'statsd.bad_lines_seen': 0,
    'statsd.packets_received': 0,
    'statsd.metrics_received': 0
  },
  sets: {},
  pctThreshold: [ 90 ]
}
Flushing stats at  Fri Feb 24 2023 08:30:06 GMT+0000 (Coordinated Universal Time)
{
  counters: {
    'statsd.bad_lines_seen': 0,
    'statsd.packets_received': 0,
    'statsd.metrics_received': 0
  },
  timers: {},
  gauges: { 'statsd.timestamp_lag': 0 },
  timer_data: {},
  counter_rates: {
    'statsd.bad_lines_seen': 0,
    'statsd.packets_received': 0,
    'statsd.metrics_received': 0
  },
  sets: {},
  pctThreshold: [ 90 ]
}
Flushing stats at  Fri Feb 24 2023 18:25:21 GMT+0000 (Coordinated Universal Time)
{
  counters: {
    'statsd.bad_lines_seen': 0,
    'statsd.packets_received': 0,
    'statsd.metrics_received': 0
  },
  timers: {},
  gauges: { 'statsd.timestamp_lag': 35115 },
  timer_data: {},
  counter_rates: {
    'statsd.bad_lines_seen': 0,
    'statsd.packets_received': 0,
    'statsd.metrics_received': 0
  },
  sets: {},
  pctThreshold: [ 90 ]
}
Flushing stats at  Sat Feb 25 2023 11:14:04 GMT+0000 (Coordinated Universal Time)
{
  counters: {
    'statsd.bad_lines_seen': 0,
    'statsd.packets_received': 0,
    'statsd.metrics_received': 0
  },
  timers: {},
  gauges: { 'statsd.timestamp_lag': 59923 },
  timer_data: {},
  counter_rates: {
    'statsd.bad_lines_seen': 0,
    'statsd.packets_received': 0,
    'statsd.metrics_received': 0
  },
  sets: {},
  pctThreshold: [ 90 ]
}
Flushing stats at  Sat Feb 25 2023 11:20:06 GMT+0000 (Coordinated Universal Time)
{
  counters: {
    'statsd.bad_lines_seen': 0,
    'statsd.packets_received': 0,
    'statsd.metrics_received': 0
  },
  timers: {},
  gauges: { 'statsd.timestamp_lag': -238 },
  timer_data: {},
  counter_rates: {
    'statsd.bad_lines_seen': 0,
    'statsd.packets_received': 0,
    'statsd.metrics_received': 0
  },
  sets: {},
  pctThreshold: [ 90 ]
}

Also attaching docker container log

MacBook-Pro Docker % docker ps -a --filter "name=onlyoffice"
CONTAINER ID   IMAGE                       COMMAND                  CREATED         STATUS         PORTS             NAMES
4a5ff7632828   onlyoffice/documentserver   "/app/ds/run-documen…"   6 minutes ago   Up 6 minutes   80/tcp, 443/tcp   onlyoffice
MacBook-Pro Docker % docker logs 4a5ff7632828
 * Starting PostgreSQL 14 database server
   ...done.
 * Starting message broker rabbitmq-server
   ...done.
psql:/var/www/onlyoffice/documentserver/server/schema/postgresql/removetbl.sql:4: NOTICE:  table "doc_callbacks" does not exist, skipping
psql:/var/www/onlyoffice/documentserver/server/schema/postgresql/removetbl.sql:9: NOTICE:  function merge_db(pg_catalog.varchar,int2,int8,pg_catalog.timestamp,pg_catalog.varchar,int8,int8) does not exist, skipping
psql:/var/www/onlyoffice/documentserver/server/schema/postgresql/removetbl.sql:10: NOTICE:  function merge_db(pg_catalog.varchar,int2,int4,pg_catalog.timestamp,pg_catalog.varchar,int4,int4) does not exist, skipping
psql:/var/www/onlyoffice/documentserver/server/schema/postgresql/removetbl.sql:11: NOTICE:  function merge_db(pg_catalog.varchar,int2,int4,pg_catalog.timestamp,int4,int4,text,text) does not exist, skipping
 * Reloading nginx configuration nginx
   ...done.
Starting supervisor: supervisord.
cron: unrecognized service
 * Starting nginx nginx
   ...done.
Generating AllFonts.js, please wait...Done
Generating presentation themes, please wait...Done
Generating js caches, please wait...Done
ds:docservice: stopped
ds:docservice: started
ds:converter: stopped
ds:converter: started
 * Reloading nginx configuration nginx
   ...done.

==> /var/log/onlyoffice/documentserver/converter/err.log <==

==> /var/log/onlyoffice/documentserver/converter/out.log <==
[2023-02-23T20:24:28.971] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2023-02-23T20:24:28.979] [WARN] [localhost] [docId] [userId] nodeJS - worker 715 started.
[2023-02-23T20:24:28.982] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2023-02-23T20:25:01.755] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2023-02-23T20:25:01.763] [WARN] [localhost] [docId] [userId] nodeJS - worker 912 started.
[2023-02-23T20:25:01.764] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers

==> /var/log/onlyoffice/documentserver/docservice/err.log <==

==> /var/log/onlyoffice/documentserver/docservice/out.log <==
[2023-02-23T20:24:29.255] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting...
[2023-02-23T20:24:29.259] [WARN] [localhost] [docId] [userId] nodeJS - Failed to subscribe to plugin folder updates. When changing the list of plugins, you must restart the server. https://nodejs.org/docs/latest/api/fs.html#fs_availability
[2023-02-23T20:24:29.425] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 7.2.2. Build: 56
[2023-02-23T20:25:00.031] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting...
[2023-02-23T20:25:00.034] [WARN] [localhost] [docId] [userId] nodeJS - Failed to subscribe to plugin folder updates. When changing the list of plugins, you must restart the server. https://nodejs.org/docs/latest/api/fs.html#fs_availability
[2023-02-23T20:25:00.179] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 7.2.2. Build: 56

==> /var/log/onlyoffice/documentserver/metrics/err.log <==

==> /var/log/onlyoffice/documentserver/metrics/out.log <==
23 Feb 20:24:28 - [676] reading config file: ./config/config.js
23 Feb 20:24:28 - server is up INFO

==> /var/log/onlyoffice/documentserver/nginx.error.log <==