Hi, I’m trying to set up Nextcloud integration, but after entering my address and password, endless downloads.
What the error looks like:
docker logs onlyoffice-documentserver
[2023-09-06T08:22:42.530] [ERROR] [localhost] [conv_290337298_jpeg] [userId] nodeJS - error downloadFile:url=https://test.ddns.net/apps/onlyoffice/download?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJkb3dubG9hZCIsImZpbGVJZCI6NjY1MSwidXNlcklkIjoiQWRtaW4ifQ.Tt6FJ9rar-gM7cxBSf_TibE5dKFBV8XWMdCvWnw6Zw4;attempt=1;code:ETIMEDOUT;connect:undefined Error: Error: whole request cycle timeout
at raiseError (/snapshot/server/build/server/Common/sources/utils.js)
at Timeout._onTimeout (/snapshot/server/build/server/Common/sources/utils.js)
at listOnTimeout (internal/timers.js:557:17)
at processTimers (internal/timers.js:500:7)
My configuration:
Document server ver. : 7.4
Nextcloud ver: 27.0.2
config.php
<?php
$CONFIG = array (
'htaccess.RewriteBase' => '/',
'memcache.local' => '\\OC\\Memcache\\APCu',
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/html/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/www/html/custom_apps',
'url' => '/custom_apps',
'writable' => true,
),
),
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'redis',
'password' => '',
'port' => 6379,
),
'instanceid' => 'ocwz6mhjmht2',
'passwordsalt' => 'VRXU1Xt1AHAZIrtnE2neknAbDUxSx0',
'secret' => 'MxU1MT9BGsZwm+r+ETW4Jx5HWeI8dtyjOAOJSAOKAlRIgcil',
'trusted_domains' =>
array (
0 => 'test.ddns.net',
1 => '192.168.0.114',
2 => '192.168.0.113',
3 => '172.28.0.4',
),
'onlyoffice' =>
array (
'verify_peer_off' => true,
),
'trusted_proxies' => '172.29.0.2',
'datadirectory' => '/var/www/html/data',
'dbtype' => 'pgsql',
'version' => '27.0.2.1',
'overwrite.cli.url' => 'http://test.ddns.net',
'dbname' => 'nextcloud',
'overwriteprotocol' => 'https',
'dbhost' => 'db',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'oc_admin',
'dbpassword' => 'NXswJdKgzsOZcPLA2CNXMF7WY8Fu3Y',
'installed' => true,
);
/etc/onlyoffice/documentserver/default.json
{
"services": {
"CoAuthoring": {
"request-filtering-agent": {
"allowPrivateIPAddress": true,
"allowMetaIPAddress": true
},
<...>
},
"gzip": true,
"rejectUnauthorized": false
},
docker-compose.yml
version: '2'
services:
onlyoffice-documentserver:
image: onlyoffice/documentserver:latest
container_name: onlyoffice-documentserver
depends_on:
- onlyoffice-postgresql
- onlyoffice-rabbitmq
environment:
# - USE_UNAUTHORIZED_STORAGE=true
- DB_TYPE=postgres
- DB_HOST=onlyoffice-postgresql
- DB_PORT=5432
- DB_NAME=onlyoffice
- DB_USER=onlyoffice
- AMQP_URI=amqp://guest:guest@onlyoffice-rabbitmq
- JWT_ENABLED=true
- JWT_SECRET=secret
- JWT_HEADER=AuthorizationJwt
ports:
- '443:443'
- '80:80'
stdin_open: true
restart: always
stop_grace_period: 60s
volumes:
- onlyoffice_data:/var/www/onlyoffice/Data
- onlyoffice_log:/var/log/onlyoffice
- onlyoffice_cache:/var/lib/onlyoffice/documentserver/App_Data/cache/files
- /var/www/onlyoffice/documentserver-example/public/files
- onlyoffice_fonts:/usr/share/fonts
onlyoffice-rabbitmq:
container_name: onlyoffice-rabbitmq
image: rabbitmq
restart: always
expose:
- '5672'
onlyoffice-postgresql:
container_name: onlyoffice-postgresql
image: postgres:9.5
environment:
- POSTGRES_DB=onlyoffice
- POSTGRES_USER=onlyoffice
- POSTGRES_HOST_AUTH_METHOD=trust
restart: always
expose:
- '5433'
volumes:
- postgresql_data:/var/lib/postgresql
volumes:
postgresql_data:
onlyoffice_data:
onlyoffice_log:
onlyoffice_cache:
onlyoffice_fonts:
I also use nginx reverse proxy for Nextcloud