AIO Nextcloud GUI won't load but clients work even after recreating from backuop

I recently had issues with the mastercontainer not starting which I resolved. Now remains another issue:

The Nextcloud UI is incredibly slow while, at the same time, clients work without issues. This is after I’ve just recreated the instance.


Calling the LAN IP of my server at 10.1.1.x:11000 or its domain at cloud.mydomain.com would usually bring up Nextcloud within about half a second. Now, it endlessly loads, presenting only ‘New Tab’. Very occasionally the page would load after I left it alone for a very long time (F12 network analysis shows things loading in very slowly over multiple minutes).
At the same, already logged in clients (Desktop, my phone) work just fine and transfer files with up to 2 Gb/s when I’m in my LAN.
Even stranger is that this is still happening after I reset the instance and restored from my backup which took the better half of two days.

I cannot remember making any changes to Nextcloud. I did, however, recently restart my unRAID server and briefly changed the Docker networking from macvlan to ipvlan (which caused issues so I reverted it and all issues with other containers were gon again; I’m on macvlan again now).
The page is proxied through Nginx Proxy Manager and uses Cloudflare as DNS (without proxying or tunneling). There were no changes made to these (except from adding some unrelated CNAME and TXT records that were since removed again).


master container config:

docker run
  -d
  --name='nextcloud-aio-mastercontainer'
  --net='bridge'
  --pids-limit 2048
  -e TZ="Europe/Berlin"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="STower24"
  -e HOST_CONTAINERNAME="nextcloud-aio-mastercontainer"
  -e 'APACHE_PORT'='11000'
  -e 'NEXTCLOUD_ENABLE_DRI_DEVICE'='true'
  -e 'NEXTCLOUD_ADDITIONAL_APKS'='imagemagick'
  -e 'NEXTCLOUD_ADDITIONAL_PHP_EXTENSIONS'='imagick'
  -e 'NEXTCLOUD_ENABLE_DRI_DEVICE'='true'
  -e 'NEXTCLOUD_KEEP_DISABLED_APPS'='true'
  -e 'NEXTCLOUD_MEMORY_LIMIT'='8192M'
  -e 'NEXTCLOUD_DATADIR'='/mnt/user/NextcloudData'
  -e 'AIO_COMMUNITY_CONTAINERS'='memories'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='https://[IP]:[PORT:8095]'
  -l net.unraid.docker.icon='https://github.com/Muwahhidun/logo/raw/main/nextcloud-aio-logo.png'
  -p '8095:8080/tcp'
  -v 'nextcloud_aio_mastercontainer':'/mnt/docker-aio-config':'rw'
  -v '/var/run/docker.sock':'/var/run/docker.sock':'ro'
  --restart=unless-stopped 'nextcloud/all-in-one:beta'

config.php:

<?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,
    ),
  ),
  'appsallowlist' => false,
  'check_data_directory_permissions' => false,
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'filelocking.enabled' => true,
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'nextcloud-aio-redis',
    'password' => 'REMOVED',
    'port' => 6379,
  ),
  'overwritehost' => 'cloud.REMOVED.com',
  'overwriteprotocol' => 'https',
  'passwordsalt' => 'REMOVED',
  'secret' => 'REMOVED',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => 'cloud.REMOVED.com',
  ),
  'datadirectory' => '/mnt/ncdata',
  'dbtype' => 'pgsql',
  'version' => '30.0.2.2',
  'overwrite.cli.url' => 'https://cloud.REMOVED.com/',
  'dbname' => 'nextcloud_database',
  'dbhost' => 'nextcloud-aio-database:5432',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_nextcloud',
  'dbpassword' => 'REMOVED',
  'installed' => true,
  'instanceid' => 'REMOVED',
  '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,
  'preview_max_scale_factor' => 1,
  'jpeg_quality' => 70,
  'preview_format' => 'webp',
  'enabledPreviewProviders' => 
  array (
    0 => 'OC\\Preview\\Imaginary',
    1 => 'OC\\Preview\\JPEG',
    2 => 'OC\\Preview\\GIF',
    3 => 'OC\\Preview\\BMP',
    4 => 'OC\\Preview\\XBitmap',
    5 => 'OC\\Preview\\Movie',
    6 => 'OC\\Preview\\PDF',
    7 => 'OC\\Preview\\MP3',
    8 => 'OC\\Preview\\TXT',
    9 => 'OC\\Preview\\MarkDown',
    10 => 'OC\\Preview\\PNG',
    11 => 'OC\\Preview\\WebP',
    12 => 'OC\\Preview\\HEIC',
    13 => 'OC\\Preview\\OpenDocument',
    14 => 'OC\\Preview\\Krita',
    15 => 'OC\\Preview\\AVIF',
    20 => 'OC\\Preview\\Movie',
    21 => 'OC\\Preview\\JXL',
    22 => 'OC\\Preview\\AVIF',
    23 => 'OC\\Preview\\SVG',
  ),
  'enable_previews' => true,
  'upgrade.disable-web' => true,
  'mail_smtpmode' => 'smtp',
  'trashbin_retention_obligation' => 'auto, 365',
  'versions_retention_obligation' => 'auto, 365',
  'activity_expire_days' => 365,
  '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.18.0.0/16',
  ),
  'preview_imaginary_url' => 'http://nextcloud-aio-imaginary:9000',
  'preview_imaginary_key' => 'db74171a18567251a60474ca114d1fb08342ed36de9eabf0',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'defaultapp' => 'dashboard,files',
  'app_install_overwrite' => 
  array (
    0 => 'unsplash',
    1 => 'extract',
    2 => 'files_rightclick',
    3 => 'talk_matterbridge',
    4 => 'talk_simple_poll',
    5 => 'gpxmotion',
    6 => 'files_readmemd',
    7 => 'apporder',
    8 => 'nextcloud-aio',
    9 => 'files_antivirus',
    10 => 'camerarawpreviews',
    11 => 'side_menu',
    12 => 'fulltextsearch_elasticsearch',
    13 => 'gpxpod',
    14 => 'maps',
    15 => 'timemanager',
  ),
  'mail_from_address' => 'REMOVED',
  'mail_domain' => 'REMOVED',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'REMOVED',
  'mail_smtpport' => '465',
  'mail_smtpname' => 'REMOVED',
  'mail_smtppassword' => 'REMOVED',
  'data-fingerprint' => 'REMOVED',
  'default_language' => 'de',
  'default_locale' => 'de_DE',
  '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',
  'memories.gis_type' => 2,
  'memories.vod.external' => true,
  'memories.vod.connect' => 'nextcloud-aio-memories:47788',
  'memories.vod.disable' => false,
  'memories.vod.vaapi' => true,
  'updater.release.channel' => 'stable',
  'documentation_url.server_logs' => 'https://github.com/nextcloud/all-in-one/discussions/5425',
  'onlyoffice' => 
  array (
    'jwt_secret' => 'REMOVED',
    'jwt_header' => 'AuthorizationJwt',
  ),
);

Master container log:

WARNING: No swap limit support
WARNING: No swap limit support
++ head -1 /mnt/docker-aio-config/data/daily_backup_time
+ BACKUP_TIME=04:00
+ export BACKUP_TIME
+ export DAILY_BACKUP=1
+ DAILY_BACKUP=1
++ sed -n 2p /mnt/docker-aio-config/data/daily_backup_time
+ '[' '' '!=' automaticUpdatesAreNotEnabled ']'
+ export AUTOMATIC_UPDATES=1
+ AUTOMATIC_UPDATES=1
++ sed -n 3p /mnt/docker-aio-config/data/daily_backup_time
+ '[' '' '!=' successNotificationsAreNotEnabled ']'
+ export SEND_SUCCESS_NOTIFICATIONS=1
+ SEND_SUCCESS_NOTIFICATIONS=1
+ set +x
{"level":"info","ts":1733322514.8280427,"msg":"using config from file","file":"/Caddyfile"}
{"level":"info","ts":1733322514.8293695,"msg":"adapted config to JSON","adapter":"caddyfile"}
[04-Dec-2024 14:28:34] NOTICE: fpm is running, pid 192
[04-Dec-2024 14:28:34] NOTICE: ready to handle connections
[Wed Dec 04 14:28:34.951355 2024] [mpm_event:notice] [pid 187:tid 187] AH00489: Apache/2.4.62 (Unix) OpenSSL/3.3.2 configured -- resuming normal operations
[Wed Dec 04 14:28:34.951388 2024] [core:notice] [pid 187:tid 187] AH00094: Command line: 'httpd -D FOREGROUND'
Trying to fix docker.sock permissions internally...
Creating docker group internally with id 281
The environmental variable TZ has been set which is not supported by AIO since it only supports running in the default Etc/UTC timezone!
The correct timezone can be set in the AIO interface later on!
Initial startup of Nextcloud All-in-One complete!
You should be able to open the Nextcloud AIO Interface now on port 8080 of this server!
E.g. https://internal.ip.of.this.server:8080
⚠️ Important: do always use an ip-address if you access this port and not a domain as HSTS might block access to it later!

If your server has port 80 and 8443 open and you point a domain to your server, you can get a valid certificate automatically by opening the Nextcloud AIO Interface via:
https://your-domain-that-points-to-this-server.tld:8443

Apache log:

Connection to nextcloud-aio-nextcloud (172.18.0.11) 9000 port [tcp/*] succeeded!
[Wed Dec 04 13:43:11.709680 2024] [mpm_event:notice] [pid 2577:tid 2577] AH00489: Apache/2.4.62 (Unix) configured -- resuming normal operations
[Wed Dec 04 13:43:11.709722 2024] [core:notice] [pid 2577:tid 2577] AH00094: Command line: '/usr/local/apache2/bin/httpd -D FOREGROUND'
{"level":"info","ts":1733319791.7150407,"msg":"using config from file","file":"/tmp/Caddyfile"}
{"level":"info","ts":1733319791.7166426,"msg":"adapted config to JSON","adapter":"caddyfile"}
Waiting for Nextcloud to start...
Waiting for Nextcloud to start...
Waiting for Nextcloud to start...

Nextcloud log:

+ '[' -z '' ']'
+ TALK_HOST=cloud.REMOVED.com
+ HPB_PATH=/standalone-signaling/
+ '[' -z '' ']'
+ TURN_DOMAIN=cloud.REMOVED.com
+ set +x
Connection to nextcloud-aio-talk-recording (172.18.0.9) 1234 port [tcp/*] succeeded!
Connection to nextcloud-aio-clamav (172.18.0.7) 3310 port [tcp/*] succeeded!
Connection to nextcloud-aio-fulltextsearch (172.18.0.8) 9200 port [tcp/*] succeeded!
+ '[' true = true ']'
+ '[' 11000 = 443 ']'
+ set +x
[04-Dec-2024 13:43:05] NOTICE: fpm is running, pid 1532
[04-Dec-2024 13:43:05] NOTICE: ready to handle connections
Applying one-click-instance settings...
System config value one-click-instance set to boolean true
System config value one-click-instance.user-limit set to integer 100
System config value one-click-instance.link set to string https://nextcloud.com/all-in-one/
support already enabled
Adjusting log files...
System config value upgrade.cli-upgrade-link set to string https://github.com/nextcloud/all-in-one/discussions/2726
System config value logfile set to string /var/www/html/data/nextcloud.log
Config value were not updated
System config value updatedirectory set to string /nc-updater
System config value maintenance_window_start set to integer 100
Applying network settings...
System config value allow_local_remote_servers set to boolean true
System config value davstorage.request_timeout set to integer 3600
System config value trusted_domains => 1 set to string cloud.REMOVED.com
System config value overwrite.cli.url set to string https://cloud.REMOVED.com/
System config value documentation_url.server_logs set to string https://github.com/nextcloud/all-in-one/discussions/5425
System config value htaccess.RewriteBase set to string /
.htaccess has been updated
System config value dbpersistent set to boolean false
System config value auth.bruteforce.protection.enabled set to boolean true
System config value ratelimit.protection.enabled set to boolean true
System config value files_external_allow_create_new_local set to boolean false
System config value trusted_proxies => 0 set to string 127.0.0.1
System config value trusted_proxies => 1 set to string ::1
System config value trusted_proxies => 10 set to string 172.18.0.0/16
Config value were not updated
Config value were not updated
Config value were not updated
Config value were not updated
Config value were not updated
Config value were not updated
Config value were not updated
Config value were not updated
System config value enabledPreviewProviders => 0 set to string OC\Preview\Imaginary
System config value preview_imaginary_url set to string http://nextcloud-aio-imaginary:9000
System config value preview_imaginary_key set to string REMOVED
{
    "search_platform": "OCA\\FullTextSearch_Elasticsearch\\Platform\\ElasticSearchPlatform",
    "app_navigation": "0",
    "provider_indexed": "",
    "cron_err_reset": "1733137316",
    "tick_ttl": "1800",
    "collection_indexing_list": "50",
    "migration_24": "1",
    "collection_internal": "local"
}
{
    "elastic_host": "http:\/\/elastic:REMOVED@nextcloud-aio-fulltextsearch:9200",
    "elastic_index": "nextcloud-aio",
    "fields_limit": "10000",
    "es_ver_below66": "0",
    "elastic_logger_enabled": "true",
    "analyzer_tokenizer": "standard",
    "allow_self_signed_cert": "false"
}
{
    "files_local": "1",
    "files_external": "0",
    "files_group_folders": "1",
    "files_encrypted": "0",
    "files_federated": "0",
    "files_size": "50",
    "files_pdf": "1",
    "files_office": "1",
    "files_image": "0",
    "files_audio": "0",
    "files_chunk_size": "2",
    "files_open_result_directly": "0"
}
Config value were not updated
Config value were not updated
memories already installed
memories already enabled
System config value memories.vod.external set to boolean true
System config value memories.vod.connect set to string nextcloud-aio-memories:47788

Database logs:

chmod: /var/run/postgresql: Operation not permitted
2024-12-04 12:33:26.402 UTC [14] LOG:  starting PostgreSQL 16.4 on x86_64-pc-linux-musl, compiled by gcc (Alpine 13.2.1_git20240309) 13.2.1 20240309, 64-bit
2024-12-04 12:33:26.402 UTC [14] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2024-12-04 12:33:26.402 UTC [14] LOG:  listening on IPv6 address "::", port 5432
2024-12-04 12:33:26.485 UTC [14] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-12-04 12:33:26.545 UTC [24] LOG:  database system was shut down at 2024-12-04 04:01:41 UTC
2024-12-04 12:33:26.580 UTC [14] LOG:  database system is ready to accept connections
2024-12-04 13:47:34.768 UTC [1399] ERROR:  duplicate key value violates unique constraint "tbr_room_id"
2024-12-04 13:47:34.768 UTC [1399] DETAIL:  Key (room_id)=(301) already exists.
2024-12-04 13:47:34.768 UTC [1399] STATEMENT:  INSERT INTO "oc_talk_bridges" ("room_id", "json_values", "enabled", "pid") VALUES($1, $2, $3, $4)
2024-12-04 14:07:37.295 UTC [1960] ERROR:  duplicate key value violates unique constraint "tbr_room_id"
2024-12-04 14:07:37.295 UTC [1960] DETAIL:  Key (room_id)=(301) already exists.
2024-12-04 14:07:37.295 UTC [1960] STATEMENT:  INSERT INTO "oc_talk_bridges" ("room_id", "json_values", "enabled", "pid") VALUES($1, $2, $3, $4)
2024-12-04 14:22:44.114 UTC [2548] ERROR:  duplicate key value violates unique constraint "tbr_room_id"
2024-12-04 14:22:44.114 UTC [2548] DETAIL:  Key (room_id)=(301) already exists.
2024-12-04 14:22:44.114 UTC [2548] STATEMENT:  INSERT INTO "oc_talk_bridges" ("room_id", "json_values", "enabled", "pid") VALUES($1, $2, $3, $4)
Setting postgres values...

PostgreSQL Database directory appears to contain a database; Skipping initialization

Two things that still work blazingly fast too:

  • Getting redirected to the Authentik login page.
  • Calling cloud.mydomain.com/login?direct=1
  • Whatever page OnlyOffice tries to access and display it’s error that OO isn’t configured.

Then speeds absolutely drop.

Some custom app was at fault. I removed them all and simply reinstalled them.

One of:

assistant
context_chat
end_to_end_encryption
gpxmotion // was installed but disabled
gpxpod // was installed but disabled
integration_openai
integration_youtube
onlyoffice
phonetrack // was installed but disabled
recognize
3 Likes

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.