Nextcloud version: Nextcloud Hub 8 (29.0.4)
Operating system and version: 6.10.2-arch1-1 (64-bit)
Apache version: Apache/2.4.61 (Unix)
Caddy version: latest --with github.com/tailscale/caddy-tailscale
PHP version: PostgreSQL 16.3 on x86_64-pc-linux-musl, compiled by gcc (Alpine 13.2.1_git20240309) 13.2.1 20240309, 64-bit
The issue you are facing:
Hello, I have had Nextcloud running for about a week now. Just now noticed that the documents donāt load. Iād been opening the provided ones that come with a new installation and was satisfied that it was working and didnāt realize the others donāt load. Isnāt this supposed to just work on new installs?
Is this the first time youāve seen this error?: Yes
Steps to replicate it:
-
Install nextcloud behind reverse proxy with tailscale. (No clear web access, talk works fine, so itās not the weird setup)
-
include collabra in containers
-
Try to create a new document, ensue infinite loading
The output of your Nextcloud log in Admin > Logging: Itās the same error over and over, unrelated I think.
[no app in context] Fatal: Could not boot files_trackdownloads: Call to undefined method OC\Server::getEventDispatcher()
GET /apps/logreader/api/log?offset=0&query=
from 100.122.199.7 by admin at Aug 5, 2024, 12:56:13 PM
The output of your config.php file in /path/to/nextcloud :
<?php
$CONFIG = array (
'one-click-instance' => true,
'one-click-instance.user-limit' => 100,
'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,
),
),
'check_data_directory_permissions' => false,
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'nextcloud-aio-redis',
'password' => 'snip',
'port' => 6379,
),
'overwritehost' => 'nextcloud.wallaby-gopher.ts.net',
'overwriteprotocol' => 'https',
'passwordsalt' => 'snip',
'secret' => 'snip',
'trusted_domains' =>
array (
0 => 'localhost',
1 => 'nextcloud.wallaby-gopher.ts.net',
),
'datadirectory' => '/mnt/ncdata',
'dbtype' => 'pgsql',
'version' => '29.0.4.1',
'overwrite.cli.url' => 'https://nextcloud.wallaby-gopher.ts.net/',
'dbname' => 'nextcloud_database',
'dbhost' => 'nextcloud-aio-database:5432',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'oc_nextcloud',
'dbpassword' => 'snip',
'installed' => true,
'instanceid' => 'oc35c56ax6f2',
'maintenance' => false,
'loglevel' => 2,
'log_type' => 'file',
'logfile' => '/var/www/html/data/nextcloud.log',
'log_rotate_size' => 10485760,
'log.condition' =>
array (
'apps' =>
array (
0 => 'admin_audit',
),
),
'preview_max_x' => 2048,
'preview_max_y' => 2048,
'jpeg_quality' => 60,
'enabledPreviewProviders' =>
array (
1 => 'OC\\Preview\\Image',
2 => 'OC\\Preview\\MarkDown',
3 => 'OC\\Preview\\MP3',
4 => 'OC\\Preview\\TXT',
5 => 'OC\\Preview\\OpenDocument',
6 => 'OC\\Preview\\Movie',
7 => 'OC\\Preview\\Krita',
0 => 'OC\\Preview\\Imaginary',
),
'enable_previews' => true,
'upgrade.disable-web' => true,
'mail_smtpmode' => 'smtp',
'trashbin_retention_obligation' => 'auto, 30',
'versions_retention_obligation' => 'auto, 30',
'activity_expire_days' => 30,
'simpleSignUpLink.shown' => false,
'share_folder' => '/Shared',
'one-click-instance.link' => 'https://nextcloud.com/all-in-one/',
'upgrade.cli-upgrade-link' => 'https://github.com/nextcloud/all-in-one/discussions/2726',
'updatedirectory' => '/nc-updater',
'maintenance_window_start' => 100,
'allow_local_remote_servers' => true,
'davstorage.request_timeout' => 3600,
'htaccess.RewriteBase' => '/',
'dbpersistent' => false,
'auth.bruteforce.protection.enabled' => true,
'ratelimit.protection.enabled' => true,
'files_external_allow_create_new_local' => false,
'trusted_proxies' =>
array (
0 => '127.0.0.1',
1 => '::1',
10 => '172.19.0.0/16',
),
'preview_imaginary_url' => 'http://nextcloud-aio-imaginary:9000',
'preview_imaginary_key' => 'snip',
'memories.db.triggers.fcu' => true,
'memories.exiftool' => '/var/www/html/custom_apps/memories/bin-ext/exiftool-amd64-musl',
'memories.vod.path' => '/var/www/html/custom_apps/memories/bin-ext/go-vod-amd64',
'memories.vod.ffmpeg' => '/usr/bin/ffmpeg',
'memories.vod.ffprobe' => '/usr/bin/ffprobe',
'app_install_overwrite' =>
array (
0 => 'files_trackdownloads',
1 => 'admin_notifications',
),
'memories.gis_type' => 2,
);
The output of your Apache/system log in portainer:
Waiting for Nextcloud to start...
Connection to nextcloud-aio-nextcloud (172.19.0.10) 9000 port [tcp/*] succeeded!
[Mon Aug 05 17:43:44.844497 2024] [mpm_event:notice] [pid 53:tid 53] AH00489: Apache/2.4.61 (Unix) configured -- resuming normal operations
[Mon Aug 05 17:43:44.844523 2024] [core:notice] [pid 53:tid 53] AH00094: Command line: '/usr/local/apache2/bin/httpd -D FOREGROUND'
INF ts=1722879824.8573232 msg=using config from file file=/tmp/Caddyfile
INF ts=1722879824.8582845 msg=adapted config to JSON adapter=caddyfile
Once I give up on loading itāll throw this error:
ERR ts=1722880782.8265193 logger=http.log.error msg=read tcp 172.19.0.12:57494->172.19.0.2:9980: read: connection reset by peer request={"remote_ip":"172.19.0.1","remote_port":"59136","client_ip":"100.122.199.7","proto":"HTTP/1.1","method":"GET","host":"nextcloud.wallaby-gopher.ts.net","uri":"/hosting/discovery","headers":{"X-Forwarded-Proto":["https"],"Accept-Encoding":["gzip, deflate, br, zstd"],"Sec-Fetch-Site":["same-origin"],"Sec-Gpc":["1"],"X-Forwarded-For":["100.122.199.7"],"User-Agent":["Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0"],"Cookie":["REDACTED"],"Sec-Fetch-Dest":["empty"],"Accept":["*/*"],"Accept-Language":["en-US,en;q=0.5"],"Dnt":["1"],"Priority":["u=4"],"Sec-Fetch-Mode":["no-cors"],"Te":["trailers"],"X-Forwarded-Host":["nextcloud.wallaby-gopher.ts.net"]}} duration=694.960393373 status=502 err_id=6kxerk504 err_trace=reverseproxy.statusError (reverseproxy.go:1269)
Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.
[05-Aug-2024 17:43:40] NOTICE: fpm is running, pid 569
[05-Aug-2024 17:43:40] NOTICE: ready to handle connections
Activating Collabora config...
ā Reset callback url autodetect
Checking configuration
š Configured WOPI URL: https://nextcloud.wallaby-gopher.ts.net
š Configured public WOPI URL: https://nextcloud.wallaby-gopher.ts.net
š Configured callback URL:
Failed to fetch discovery endpoint from https://nextcloud.wallaby-gopher.ts.net
cURL error 28: Operation timed out after 5002 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://nextcloud.wallaby-gopher.ts.net/hosting/discovery
sh: /var/www/html/custom_apps/richdocumentscode/collabora/Collabora_Online.AppImage: not found
sh: /var/www/html/custom_apps/richdocumentscode/collabora/Collabora_Online.AppImage: not found
NOTICE: PHP message: richdocumentscode (proxy.php) error exit, PID: 638, Message: no_glibc
Collabora logs:
wsd-00007-00007 2024-08-05 18:16:25.125894 +0000 [ coolwsd ] TRC #14: Listening| net/ServerSocket.hpp:77
wsd-00007-00007 2024-08-05 18:16:25.125895 +0000 [ coolwsd ] INF #14 Listening to client connections on port 9980| wsd/COOLWSD.cpp:4221
wsd-00007-00007 2024-08-05 18:16:25.125897 +0000 [ coolwsd ] TRC Creating thread for SocketPoll prisoner_poll| net/Socket.cpp:310
wsd-00007-00007 2024-08-05 18:16:25.125945 +0000 [ coolwsd ] TRC #15: Created socket. Thread affinity set to 0x710bf8edd840| net/Socket.hpp:384
wsd-00007-00007 2024-08-05 18:16:25.125948 +0000 [ coolwsd ] INF #15: Binding to Unix socket for local server with base name: 0coolwsd-| net/Socket.cpp:1231
wsd-00007-00007 2024-08-05 18:16:25.125954 +0000 [ coolwsd ] TRC #15: Binding to Unix socket location [coolwsd-RNQjYAFu], result: 0| net/Socket.cpp:1258
wsd-00007-00007 2024-08-05 18:16:25.125956 +0000 [ coolwsd ] TRC #15: Listening| net/ServerSocket.hpp:77
wsd-00007-00007 2024-08-05 18:16:25.125958 +0000 [ coolwsd ] INF Listening to prisoner connections on coolwsd-RNQjYAFu| wsd/COOLWSD.cpp:4154
wsd-00007-00007 2024-08-05 18:16:25.125960 +0000 [ coolwsd ] TRC Inserting socket #15, address [], into prisoner_poll| net/Socket.hpp:737
wsd-00007-00007 2024-08-05 18:16:25.125961 +0000 [ coolwsd ] TRC #15: Resetting thread affinity while in transit (was 0x710bf8edd840)| net/Socket.hpp:337
wsd-00007-00007 2024-08-05 18:16:25.125965 +0000 [ coolwsd ] INF Waiting for a new child for a max of 20000ms| wsd/COOLWSD.cpp:4392
wsd-00007-00010 2024-08-05 18:16:25.126004 +0000 [ prisoner_poll ] INF Thread 10 (710bf78006c0) of process 7 formerly unnamed is now called [prisoner_poll]| common/Util.cpp:326
wsd-00007-00010 2024-08-05 18:16:25.126015 +0000 [ prisoner_poll ] INF Starting polling thread [prisoner_poll] with thread affinity set to 0x710bf78006c0.| net/Socket.cpp:373
wsd-00007-00010 2024-08-05 18:16:25.126018 +0000 [ prisoner_poll ] TRC ppoll start, timeoutMicroS: 64000000 size 0| net/Socket.cpp:428
wsd-00007-00010 2024-08-05 18:16:25.126022 +0000 [ prisoner_poll ] TRC Poll completed with 1 live polls max (64000000us)| net/Socket.cpp:446
wsd-00007-00010 2024-08-05 18:16:25.126025 +0000 [ prisoner_poll ] TRC #6: Handling events of wakeup pipe: 0x1| net/Socket.cpp:455
wsd-00007-00010 2024-08-05 18:16:25.126029 +0000 [ prisoner_poll ] TRC Wakeup pipe read 1 bytes| net/Socket.cpp:462
wsd-00007-00010 2024-08-05 18:16:25.126030 +0000 [ prisoner_poll ] TRC Inserting 1 new sockets after the existing 0| net/Socket.cpp:474
wsd-00007-00010 2024-08-05 18:16:25.126032 +0000 [ prisoner_poll ] TRC #15: Thread affinity set to 0x710bf78006c0 (was 0)| net/Socket.hpp:326
wsd-00007-00010 2024-08-05 18:16:25.126034 +0000 [ prisoner_poll ] TRC PrisonerPoll - wakes up with 0 new children and 0 brokers and 0 kits forking| wsd/COOLWSD.cpp:3472
wsd-00007-00010 2024-08-05 18:16:25.126037 +0000 [ prisoner_poll ] INF Creating new forkit process.| wsd/COOLWSD.cpp:3495
wsd-00007-00010 2024-08-05 18:16:25.126044 +0000 [ prisoner_poll ] INF Launching forkit process: /usr/bin/coolforkit --systemplate=/opt/cool/systemplate --lotemplate=/opt/collaboraoffice --childroot=/opt/cool/child-roots/7-95e9318e/ --clientport=9980 --masterport=coolwsd-RNQjYAFu --rlimits=limit_virt_mem_mb:0;limit_stack_mem_kb:8000;limit_file_size_mb:0;limit_num_open_files:0 --version --ui=default| wsd/COOLWSD.cpp:3606
wsd-00007-00010 2024-08-05 18:16:25.126205 +0000 [ prisoner_poll ] INF Forkit process launched: 11| wsd/COOLWSD.cpp:3612
wsd-00007-00010 2024-08-05 18:16:25.126210 +0000 [ prisoner_poll ] TRC Rebalance children to 3, have 0 and 1 outstanding requests| wsd/COOLWSD.cpp:553
wsd-00007-00010 2024-08-05 18:16:25.126215 +0000 [ prisoner_poll ] TRC Rebalance children to 4, have 0 and 1 outstanding requests| wsd/COOLWSD.cpp:553
wsd-00007-00010 2024-08-05 18:16:25.126217 +0000 [ prisoner_poll ] TRC PollSocket container size has changed from 0 to 1| net/Socket.cpp:519
coolforkit version details: 24.04.5.2 - ca2ed20
frk-00011-00011 2024-08-05 18:16:25.127822 +0000 [ coolforkit ] INF Initializing frk. Local time: Mon 2024-08-05 18:16:25 +0000. Log level is [8]| common/Log.cpp:654
frk-00011-00011 2024-08-05 18:16:25.127830 +0000 [ coolforkit ] INF Setting log-level to [trace and delaying setting to configured [warning] until after Forkit initialization.| kit/ForKit.cpp:651
frk-00011-00011 2024-08-05 18:16:25.127836 +0000 [ coolforkit ] INF RLIMIT_AS is unlimited after setting it to unlimited.| common/Seccomp.cpp:287
frk-00011-00011 2024-08-05 18:16:25.127839 +0000 [ coolforkit ] INF RLIMIT_STACK is 8192000 bytes after setting it to 8192000 bytes.| common/Seccomp.cpp:287
frk-00011-00011 2024-08-05 18:16:25.127842 +0000 [ coolforkit ] INF Ignored setting RLIMIT_FSIZE to unlimited.| common/Seccomp.cpp:293
frk-00011-00011 2024-08-05 18:16:25.127844 +0000 [ coolforkit ] INF Ignored setting RLIMIT_NOFILE to unlimited.| common/Seccomp.cpp:293
frk-00011-00011 2024-08-05 18:16:25.127850 +0000 [ coolforkit ] DBG About to init Kit UnitBase with test []| kit/ForKit.cpp:763
frk-00011-00011 2024-08-05 18:16:25.127861 +0000 [ coolforkit ] ERR Capability cap_sys_chroot is not set for the coolforkit program.| kit/ForKit.cpp:231
frk-00011-00011 2024-08-05 18:16:25.127864 +0000 [ coolforkit ] ERR Capability cap_fowner is not set for the coolforkit program.| kit/ForKit.cpp:231
frk-00011-00011 2024-08-05 18:16:25.127866 +0000 [ coolforkit ] ERR Capability cap_chown is not set for the coolforkit program.| kit/ForKit.cpp:231
Capabilities are not set for the coolforkit program.
frk-00011-00011 2024-08-05 18:16:25.127869 +0000 [ coolforkit ] FTL Capabilities are not set for the coolforkit program.| kit/ForKit.cpp:777
Please make sure that the current partition was *not* mounted with the 'nosuid' option.
frk-00011-00011 2024-08-05 18:16:25.127871 +0000 [ coolforkit ] FTL Please make sure that the current partition was *not* mounted with the 'nosuid' option.| kit/ForKit.cpp:778
If you are on SLES11, please set 'file_caps=1' as kernel boot option.
frk-00011-00011 2024-08-05 18:16:25.127874 +0000 [ coolforkit ] FTL If you are on SLES11, please set 'file_caps=1' as kernel boot option.| kit/ForKit.cpp:779
wsd-00007-00007 2024-08-05 18:16:45.126051 +0000 [ coolwsd ] INF Waiting for a new child for a max of 20000ms| wsd/COOLWSD.cpp:4392
wsd-00007-00007 2024-08-05 18:17:05.126172 +0000 [ coolwsd ] INF Waiting for a new child for a max of 20000ms| wsd/COOLWSD.cpp:4392
wsd-00007-00010 2024-08-05 18:16:25.126221 +0000 [ prisoner_poll ] TRC #15: setupPollFds getPollEvents: 0x1| net/Socket.hpp:875
wsd-00007-00010 2024-08-05 18:16:25.126223 +0000 [ prisoner_poll ] TRC ppoll start, timeoutMicroS: 64000000 size 1| net/Socket.cpp:428
wsd-00007-00010 2024-08-05 18:17:29.190303 +0000 [ prisoner_poll ] TRC Poll completed with 0 live polls max (64000000us)(timedout)| net/Socket.cpp:446
Things Iāve tried:
-
Navigated to my rich documents https://nextcloud.wallaby-gopher.ts.net/settings/admin/richdocuments
It had said failed to curl
so I thought Iād use the built in code which said I needed to install Collabora Online - Built-in CODE Server, so I did and got a slightly different error
-
I found this guide for when Collabra needs help even though itās supposed to install itself: link
I ended up downloading two more apps based on that: Community Document Server Version 0.1.18 and ONLYOFFICE. This just resulted in a new error:
3.Uninstalling all of these apps now:
I can get a green light when no radio button is selected:
but behavior is the same, and returns to step 1.'s WOPI image upon selecting an option.
- Trying this guide with integrating collabra. I get stuck on step 2 of troubleshooting docker exec nextcloud-aio-collabora curl https://nextcloud.wallaby-gopher.ts.net/hosting/discovery -v
It just gets stuck, no errors:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 100.96.243.61:443...
* Connected to nextcloud.wallaby-gopher.ts.net (100.96.243.61) port 443 (#0)
* ALPN: offers h2,http/1.1
} [5 bytes data]
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
* CAfile: /etc/ssl/certs/ca-certificates.crt
* CApath: /etc/ssl/certs
{ [5 bytes data]
* TLSv1.3 (IN), TLS handshake, Server hello (2):
{ [122 bytes data]
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
{ [15 bytes data]
* TLSv1.3 (IN), TLS handshake, Certificate (11):
{ [2065 bytes data]
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
{ [80 bytes data]
* TLSv1.3 (IN), TLS handshake, Finished (20):
{ [36 bytes data]
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
} [1 bytes data]
* TLSv1.3 (OUT), TLS handshake, Finished (20):
} [36 bytes data]
* SSL connection using TLSv1.3 / TLS_AES_128_GCM_SHA256
* ALPN: server accepted h2
* Server certificate:
* subject: CN=nextcloud.wallaby-gopher.ts.net
* start date: Aug 1 16:35:45 2024 GMT
* expire date: Oct 30 16:35:44 2024 GMT
* subjectAltName: host "nextcloud.wallaby-gopher.ts.net" matched cert's "nextcloud.wallaby-gopher.ts.net"
* issuer: C=US; O=Let's Encrypt; CN=E6
* SSL certificate verify ok.
} [5 bytes data]
* using HTTP/2
* h2h3 [:method: GET]
* h2h3 [:path: /hosting/discovery]
* h2h3 [:scheme: https]
* h2h3 [:authority: nextcloud.wallaby-gopher.ts.net]
* h2h3 [user-agent: curl/7.88.1]
* h2h3 [accept: */*]
* Using Stream ID: 1 (easy handle 0x5e64a9615ce0)
} [5 bytes data]
> GET /hosting/discovery HTTP/2
> Host: nextcloud.wallaby-gopher.ts.net
> user-agent: curl/7.88.1
> accept: */*
>
{ [5 bytes data]
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
{ [122 bytes data]
0 0 0 0 0 0 0 0 --:--:-- 0:01:27 --:--:--
Thank you in advance for you help!















