Nextcloud (non Docker) w/ ONLYOFFICE Document Server (Dockerized) (Error occured in the document service)

Issues during installation, usage and configuring
Post Reply
jason2019
Posts: 3
Joined: Wed Mar 20, 2019 2:09 pm

Nextcloud (non Docker) w/ ONLYOFFICE Document Server (Dockerized) (Error occured in the document service)

Post by jason2019 » Sat Mar 23, 2019 2:00 pm

Reference
1. Nextcloud Installation
https://websiteforstudents.com/install- ... t-ssl-tls/

I use Nextcloud (I am planning to integrate with Zimbra too)

No issues.

2. ONLYOFFICE Document Server Installation
https://help.nextcloud.com/t/howto-what ... host/33192

Edit: I will censor my domain as I am not an IT expert, less security. Thank you.

cat /etc/hosts

Code: Select all

127.0.0.1       localhost       cloud.x.com      docs.x.com

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
cat /etc/apache2/sites-available/onlyoffice-le*

Code: Select all

<IfModule mod_ssl.c>
<VirtualHost *:443>
     ServerName docs.x.com

RewriteEngine on
# Some rewrite rules in this file were disabled on your HTTPS site,
# because they have the potential to create redirection loops.

# RewriteCond %{SERVER_NAME} =docs.x.com
# RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

SSLCertificateFile /etc/letsencrypt/live/docs.x.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/docs.x.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf

SetEnvIf Host "^(.*)$" THE_HOST=$1
RequestHeader setifempty X-Forwarded-Proto http
RequestHeader setifempty X-Forwarded-Host %{THE_HOST}e
ProxyAddHeaders Off

ProxyPassMatch (.*)(/websocket)$ "ws://127.0.0.1:81/$1$2"
ProxyPass / "http://127.0.0.1:81/"
ProxyPassReverse / "http://127.0.0.1:81"

</VirtualHost>
</IfModule>
End of result
1. Nextcloud is running
2. ONLYOFFICE Document Server is running
3. However, Nextcloud were unable to connect to ONLYOFFICE. Document Editing Service address: https://docs.x.com Error when trying to connect (Error occured in the document service)

Carl
Posts: 177
Joined: Thu Apr 12, 2018 10:00 am

Re: Nextcloud (non Docker) w/ ONLYOFFICE Document Server (Dockerized) (Error occured in the document service)

Post by Carl » Wed Mar 27, 2019 7:56 am

Hello,

Please check Document Server logs for errors:
/app/onlyoffice/DocumentServer/logs/documentserver

Post Reply