Nextcloud errors after update

After updating nextcloud to the latest version i have two issues.

  1. onlyoffice doesnt work and i get to a message to contact admin…lol…thats me…but i dont know where to start… and below the issue with php.

In reference to the php version warning:

About integrity check, list the invalid files (sometimes there are just extra files that extension’s developers forgot to remove or to add as part of its integrity-check definitions, but always better to review them).

About onlyoffice certainly some more details (…errors/warnings or logs) will be needed. Usually @mrmarkuz assistance is of great help.
Maybe you’re facing the same problem as this recent case?

2 Likes

Hi@koolandrew,

You can ignore the warnings you see. They are “normal”.
Regarding Onlyoffice, the error log of the NC would be interesting.

Regards

Uwe

1 Like

Thanks Uwe, i didnt know that about the php errors.

[onlyoffice] Error: Exception: Error occurred in the document service: Error while downloading the document file to be converted. at <>

  1. /usr/share/nextcloud/apps/onlyoffice/lib/DocumentService.php line 95
    OCA\Onlyoffice\DocumentService->ProcessConvServResponceError()
  2. /usr/share/nextcloud/apps/onlyoffice/lib/Preview.php line 269
    OCA\Onlyoffice\DocumentService->GetConvertedUri()
  3. /usr/share/nextcloud/lib/private/Preview/ProviderV1Adapter.php line 53
    OCA\Onlyoffice\Preview->getThumbnail()
  4. /usr/share/nextcloud/lib/private/Preview/GeneratorHelper.php line 64
    OC\Preview\ProviderV1Adapter->getThumbnail()
  5. /usr/share/nextcloud/lib/private/Preview/Generator.php line 397
    OC\Preview\GeneratorHelper->getThumbnail()
  6. /usr/share/nextcloud/lib/private/Preview/Generator.php line 373
    OC\Preview\Generator->generateProviderPreview()
  7. /usr/share/nextcloud/lib/private/Preview/Generator.php line 166
    OC\Preview\Generator->getMaxPreview()
  8. /usr/share/nextcloud/lib/private/Preview/Generator.php line 116
    OC\Preview\Generator->generatePreviews()
  9. /usr/share/nextcloud/lib/private/PreviewManager.php line 192
    OC\Preview\Generator->getPreview()
  10. /usr/share/nextcloud/core/Controller/PreviewController.php line 144
    OC\PreviewManager->getPreview()
  11. /usr/share/nextcloud/core/Controller/PreviewController.php line 113
    OC\Core\Controller\PreviewController->fetchPreview()
  12. /usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 230
    OC\Core\Controller\PreviewController->getPreviewByFileId()
  13. /usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 137
    OC\AppFramework\Http\Dispatcher->executeController()
  14. /usr/share/nextcloud/lib/private/AppFramework/App.php line 183
    OC\AppFramework\Http\Dispatcher->dispatch()
  15. /usr/share/nextcloud/lib/private/Route/Router.php line 315
    OC\AppFramework\App::main()
  16. /usr/share/nextcloud/lib/base.php line 1071
    OC\Route\Router->match()
  17. /usr/share/nextcloud/index.php line 36
    OC::handleRequest()

GET /index.php/core/preview?fileId=5691&c=c7cdab2769c85a7c8058a6a97725f422&x=375&y=375&forceIcon=0&a=1

There are other errors, but not sure if they are contributing.

[no app in context] Error: OC\ServerNotAvailableException: Legacy cipher is no longer supported! at <>

  1. /usr/share/nextcloud/apps/encryption/lib/Crypto/Encryption.php line 247
    OCA\Encryption\Crypto\Crypt->getLegacyCipher()
  2. /usr/share/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php line 595
    OCA\Encryption\Crypto\Encryption->begin()
  3. /usr/share/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php line 517
    OC\Files\Storage\Wrapper\Encryption->fixUnencryptedSize(“*** sensitive parameters replaced ***”)
  4. /usr/share/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php line 175
    OC\Files\Storage\Wrapper\Encryption->verifyUnencryptedSize(“*** sensitive parameters replaced ***”)
  5. /usr/share/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php line 419
    OC\Files\Storage\Wrapper\Encryption->filesize()
  6. /usr/share/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 298
    OC\Files\Storage\Wrapper\Encryption->fopen()
  7. /usr/share/nextcloud/apps/files_accesscontrol/lib/StorageWrapper.php line 236
    OC\Files\Storage\Wrapper\Wrapper->fopen()
  8. /usr/share/nextcloud/apps/terms_of_service/lib/Filesystem/StorageWrapper.php line 82
    OCA\FilesAccessControl\StorageWrapper->fopen()
  9. /usr/share/nextcloud/lib/private/Files/View.php line 1141
    OCA\TermsOfService\Filesystem\StorageWrapper->fopen()
  10. /usr/share/nextcloud/lib/private/Files/View.php line 969
    OC\Files\View->basicOperation()
  11. /usr/share/nextcloud/lib/private/Files/Node/File.php line 116
    OC\Files\View->fopen()
  12. /usr/share/nextcloud/apps/onlyoffice/lib/Controller/CallbackController.php line 305
    OC\Files\Node\File->fopen()
  13. /usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 230
    OCA\Onlyoffice\Controller\CallbackController->download()
  14. /usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 137
    OC\AppFramework\Http\Dispatcher->executeController()
  15. /usr/share/nextcloud/lib/private/AppFramework/App.php line 183
    OC\AppFramework\Http\Dispatcher->dispatch()
  16. /usr/share/nextcloud/lib/private/Route/Router.php line 315
    OC\AppFramework\App::main()
  17. /usr/share/nextcloud/lib/base.php line 1071
    OC\Route\Router->match()
  18. /usr/share/nextcloud/index.php line 36
    OC::handleRequest()

GET /index.php/apps/onlyoffice/download?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJkb3dubG9hZCIsImZpbGVJZCI6NTY5MSwidXNlcklkIjoiYWRtaW4ifQ.Yd9po_n8SxcnaJS-Ao1z5vke98mj3eCUOk0BuZ6x-AI

There are lots more errors but i didnt want to overwhelm you.

thanks

Which version of Onlyoffice Documentserver do you have installed? If I remember correctly, version 7.3.3 is the last one tested by @mrmarkuz.

1 Like

It turns out, we are using 7.1.1.23…i will update!! Thanks

1 Like

HI, i have now updated and when i click on save on the web configuration in nextcloud i get GET https://cloud.kooltel.com:8082/healthcheck` resulted in a 502 Bad Gateway response.
It is 502 Bad Gateway
nginx

I dont know how to fix this…

[onlyoffice] Error: GuzzleHttp\Exception\ServerException: Server error: GET https://cloud.kooltel.com:8082/healthcheck resulted in a 502 Bad Gateway response:

502 Bad Gateway

502 Bad Gateway


ngin (truncated...) at <>
  1. /usr/share/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php line 69
    GuzzleHttp\Exception\RequestException::create(“*** sensitive parameters replaced ***”)
  2. /usr/share/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 204
    GuzzleHttp\Middleware::GuzzleHttp{closure}(“*** sensitive parameters replaced ***”)
  3. /usr/share/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 153
    GuzzleHttp\Promise\Promise::callHandler()
  4. /usr/share/nextcloud/3rdparty/guzzlehttp/promises/src/TaskQueue.php line 48
    GuzzleHttp\Promise\Promise::GuzzleHttp\Promise{closure}(“*** sensitive parameters replaced ***”)
  5. /usr/share/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 248
    GuzzleHttp\Promise\TaskQueue->run()
  6. /usr/share/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 224
    GuzzleHttp\Promise\Promise->invokeWaitFn()
  7. /usr/share/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 269
    GuzzleHttp\Promise\Promise->waitIfPending()
  8. /usr/share/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 226
    GuzzleHttp\Promise\Promise->invokeWaitList()
  9. /usr/share/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 62
    GuzzleHttp\Promise\Promise->waitIfPending()
  10. /usr/share/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php line 187
    GuzzleHttp\Promise\Promise->wait()
  11. /usr/share/nextcloud/lib/private/Http/Client/Client.php line 226
    GuzzleHttp\Client->request()
  12. /usr/share/nextcloud/apps/onlyoffice/lib/DocumentService.php line 374
    OC\Http\Client\Client->get()
  13. /usr/share/nextcloud/apps/onlyoffice/lib/DocumentService.php line 259
    OCA\Onlyoffice\DocumentService->Request()
  14. /usr/share/nextcloud/apps/onlyoffice/lib/DocumentService.php line 406
    OCA\Onlyoffice\DocumentService->HealthcheckRequest()
  15. /usr/share/nextcloud/apps/onlyoffice/lib/Controller/SettingsController.php line 181
    OCA\Onlyoffice\DocumentService->checkDocServiceUrl()
  16. /usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 230
    OCA\Onlyoffice\Controller\SettingsController->SaveAddress()
  17. /usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 137
    OC\AppFramework\Http\Dispatcher->executeController()
  18. /usr/share/nextcloud/lib/private/AppFramework/App.php line 183
    OC\AppFramework\Http\Dispatcher->dispatch()
  19. /usr/share/nextcloud/lib/private/Route/Router.php line 315
    OC\AppFramework\App::main()
  20. /usr/share/nextcloud/lib/base.php line 1071
    OC\Route\Router->match()
  21. /usr/share/nextcloud/index.php line 36
    OC::handleRequest()

PUT /index.php/apps/onlyoffice/ajax/settings/address

Did you update to version 7.3.3 and then run a signal-event nethserver-onlyoffice-update?

Before you bother yourself for a long time with further failed attempts, a reinstallation might be the better way.

supervisorctl stop ds:
su - postgres -c “psql -c ‘drop database onlyoffice;’”
su - postgres -c “psql -c ‘drop role onlyoffice;’”
yum -y remove onlyoffice-documentserver nethserver-onlyoffice
rm -rf /etc/onlyoffice
rm -rf /etc/yum.repos.d/onlyoffice*
rm -rf /var/lib/nethserver/secrets/onlyoffice*
rm -rf /var/lib/onlyoffice
config delete fw_onlyoffice

And afterwards: onlyoffice [NethServer Wiki]

1 Like

HI, i did as you suggested and i was hopeful…some of the commands didnt work but i was certainly able to uninstall both only office instances.

However, i got exactly the same error when i tried to connect…see *******************************************below

[root@server3 ~]# supervisorctl stop ds:
unix:///var/run/supervisor/supervisor.sock no such file
[root@server3 ~]# supervisorctl stop ds:
unix:///var/run/supervisor/supervisor.sock no such file
[root@server3 ~]# su - postgres -c “psql -c ‘drop database onlyoffice;’”
database: ‘drop: command not found
-bash: ’”: command not found
[root@server3 ~]# su - postgres -c “psql -c ‘drop role onlyoffice;’”
role: ‘drop: command not found
-bash: ’”: command not found
[root@server3 ~]# yum -y remove onlyoffice-documentserver nethserver-onlyoffice
Loaded plugins: changelog, fastestmirror, nethserver_events
Resolving Dependencies
→ Running transaction check
—> Package nethserver-onlyoffice.noarch 0:0.0.3-1.ns7 will be erased
—> Package onlyoffice-documentserver.x86_64 0:7.3.3-49.el7 will be erased
→ Finished Dependency Resolution

Dependencies Resolved

Package Arch Version Repository Size

Removing:
nethserver-onlyoffice noarch 0.0.3-1.ns7 @/nethserver-onlyoffice-0.0.3-1.ns7.noarch 13 k
onlyoffice-documentserver x86_64 7.3.3-49.el7 @/onlyoffice-documentserver.x86_64 1.2 G

Transaction Summary

Remove 2 Packages

Installed size: 1.2 G
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : nethserver-onlyoffice-0.0.3-1.ns7.noarch 1/2
Preparing for shutdown, it can take a lot of time, please wait…Done
Erasing : onlyoffice-documentserver-7.3.3-49.el7.x86_64 2/2
warning: /etc/onlyoffice/documentserver/default.json saved as /etc/onlyoffice/documentserver/default.json.rpmsave
Verifying : onlyoffice-documentserver-7.3.3-49.el7.x86_64 1/2
Verifying : nethserver-onlyoffice-0.0.3-1.ns7.noarch


[onlyoffice] Error: GuzzleHttp\Exception\ServerException: Server error: GET https://server3.kooltel.com:8082/healthcheck resulted in a 502 Bad Gateway response:

502 Bad Gateway

502 Bad Gateway


ngin (truncated...) at <>
  1. /usr/share/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php line 69
    GuzzleHttp\Exception\RequestException::create(“*** sensitive parameters replaced ***”)
  2. /usr/share/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 204
    GuzzleHttp\Middleware::GuzzleHttp{closure}(“*** sensitive parameters replaced ***”)
  3. /usr/share/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 153
    GuzzleHttp\Promise\Promise::callHandler()
  4. /usr/share/nextcloud/3rdparty/guzzlehttp/promises/src/TaskQueue.php line 48
    GuzzleHttp\Promise\Promise::GuzzleHttp\Promise{closure}(“*** sensitive parameters replaced ***”)
  5. /usr/share/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 248
    GuzzleHttp\Promise\TaskQueue->run()
  6. /usr/share/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 224
    GuzzleHttp\Promise\Promise->invokeWaitFn()
  7. /usr/share/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 269
    GuzzleHttp\Promise\Promise->waitIfPending()
  8. /usr/share/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 226
    GuzzleHttp\Promise\Promise->invokeWaitList()
  9. /usr/share/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php line 62
    GuzzleHttp\Promise\Promise->waitIfPending()
  10. /usr/share/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php line 187
    GuzzleHttp\Promise\Promise->wait()
  11. /usr/share/nextcloud/lib/private/Http/Client/Client.php line 226
    GuzzleHttp\Client->request()
  12. /usr/share/nextcloud/apps/onlyoffice/lib/DocumentService.php line 374
    OC\Http\Client\Client->get()
  13. /usr/share/nextcloud/apps/onlyoffice/lib/DocumentService.php line 259
    OCA\Onlyoffice\DocumentService->Request()
  14. /usr/share/nextcloud/apps/onlyoffice/lib/DocumentService.php line 406
    OCA\Onlyoffice\DocumentService->HealthcheckRequest()
  15. /usr/share/nextcloud/apps/onlyoffice/lib/Controller/SettingsController.php line 181
    OCA\Onlyoffice\DocumentService->checkDocServiceUrl()
  16. /usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 230
    OCA\Onlyoffice\Controller\SettingsController->SaveAddress()
  17. /usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 137
    OC\AppFramework\Http\Dispatcher->executeController()
  18. /usr/share/nextcloud/lib/private/AppFramework/App.php line 183
    OC\AppFramework\Http\Dispatcher->dispatch()
  19. /usr/share/nextcloud/lib/private/Route/Router.php line 315
    OC\AppFramework\App::main()
  20. /usr/share/nextcloud/lib/base.php line 1071
    OC\Route\Router->match()
  21. /usr/share/nextcloud/index.php line 36
    OC::handleRequest()

PUT /index.php/apps/onlyoffice/ajax/settings/address

i didnt do it but i just did it now after reinstalling and no difference in the outcome.

Sorry @koolandrew, but at this point I have to give up. I would have liked to read that you have success, but obviously my knowledge is no longer sufficient. Maybe your NC installation is faulty. Then a new installation of the NC would be perhaps still a way. But to clarify this exactly, please ask @mrmarkuz.

Regards…

Uwe

Well thanks for the suggestion…i am a bit stumped…

I was at that time, too, when I was faced with a similar problem. Onlyoffice just didn’t want to work anymore. I then decided to do a complete reinstallation of my NC. After that it worked again with the installation of Onlyoffice. But as already said. Write to @mrmarkuz. He knows surely still the one or other way to the goal.

1 Like

I will try and send a message to him. Thanks for your input as this forum is very helpful as has Mr.Markuz been in the past…

One quick question, i am thinking of getting rid of it and going to NS8…they already mentioned that they arent going to support past nc27 so i dont see much point with ns7 anyways?

However, please keep in mind that NS8 is still in beta stage and is not intended for production use. As far as I know there are no plans to implement another version of NC in NS7. Personally, I don’t think that’s so good, but I also depend on what the developers “treat” us to.

Sorry for the late answer and thanks for pointing out the issue.
I was able to reproduce it on a test VM.
It’s working on some of my Nethservers but doesn’t on the test VM.
As soon as I found the error I’m going to release a fixed module.

EDIT:

@koolandrew After restarting the test VM it worked so maybe some service wasn’t correctly restarted. If not already tried, please reboot once to restart all services.
Now /healthcheck should be reachable and give back true.

2 Likes