使用docker中遇到的问题,执行了docker logs命令进行查看
来源:1-1 导学

慕慕1545788
2023-03-04
问题的一部分原因应该是磁盘满了,进入了腾讯云的管理页码查看:
知道磁盘满了后,我尝试删除了系统上java程序产生的一些log文件,确实有了一定的效果重新输入docker ps -a
之后可以看到docker 的mysql容器是退出了,但是问题还是存在,使用docker start 容器名称命令后没有直接报错如图所示:
但是重新输入docker ps -a后发现这个容器还是没有正常运行,仍然处于离线状态如图所示:
现在再输入docker logs命令进行查看
显示了大量错误:
2023-03-04T00:09:21.102694Z 297428 [ERROR] [MY-000035] [Server] Disk is full writing './binlog.000012' (OS errno 28 - No space left on device). Waiting for someone to free space... Retry in 60 secs. Message reprinted in 600 secs. 2023-03-04T00:19:21.149981Z 297428 [ERROR] [MY-000035] [Server] Disk is full writing './binlog.000012' (OS errno 28 - No space left on device). Waiting for someone to free space... Retry in 60 secs. Message reprinted in 600 secs. 2023-03-04T00:29:21.191931Z 297428 [ERROR] [MY-000035] [Server] Disk is full writing './binlog.000012' (OS errno 28 - No space left on device). Waiting for someone to free space... Retry in 60 secs. Message reprinted in 600 secs. 2023-03-04T00:39:21.234594Z 297428 [ERROR] [MY-000035] [Server] Disk is full writing './binlog.000012' (OS errno 28 - No space left on device). Waiting for someone to free space... Retry in 60 secs. Message reprinted in 600 secs. 2023-03-04T00:49:21.281279Z 297428 [ERROR] [MY-000035] [Server] Disk is full writing './binlog.000012' (OS errno 28 - No space left on device). Waiting for someone to free space... Retry in 60 secs. Message reprinted in 600 secs. 2023-03-04T00:59:21.330927Z 297428 [ERROR] [MY-000035] [Server] Disk is full writing './binlog.000012' (OS errno 28 - No space left on device). Waiting for someone to free space... Retry in 60 secs. Message reprinted in 600 secs. 2023-03-04T01:09:21.388058Z 297428 [ERROR] [MY-000035] [Server] Disk is full writing './binlog.000012' (OS errno 28 - No space left on device). Waiting for someone to free space... Retry in 60 secs. Message reprinted in 600 secs. 2023-03-04T01:19:21.430916Z 297428 [ERROR] [MY-000035] [Server] Disk is full writing './binlog.000012' (OS errno 28 - No space left on device). Waiting for someone to free space... Retry in 60 secs. Message reprinted in 600 secs. 2023-03-04T01:29:21.476653Z 297428 [ERROR] [MY-000035] [Server] Disk is full writing './binlog.000012' (OS errno 28 - No space left on device). Waiting for someone to free space... Retry in 60 secs. Message reprinted in 600 secs. 2023-03-04T01:31:09.028100Z 302764 [Warning] [MY-010055] [Server] IP address '58.62.30.118' could not be resolved: Name or service not known 2023-03-04T01:38:08.677854Z 0 [System] [MY-013172] [Server] Received SHUTDOWN from user <via user signal>. Shutting down mysqld (Version: 8.0.23). 2023-03-04T01:38:09.535163Z 297428 [ERROR] [MY-011072] [Server] Binary logging not possible. Message: An error occurred during flush stage of the commit. 'binlog_error_action' is set to 'ABORT_SERVER'. Server is being stopped.. 01:38:09 UTC - mysqld got signal 6 ; Most likely, you have hit a bug, but this error can also be caused by malfunctioning hardware. Thread pointer: 0x7fda4414fbe0 Attempting backtrace. You can use the following information to find out where mysqld died. If you see no messages after this, something went terribly wrong... stack_bottom = 7fdadc19fd20 thread_stack 0x46000 /usr/sbin/mysqld(my_print_stacktrace(unsigned char const*, unsigned long)+0x2e) [0x55807978539e] /usr/sbin/mysqld(handle_fatal_signal+0x31b) [0x558078b3f22b] /lib/x86_64-linux-gnu/libpthread.so.0(+0x12730) [0x7fdaf1900730] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x10b) [0x7fdaf0fdd7bb] /lib/x86_64-linux-gnu/libc.so.6(abort+0x121) [0x7fdaf0fc8535] /usr/sbin/mysqld(+0x2cce093) [0x5580793af093] /usr/sbin/mysqld(MYSQL_BIN_LOG::handle_binlog_flush_or_sync_error(THD*, bool, char const*)+0x287) [0x5580793b68d7] /usr/sbin/mysqld(MYSQL_BIN_LOG::ordered_commit(THD*, bool, bool)+0x111) [0x5580793c6a31] /usr/sbin/mysqld(MYSQL_BIN_LOG::commit(THD*, bool)+0x656) [0x5580793c80a6] /usr/sbin/mysqld(ha_commit_trans(THD*, bool, bool)+0x3b9) [0x558078639069] /usr/sbin/mysqld(trans_commit_stmt(THD*, bool)+0x2d) [0x558078affddd] /usr/sbin/mysqld(mysql_execute_command(THD*, bool)+0x3ae8) [0x5580789dc458] /usr/sbin/mysqld(dispatch_sql_command(THD*, Parser_state*)+0x3f8) [0x5580789ddb18] /usr/sbin/mysqld(dispatch_command(THD*, COM_DATA const*, enum_server_command)+0x1693) [0x5580789df703] /usr/sbin/mysqld(do_command(THD*)+0x174) [0x5580789e0d34] /usr/sbin/mysqld(+0x2446e08) [0x558078b27e08] /usr/sbin/mysqld(+0x35d8284) [0x558079cb9284] /lib/x86_64-linux-gnu/libpthread.so.0(+0x7fa3) [0x7fdaf18f5fa3] /lib/x86_64-linux-gnu/libc.so.6(clone+0x3f) [0x7fdaf109f4cf] Trying to get some variables. Some pointers may be invalid and cause the dump to abort. Query (7fda4416cb38): INSERT INTO pvemdb(pvemid, fflat, fpeak, fsharp, ftotal, fvalley,rflat, rpeak, rsharp, rtotal, rvalley, actpower,actpowera,actpowerb,actpowerc, currenta, currentb, currentc, vola, volb,volc, faca, facb,facc,lastmrtotal,lastmtotal) VALUES ('869298059563320', 1007.65, 0.18, 0.0, 0.63, 0.19,0.0, 608.04, 646.57, 2326.19, 63.91, 0.0,0.0,0.0,0.0, 800.01, 0.012, 0.0, 237.8, 238.2,238.0, 8.003, 0.0,0.023,2304.24,0.62) Connection ID (thread ID): 297428 Status: KILL_CONNECTION The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains information that should help you find out what is causing the crash. 2023-03-04 14:01:57+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.23-1debian10 started. 2023-03-04 14:01:58+08:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql' 2023-03-04 14:01:58+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.23-1debian10 started. 2023-03-04T06:01:58.861882Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.23) starting as process 1 2023-03-04T06:01:58.887050Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. 2023-03-04T06:02:00.407628Z 1 [Warning] [MY-012638] [InnoDB] Retry attempts for writing partial data failed. 2023-03-04T06:02:00.415679Z 1 [ERROR] [MY-012639] [InnoDB] Write to file ./ibtmp1 failed at offset 0, 1048576 bytes should have been written, only 0 were written. Operating system error number 28. Check that your OS and file system support files of this size. Check also that the disk is not full or a disk quota exceeded. 2023-03-04T06:02:00.415835Z 1 [ERROR] [MY-012640] [InnoDB] Error number 28 means 'No space left on device' 2023-03-04T06:02:00.416011Z 1 [ERROR] [MY-012267] [InnoDB] Could not set the file size of './ibtmp1'. Probably out of disk space 2023-03-04T06:02:00.416099Z 1 [ERROR] [MY-012926] [InnoDB] Unable to create the shared innodb_temporary. 2023-03-04T06:02:00.416259Z 1 [ERROR] [MY-012930] [InnoDB] Plugin initialization aborted with error Generic error. 2023-03-04T06:02:00.590546Z 1 [ERROR] [MY-010334] [Server] Failed to initialize DD Storage Engine 2023-03-04T06:02:00.590835Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed. 2023-03-04T06:02:00.591168Z 0 [ERROR] [MY-010119] [Server] Aborting 2023-03-04T06:02:00.591847Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.23) MySQL Community Server - GPL. 2023-03-04 14:04:45+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.23-1debian10 started. 2023-03-04 14:04:45+08:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql' 2023-03-04 14:04:45+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.23-1debian10 started. 2023-03-04T06:04:46.223030Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.23) starting as process 1 2023-03-04T06:04:46.233850Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. 2023-03-04T06:04:46.558277Z 1 [Warning] [MY-012638] [InnoDB] Retry attempts for writing partial data failed. 2023-03-04T06:04:46.558386Z 1 [ERROR] [MY-012639] [InnoDB] Write to file ./ibtmp1 failed at offset 0, 1048576 bytes should have been written, only 0 were written. Operating system error number 28. Check that your OS and file system support files of this size. Check also that the disk is not full or a disk quota exceeded. 2023-03-04T06:04:46.558476Z 1 [ERROR] [MY-012640] [InnoDB] Error number 28 means 'No space left on device' 2023-03-04T06:04:46.558644Z 1 [ERROR] [MY-012267] [InnoDB] Could not set the file size of './ibtmp1'. Probably out of disk space 2023-03-04T06:04:46.558741Z 1 [ERROR] [MY-012926] [InnoDB] Unable to create the shared innodb_temporary. 2023-03-04T06:04:46.558832Z 1 [ERROR] [MY-012930] [InnoDB] Plugin initialization aborted with error Generic error. 2023-03-04T06:04:46.798296Z 1 [ERROR] [MY-010334] [Server] Failed to initialize DD Storage Engine 2023-03-04T06:04:46.798654Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed. 2023-03-04T06:04:46.798994Z 0 [ERROR] [MY-010119] [Server] Aborting 2023-03-04T06:04:46.799642Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.23) MySQL Community Server - GPL. 2023-03-04 14:08:40+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.23-1debian10 started. 2023-03-04 14:08:40+08:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql' 2023-03-04 14:08:40+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.23-1debian10 started. 2023-03-04T06:08:40.523181Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.23) starting as process 1 2023-03-04T06:08:40.533796Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. 2023-03-04T06:08:40.811000Z 1 [Warning] [MY-012638] [InnoDB] Retry attempts for writing partial data failed. 2023-03-04T06:08:40.811101Z 1 [ERROR] [MY-012639] [InnoDB] Write to file ./ibtmp1 failed at offset 0, 1048576 bytes should have been written, only 0 were written. Operating system error number 28. Check that your OS and file system support files of this size. Check also that the disk is not full or a disk quota exceeded. 2023-03-04T06:08:40.811191Z 1 [ERROR] [MY-012640] [InnoDB] Error number 28 means 'No space left on device' 2023-03-04T06:08:40.811456Z 1 [ERROR] [MY-012267] [InnoDB] Could not set the file size of './ibtmp1'. Probably out of disk space 2023-03-04T06:08:40.811572Z 1 [ERROR] [MY-012926] [InnoDB] Unable to create the shared innodb_temporary. 2023-03-04T06:08:40.811680Z 1 [ERROR] [MY-012930] [InnoDB] Plugin initialization aborted with error Generic error. 2023-03-04T06:08:41.095971Z 1 [ERROR] [MY-010334] [Server] Failed to initialize DD Storage Engine 2023-03-04T06:08:41.096268Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed. 2023-03-04T06:08:41.096649Z 0 [ERROR] [MY-010119] [Server] Aborting 2023-03-04T06:08:41.097284Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.23) MySQL Community Server - GPL. 2023-03-04 14:11:13+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.23-1debian10 started. 2023-03-04 14:11:13+08:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql' 2023-03-04 14:11:13+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.23-1debian10 started. 2023-03-04T06:11:13.632911Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.23) starting as process 1 2023-03-04T06:11:13.643519Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. 2023-03-04T06:11:13.926323Z 1 [Warning] [MY-012638] [InnoDB] Retry attempts for writing partial data failed. 2023-03-04T06:11:13.926430Z 1 [ERROR] [MY-012639] [InnoDB] Write to file ./ibtmp1 failed at offset 0, 1048576 bytes should have been written, only 0 were written. Operating system error number 28. Check that your OS and file system support files of this size. Check also that the disk is not full or a disk quota exceeded. 2023-03-04T06:11:13.926520Z 1 [ERROR] [MY-012640] [InnoDB] Error number 28 means 'No space left on device' 2023-03-04T06:11:13.926691Z 1 [ERROR] [MY-012267] [InnoDB] Could not set the file size of './ibtmp1'. Probably out of disk space 2023-03-04T06:11:13.926778Z 1 [ERROR] [MY-012926] [InnoDB] Unable to create the shared innodb_temporary. 2023-03-04T06:11:13.926891Z 1 [ERROR] [MY-012930] [InnoDB] Plugin initialization aborted with error Generic error. 2023-03-04T06:11:14.202409Z 1 [ERROR] [MY-010334] [Server] Failed to initialize DD Storage Engine 2023-03-04T06:11:14.202679Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed. 2023-03-04T06:11:14.202924Z 0 [ERROR] [MY-010119] [Server] Aborting 2023-03-04T06:11:14.203519Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.23) MySQL Community Server - GPL. 2023-03-04 14:13:13+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.23-1debian10 started. 2023-03-04 14:13:13+08:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql' 2023-03-04 14:13:13+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.23-1debian10 started. 2023-03-04T06:13:13.742089Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.23) starting as process 1 2023-03-04T06:13:13.752521Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. 2023-03-04T06:13:14.031293Z 1 [Warning] [MY-012638] [InnoDB] Retry attempts for writing partial data failed. 2023-03-04T06:13:14.031404Z 1 [ERROR] [MY-012639] [InnoDB] Write to file ./ibtmp1 failed at offset 0, 1048576 bytes should have been written, only 0 were written. Operating system error number 28. Check that your OS and file system support files of this size. Check also that the disk is not full or a disk quota exceeded. 2023-03-04T06:13:14.031499Z 1 [ERROR] [MY-012640] [InnoDB] Error number 28 means 'No space left on device' 2023-03-04T06:13:14.031698Z 1 [ERROR] [MY-012267] [InnoDB] Could not set the file size of './ibtmp1'. Probably out of disk space 2023-03-04T06:13:14.031835Z 1 [ERROR] [MY-012926] [InnoDB] Unable to create the shared innodb_temporary. 2023-03-04T06:13:14.031982Z 1 [ERROR] [MY-012930] [InnoDB] Plugin initialization aborted with error Generic error. 2023-03-04T06:13:14.316675Z 1 [ERROR] [MY-010334] [Server] Failed to initialize DD Storage Engine 2023-03-04T06:13:14.317032Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed. 2023-03-04T06:13:14.317433Z 0 [ERROR] [MY-010119] [Server] Aborting 2023-03-04T06:13:14.318278Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.23) MySQL Community Server - GPL. 2023-03-04 14:28:05+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.23-1debian10 started. 2023-03-04 14:28:05+08:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql' 2023-03-04 14:28:05+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.23-1debian10 started. 2023-03-04T06:28:05.535199Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.23) starting as process 1 2023-03-04T06:28:05.546433Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. 2023-03-04T06:28:05.845115Z 1 [Warning] [MY-012638] [InnoDB] Retry attempts for writing partial data failed. 2023-03-04T06:28:05.845257Z 1 [ERROR] [MY-012639] [InnoDB] Write to file ./ibtmp1 failed at offset 0, 1048576 bytes should have been written, only 0 were written. Operating system error number 28. Check that your OS and file system support files of this size. Check also that the disk is not full or a disk quota exceeded. 2023-03-04T06:28:05.845389Z 1 [ERROR] [MY-012640] [InnoDB] Error number 28 means 'No space left on device' 2023-03-04T06:28:05.845657Z 1 [ERROR] [MY-012267] [InnoDB] Could not set the file size of './ibtmp1'. Probably out of disk space 2023-03-04T06:28:05.845795Z 1 [ERROR] [MY-012926] [InnoDB] Unable to create the shared innodb_temporary. 2023-03-04T06:28:05.845942Z 1 [ERROR] [MY-012930] [InnoDB] Plugin initialization aborted with error Generic error. 2023-03-04T06:28:06.128992Z 1 [ERROR] [MY-010334] [Server] Failed to initialize DD Storage Engine 2023-03-04T06:28:06.129288Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed. 2023-03-04T06:28:06.129603Z 0 [ERROR] [MY-010119] [Server] Aborting 2023-03-04T06:28:06.130156Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.23) MySQL Community Server - GPL 不知道如何重新启动此mysql容器
写回答
1回答
-
神思者
2023-03-04
也许你的云主机磁盘应该扩容了
032023-03-04
相似问题