Nextcloud error invalid token from Onlyoffice

Hello, I install Onlyoffice Document Server with Docker like that:

docker run -i -t -d -p 443:443 --name DocumentServer \
 --restart=always \
 -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data \
 -e JWT_ENABLED=true \
 -e JWT_SECRET=my_secret_token \
 -e JWT_HEADER=AuthorizationJwt \
 onlyoffice/documentserver

I set my secret and put that secret in Nextcloud Onlyoffice settings but it shows me error:

Exception: Wystąpił błąd w usłudze dokumentów: Invalid token

0. /var/www/nextcloud/apps/onlyoffice/lib/documentservice.php - line 302:OCA\Onlyoffice\DocumentService->ProcessCommandServResponceError(6)
1. /var/www/nextcloud/apps/onlyoffice/lib/documentservice.php - line 408:OCA\Onlyoffice\DocumentService->CommandRequest("version")
2. /var/www/nextcloud/apps/onlyoffice/controller/settingscontroller.php - line 170:OCA\Onlyoffice\DocumentService->checkDocServiceUrl(OC\URLGenerator {}, OCA\Onlyoffice\Crypt {})
3. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 218:OCA\Onlyoffice\Controller\SettingsController->SaveAddress("https://aru ... /", "https://aru ... /", "https://aru ... /", false, "my_secret_token", false)
4. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 127:OC\AppFramework\Http\Dispatcher->executeController(OCA\Onlyoffi ... {}, "saveAddress")
5. /var/www/nextcloud/lib/private/AppFramework/App.php - line 157:OC\AppFramework\Http\Dispatcher->dispatch(OCA\Onlyoffi ... {}, "saveAddress")
6. /var/www/nextcloud/lib/private/Route/Router.php - line 302:OC\AppFramework\App::main("SettingsController", "saveAddress", OC\AppFramew ... {}, { _route: "o ... "})
7. /var/www/nextcloud/lib/base.php - line 993:OC\Route\Router->match("/apps/onlyo ... s")
8. /var/www/nextcloud/index.php - line 37:OC::handleRequest()

I have SSL enabled. I see it’s working and I can enter to welcome page.
Can somebody please help me?

Regards.

1 Like