Do you want to: Ask a how-to question
For feature suggestions, describe the result you would like to achieve in detail.
Document Server version: latest
Type of installation of the Document Server (docker, deb/rpm, exe)
OS: docker
I tried to use Onlyoffice docker version without jwt enabled and all was perfect, but now i tried to use jwt and faced the problem: Error while downloading the document file to be converted.) (version 7.0.0.132), here my compose file:
version: '2'
services:
nginx:
image : nginx:stable
container_name: nginx_onlyoffice
restart: always
volumes:
- ./nginx/vhost.conf:/etc/nginx/conf.d/default.conf:ro
- ./mycerts:/mycerts
ports:
- 443:443
- 80:80
depends_on:
- onlyoffice
onlyoffice:
image: onlyoffice/documentserver
container_name: onlyoffice
restart: always
environment:
- JWT_ENABLED=true
- JWT_SECRET=mysecret
- JWT_HEADER=jwtauth
nginx configuration:
server {
listen 80;
location / {
return 301
https://$host$request_uri;
}
}
server {
listen 443 ssl;
server_name servername;
root /var/www/html;
ssl_certificate /mycerts/server.chained.crt;
ssl_certificate_key /mycerts/server.key;
ssl_trusted_certificate /mycerts/server.ca-bundle;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://onlyoffice:80;
}
Logs:
[02/Feb/2022:17:27:01.021] [2022-02-02T14:27:01.019] [ERROR] nodeJS - error downloadFile:url=https://nextcloud.server.com/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.ZypBazyr9N3U0eo5b4_iuGT38rTNYCmlOq_jxOu7pWI;attempt=3;code:null;connect:null;(id=conv_check_1094164787_docx)#015
[02/Feb/2022:17:27:01.021] Error: Error response: statusCode:403; headers:{"server":"nginx/1.21.3","date":"Wed, 02 Feb 2022 13:59:01 GMT","content-type":"application/json; charset=utf-8","content-length":"99","connection":"keep-alive","expires":"Thu, 19 Nov 1981 08:52:00 GMT","pragma":"no-cache","set-cookie":["oc_sessionPassphrase=M1lE%2BrSZdv6zd6lSzgN2gjphoestHjC5iubV4BWriOkAl2JTmecO56aSFbcHsdE21jo2sB%2FlbU8yv3iNNi1EDVdJG%2Fy255WrCPUH4FNpBo23vNFX3yM1gICZG%2BwcBxtn; path=/; secure; HttpOnly; SameSite=Lax","ocoqj6f0cfmv=c7caee8acc8375a5edad616f55f9745c; 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","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","strict-transport-security":"max-age=15768000; includeSubDomains; preload;","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"};
[02/Feb/2022:17:27:01.022] at Request.fResponse (/snapshot/server/build/server/Common/sources/utils.js)
[02/Feb/2022:17:27:01.022] at Request.emit (events.js:400:28)
[02/Feb/2022:17:27:01.022] at Request.onRequestResponse (/snapshot/server/build/server/Common/node_modules/request/request.js:1059:10)
[02/Feb/2022:17:27:01.022] at ClientRequest.emit (events.js:400:28)
[02/Feb/2022:17:27:01.022] at HTTPParser.parserOnIncomingClient (_http_client.js:647:27)
[02/Feb/2022:17:27:01.023] at HTTPParser.parserOnHeadersComplete (_http_common.js:126:17)
[02/Feb/2022:17:27:01.023] at TLSSocket.socketOnData (_http_client.js:515:22)
[02/Feb/2022:17:27:01.023] at TLSSocket.emit (events.js:400:28)
[02/Feb/2022:17:27:01.023] at addChunk (internal/streams/readable.js:290:12)
[02/Feb/2022:17:27:01.023] at readableAddChunk (internal/streams/readable.js:265:9)
[02/Feb/2022:17:27:01.023] at TLSSocket.Readable.push (internal/streams/readable.js:204:10)
[02/Feb/2022:17:27:01.023] at TLSWrap.onStreamRead (internal/stream_base_commons.js:188:23)
Nextcloud config.php settings:
'allow_local_remote_servers' =>true,
'onlyoffice' =>
array (
'jwt_secret' => 'mysecret',
'jwt_header' => 'jwtauth',
'verify_peer_off' => true,
),
Stucked. Pls, help.