truecharts / public

Community Helm Chart Repository
https://truecharts.org
GNU Affero General Public License v3.0
1.14k stars 617 forks source link

error: 'Unknown server host 'nginx-proxy-manager-mariadb' (-2)' #7911

Closed kubo6472 closed 1 year ago

kubo6472 commented 1 year ago

App Name

nginx-proxy-manager

SCALE Version

22.12.1

App Version

2.9.19_3.1.12

Application Events

2023-04-10 13:18:14
Created container db-wait
2023-04-10 13:18:14
Created container nginx-proxy-manager-mariadb
2023-04-10 13:18:14
Started container db-wait
2023-04-10 13:18:14
Started container nginx-proxy-manager-mariadb
2023-04-10 13:18:13
Add eth0 [172.16.1.99/16] from ix-net
2023-04-10 13:18:13
Container image "tccr.io/truecharts/ubuntu:jammy-20221101@sha256:4b9475e08c5180d4e7417dc6a18a26dcce7691e4311e5353dbb952645c5ff43f" already present on machine
2023-04-10 13:18:12
Add eth0 [172.16.1.98/16] from ix-net
2023-04-10 13:18:12
Container image "tccr.io/truecharts/mariadb:10.11.2@sha256:fc01102eef1de92155b5097636ef738700c8bef1735f52a397b1505cbf455c0f" already present on machine
2023-04-10 13:18:10
Created pod: nginx-proxy-manager-5b7697c5d-nt5p4
2023-04-10 13:18:10
Successfully assigned ix-nginx-proxy-manager/nginx-proxy-manager-5b7697c5d-nt5p4 to ix-truenas
2023-04-10 13:18:10
Successfully assigned ix-nginx-proxy-manager/nginx-proxy-manager-mariadb-0 to ix-truenas
2023-04-10 13:11:30
Scaled down replica set nginx-proxy-manager-5b7697c5d to 0 from 1
2023-04-10 13:11:30
Stopping container db-wait
2023-04-10 13:11:30
Deleted pod: nginx-proxy-manager-5b7697c5d-fz7ck
2023-04-10 13:11:30
Stopping container nginx-proxy-manager-mariadb
2023-04-10 13:11:30
delete Pod nginx-proxy-manager-mariadb-0 in StatefulSet nginx-proxy-manager-mariadb successful
2023-04-10 12:35:35
Add eth0 [172.16.1.92/16] from ix-net
2023-04-10 12:35:35
Container image "tccr.io/truecharts/ubuntu:jammy-20221101@sha256:4b9475e08c5180d4e7417dc6a18a26dcce7691e4311e5353dbb952645c5ff43f" already present on machine
2023-04-10 12:35:35
Created container nginx-proxy-manager-mariadb
2023-04-10 12:35:35
Created container db-wait
2023-04-10 12:35:35
Started container nginx-proxy-manager-mariadb
2023-04-10 12:35:35
Started container db-wait
2023-04-10 12:35:34
Add eth0 [172.16.1.91/16] from ix-net
2023-04-10 12:35:34
Container image "tccr.io/truecharts/mariadb:10.11.2@sha256:fc01102eef1de92155b5097636ef738700c8bef1735f52a397b1505cbf455c0f" already present on machine
2023-04-10 12:35:32
Created pod: nginx-proxy-manager-5b7697c5d-fz7ck
2023-04-10 12:35:32
Successfully assigned ix-nginx-proxy-manager/nginx-proxy-manager-mariadb-0 to ix-truenas
2023-04-10 12:35:32
Successfully assigned ix-nginx-proxy-manager/nginx-proxy-manager-5b7697c5d-fz7ck to ix-truenas
2023-04-10 12:35:32
Scaled up replica set nginx-proxy-manager-5b7697c5d to 1 from 0
2023-04-10 12:35:32
create Pod nginx-proxy-manager-mariadb-0 in StatefulSet nginx-proxy-manager-mariadb successful

Application Logs

mariadb 11:18:14.38 
mariadb 11:18:14.38 Welcome to the Bitnami mariadb container
mariadb 11:18:14.38 Subscribe to project updates by watching https://github.com/bitnami/containers
mariadb 11:18:14.38 Submit issues and feature requests at https://github.com/bitnami/containers/issues
mariadb 11:18:14.38 
mariadb 11:18:14.38 INFO  ==> ** Starting MariaDB setup **
mariadb 11:18:14.40 INFO  ==> Validating settings in MYSQL_*/MARIADB_* env vars
mariadb 11:18:14.40 INFO  ==> Initializing mariadb database
mariadb 11:18:14.42 INFO  ==> Updating 'my.cnf' with custom configuration
mariadb 11:18:14.43 INFO  ==> Setting user option
mariadb 11:18:14.77 INFO  ==> Setting slow_query_log option
mariadb 11:18:14.78 INFO  ==> Setting long_query_time option
mariadb 11:18:14.79 INFO  ==> Using persisted data
mariadb 11:18:14.81 INFO  ==> Running mysql_upgrade
mariadb 11:18:14.82 INFO  ==> Starting mariadb in background
2023-04-10 11:18:14 0 [Note] Starting MariaDB 10.11.2-MariaDB source revision cafba8761af55ae16cc69c9b53a341340a845b36 as process 68
2023-04-10 11:18:14 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2023-04-10 11:18:14 0 [Note] InnoDB: Number of transaction pools: 1
2023-04-10 11:18:14 0 [Note] InnoDB: Using generic crc32 instructions
2023-04-10 11:18:14 0 [Note] mysqld: O_TMPFILE is not supported on /opt/bitnami/mariadb/tmp (disabling future attempts)
2023-04-10 11:18:14 0 [Note] InnoDB: Using Linux native AIO
2023-04-10 11:18:14 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
2023-04-10 11:18:14 0 [Note] InnoDB: Completed initialization of buffer pool
2023-04-10 11:18:14 0 [Note] InnoDB: Buffered log writes (block size=512 bytes)
2023-04-10 11:18:14 0 [Note] InnoDB: 128 rollback segments are active.
2023-04-10 11:18:14 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
2023-04-10 11:18:14 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
2023-04-10 11:18:14 0 [Note] InnoDB: log sequence number 471417; transaction id 3407
2023-04-10 11:18:14 0 [Note] Plugin 'FEEDBACK' is disabled.
2023-04-10 11:18:14 0 [Note] InnoDB: Loading buffer pool(s) from /bitnami/mariadb/data/ib_buffer_pool
2023-04-10 11:18:14 0 [Note] InnoDB: Buffer pool(s) load completed at 230410 11:18:14
2023-04-10 11:18:14 0 [Note] Server socket created on IP: '127.0.0.1'.
2023-04-10 11:18:14 0 [Warning] 'proxies_priv' entry '@% root@nginx-proxy-manager-mariadb-0' ignored in --skip-name-resolve mode.
2023-04-10 11:18:14 0 [Note] /opt/bitnami/mariadb/sbin/mysqld: ready for connections.
Version: '10.11.2-MariaDB'  socket: '/opt/bitnami/mariadb/tmp/mysql.sock'  port: 3306  Source distribution
2023-04-10 11:18:47 27 [Warning] 'proxies_priv' entry '@% root@nginx-proxy-manager-mariadb-0' ignored in --skip-name-resolve mode.
find: '/docker-entrypoint-startdb.d/': No such file or directory
mariadb 11:18:47.78 INFO  ==> Stopping mariadb
2023-04-10 11:18:47 0 [Note] /opt/bitnami/mariadb/sbin/mysqld (initiated by: unknown): Normal shutdown
2023-04-10 11:18:47 0 [Note] InnoDB: FTS optimize thread exiting.
2023-04-10 11:18:47 0 [Note] InnoDB: Starting shutdown...
2023-04-10 11:18:47 0 [Note] InnoDB: Dumping buffer pool(s) to /bitnami/mariadb/data/ib_buffer_pool
2023-04-10 11:18:47 0 [Note] InnoDB: Buffer pool(s) dump completed at 230410 11:18:47
2023-04-10 11:18:48 0 [Note] InnoDB: Removed temporary tablespace data file: "./ibtmp1"
2023-04-10 11:18:48 0 [Note] InnoDB: Shutdown completed; log sequence number 471417; transaction id 3426
2023-04-10 11:18:48 0 [Note] /opt/bitnami/mariadb/sbin/mysqld: Shutdown complete
mariadb 11:18:48.79 INFO  ==> ** MariaDB setup finished! **
mariadb 11:18:48.81 INFO  ==> ** Starting MariaDB **
2023-04-10 11:18:48 0 [Note] Starting MariaDB 10.11.2-MariaDB source revision cafba8761af55ae16cc69c9b53a341340a845b36 as process 1
2023-04-10 11:18:48 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2023-04-10 11:18:48 0 [Note] InnoDB: Number of transaction pools: 1
2023-04-10 11:18:48 0 [Note] InnoDB: Using generic crc32 instructions
2023-04-10 11:18:48 0 [Note] mysqld: O_TMPFILE is not supported on /opt/bitnami/mariadb/tmp (disabling future attempts)
2023-04-10 11:18:48 0 [Note] InnoDB: Using Linux native AIO
2023-04-10 11:18:48 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
2023-04-10 11:18:48 0 [Note] InnoDB: Completed initialization of buffer pool
2023-04-10 11:18:48 0 [Note] InnoDB: Buffered log writes (block size=512 bytes)
2023-04-10 11:18:48 0 [Note] InnoDB: 128 rollback segments are active.
2023-04-10 11:18:48 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
2023-04-10 11:18:48 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
2023-04-10 11:18:48 0 [Note] InnoDB: log sequence number 471417; transaction id 3407
2023-04-10 11:18:48 0 [Note] InnoDB: Loading buffer pool(s) from /bitnami/mariadb/data/ib_buffer_pool
2023-04-10 11:18:48 0 [Note] Plugin 'FEEDBACK' is disabled.
2023-04-10 11:18:48 0 [Note] InnoDB: Buffer pool(s) load completed at 230410 11:18:48
2023-04-10 11:18:48 0 [Note] Server socket created on IP: '0.0.0.0'.
2023-04-10 11:18:48 0 [Warning] 'proxies_priv' entry '@% root@nginx-proxy-manager-mariadb-0' ignored in --skip-name-resolve mode.
2023-04-10 11:18:48 0 [Note] /opt/bitnami/mariadb/sbin/mysqld: ready for connections.
Version: '10.11.2-MariaDB'  socket: '/opt/bitnami/mariadb/tmp/mysql.sock'  port: 3306  Source distribution

Application Configuration

All default options, IPv6 disabled

Describe the bug

I installed portainer for kubernetes on truescale host and got the logs from there, I don't really understand why the DB wait is logging this:

Executing DB waits...
mysqladmin: connect to server at 'nginx-proxy-manager-mariadb' failed
error: 'Unknown server host 'nginx-proxy-manager-mariadb' (-2)'
Check that mariadbd is running on nginx-proxy-manager-mariadb and that the port is 3306.
You can check this by doing 'telnet nginx-proxy-manager-mariadb 3306'
mysqladmin: connect to server at 'nginx-proxy-manager-mariadb' failed

but I haven't found a fix, yet...

To Reproduce

  1. Start an nginx-proxy-manager on my host.
  2. It will be stuck at deploying 1/2
  3. Look at portainer to gain insight
  4. See db-wait terminated and nginx-proxy-manager in "waiting" state

Expected Behavior

Start, work, anything but this

Screenshots

not applicable

Additional Context

I'm sorry if there was such issue reported, I tried searching, but I'm not good at it. Sorry for possibly wasting your time in advance.

I've read and agree with the following

kubo6472 commented 1 year ago

Your TrueScale version doesn't reflect the latest one. Fixed by truecharts/.github#16

kubo6472 commented 1 year ago

Possibly related bitnami/containers#1554

kubo6472 commented 1 year ago

image TrueNAS Scale Console

PrivatePuffin commented 1 year ago

Possibly related bitnami/containers#1554

Not likely to be related.

PrivatePuffin commented 1 year ago

As this has not gone through a support ticket and got also ticket spammed into upstream containers without any reason im locking this.

im also taking into account that we’re gonna release our refactor soon invalidating this issue.

StevenMcElligott commented 1 year ago

This was fixed in a release with the MariaDB bug fixed