Do you want to: Suggest a feature / Report a bug / Ask a how-to question
For feature suggestions, describe the result you would like to achieve in detail:
For bug reports, provide the steps to reproduce and if possible a minimal demo of the problem:
Hi. When I try to save OO Doc Server address and JWT secret in connector section in NC, I get an error
An error occurred while trying to connect (cURL error 7: Failed to connect to onlyoffice.rsumonolit.online port 443 after 6 ms: Connection refused
Document Server version: Community Server
Connector version: 7.3.4
DMS (platform) version: Nextcloud 24.0.1
OS: Ubuntu Server 20.04
Browser version: Brave
Attach logs if possible.
`[onlyoffice] Ошибка: GuzzleHttp\Exception\ConnectException: cURL error 7: Failed to connect to onlyoffice.rsumonolit.online port 443 after 6 ms: Connection refused (see libcurl - Error Codes) for https://onlyoffice.rsumonolit.online/healthcheck at <>
- /config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php line 158
GuzzleHttp\Handler\CurlFactory::createRejection()
- /config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php line 110
GuzzleHttp\Handler\CurlFactory::finishError()
- /config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlHandler.php line 47
GuzzleHttp\Handler\CurlFactory::finish()
- /config/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php line 113
GuzzleHttp\Handler\CurlHandler->__invoke()
- /config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php line 35
OC\Http\Client\DnsPinMiddleware->OC\Http\Client{closure}("*** sensitive parameters replaced ***")
- /config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php line 31
GuzzleHttp\PrepareBodyMiddleware->__invoke()
- /config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php line 71
GuzzleHttp\Middleware::GuzzleHttp{closure}("*** sensitive parameters replaced ***")
- /config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php line 63
GuzzleHttp\RedirectMiddleware->__invoke()
- /config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php line 75
GuzzleHttp\Middleware::GuzzleHttp{closure}("*** sensitive parameters replaced ***")
- /config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php line 331
GuzzleHttp\HandlerStack->__invoke()
- /config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php line 168
GuzzleHttp\Client->transfer()
- /config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php line 187
GuzzleHttp\Client->requestAsync()
- /config/www/nextcloud/lib/private/Http/Client/Client.php line 218
GuzzleHttp\Client->request()
- /config/www/nextcloud/apps/onlyoffice/lib/documentservice.php line 374
OC\Http\Client\Client->get()
- /config/www/nextcloud/apps/onlyoffice/lib/documentservice.php line 259
OCA\Onlyoffice\DocumentService->Request()
- /config/www/nextcloud/apps/onlyoffice/lib/documentservice.php line 406
OCA\Onlyoffice\DocumentService->HealthcheckRequest()
- /config/www/nextcloud/apps/onlyoffice/controller/settingscontroller.php line 172
OCA\Onlyoffice\DocumentService->checkDocServiceUrl()
- /config/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 225
OCA\Onlyoffice\Controller\SettingsController->SaveAddress()
- /config/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 133
OC\AppFramework\Http\Dispatcher->executeController()
- /config/www/nextcloud/lib/private/AppFramework/App.php line 172
OC\AppFramework\Http\Dispatcher->dispatch()
- /config/www/nextcloud/lib/private/Route/Router.php line 298
OC\AppFramework\App::main()
- /config/www/nextcloud/lib/base.php line 1023
OC\Route\Router->match()
- /config/www/nextcloud/index.php line 36
OC::handleRequest()
PUT /apps/onlyoffice/ajax/settings/address
from 192.168.90.254 by admin at 2022-05-31T15:49:13+00:00`
Hello @bigAboo
Please reproduce the issue > make screenshot of the error > provide us with whole Document server logs folder. It’s located here: /app/onlyoffice/DocumentServer/logs/documentserver/
Also please point us to the guide which you used for Document server installation.
Hello ) Thank you for your response.
Here is my Docker-compose part for onlyoffice Doc Server
onlyoffice:
container_name: onlyoffice
depends_on:
- mariadb
- onlyoffice-rabbitmq
environment:
- DB_TYPE=mysql
- DB_HOST=mariadb
- DB_PORT=3306
- DB_NAME=onlyoffice
- DB_USER=onlyoffice
- DB_PWD=$ONLY_OFFICE_MYSQL
- AMQP_URI=amqp://guest:guest@onlyoffice-rabbitmq
- JWT_ENABLED=true
- JWT_SECRET=$JWT_SECRET
- JWT_HEADER=Authorization
- JWT_IN_BODY=true
image: onlyoffice/documentserver:latest
networks:
- t2_proxy
stdin_open: true
tty: true
restart: always
labels:
- "traefik.enable=true"
- "traefik.docker.network=t2_proxy"
## HTTP Routers
- "traefik.http.routers.onlyoffice-rtr.entrypoints=https"
- "traefik.http.routers.onlyoffice-rtr.rule=Host(`onlyoffice.$DOMAINNAME`)"
- "traefik.http.routers.onlyoffice-rtr.tls=true"
- "traefik.http.routers.onlyoffice-rtr.middlewares=onlyoffice-headers"
- "traefik.http.middlewares.onlyoffice-headers.headers.customrequestheaders.X-Forwarded-Proto=https"
- "traefik.http.middlewares.onlyoffice-headers.headers.accesscontrolalloworiginlist=*"
## HTTP Services
- "traefik.http.routers.onlyoffice-rtr.service=onlyoffice-svc"
- "traefik.http.services.onlyoffice-svc.loadbalancer.server.port=80"
volumes:
- $DOCKERDIR/onlyoffice/document_data:/var/www/onlyoffice/Data
- $DOCKERDIR/onlyoffice/document_log:/var/log/onlyoffice
onlyoffice-rabbitmq:
container_name: onlyoffice-rabbitmq
image: rabbitmq
networks:
- t2_proxy
restart: always
expose:
- '5672'
As you can see DC logs are in $DOCKERDIR/onlyoffice/document_log
There i saw /documentserver folder, where err.log file is empty, out.log contains:
[2022-05-28T19:10:54.807] [WARN] nodeJS - Express server starting...
[2022-05-28T19:10:54.863] [WARN] nodeJS - Failed to subscribe to plugin folder updates. When changing the list of plugins, you must restart the server. https://nodejs.org/docs/latest/api/fs.html#fs_availability
[2022-05-28T19:10:55.985] [WARN] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 7.1.0. Build: 215
[2022-05-28T19:25:46.280] [WARN] nodeJS - Express server starting...
[2022-05-28T19:25:46.355] [WARN] nodeJS - Failed to subscribe to plugin folder updates. When changing the list of plugins, you must restart the server. https://nodejs.org/docs/latest/api/fs.html#fs_availability
[2022-05-28T19:25:48.239] [WARN] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 7.1.0. Build: 215
[2022-05-28T22:26:26.015] [WARN] nodeJS - Express server starting...
[2022-05-28T22:26:26.197] [WARN] nodeJS - Failed to subscribe to plugin folder updates. When changing the list of plugins, you must restart the server. https://nodejs.org/docs/latest/api/fs.html#fs_availability
[2022-05-28T22:26:27.956] [WARN] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 7.1.0. Build: 215
[2022-05-28T22:39:13.898] [WARN] nodeJS - Express server starting...
[2022-05-28T22:39:13.955] [WARN] nodeJS - Failed to subscribe to plugin folder updates. When changing the list of plugins, you must restart the server. https://nodejs.org/docs/latest/api/fs.html#fs_availability
[2022-05-28T22:39:15.253] [WARN] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 7.1.0. Build: 215
[2022-05-28T22:39:15.253] [WARN] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 7.1.0. Build: 215
These are old entries. If it’s possible please provide us with whole logs folder.
A few more things. Please check mutual availability between servers. For example, go to Nextcloud host and run wget https://DS_domain name. And vice versa - from DS host run wget https://Nextcloud_domain name.
Please show us the result.
Also please let us know if Document server is installed on separate server.
sa@rsusrv:~$ docker exec -it nextcloud sudo --user abc php7 /config/www/nextcloud/occ onlyoffice:documentserver --check
Error connection: cURL error 7: Failed to connect to onlyoffice.rsumonolit.online port 443 after 128 ms: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://onlyoffice.rsumonolit.online/healthcheck
sa@rsusrv:~$ docker exec -it nextcloud bash
root@5be7450b2c5c:/# wget http://onlyoffice.rsumonolit.online
Connecting to onlyoffice.rsumonolit.online (83.217.206.55:80)
wget: can't connect to remote host (83.217.206.55): Connection refused
root@5be7450b2c5c:/# wget https://onlyoffice.rsumonolit.online
Connecting to onlyoffice.rsumonolit.online (83.217.206.55:443)
wget: can't connect to remote host (83.217.206.55): Connection refused
root@5be7450b2c5c:/#
exit
sa@rsusrv:~$ docker exec -it onlyoffice bash
root@c3308532f22f:/# wget https://nextcloud.rsumonolite.online
--2022-06-05 15:50:03-- https://nextcloud.rsumonolite.online/
Resolving nextcloud.rsumonolite.online (nextcloud.rsumonolite.online)... failed: Name or service not known.
wget: unable to resolve host address ‘nextcloud.rsumonolite.online’
LOG FOLDER
Thank for reply, close the issue, it was a container connection problem.
We are glad that the issue is solved.