An error has occurred while opening the file

Any issues about docs (uploading, editing and etc.)
Post Reply
Maximreriys
Posts: 3
Joined: Sat Feb 20, 2021 3:17 pm

An error has occurred while opening the file

Post by Maximreriys » Sat Feb 20, 2021 3:30 pm

Hello I am a noob and cannot solve this problem myself.

NextCloud is installed on TrueNas as a plugin and works correctly. OnlyOfficeServer runs in an UbuntuDesktop virtual machine (the server is installed via Ubuntu onboard storage) in TrueNas.

OnlyOffice is not working correctly. All new documents, except Excel, open with an error. The Excel document itself works fine, but when saving a new version, a save error crashes.
https://ibb.co/mqQKtpT https://ibb.co/9g5Y3pL

New docx and pptx documents are not saved or launched. The .docx document located during the NextCloud installation works fine by default, editable and saved.
https://ibb.co/M94Gdbx https://ibb.co/yyxLKrL

Also, when establishing a connection to the server (after clicking the SAVE button), 2 such errors fly out, but when you click "Settings have been successfully updated" again.
https://ibb.co/9bDvGXY https://ibb.co/8xNKYmF

Please help to find out the cause and eliminate it. I have no idea where to look for the error and how to fix it.
Sorry for google translate.
https://ibb.co/5RXmwkR https://ibb.co/0BLcGdT

Carl
Posts: 570
Joined: Thu Apr 12, 2018 10:00 am

Re: An error has occurred while opening the file

Post by Carl » Sat Feb 20, 2021 4:18 pm

Hello Maxim,

Please send me Document Server logs /var/log/onlyoffice/documentserver/

Maximreriys
Posts: 3
Joined: Sat Feb 20, 2021 3:17 pm

Re: An error has occurred while opening the file

Post by Maximreriys » Sat Feb 20, 2021 5:44 pm

Carl wrote:
Sat Feb 20, 2021 4:18 pm
Hello Maxim,

Please send me Document Server logs /var/log/onlyoffice/documentserver/
Hello, Carl.

I'm not sure if I'm looking at the logs correctly. But, obviously, there is a mistake here. I've already tried to fix nginx, but apparently I was doing something wrong.

https://ibb.co/QQDV9Mr

Maximreriys
Posts: 3
Joined: Sat Feb 20, 2021 3:17 pm

Re: An error has occurred while opening the file

Post by Maximreriys » Wed Feb 24, 2021 10:51 am

Carl wrote:
Sat Feb 20, 2021 4:18 pm
Hello Maxim,

Please send me Document Server logs /var/log/onlyoffice/documentserver/
And, I found such errors in NextCloud when connecting to my OnlyOffice virtual server. As I understand it, the whole problem is in nginx. But attempts to reinstall do not lead to anything. I may be doing something wrong.
Error onlyoffice GuzzleHttp\Exception\ClientException: Client error: `GET http://192.168.1.64/cache/files/conv_ch ... 78616.docx` resulted in a `404 Not Found` response: <html> <head><title>404 Not Found</title></head> <body> <center><h1>404 Not Found</h1></center> <hr><center>nginx</c (truncated...)
/usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php - line 65:

GuzzleHttp\Exception\RequestException::create()

/usr/local/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 203:

GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensiti ... *")

/usr/local/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 156:

GuzzleHttp\Promise\Promise::callHandler()

/usr/local/www/nextcloud/3rdparty/guzzlehttp/promises/src/TaskQueue.php - line 47:

GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}("*** sensiti ... *")

/usr/local/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 246:

GuzzleHttp\Promise\TaskQueue->run()

/usr/local/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 223:

GuzzleHttp\Promise\Promise->invokeWaitFn()

/usr/local/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 267:

GuzzleHttp\Promise\Promise->waitIfPending()

/usr/local/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 225:

GuzzleHttp\Promise\Promise->invokeWaitList()

/usr/local/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php - line 62:

GuzzleHttp\Promise\Promise->waitIfPending()

/usr/local/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php - line 183:

GuzzleHttp\Promise\Promise->wait()

/usr/local/www/nextcloud/lib/private/Http/Client/Client.php - line 233:

GuzzleHttp\Client->request()

/usr/local/www/nextcloud/apps/onlyoffice/lib/documentservice.php - line 364:

OC\Http\Client\Client->get()

/usr/local/www/nextcloud/apps/onlyoffice/lib/documentservice.php - line 444:

OCA\Onlyoffice\DocumentService->Request()

/usr/local/www/nextcloud/apps/onlyoffice/controller/settingscontroller.php - line 168:

OCA\Onlyoffice\DocumentService->checkDocServiceUrl()

/usr/local/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 169:

OCA\Onlyoffice\Controller\SettingsController->SaveAddress()

/usr/local/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 100:

OC\AppFramework\Http\Dispatcher->executeController()

/usr/local/www/nextcloud/lib/private/AppFramework/App.php - line 152:

OC\AppFramework\Http\Dispatcher->dispatch()

/usr/local/www/nextcloud/lib/private/Route/Router.php - line 309:

OC\AppFramework\App::main()

/usr/local/www/nextcloud/lib/base.php - line 1008:

OC\Route\Router->match()

/usr/local/www/nextcloud/index.php - line 37:

OC::handleRequest()

Carl
Posts: 570
Joined: Thu Apr 12, 2018 10:00 am

Re: An error has occurred while opening the file

Post by Carl » Thu Feb 25, 2021 2:52 pm

Hello Maxim,

Please send me the archive of the whole directory /var/log/onlyoffice/documentserver/

The most important logs to check in this scenario are converter and docservice logs, I need to analyze them.

Post Reply