Error when trying to connect (cURL error 7: Failed to connect to 127.0.0.1 port 8888: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html))

hey.

i did set up onlyoffice docker, the website says "
Thank you for choosing ONLYOFFICE!
Document Server is running"

its a completly different URL, not like “document.mycloud.com”. When i go to settings, then i type my url, it says: Error when trying to connect (Host violates local access rules)

It uses HTTPS with nginx proxy lets encrypt. both are using it. What do i have to do ?

i added
‘allow_local_remote_servers’ => true,

now i get
Error when trying to connect (cURL error 7: Failed to connect to 127.0.0.1 port 8888: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html))

the docker runs -p 127.0.0.1:8888:80 my conf.d/docserver.conf is reverse proxying 127.0.0.1:8888 with TLS 1.3, my nextcloud uses tls 1.2 if that might be important…

1 Like

My installation worked fine with ONLYOFFICE until I hit the save button again in the ONLYOFFICE settings in the admin settings.

now I get the same error. and cannot use documents any more.

Any solution to this?

I posted an issue here:

Workaround:

delete the setting ‘settings_error’ with:

docker exec next-your-nextcloudorg_db_1 mysql nextcloud -p$MYSQL_ROOT_PASSWORD -e "delete from oc_appconfig where appid='onlyoffice' AND configkey='settings_error'"

setting_error in document server onlyoffice or nextcloud

@Adnan_Hasim: For my workaround you have to delete the setting ‘settings_error’ in the nextcloud-database docker container

I’m getting the same error with Nextcloud 20.0.7, OnlyOffice Nextcloud app 6.3.0 and OnlyOffice Document server 6.2 running in docker with a Nginx reverse proxy in front of it.

Also the workaround isn’t working for me when I want to create or edit a file I get an unknown error alert (see attached screenshot).