Hello everyone,
I’ve been running Netxcloud on a docker platform for few weeks or months.
Currently, It is not running properly. The issue is always the same.
Using the URL https://nextcloud.mydomain.tld redirects me to the dashboard page. And then, whatever the link I click, I get an 504 Gateway Time-out error.
The details:
NAME="Ubuntu"
VERSION="20.04.1 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.1 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
- Docker version 20.10.1, build 831ebea
I manage the docker stacks using portainer 2.0.0. Here is my stack:
*version: '2'*
*volumes:*
* nextcloud_mariadb:*
* external: true*
* nextcloud_app:*
* external: true*
*services:*
* db:*
* image: mariadb:10.5.8*
* command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW*
* restart: always*
* volumes:*
* - nextcloud_mariadb:/var/lib/mysql*
* container_name: nextcloud_mariadb*
* environment:*
* - MYSQL_ROOT_PASSWORD=MyBigRootPassword*
* - MYSQL_PASSWORD=MyBigUserPassword*
* - MYSQL_DATABASE=nextcloud_db*
* - MYSQL_USER=nextcloud_user*
* app:*
* image: nextcloud:20.0.4*
* ports:*
* - 8765:80*
* links:*
* - db*
* container_name: nextcloud_app*
* environment:*
* - MYSQL_PASSWORD=MyBigUserPassword*
* - MYSQL_DATABASE=nextcloud_db*
* - MYSQL_USER=nextcloud_user*
* - MYSQL_HOST=nextcloud_mariadb*
* volumes:*
* - nextcloud_app:/var/www/html*
* restart: always*
Here are the logs when restarting the stack:
- MariaDB:
2020-12-30 11:29:20+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 1:10.5.8+maria~focal started.,
2020-12-30 11:29:20+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql',
2020-12-30 11:29:20+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 1:10.5.8+maria~focal started.,
2020-12-30 11:29:20 0 [Note] mysqld (mysqld 10.5.8-MariaDB-1:10.5.8+maria~focal) starting as process 1 ...,
2020-12-30 11:29:20 0 [Warning] You need to use --log-bin to make --binlog-format work.,
2020-12-30 11:29:20 0 [Note] InnoDB: Using Linux native AIO,
2020-12-30 11:29:20 0 [Note] InnoDB: Uses event mutexes,
2020-12-30 11:29:20 0 [Note] InnoDB: Compressed tables use zlib 1.2.11,
2020-12-30 11:29:20 0 [Note] InnoDB: Number of pools: 1,
2020-12-30 11:29:20 0 [Note] InnoDB: Using generic crc32 instructions,
2020-12-30 11:29:20 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts),
2020-12-30 11:29:20 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728,
2020-12-30 11:29:20 0 [Note] InnoDB: Completed initialization of buffer pool,
2020-12-30 11:29:20 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().,
2020-12-30 11:29:20 0 [Note] InnoDB: 128 rollback segments are active.,
2020-12-30 11:29:20 0 [Note] InnoDB: Creating shared tablespace for temporary tables,
2020-12-30 11:29:20 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...,
2020-12-30 11:29:20 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.,
2020-12-30 11:29:20 0 [Note] InnoDB: 10.5.8 started; log sequence number 3051875073; transaction id 1787731,
2020-12-30 11:29:20 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool,
2020-12-30 11:29:20 0 [Note] Plugin 'FEEDBACK' is disabled.,
2020-12-30 11:29:20 0 [Note] Server socket created on IP: '::'.,
2020-12-30 11:29:20 0 [Warning] 'proxies_priv' entry '@% root@d5ae2ff4247a' ignored in --skip-name-resolve mode.,
2020-12-30 11:29:20 0 [Note] Reading of all Master_info entries succeeded,
2020-12-30 11:29:20 0 [Note] Added new Master_info '' to hash table,
2020-12-30 11:29:20 0 [Note] mysqld: ready for connections.,
Version: '10.5.8-MariaDB-1:10.5.8+maria~focal' socket: '/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution,
2020-12-30 11:29:21 0 [Note] InnoDB: Buffer pool(s) load completed at 201230 11:29:21,
- Nextcloud:
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.21.0.3. Set the 'ServerName' directive globally to suppress this message,
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.21.0.3. Set the 'ServerName' directive globally to suppress this message,
[Wed Dec 30 11:29:21.099045 2020] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.38 (Debian) PHP/7.4.13 configured -- resuming normal operations,
[Wed Dec 30 11:29:21.099103 2020] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND',
192.168.111.1 - user [30/Dec/2020:11:29:21 +0000] "GET /ocs/v2.php/core/navigation/apps?absolute=true&format=json HTTP/1.1" 304 430 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:29:21 +0000] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 1184 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:29:36 +0000] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 966 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:29:40 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications?format=json HTTP/1.1" 304 230 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:29:52 +0000] "GET /ocs/v2.php/core/navigation/apps?absolute=true&format=json HTTP/1.1" 304 232 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:29:52 +0000] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 986 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:30:06 +0000] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 966 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:30:24 +0000] "GET /ocs/v2.php/core/navigation/apps?absolute=true&format=json HTTP/1.1" 304 232 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:30:24 +0000] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 986 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:30:36 +0000] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 966 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:30:56 +0000] "GET /ocs/v2.php/core/navigation/apps?absolute=true&format=json HTTP/1.1" 304 232 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:30:56 +0000] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 986 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:31:06 +0000] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 966 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:31:28 +0000] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 986 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:31:28 +0000] "GET /ocs/v2.php/core/navigation/apps?absolute=true&format=json HTTP/1.1" 304 232 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:31:36 +0000] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 966 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:32:00 +0000] "GET /ocs/v2.php/core/navigation/apps?absolute=true&format=json HTTP/1.1" 304 232 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:32:00 +0000] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 986 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:32:06 +0000] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 966 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:32:32 +0000] "GET /ocs/v2.php/core/navigation/apps?absolute=true&format=json HTTP/1.1" 304 232 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:32:32 +0000] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 986 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:32:36 +0000] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 966 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:33:04 +0000] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 986 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:33:04 +0000] "GET /ocs/v2.php/core/navigation/apps?absolute=true&format=json HTTP/1.1" 304 232 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:33:06 +0000] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 966 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:33:36 +0000] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 986 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:33:36 +0000] "GET /ocs/v2.php/core/navigation/apps?absolute=true&format=json HTTP/1.1" 304 232 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:33:36 +0000] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 966 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:34:06 +0000] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 966 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:34:08 +0000] "GET /ocs/v2.php/core/navigation/apps?absolute=true&format=json HTTP/1.1" 304 232 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:34:08 +0000] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 986 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:34:36 +0000] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 966 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:34:40 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications?format=json HTTP/1.1" 304 230 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:34:40 +0000] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 986 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:34:40 +0000] "GET /ocs/v2.php/core/navigation/apps?absolute=true&format=json HTTP/1.1" 304 232 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:35:06 +0000] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 966 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:35:12 +0000] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 986 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:35:12 +0000] "GET /ocs/v2.php/core/navigation/apps?absolute=true&format=json HTTP/1.1" 304 232 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:35:36 +0000] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 966 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:35:44 +0000] "GET /ocs/v2.php/core/navigation/apps?absolute=true&format=json HTTP/1.1" 304 232 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:35:44 +0000] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 986 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:36:06 +0000] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 966 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:36:16 +0000] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 986 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:36:16 +0000] "GET /ocs/v2.php/core/navigation/apps?absolute=true&format=json HTTP/1.1" 304 232 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:36:36 +0000] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 966 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:36:48 +0000] "GET /ocs/v2.php/core/navigation/apps?absolute=true&format=json HTTP/1.1" 304 232 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:36:48 +0000] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 986 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:37:06 +0000] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 966 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:37:20 +0000] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 986 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:37:20 +0000] "GET /ocs/v2.php/core/navigation/apps?absolute=true&format=json HTTP/1.1" 304 232 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:37:36 +0000] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 966 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:37:52 +0000] "GET /ocs/v2.php/core/navigation/apps?absolute=true&format=json HTTP/1.1" 304 232 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:37:52 +0000] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 986 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
192.168.111.1 - user [30/Dec/2020:11:38:06 +0000] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 966 "-" "Mozilla/5.0 (Linux) mirall/3.0.3git (build 3795) (Nextcloud)",
I’m not able to figure out what is wrong, and why I get this 504 error.
Should I increase my logs’ verbosity ?
Any help appreciated.