Support intro
Sorry to hear you’re facing problems
help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.
In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
example
Or for longer, use three backticks above and below the code snippet:
longer
example
here
Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can
Nextcloud version (eg, 12.0.2): 15.05
Operating system and version (eg, Ubuntu 17.04): 16.04
Apache or nginx version (eg, Apache 2.4.25): 2.4.18
PHP version (eg, 7.1): 7.0.28
The issue you are facing:
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- Install onlyoffice via https://helpcenter.onlyoffice.com/server/docker/opensource/opensource-script-installation.aspx?_ga=2.209510930.1660986152.1553515262-50356048.1553515262
- In NC i tried to link the onlyoffice server , because i have nc and onlyoffice on separete servers
- By settings up the Document Editing Service address in /index.php/settings/admin/onlyoffice it pops up Error when trying to connect (Bad request or timmed out)
This is my config.php of NC
<?php
$CONFIG = array (
‘trashbin_retention_obligation’ => 30,
‘instanceid’ => ‘ocv8d357168a’,
‘passwordsalt’ => ‘+’,
‘secret’ => ‘’,
‘trusted_domains’ =>
array (
0 => ‘myserver’,
1 => ‘myserver’,
),
‘datadirectory’ => ‘/var/www/nextcloud/data’,
‘overwrite.cli.url’ => ‘http://myserver’,
‘dbtype’ => ‘pgsql’,
‘version’ => ‘15.0.5.3’,
‘dbname’ => ‘nextcloud’,
‘dbhost’ => ‘myip’,
‘dbport’ => ‘’,
‘dbtableprefix’ => ‘oc_’,
‘dbuser’ => ‘ncdbuser’,
‘dbpassword’ => ‘’,
‘logtimezone’ => ‘UTC’,
‘installed’ => true,
‘mail_from_address’ => ‘files’,
‘mail_smtpmode’ => ‘smtp’,
‘mail_domain’ => ‘myserver’,
‘maintenance’ => false,
‘theme’ => ‘’,
‘loglevel’ => 2,
‘log_rotate_size’ => 10485760,
‘updater.release.channel’ => ‘stable’,
‘memcache.distributed’ => ‘\OC\Memcache\Redis’,
‘memcache.local’ => ‘\OC\Memcache\Redis’,
‘filelocking.enabled’ => ‘true’,
‘memcache.locking’ => ‘\OC\Memcache\Redis’,
‘redis’ =>
array (
‘host’ => ‘localhost’,
‘timeout’ => 0,
‘dbindex’ => 0,
‘port’ => 6379,
),
‘ldapIgnoreNamingRules’ => false,
‘ldapProviderFactory’ => ‘\OCA\User_LDAP\LDAPProviderFactory’,
‘data-fingerprint’ => ‘3bb03e5bf1e9f20f12ece2bf5a4a69ce’,
‘overwriteprotocol’ => ‘https’,
‘trusted_proxies’ =>
array (
0 => ‘myip’,
),
‘versions_retention_obligation’ => ‘auto, 30’,
‘mail_smtphost’ => ‘localhost’,
‘mail_smtpport’ => ‘25’,
‘onlyoffice’ =>
array (
‘verify_peer_off’ => TRUE,
),
);
On onlyoffice server pops up this error in Console:
WebSocket connection to 'wss://myserver/socketio/socket.io/?EIO=3&transport=websocket&sid=NlOo30clZHMro3plAAfd' failed: Error during WebSocket handshake: Unexpected response code: 400
Logging:
[PHP] Error: file_get_contents(https://myserver/healthcheck): failed to open stream: HTTP request failed! HTTP/1.1 502 Bad Gateway
at /var/www/nextcloud/apps/onlyoffice/lib/documentservice.php#385
This error is after the onlyoffice update this morning, it resembles somehow ->
[onlyoffice] Error: HealthcheckRequest on check error: Server error: GET https://myserver/healthcheck
resulted in a 502 Bad Gateway
response:
502 Bad Gateway
ngin (truncated...)