ONLYOFFICE / DocumentServer

ONLYOFFICE Docs is a free collaborative online office suite comprising viewers and editors for texts, spreadsheets and presentations, forms and PDF, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
https://www.onlyoffice.com
GNU Affero General Public License v3.0
4.76k stars 1.08k forks source link

An error has occured while opening the file sometime on document server with nodejs file storage #1413

Closed sandeepjangir closed 3 years ago

sandeepjangir commented 3 years ago

Do you want to request a feature or report a bug?: Bug

DocumentServer version:: 6.4.0

Operating System:: Ubuntu

We have document server install on ubuntu and we are running nodejs service as document storage service. But at sometime when we try to load the file stored nodejs storage service we getting an error "An error has occured while opening the file".

we have integrated doceditor api on the client side for viewing the file.

PS> File are working sometimes and sometime not.

we have have provided you the document storage service default.json configuration file and the logs.

Sandeep Jangir

onlyoffice-logs.zip

ShockwaveNN commented 3 years ago

Hi

DocumentServer version:: 3

I don't think this is correct version. Please specify version in more details

"An error has occured while opening the file"

This usually mean that DocumentServer cannot access file which it try to open. This maybe network/firewall error or something else

I don't see any specific error in your logs, do you enabled extended logs? I don't think this is requred in your case, error like your's should be visible in default log level

And please attach all log file, not only one of them. Log file located at /var/log/onlyoffice

sandeepjangir commented 3 years ago

@ShockwaveNN

I have updated the version the correct one is 6.4.0 and I am attaching the logs here.

backup-log.zip

ShockwaveNN commented 3 years ago
  1. I don't see any partiucalr errors, because seems you enabled debug level logs and there is a lot messages

I think it's better to disable and leave default option WARN specified in /etc/onlyoffice/documentserver/log4js/production.json file or any other place you've edit them And replace your problems and send more clear logs

  1. Could you see for error in Chrome Debug Tools in console section then "An error has occured while opening the file". happens
sandeepjangir commented 3 years ago

I have done the necessary changes on the server and seen that there is no error logs on the server and couple of errors are in dev console which's screenshot I am attaching here.

MicrosoftTeams-image

ShockwaveNN commented 3 years ago

I can see similar errors in my installation by the are not red, but just a warnings

Screenshot_20210906_181411

This is strange

running nodejs service as document storage service

Do you mean you've implemented your own nodejs storage server or used our default one?

sandeepjangir commented 3 years ago

Yes I have used my own nodejs storage server.

ShockwaveNN commented 3 years ago

I think problem in your server, you should compare our own default server with your code

Without ability to simulate your error on my hardware I don't think I've any idea that happened

sandeepjangir commented 3 years ago

I have found the issue, I was sending same key in config to only office so sometime files were working and sometimes not.

ShockwaveNN commented 3 years ago

@sandeepjangir Yes, this seems like the reason of strange behavior

In that case I'll close this issue