[GH-ISSUE #73] What is the secret of connecting a community server to a document server? #37

Closed
opened 2026-02-26 09:35:26 +03:00 by kerem · 8 comments
Owner

Originally created by @bertalanimre on GitHub (Sep 14, 2017).
Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/73

Hey Folks,

I'm ripping my hair our slowly from my head, please help me a little.

  • I've installed on server "A" owncloud. Works, done, everything is fine.
  • I've installed on server "B" DocumentServer according to this README for this repository. (with SSL)

No matter what I do, I can't connect them to eachother. The error message in owncloud I receive always is: Error when trying to connect (Bad request or timeout error)

Why? No firewall, ping OK, NginX OK, what else?

Originally created by @bertalanimre on GitHub (Sep 14, 2017). Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/73 Hey Folks, I'm ripping my hair our slowly from my head, please help me a little. - I've installed on server "A" owncloud. Works, done, everything is fine. - I've installed on server "B" DocumentServer according to this README for this repository. (with SSL) No matter what I do, I can't connect them to eachother. The error message in owncloud I receive always is: `Error when trying to connect (Bad request or timeout error)` Why? No firewall, ping OK, NginX OK, what else?
kerem closed this issue 2026-02-26 09:35:26 +03:00
Author
Owner

@trofim24 commented on GitHub (Sep 14, 2017):

@LinneyS, @ShockwaveNN

<!-- gh-comment-id:329517905 --> @trofim24 commented on GitHub (Sep 14, 2017): @LinneyS, @ShockwaveNN
Author
Owner

@LinneyS commented on GitHub (Sep 15, 2017):

What message when saving settings? What's in the logs ownCloud?

<!-- gh-comment-id:329704056 --> @LinneyS commented on GitHub (Sep 15, 2017): What message when saving settings? What's in the logs ownCloud?
Author
Owner

@bertalanimre commented on GitHub (Sep 15, 2017):

The error message is as above: Error when trying to connect (Bad request or timeout error)

Unfortunately I can't tell you now the ownClouds error message because the VPS provider is down. :( I'll post it as soon as I can ready up with it.

In the meanwhile: Can I install them on one server with 2 different domain names? Like: cloud.mycompany.com and docs.mycompany.com ?

<!-- gh-comment-id:329704726 --> @bertalanimre commented on GitHub (Sep 15, 2017): The error message is as above: Error when trying to connect (Bad request or timeout error) Unfortunately I can't tell you now the ownClouds error message because the VPS provider is down. :( I'll post it as soon as I can ready up with it. In the meanwhile: Can I install them on one server with 2 different domain names? Like: cloud.mycompany.com and docs.mycompany.com ?
Author
Owner

@LinneyS commented on GitHub (Sep 15, 2017):

Maybe you are interested in https://github.com/ONLYOFFICE/docker-onlyoffice-owncloud?
It is not necessary for a Document Server to have a domain.

You must specify the address of the DocumentServer that will be accessible from the client. ownCloud and DocumentServer make requests among themselves. If public addresses (domains) are not available, then you need to specify internal addresses: ownCloud to DS and DS to ownCloud
https://api.onlyoffice.com/editors/owncloud#settings

<!-- gh-comment-id:329706907 --> @LinneyS commented on GitHub (Sep 15, 2017): Maybe you are interested in https://github.com/ONLYOFFICE/docker-onlyoffice-owncloud? It is not necessary for a Document Server to have a domain. You must specify the address of the DocumentServer that will be accessible from the client. ownCloud and DocumentServer make requests among themselves. If public addresses (domains) are not available, then you need to specify internal addresses: ownCloud to DS and DS to ownCloud https://api.onlyoffice.com/editors/owncloud#settings
Author
Owner

@bertalanimre commented on GitHub (Sep 15, 2017):

Lol, I didn't know about docker-onlyoffice-owncloud. Trying it now in VM. However even if it works the best and most preferred method would be to install everything without using docker. Even document server. But I always get lost in the installation manuals for CentOS 7. Somewhy I always have to tweak the installation to my server, donno why. It is a standard CentOS 7.1 minimal installation.

<!-- gh-comment-id:329729603 --> @bertalanimre commented on GitHub (Sep 15, 2017): Lol, I didn't know about docker-onlyoffice-owncloud. Trying it now in VM. However even if it works the best and most preferred method would be to install everything without using docker. Even document server. But I always get lost in the installation manuals for CentOS 7. Somewhy I always have to tweak the installation to my server, donno why. It is a standard CentOS 7.1 minimal installation.
Author
Owner

@alexanderonlyoffice commented on GitHub (Sep 15, 2017):

Hello @bertalanimre,

No firewall, ping OK, NginX OK, what else?

Try to use wget command instead of ping command to check the accessibility of the Document Server.

If you have any questions regarding installation/use of VM version, contact us at support@onlyoffice.com

<!-- gh-comment-id:329753461 --> @alexanderonlyoffice commented on GitHub (Sep 15, 2017): Hello @bertalanimre, > No firewall, ping OK, NginX OK, what else? Try to use **_wget_** command instead of **_ping_** command to check the accessibility of the Document Server. If you have any questions regarding installation/use of VM version, contact us at support@onlyoffice.com
Author
Owner

@ionics commented on GitHub (Mar 11, 2018):

Info:
I had the same error message.
I did install onlyoffice via docker on ubuntu 16.04 server.
I configured HTTPS for onlyoffice and it worked just fine.
If you do use a self signed CERT on the onlyoffice-Server than add
this section:
'onlyoffice' =>
array (
'verify_peer_off' => true,
),
);

to your nextcloud config file via vim, vi, nano or whatever you prefer.
vim /var/www/nextcloud/config/config.php

I did integrate nextcloud from the onlyoffice Admin Interface (Backend) so i could browse and open and edit nextcloud files but in the onlyoffice backend.

What i wanted additionally to achieve was, to integrate onlyoffice directly in nextcloud.
I did install the App in the nextcloud Admin Interface.
I did deactivate collabora (as it should not conflict with onlyoffice) - just in case some has collabora activated.

Via nextcloud -> Admin -> "Additional Settings" under the ONLYOFFICE config section, where there is written "Document Editing Service address", here there was the fault why my setup did not work, and i did receive the "Error when trying to connect (Bad request or timeout error)" Error.
Problem:
In all online resources, forums and blogs its written you have to fill in the domain of your onlyoffice server, which in my case is 'https://only.develissimo.com' but in fact i hat to type in the following URL with a subdirectory 'https://only.develissimo.com/ds-vpath/'

Now the ONLYOFFICE nextcloud Integrations works out just fine.

By the way, the path i got from https://onlyoffice.exampledomain.com/management.aspx?type=17 setup page where "Document Editing Service Address" is "https://only.develissimo.com/ds-vpath/web-apps/apps/api/documents/api.js"

Hope this will help you solve this issue.

Good luck,
Raphael

<!-- gh-comment-id:372121622 --> @ionics commented on GitHub (Mar 11, 2018): Info: I had the same error message. I did install onlyoffice via docker on ubuntu 16.04 server. I configured HTTPS for onlyoffice and it worked just fine. If you do use a self signed CERT on the onlyoffice-Server than add this section: 'onlyoffice' => array ( 'verify_peer_off' => true, ), ); to your nextcloud config file via vim, vi, nano or whatever you prefer. vim /var/www/nextcloud/config/config.php I did integrate nextcloud from the onlyoffice Admin Interface (Backend) so i could browse and open and edit nextcloud files but in the onlyoffice backend. What i wanted additionally to achieve was, to integrate onlyoffice directly in nextcloud. I did install the App in the nextcloud Admin Interface. I did deactivate collabora (as it should not conflict with onlyoffice) - just in case some has collabora activated. Via nextcloud -> Admin -> "Additional Settings" under the ONLYOFFICE config section, where there is written "Document Editing Service address", here there was the fault why my setup did not work, and i did receive the "Error when trying to connect (Bad request or timeout error)" Error. Problem: In all online resources, forums and blogs its written you have to fill in the domain of your onlyoffice server, which in my case is 'https://only.develissimo.com' but in fact i hat to type in the following URL with a subdirectory 'https://only.develissimo.com/ds-vpath/' Now the ONLYOFFICE nextcloud Integrations works out just fine. By the way, the path i got from https://onlyoffice.exampledomain.com/management.aspx?type=17 setup page where "Document Editing Service Address" is "https://only.develissimo.com/ds-vpath/web-apps/apps/api/documents/api.js" Hope this will help you solve this issue. Good luck, Raphael
Author
Owner

@ShockwaveNN commented on GitHub (Jul 10, 2019):

I think this issue is related more to nextcloud (and seems resolved), so I'll close it. Feel free to comment though.

<!-- gh-comment-id:510048267 --> @ShockwaveNN commented on GitHub (Jul 10, 2019): I think this issue is related more to nextcloud (and seems resolved), so I'll close it. Feel free to comment though.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Docker-DocumentServer-ONLYOFFICE#37
No description provided.