TeamSpeak-Systems / teamspeak-linux-docker-images

docker build files for TeamSpeak servers
Other
114 stars 52 forks source link

Errors using docker-compose #48

Open VanHogan opened 4 years ago

VanHogan commented 4 years ago

I can't set up a ts instance with docker-compose:

$ docker-compose -f docker-compose.yml up --remove-orphans Starting ts3sinusbot_db_1 ... done Recreating ts3sinusbot_teamspeak_1 ... done Attaching to ts3sinusbot_db_1, ts3sinusbot_teamspeak_1 db_1 | 2020-02-10 14:49:31+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 1:10.4.12+maria~bionic started. db_1 | 2020-02-10 14:49:31+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql' db_1 | 2020-02-10 14:49:31+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 1:10.4.12+maria~bionic started. teamspeak_1 | 2020-02-10 14:49:31.893272|INFO |ServerLibPriv | |TeamSpeak 3 Server 3.11.0 (2020-01-13 08:12:37) teamspeak_1 | 2020-02-10 14:49:31.893414|INFO |ServerLibPriv | |SystemInformation: Linux 4.15.0 #1 SMP Mon Dec 9 19:36:21 MSK 2019 x86_64 Binary: 64bit teamspeak_1 | 2020-02-10 14:49:31.893440|INFO |ServerLibPriv | |Using hardware aes teamspeak_1 | 2020-02-10 14:49:31.894101|INFO |DatabaseQuery | |dbPlugin name: MariaDB plugin, version 3, (c)TeamSpeak Systems GmbH teamspeak_1 | 2020-02-10 14:49:31.894142|INFO |DatabaseQuery | |dbPlugin version: 2 db_1 | 2020-02-10 14:49:32 0 [Note] mysqld (mysqld 10.4.12-MariaDB-1:10.4.12+maria~bionic) starting as process 1 ... db_1 | 2020-02-10 14:49:32 0 [Note] InnoDB: Using Linux native AIO db_1 | 2020-02-10 14:49:32 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins db_1 | 2020-02-10 14:49:32 0 [Note] InnoDB: Uses event mutexes db_1 | 2020-02-10 14:49:32 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 db_1 | 2020-02-10 14:49:32 0 [Note] InnoDB: Number of pools: 1 db_1 | 2020-02-10 14:49:32 0 [Note] InnoDB: Using SSE2 crc32 instructions db_1 | 2020-02-10 14:49:32 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts) db_1 | 2020-02-10 14:49:32 0 [Note] InnoDB: Initializing buffer pool, total size = 256M, instances = 1, chunk size = 128M db_1 | 2020-02-10 14:49:32 0 [Note] InnoDB: Completed initialization of buffer pool db_1 | 2020-02-10 14:49:32 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority(). db_1 | 2020-02-10 14:49:32 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=61143 db_1 | 2020-02-10 14:49:32 0 [Note] InnoDB: 128 out of 128 rollback segments are active. db_1 | 2020-02-10 14:49:32 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1" db_1 | 2020-02-10 14:49:32 0 [Note] InnoDB: Creating shared tablespace for temporary tables db_1 | 2020-02-10 14:49:32 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... db_1 | 2020-02-10 14:49:32 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB. db_1 | 2020-02-10 14:49:32 0 [Note] InnoDB: Waiting for purge to start db_1 | 2020-02-10 14:49:32 0 [Note] InnoDB: 10.4.12 started; log sequence number 61152; transaction id 21 db_1 | 2020-02-10 14:49:32 0 [Note] Plugin 'FEEDBACK' is disabled. db_1 | 2020-02-10 14:49:32 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool db_1 | 2020-02-10 14:49:32 0 [Note] Server socket created on IP: '::'. db_1 | 2020-02-10 14:49:32 0 [Note] InnoDB: Buffer pool(s) load completed at 200210 14:49:32 db_1 | 2020-02-10 14:49:32 0 [Warning] 'proxies_priv' entry '@% root@7193e488dcfa' ignored in --skip-name-resolve mode. db_1 | 2020-02-10 14:49:32 0 [Note] Reading of all Master_info entries succeeded db_1 | 2020-02-10 14:49:32 0 [Note] Added new Master_info '' to hash table db_1 | 2020-02-10 14:49:32 0 [Note] mysqld: ready for connections. db_1 | Version: '10.4.12-MariaDB-1:10.4.12+maria~bionic' socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution db_1 | 2020-02-10 14:49:32 8 [Warning] Access denied for user 'root'@'172.18.0.3' (using password: YES) db_1 | 2020-02-10 14:49:32 9 [Warning] Access denied for user 'root'@'172.18.0.3' (using password: YES) db_1 | 2020-02-10 14:49:32 10 [Warning] Access denied for user 'root'@'172.18.0.3' (using password: YES) db_1 | 2020-02-10 14:49:32 11 [Warning] Access denied for user 'root'@'172.18.0.3' (using password: YES) db_1 | 2020-02-10 14:49:32 12 [Warning] Access denied for user 'root'@'172.18.0.3' (using password: YES) db_1 | 2020-02-10 14:49:32 13 [Warning] Access denied for user 'root'@'172.18.0.3' (using password: YES) db_1 | 2020-02-10 14:49:32 14 [Warning] Access denied for user 'root'@'172.18.0.3' (using password: YES) Stopping ts3sinusbot_db_1 ... done

docker-compose.yml:

`# docker-compose.yml version: '3.1' services: teamspeak: image: teamspeak restart: always ports:

Using

$ docker run -p 9987:9987/udp -p 10011:10011 -p 30033:30033 -e TS3SERVER_LICENSE=accept teamspeak

works.

I changed 'db' to localhost this gives me the following errors:

Starting ts3sinusbot_db_1 ... done Attaching to ts3sinusbot_db_1, ts3sinusbot_teamspeak_1 db_1 | 2020-02-10 14:03:09+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 1:10.4.12+maria~bionic started. teamspeak_1 | 2020-02-10 14:03:10.081210|INFO |ServerLibPriv | |TeamSpeak 3 Server 3.11.0 (2020-01-13 08:12:37) teamspeak_1 | 2020-02-10 14:03:10.083450|INFO |ServerLibPriv | |SystemInformation: Linux 4.15.0 #1 SMP Mon Dec 9 19:36:21 MSK 2019 x86_64 Binary: 64bit teamspeak_1 | 2020-02-10 14:03:10.083495|INFO |ServerLibPriv | |Using hardware aes teamspeak_1 | 2020-02-10 14:03:10.084066|INFO |DatabaseQuery | |dbPlugin name: MariaDB plugin, version 3, (c)TeamSpeak Systems GmbH teamspeak_1 | 2020-02-10 14:03:10.084100|INFO |DatabaseQuery | |dbPlugin version: 2 db_1 | 2020-02-10 14:03:10+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql' db_1 | 2020-02-10 14:03:10+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 1:10.4.12+maria~bionic started. db_1 | 2020-02-10 14:03:10 0 [Note] mysqld (mysqld 10.4.12-MariaDB-1:10.4.12+maria~bionic) starting as process 1 ... db_1 | 2020-02-10 14:03:10 0 [Note] InnoDB: Using Linux native AIO db_1 | 2020-02-10 14:03:10 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins db_1 | 2020-02-10 14:03:10 0 [Note] InnoDB: Uses event mutexes db_1 | 2020-02-10 14:03:10 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 db_1 | 2020-02-10 14:03:10 0 [Note] InnoDB: Number of pools: 1 db_1 | 2020-02-10 14:03:10 0 [Note] InnoDB: Using SSE2 crc32 instructions db_1 | 2020-02-10 14:03:10 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts) db_1 | 2020-02-10 14:03:10 0 [Note] InnoDB: Initializing buffer pool, total size = 256M, instances = 1, chunk size = 128M db_1 | 2020-02-10 14:03:10 0 [Note] InnoDB: Completed initialization of buffer pool db_1 | 2020-02-10 14:03:10 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority(). db_1 | 2020-02-10 14:03:10 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=61017 db_1 | 2020-02-10 14:03:11 0 [Note] InnoDB: 128 out of 128 rollback segments are active. db_1 | 2020-02-10 14:03:11 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1" db_1 | 2020-02-10 14:03:11 0 [Note] InnoDB: Creating shared tablespace for temporary tables db_1 | 2020-02-10 14:03:11 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... db_1 | 2020-02-10 14:03:11 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB. db_1 | 2020-02-10 14:03:11 0 [Note] InnoDB: Waiting for purge to start db_1 | 2020-02-10 14:03:11 0 [Note] InnoDB: 10.4.12 started; log sequence number 61026; transaction id 21 db_1 | 2020-02-10 14:03:11 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool db_1 | 2020-02-10 14:03:11 0 [Note] Plugin 'FEEDBACK' is disabled. db_1 | 2020-02-10 14:03:11 0 [Note] InnoDB: Buffer pool(s) load completed at 200210 14:03:11 db_1 | 2020-02-10 14:03:11 0 [Note] Server socket created on IP: '::'. db_1 | 2020-02-10 14:03:11 0 [Warning] 'proxies_priv' entry '@% root@7193e488dcfa' ignored in --skip-name-resolve mode. db_1 | 2020-02-10 14:03:11 0 [Note] Reading of all Master_info entries succeeded db_1 | 2020-02-10 14:03:11 0 [Note] Added new Master_info '' to hash table db_1 | 2020-02-10 14:03:11 0 [Note] mysqld: ready for connections. db_1 | Version: '10.4.12-MariaDB-1:10.4.12+maria~bionic' socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution teamspeak_1 | 2020-02-10 14:03:40.084812|CRITICAL|ServerLibPriv | |Server() unable to initialize database teamspeak_1 | 2020-02-10 14:03:40.084720|ERROR |DatabaseQuery | |Could not connect to mariadb server: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)