Nextcloud
Nextcloud version: 18.0.0.10
Operating system and version: Ubuntu 18.04
Apache or nginx version: Apache/2.4.29
PHP version: PHP7.3
Onlyoffice
Installed with help from: How to Integrate OnlyOffice with NextCloud on Ubuntu - LinuxBabe
The issue you are facing
Error onlyoffice GetConvertedUri on check error: Error occurred in the document service: Error while downloading the document file to be converted.
Is this the first time you’ve seen this error? (Y/N)
Yes it is my first time seeing this problem
Nextcloud configuration
nextcloud/config/config.php
<?php
$CONFIG = array (
'instanceid' => '---Secret---',
'passwordsalt' => '---Secret---',
'secret' => '---Secret---',
'trusted_domains' =>
array (
0 => '---Secret---',
),
'datadirectory' => '/var/www/html/nextcloud/data',
'dbtype' => 'mysql',
'version' => '18.0.0.10',
'overwrite.cli.url' => '---Secret---',
'dbname' => 'nxtc_db',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'nxtc',
'dbpassword' => '---Secret---',
'installed' => true,
'ldapIgnoreNamingRules' => false,
'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
'app_install_overwrite' =>
array (
0 => 'dropit',
1 => 'drawio',
2 => 'quickaccesssorting',
),
'memcache.local' => '\\OC\\Memcache\\APCu',
'remember_login_cookie_lifetime' => 1296000,
'session_lifetime' => 600,
'session_keepalive' => true,
'maintenance' => false,
'mysql.utf8mb4' => true,
'onlyoffice' =>
array (
'verify_peer_off' => TRUE,
'jwt_header' => "AuthorizationJwt",
),
);
apache2/sites-available/nextcloud.conf
# Alias /nextcloud "/var/www/html/nextcloud/"
<Directory /var/www/html/nextcloud/>
Options +FollowSymlinks
AllowOverride All
Require all granted
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME /var/www/html/nextcloud
SetEnv HTTP_HOME /var/www/html/nextcloud
</Directory>
<VirtualHost *:80>
ServerAdmin admin@example.com
DocumentRoot /var/www/html/nextcloud/
ServerName ---Secret---
ServerAlias ---Secret---
Redirect permanent / ---Secret---
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<Ifmodule mod_ssl.c>
<VirtualHost *:443>
ServerName ---Secret---
DocumentRoot /var/www/html/nextcloud
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /etc/ssl/certs/---Secret---.crt
SSLCertificateKeyFile /etc/ssl/certs/---Secret---.key
# SSLCertificateChainFile /etc/apache2/certs/chain.pem
</VirtualHost>
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
Header always set X-Content-Type-Options: nosniff
Header always set X-XSS-Protection: "1; mode=block"
Header always set X-Robots-Tag: none
Header always set X-Frame-Options: SAMEORIGIN
Header always set Referrer-Policy: no-referrer
</IfModule>
</IfModule>
Onlyoffice configuration
nginx/conf.d/ds.conf
include /etc/nginx/includes/http-common.conf;
server {
listen 0.0.0.0:80;
listen [::]:80 default_server;
server_tokens off;
server_name ---Secret---;
include /etc/nginx/includes/ds-*.conf;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name ---Secret---t;
ssl on;
ssl_certificate /etc/ssl/certs/---Secret---.crt;
ssl_certificate_key /etc/ssl/certs/---Secret---.key;
access_log /var/log/nginx/nginx.vhost.access.log;
error_log /var/log/nginx/nginx.vhost.error.log;
include /etc/nginx/includes/ds-*.conf;
}
I have been trying with:
And:
As a temporary solution you can disable verification of the certs by the Document Server. It should help. Please change the value of the parameter “rejectUnauthorized”: from true to false in /etc/onlyoffice/documentserver/default.json. After that restart all the services of the Document Server."
I would need help ASAP because this Nextcloud is in production and we need the integration to work. And suggestions on what I can try with?
Thanks in advance
/Rojz