Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem setting up OnlyOffice app in Nextcloud #183

Open
RuiRosado opened this issue Jun 5, 2019 · 6 comments
Open

Problem setting up OnlyOffice app in Nextcloud #183

RuiRosado opened this issue Jun 5, 2019 · 6 comments

Comments

@RuiRosado
Copy link

Hi,

I know this is a topic that has already been discussed, but we don't get it functioning.

We have the following setup:

  1. OnlyOffice v9.6.632 running on a Windows Server 2008 R2 server with IIS 7.5 (external server in a datacenter) https://office.xxxxx.xxx
  2. NextCloud v16.0.1 running on a CentOS 7 server (external server in a different datacenter) https://docserver.xxxxx.xxx
  3. Each server has SSL certificates installed (Sectigo/Comodo) and is accessible by https:// (security tests give A and A+ rating)
  4. Integration app NextCloud/OnlyOffice using the app store in NextCloud v2.1.10

When I enter https://docserver.xxxxx.xxx in the field 'Document Editing Service address' in NextCloud configuration page for the OnlyOffice app and click on Save, the following error is logged:
[onlyoffice] Error: HealthcheckRequest on check error: Client error: GET https://docserver.xxxxx.xxx/healthcheck resulted in a 404 Not Found response:


I already tried the tweak with
'onlyoffice' =>
array (
'verify_peer_off' => TRUE,
)
in the (NextCloud) config.php but that did not help.
Neither did ... "rejectUnauthorized": false ... in default.json (OnlyOffice side) help.

But ...
On the OnlyOffice server we installed the SSL certificate only in the IIS webserver. I also see an NGINX server. Could it be that this server also has to be provided a certificate? How would we do that?
If not ... what could we be doing wrong?

Cheers,
Rui

@LinneyS
Copy link
Member

LinneyS commented Jun 5, 2019

You must enter https://office.xxxxx.xxx in the field 'Document Editing Service address'

@RuiRosado
Copy link
Author

@LinneyS: I'm very sorry, I made an error in my post:
the OnlyOffice server address is https://docserver.xxxx.xx and the Nextcloud address is https://office.xxxx.xx
So the address entered in the OnlyOffice app configuration page is correct.

@ibnpetr
Copy link

ibnpetr commented Jun 5, 2019

Hello,

So the address entered in the OnlyOffice app configuration page is correct.

It is correct in case you have a standalone instance of Document Server
For Enterprise or Community Editions the address of the documentserver should be https://office.xxxxx.xxx/ds-vpath/

Could it be that this server also has to be provided a certificate?

No, Community Server will proxy all requests to the Document Server
Please note that you need to add a secret key in the Advanced Server Settings section as Enterprise Edition utilizes JWT
Default path for Windows environment:
C:\Program Files (x86)\Ascensio System SIA\CommunityServer\WebStudio\web.appsettings.config
(key="files.docservice.secret")

@RuiRosado
Copy link
Author

Hi 'ibnpetr',

Thank you for your help.
I inserted a value for the secret key, but only in the OnlyOffice web.appsettings.config file.
And added \ds-vpath\ to the 'Document Editing Service address' in NextCloud
Now I get a different error in the NextCloud log.
I guess I'm still missing something. Can you help me out?

This the error message:

{"reqId":"XPffr4lKdlqaAHuXRWOa3QAAAA8","level":3,"time":"2019-06-05T15:28:49+00:00","remoteAddr":"94.168.41.106","user":"rui","app":"onlyoffice","method":"PUT","url":"/index.php/apps/onlyoffice/ajax/settings","message":"Request converted file on check error: https://docserver.mijnschakenraad.nl/ds-vpath/cache/files/conv_check_514420344_docx/output.docx/empty%3Fdoc%3DeyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.docx?md5=5zfBNYSKyqMXKqs1BAyiKQ==&expires=1559749425&disposition=attachment&ooname=output.docx Server error: GET https://docserver.mijnschakenraad.nl/ds-vpath/cache/files/conv_check_514420344_docx/output.docx/empty%3Fdoc%3DeyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.docx?md5=5zfBNYSKyqMXKqs1BAyiKQ==&expires=1559749425&disposition=attachment&ooname=output.docx resulted in a 500 Internal Server Error response:\n\r\n\r\n<html x (truncated...)\n","userAgent":"Mozilla/5.0 (Windows NT 10.0; WOW64; rv:67.0) Gecko/20100101 Firefox/67.0","version":"16.0.1.1","id":"5cf7dfb95ec12"}

@alexanderonlyoffice
Copy link

@RuiRosado, please specify if the issue is still relevant.

@LinneyS LinneyS transferred this issue from ONLYOFFICE/onlyoffice-owncloud Dec 24, 2019
@LinneyS
Copy link
Member

LinneyS commented Dec 27, 2019

@RuiRosado
You can look in Windows Event Viewer to find error description for 500 Internal Server Error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants