onlyoffice-owncloud: Error when trying to connect (Bad Request or timeout error)
I followed instructions from http://helpcenter.onlyoffice.com/server/linux/document/linux-installation.aspx and then I followed the instruction to activate the ssl encription and now the documentserver is listening correctly on thee 443 port with ssl encryption
Now I want to integrate nextcloud with onlyoffice. I’ve successfully installed in other machine nextcloud with ssl support I installed and activated the ONLYOFFICE app, into NEXTCLOUD, but when go to configure the app inserting https://<ipaddress-of-onlyoffice-documentserver>/ I have an error that appear to the upper part of the browser
Error when trying to connect (Bad Request or timeout error)
and the integration doesn’t work.
Any idea?
DocumentServer version: 5.1.0-115 Operating System: Both UBUNTU SERVER 16.04 LTS
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 30 (9 by maintainers)
Hello @jaschrock, this error means that the Document Server cannot download the file for editing. It seems that your NC is not accessible for the Document Server.
Check if JWT is disabled in /etc/onlyoffice/documentserver/default.json in container with Document Server, if you do not use it in NC.
Try also to change the value of the following string in default.json from true to false:
"rejectUnauthorized": trueHello @stone212,
Please try to check the accessibility of the Document Server from the machine with Nextcloud and vice versa. Use wget command:
wget https://document_server_addressand from the machine with Document Server:wget https://nextcloud_addressIs there a solution for this? My configuration:
Ubuntu 16.04 on NextCloud Server Ubuntu 16.04 on OnlyOffice server Each server has a letsencrypt cert for its domain and OnlyOffice installed with docker image Docker 17.05 OnlyOffice URL shows green check mark and “Document Server is running” NextCloud integration fails like this:
I enable OnlyOffice. Then I navigate to Admin --> ONLYOFFICE and I type the https://onlyoffice.myserver.com/ address and I hit “Save” and I get the error at the top of the page:
I’m sorry, I’m not sure to understand what really is Letsencrypt CA certificate or where I find it ?? Is it a public file or is it something I generate somewhere in my server.
In my OO server, I search in /etc/letsencrypt/live/onlyoffice.xxxxx.fr and I have 4 files
cert.pem chain.pem fullchain.pem privkey.pemShould I put one my NC server ?Hello @quelo1972,
Try to check the accessibility using wget command without no-check-certificate parameter. Most likely that servers will be inaccessible.
Please try to do the following:
Open /nextcloud/config/config.php and add a section: