Skip to content

Could not connect to the database server: SQLSTATE[HY000] [2002] Connection refused #177

@harryqt

Description

@harryqt

Copied examples/compose directory, and ran docker compose up

geoip-updater-1  | Tue, 06 May 2025 12:36:26 CEST INF Starting geoip-updater v1.11.0
geoip-updater-1  | Tue, 06 May 2025 12:36:26 CEST FTL Cannot initialize geoip-updater error="License key required"
redis-1          | 1:C 06 May 10:36:26.824 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis-1          | 1:C 06 May 10:36:26.824 # Redis version=4.0.14, bits=64, commit=00000000, modified=0, pid=1, just started
redis-1          | 1:C 06 May 10:36:26.824 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
redis-1          | 1:M 06 May 10:36:26.825 * Running mode=standalone, port=6379.
redis-1          | 1:M 06 May 10:36:26.825 # Server initialized
redis-1          | 1:M 06 May 10:36:26.825 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
redis-1          | 1:M 06 May 10:36:26.825 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
redis-1          | 1:M 06 May 10:36:26.825 * Ready to accept connections
db-1             | 2025-05-06 12:36:26+02:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.11.11+maria~ubu2204 started.
geoip-updater-1 exited with code 1
msmtpd-1         | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
msmtpd-1         | [s6-init] ensuring user provided files have correct perms...exited 0.
msmtpd-1         | [fix-attrs.d] applying ownership & permissions fixes...
msmtpd-1         | [fix-attrs.d] done.
msmtpd-1         | [cont-init.d] executing container initialization scripts...
msmtpd-1         | [cont-init.d] 00-fix-logs.sh: executing... 
msmtpd-1         | [cont-init.d] 00-fix-logs.sh: exited 0.
msmtpd-1         | [cont-init.d] 01-fix-uidgid.sh: executing... 
msmtpd-1         | [cont-init.d] 01-fix-uidgid.sh: exited 0.
msmtpd-1         | [cont-init.d] 02-config.sh: executing... 
msmtpd-1         | Setting timezone to Europe/Paris...
msmtpd-1         | Creating configuration...
msmtpd-1         | [cont-init.d] 02-config.sh: exited 0.
msmtpd-1         | [cont-init.d] 03-create-service.sh: executing... 
msmtpd-1         | [cont-init.d] 03-create-service.sh: exited 0.
msmtpd-1         | [cont-init.d] ~-socklog: executing... 
db-1             | 2025-05-06 12:36:26+02:00 [Warn] [Entrypoint]: /sys/fs/cgroup///memory.pressure not writable, functionality unavailable to MariaDB
db-1             | 2025-05-06 12:36:26+02:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
db-1             | 2025-05-06 12:36:26+02:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.11.11+maria~ubu2204 started.
matomo-1         | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
msmtpd-1         | [cont-init.d] ~-socklog: exited 0.
matomo-1         | [s6-init] ensuring user provided files have correct perms...exited 0.
msmtpd-1         | [cont-init.d] done.
matomo-1         | [fix-attrs.d] applying ownership & permissions fixes...
msmtpd-1         | [services.d] starting services
matomo-1         | [fix-attrs.d] done.
matomo-1         | [cont-init.d] executing container initialization scripts...
matomo-1         | [cont-init.d] 00-fix-logs.sh: executing... 
matomo-1         | [cont-init.d] 00-fix-logs.sh: exited 0.
matomo-1         | [cont-init.d] 01-fix-uidgid.sh: executing... 
msmtpd-1         | [services.d] done.
matomo-1         | [cont-init.d] 01-fix-uidgid.sh: exited 0.
matomo-1         | [cont-init.d] 02-fix-perms.sh: executing... 
matomo-1         | Fixing perms...
geoip-updater-1 exited with code 1
matomo-1         | [cont-init.d] 02-fix-perms.sh: exited 0.
cron-1           | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
matomo-1         | [cont-init.d] 03-config.sh: executing... 
matomo-1         | Setting timezone to Europe/Paris...
matomo-1         | Setting PHP-FPM configuration...
matomo-1         | Setting PHP INI configuration...
matomo-1         | Setting OpCache configuration...
matomo-1         | Setting Nginx configuration...
matomo-1         | Symlink GeoLite2-ASN.mmdb to Matomo
matomo-1         | Symlink GeoLite2-City.mmdb to Matomo
matomo-1         | Symlink GeoLite2-Country.mmdb to Matomo
matomo-1         | Checking Matomo config...
matomo-1         | Checking Matomo plugins folder...
matomo-1         | Checking Matomo js folder...
db-1             | 2025-05-06 12:36:27+02:00 [Note] [Entrypoint]: MariaDB upgrade not required
db-1             | 2025-05-06 12:36:27 0 [Note] Starting MariaDB 10.11.11-MariaDB-ubu2204 source revision e69f8cae1a15e15b9e4f5e0f8497e1f17bdc81a4 server_uid exbDbOtyxu6in/wvzCArLuMuNus= as process 1
cron-1           | [s6-init] ensuring user provided files have correct perms...exited 0.
cron-1           | [fix-attrs.d] applying ownership & permissions fixes...
cron-1           | [fix-attrs.d] done.
cron-1           | [cont-init.d] executing container initialization scripts...
cron-1           | [cont-init.d] 00-fix-logs.sh: executing... 
db-1             | 2025-05-06 12:36:27 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
db-1             | 2025-05-06 12:36:27 0 [Note] InnoDB: Number of transaction pools: 1
db-1             | 2025-05-06 12:36:27 0 [Note] InnoDB: Using ARMv8 crc32 + pmull instructions
db-1             | 2025-05-06 12:36:27 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
db-1             | 2025-05-06 12:36:27 0 [Warning] mariadbd: io_uring_queue_init() failed with errno 1
db-1             | 2025-05-06 12:36:27 0 [Warning] InnoDB: liburing disabled: falling back to innodb_use_native_aio=OFF
db-1             | 2025-05-06 12:36:27 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
db-1             | 2025-05-06 12:36:27 0 [Note] InnoDB: Completed initialization of buffer pool
db-1             | 2025-05-06 12:36:27 0 [Note] InnoDB: File system buffers for log disabled (block size=512 bytes)
cron-1           | [cont-init.d] 00-fix-logs.sh: exited 0.
cron-1           | [cont-init.d] 01-fix-uidgid.sh: executing... 
cron-1           | [cont-init.d] 01-fix-uidgid.sh: exited 0.
matomo-1         | Checking Matomo user-misc folder...
cron-1           | [cont-init.d] 02-fix-perms.sh: executing... 
db-1             | 2025-05-06 12:36:27 0 [Note] InnoDB: End of log at LSN=47092
cron-1           | Fixing perms...
matomo-1         | Checking Matomo tmp folder...
matomo-1         | [cont-init.d] 03-config.sh: exited 0.
matomo-1         | [cont-init.d] 04-svc-main.sh: executing... 
matomo-1         | Setting Matomo log level to WARN...
db-1             | 2025-05-06 12:36:27 0 [Note] InnoDB: 128 rollback segments are active.
db-1             | 2025-05-06 12:36:27 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
db-1             | 2025-05-06 12:36:27 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
db-1             | 2025-05-06 12:36:27 0 [Note] InnoDB: log sequence number 47092; transaction id 15
db-1             | 2025-05-06 12:36:27 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
db-1             | 2025-05-06 12:36:27 0 [Note] Plugin 'FEEDBACK' is disabled.
db-1             | 2025-05-06 12:36:27 0 [Note] InnoDB: Buffer pool(s) load completed at 250506 12:36:27
db-1             | 2025-05-06 12:36:27 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
db-1             | 2025-05-06 12:36:27 0 [Note] Server socket created on IP: '0.0.0.0'.
db-1             | 2025-05-06 12:36:27 0 [Note] Server socket created on IP: '::'.
db-1             | 2025-05-06 12:36:27 0 [Note] mariadbd: ready for connections.
db-1             | Version: '10.11.11-MariaDB-ubu2204'  socket: '/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
cron-1           | [cont-init.d] 02-fix-perms.sh: exited 0.
cron-1           | [cont-init.d] 03-config.sh: executing... 
cron-1           | Setting timezone to Europe/Paris...
cron-1           | Setting PHP-FPM configuration...
cron-1           | Setting PHP INI configuration...
cron-1           | Setting OpCache configuration...
cron-1           | Setting Nginx configuration...
cron-1           | Symlink GeoLite2-ASN.mmdb to Matomo
cron-1           | Symlink GeoLite2-City.mmdb to Matomo
cron-1           | Symlink GeoLite2-Country.mmdb to Matomo
cron-1           | Checking Matomo config...
cron-1           | Checking Matomo plugins folder...
cron-1           | Checking Matomo js folder...
cron-1           | Checking Matomo user-misc folder...
cron-1           | Checking Matomo tmp folder...
cron-1           | [cont-init.d] 03-config.sh: exited 0.
cron-1           | [cont-init.d] 04-svc-main.sh: executing... 
cron-1           | [cont-init.d] 04-svc-main.sh: exited 0.
cron-1           | [cont-init.d] 05-svc-cron.sh: executing... 
cron-1           | >>
cron-1           | >> Sidecar cron container detected for Matomo
cron-1           | >>
cron-1           | Creating Matomo archive cron task with the following period fields: 0 * * * *
cron-1           | Fixing crontabs permissions...
cron-1           | [cont-init.d] 05-svc-cron.sh: exited 0.
cron-1           | [cont-init.d] ~-socklog: executing... 
matomo-1         | Setting [log] log_level = "WARN"... done.
matomo-1         | Upgrading and setting Matomo configuration...
cron-1           | [cont-init.d] ~-socklog: exited 0.
cron-1           | [cont-init.d] done.
cron-1           | [services.d] starting services
cron-1           | crond: crond (busybox 1.37.0) started, log level 8
cron-1           | [services.d] done.
geoip-updater-1  | Tue, 06 May 2025 12:36:26 CEST INF Starting geoip-updater v1.11.0
geoip-updater-1  | Tue, 06 May 2025 12:36:26 CEST FTL Cannot initialize geoip-updater error="License key required"
geoip-updater-1  | Tue, 06 May 2025 12:36:27 CEST INF Starting geoip-updater v1.11.0
geoip-updater-1  | Tue, 06 May 2025 12:36:27 CEST FTL Cannot initialize geoip-updater error="License key required"
geoip-updater-1 exited with code 1
geoip-updater-1  | Tue, 06 May 2025 12:36:27 CEST INF Starting geoip-updater v1.11.0
geoip-updater-1  | Tue, 06 May 2025 12:36:27 CEST FTL Cannot initialize geoip-updater error="License key required"
matomo-1         | ERROR     [2025-05-06 10:36:27] 306  Uncaught exception: /var/www/matomo/libs/Zend/Db/Adapter/Pdo/Abstract.php(144): SQLSTATE[HY000] [2002] No such file or directory [Query: , CLI mode: 1]
matomo-1         | 
matomo-1         | In Abstract.php line 144:
matomo-1         |                                                     
matomo-1         |   SQLSTATE[HY000] [2002] No such file or directory  
matomo-1         |                                                     
matomo-1         | 
matomo-1         | In Abstract.php line 124:
matomo-1         |                                                     
matomo-1         |   SQLSTATE[HY000] [2002] No such file or directory  
matomo-1         |                                                     
matomo-1         | 
matomo-1         | core:update [--yes] [--skip-cache-clear]
matomo-1         | 
matomo-1         | Setting [General] minimum_memory_limit = "-1"... done.
matomo-1         | [cont-init.d] 04-svc-main.sh: exited 0.
matomo-1         | [cont-init.d] 05-svc-cron.sh: executing... 
matomo-1         | [cont-init.d] 05-svc-cron.sh: exited 0.
matomo-1         | [cont-init.d] ~-socklog: executing... 
matomo-1         | [cont-init.d] ~-socklog: exited 0.
matomo-1         | [cont-init.d] done.
matomo-1         | [services.d] starting services
matomo-1         | 2025/05/06 12:36:27 [notice] 545#545: using the "epoll" event method
matomo-1         | 2025/05/06 12:36:27 [notice] 545#545: nginx/1.26.3
matomo-1         | 2025/05/06 12:36:27 [notice] 545#545: OS: Linux 6.8.0-50-generic
matomo-1         | 2025/05/06 12:36:27 [notice] 545#545: getrlimit(RLIMIT_NOFILE): 1048576:1048576
matomo-1         | 2025/05/06 12:36:27 [notice] 545#545: start worker processes
matomo-1         | 2025/05/06 12:36:27 [notice] 545#545: start worker process 570
matomo-1         | 2025/05/06 12:36:27 [notice] 545#545: start worker process 571
matomo-1         | 2025/05/06 12:36:27 [notice] 545#545: start worker process 573
matomo-1         | 2025/05/06 12:36:27 [notice] 545#545: start worker process 574
matomo-1         | [services.d] done.
matomo-1         | [06-May-2025 12:36:27] NOTICE: fpm is running, pid 547
matomo-1         | [06-May-2025 12:36:27] NOTICE: ready to handle connections
geoip-updater-1  | Tue, 06 May 2025 12:36:26 CEST INF Starting geoip-updater v1.11.0
geoip-updater-1  | Tue, 06 May 2025 12:36:26 CEST FTL Cannot initialize geoip-updater error="License key required"
geoip-updater-1  | Tue, 06 May 2025 12:36:27 CEST INF Starting geoip-updater v1.11.0

Image

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions