Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error connection: Error occurred in the document service: Error while downloading the document file to be converted. #3169

Open
rafelamer opened this issue Mar 27, 2025 · 2 comments

Comments

@rafelamer
Copy link

Hi,
I have installed nextcloud 30.0.8 and onlyoffice document server 8.3.2 on two different hosts running rocky linux 9. When I run

sudo -u apache php occ onlyoffice:documentserver --check

in the nexcloud server, I get the error

Error connection: Error occurred in the document service: Error while downloading the document file to be converted

In the nexcloud.log file, I get the error

{"reqId":"Z-UiIZHK7C4OpYZvhkhIPgAAAAA","level":3,"time":"2025-03-27T10:02:09+00:00","remoteAddr":"x.x.x.x","user":"--","app":"onlyoffice","method":"GET","url":"/index.php/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.JDod6IOVBX_qLUeLPDLLb3MLItr_I2wsR51c1J8_SXA","message":"Download empty without jwt","userAgent":"Node.js/6.13","version":"30.0.8.1","data":{"app":"onlyoffice"}}
{"reqId":"Z-UiIsu_WSDI4il3Si88mAAAAM4","level":3,"time":"2025-03-27T10:02:10+00:00","remoteAddr":"x.x.x.x","user":"--","app":"onlyoffice","method":"GET","url":"/index.php/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.JDod6IOVBX_qLUeLPDLLb3MLItr_I2wsR51c1J8_SXA","message":"Download empty without jwt","userAgent":"Node.js/6.13","version":"30.0.8.1","data":{"app":"onlyoffice"}}
{"reqId":"Z-UiI5HK7C4OpYZvhkhIPwAAABM","level":3,"time":"2025-03-27T10:02:11+00:00","remoteAddr":"x.x.x.x","user":"--","app":"onlyoffice","method":"GET","url":"/index.php/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.JDod6IOVBX_qLUeLPDLLb3MLItr_I2wsR51c1J8_SXA","message":"Download empty without jwt","userAgent":"Node.js/6.13","version":"30.0.8.1","data":{"app":"onlyoffice"}}
{"reqId":"Y11CHqhccNx1Zbcw0X5b","level":3,"time":"2025-03-27T10:02:13+00:00","remoteAddr":"","user":"--","app":"onlyoffice","method":"","url":"--","message":"getConvertedUri on check error","userAgent":"--","version":"30.0.8.1","exception":{"Exception":"Exception","Message":"Error occurred in the document service: Error while downloading the document file to be converted.","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/onlyoffice/lib/DocumentService.php","line":103,"function":"processConvServResponceError","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":33,"args":["/var/www/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/onlyoffice/lib/DocumentService.php","Line":246,"message":"getConvertedUri on check error","exception":{},"CustomMessage":"getConvertedUri on check error"}}

Does anybody know can I solve this problem.

Best regards,
Rafel Amer

@rafelamer
Copy link
Author

At the same time, I get an error in the onlyoffice document server in the file

/var/log/onlyoffice/documentserver/converter/out.log
[2025-03-27T11:48:49.039] [ERROR] [localhost] [check_1302108391] [userId] nodeJS - error downloadFile:url=https://cloud.rafelamer.com/index.php/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.JDod6IOVBX_qLUeLPDLLb3MLItr_I2wsR51c1J8_SXA;attempt=2;code:null;connect:null Error: Error response: statusCode:403; headers:{"date":"Thu, 27 Mar 2025 10:48:48 GMT","server":"Apache/2.4.62 (Rocky Linux) OpenSSL/3.2.2","x-powered-by":"PHP/8.3.19","x-request-id":"Z-UtEJHK7C4OpYZvhkhJGgAAAAg","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":"noindex, nofollow","set-cookie":["oc_sessionPassphrase=M5NLFjzIEnKODhtseIlU8J4mi0jklMAtdf6LiYGJ3pnbHZX5hb9l6vAVMpXDWk8JirWdkCaDTH1sUi4pGRYfwetLZBWBKqc%2Bi9P1NOa2XesZeOMtzPxc9xw3EJrHkUdP; 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","oczm4qqyqs03=tq9512tihqlk90ncnt8dm7hocb; path=/; secure; HttpOnly; SameSite=Lax"],"strict-transport-security":"max-age=63072000; includeSubdomains;","x-frame-options":"SAMEORIGIN","referrer-policy":"no-referrer","x-content-type-options":"nosniff","x-permitted-cross-domain-policies":"none","x-xss-protection":"1; mode=block","content-length":"27","keep-alive":"timeout=5, max=100","connection":"Keep-Alive","content-type":"application/json; charset=utf-8"};
    at Request.fResponse (/snapshot/server/Common/sources/utils.js)
    at Request.emit (node:events:527:28)
    at Request.onRequestResponse (/snapshot/server/Common/node_modules/request/request.js:1066:10)
    at ClientRequest.emit (node:events:527:28)
    at HTTPParser.parserOnIncomingClient (node:_http_client:631:27)
    at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
    at TLSSocket.socketOnData (node:_http_client:494:22)
    at TLSSocket.emit (node:events:527:28)
    at addChunk (node:internal/streams/readable:315:12)
    at readableAddChunk (node:internal/streams/readable:289:9)
    at TLSSocket.Readable.push (node:internal/streams/readable:228:10)
    at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23)
[2025-03-27T11:48:50.103] [ERROR] [localhost] [check_1302108391] [userId] nodeJS - error downloadFile:url=https://cloud.rafelamer.com/index.php/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.JDod6IOVBX_qLUeLPDLLb3MLItr_I2wsR51c1J8_SXA;attempt=3;code:null;connect:null Error: Error response: statusCode:403; headers:{"date":"Thu, 27 Mar 2025 10:48:50 GMT","server":"Apache/2.4.62 (Rocky Linux) OpenSSL/3.2.2","x-powered-by":"PHP/8.3.19","x-request-id":"Z-UtEpHK7C4OpYZvhkhJGwAAAAQ","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":"noindex, nofollow","set-cookie":["oc_sessionPassphrase=sYz1g0Lu1bMGghUh7MD4BfQhdtEEo0DD46QqeXfCkh7SainSK6rt2zau0T53aPzztjPr2LnP3iUgy3TaW2uWZpCB%2FxAreyZJRhSMf3E6ovbYyK9ZoaWGfJwqcMlvgP7o; 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","oczm4qqyqs03=el6f3d0ejiakepvcopd8gerriv; path=/; secure; HttpOnly; SameSite=Lax"],"strict-transport-security":"max-age=63072000; includeSubdomains;","x-frame-options":"SAMEORIGIN","referrer-policy":"no-referrer","x-content-type-options":"nosniff","x-permitted-cross-domain-policies":"none","x-xss-protection":"1; mode=block","content-length":"27","keep-alive":"timeout=5, max=100","connection":"Keep-Alive","content-type":"application/json; charset=utf-8"};
    at Request.fResponse (/snapshot/server/Common/sources/utils.js)
    at Request.emit (node:events:527:28)
    at Request.onRequestResponse (/snapshot/server/Common/node_modules/request/request.js:1066:10)
    at ClientRequest.emit (node:events:527:28)
    at HTTPParser.parserOnIncomingClient (node:_http_client:631:27)
    at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
    at TLSSocket.socketOnData (node:_http_client:494:22)
    at TLSSocket.emit (node:events:527:28)
    at addChunk (node:internal/streams/readable:315:12)
    at readableAddChunk (node:internal/streams/readable:289:9)
    at TLSSocket.Readable.push (node:internal/streams/readable:228:10)
    at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23)

Best regards,

Rafel Amer

@mdonadel83
Copy link

Same problem for me:
[2025-03-27T20:48:23.960] [ERROR] [localhost] [151.XX.XX.XXnew.docx1743108229864] [uid-1] nodeJS - error downloadFile:url=https://xxxx.xxxx.it/example/download?fileName=new.docx&useraddress=151.XX.XX.XX;attempt=3;code:null;connect:null Error: Error response: statusCode:404; headers:{“server”:“nginx”,“date”:“Thu, 27 Mar 2025 20:48:23 GMT”,“content-type”:“text/html”,“transfer-encoding”:“chunked”,“connection”:“keep-alive”,“content-encoding”:“gzip”};
at Request.fResponse (/snapshot/server/Common/sources/utils.js)
at Request.emit (node:events:527:28)
at Request.onRequestResponse (/snapshot/server/Common/node_modules/request/request.js:1066:10)
at ClientRequest.emit (node:events:527:28)
at HTTPParser.parserOnIncomingClient (node:_http_client:631:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
at TLSSocket.socketOnData (node:_http_client:494:22)
at TLSSocket.emit (node:events:527:28)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at TLSSocket.Readable.push (node:internal/streams/readable:228:10)
at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23)

docker with https letscrypt autogenerate certificate in automatic from docker...
configuration about the docker is:
version: '3'
services:
onlyoffice:
image: onlyoffice/documentserver:latest
container_name: onlyoffice
restart: always
ports:
- "80:80"
- "443:443"
environment:
- JWT_ENABLED=true
- JWT_SECRET=xxx
- LETS_ENCRYPT_DOMAIN=xxxxx.xxxxx.it
- LETS_ENCRYPT_MAIL=xxxxx@xxxxx.com
- USE_UNAUTHORIZED_STORAGE=true
- JWT_HEADER=AuthorizationJwt
volumes:
- ./data:/var/www/onlyoffice/Data
- ./logs:/var/log/onlyoffice

and the local.json:
{
"services": {
"CoAuthoring": {
"sql": {
"type": "postgres",
"dbHost": "localhost",
"dbPort": "5432",
"dbName": "onlyoffice",
"dbUser": "onlyoffice",
"dbPass": "onlyoffice"
},
"token": {
"enable": {
"request": {
"inbox": true,
"outbox": true
},
"browser": true
},
"inbox": {
"header": "AuthorizationJwt",
"inBody": false
},
"outbox": {
"header": "AuthorizationJwt",
"inBody": false
}
},
"secret": {
"inbox": {
"string": "xxxxxx"
},
"outbox": {
"string": "xxxxx"
},
"session": {
"string": "xxxxxx"
}
}
}
},
"rabbitmq": {
"url": "amqp://guest:guest@localhost"
},
.....

and default.log i have put rejectUnauthorized--> false.

                    "requestDefaults": {
                            "headers": {
                                    "User-Agent": "Node.js/6.13",
                                    "Connection": "Keep-Alive"
                            },
                            "gzip": true,
                            "rejectUnauthorized": false
                    },
                    "autoAssembly": {
                            "enable": false,
                            "interval": "5m",
                            "step": "1m"
                    },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants