Download failed,(error downloadFile:url=http://localhost:80/filehandler.ashx,statusCode:403)


I keep getting the error download failed when opening a newly created document.
I looked at the log file /var/log/onlyoffice/documentserver/converter/, and the problem that kept coming up was:
nodeJS - error downloadFile:url=http://localhost:80/filehandler.ashx? action=stream&fileid=13&stream_auth=456975222837.CGY1KKVM3MBYMR8CTR0O8BLKOMVR4XL5CEVQAO6LAN0; attempt=3; code:null; connect:null Error: Error response: statusCode:403; Headers: {" server “:” openresty / 1.25.3.1 ", “date” : “Tue, 25 Jun 2024 01:33:46 GMT”,“transfer-encoding”:“chunked”,“connection”:“keep-alive”}.
/var/log/onlyoffice/docspace/files.log.I found an error in this file information, 2024-06-25 10:05:04, 231 ERROR [81] ASC. Web. Files. FileHandlerService - Download stream header http://localhost/filehandler.ashx? Action = stream&fileid = 13 & stream_auth = 456977100824.39 U4PGR8UOLH7ZTFAQ2REV46A3J8WJ7ECRZHXCD4W System. Exception: Invalid signature header AuthorizationJwt with value .Trace headers: Connection=close
Host=localhost
The user-agent = Node. Js / 6.13
Accept-Encoding=gzip, deflate
X-ray Real - IP = 127.0.0.1
X-Forwarded-Ssl=off
X-Forwarded-Host=localhost:80
X-Original-Proto=http
X - the Original - For = 127.0.0.1:48772.
A friend said I looked at the community need to modify the file/etc/onlyoffice documentserver/default. json
“request-filtering-agent” : {
“allowPrivateIPAddress”: true,
“allowMetaIPAddress”: true
},
But it doesn’t work for me,Please help me solve this problem, thank you very much.

Hey @xiaolu :wave:

  1. Docker/Linux?
  2. Have you modified any configuration files for the Document Server besides the “allowPrivateIPAddress” and “allowMetaIPAddress” settings? (default. json/local.json)
  3. How is your network configured?
  4. What is specified in your Settings > Integration > Document server?
  1. Did you restart the Document Server after applying the settings?

1.I use Linux
2.I also changed the attribute of the local.json services.token.browser to false.
This is my configuration
default.docx (21.6 KB)
local.docx (13.1 KB)
3.I used Ubuntu22.04 network setup bridge mode,
My access on my current Linux system also shows 403


4.This is my configuration

5.I use the command: systemctl restart ds-* to restart

@Nikolas I have explained my problem, can you tell me how to solve it?

Sure, thank you very much for providing the requested information. Now, let’s see what the issue might be.

@xiaolu

  1. Update the value in the local.json file to:
"browser": true

1.1 Execute the following command to apply the settings:

systemctl restart ds-*
  1. Try opening the document in your browser and include a screenshot from Chrome’s DevTools Console and Network tab.

  2. Please provide logs from the directories:

/var/log/onlyoffice/documentserver/docservice/out.log
/var/log/onlyoffice/documentserver/converter/out.log

@Nikolas thank you! I set the attribute “browser”: true, and the system can be accessed normally.

1 Like