RANCHER SERVER

RANCHER SERVER

PLEG is not healthy: pleg was last seen active 3m7.545057471s ago; threshold is 3m0s

Rancher2.0Rancher Support Zhen 回复了问题 • 2 人关注 • 1 个回复 • 374 次浏览 • 2019-11-04 17:57 • 来自相关话题

rancher server挂了怎么重启

回复

Rancher1.6tuobashao 发起了问题 • 2 人关注 • 0 个回复 • 1091 次浏览 • 2018-08-07 16:31 • 来自相关话题

rancher 2.0 的rancher server日志在哪个目录下?

Rancher2.0hongxiaolu 回复了问题 • 2 人关注 • 1 个回复 • 547 次浏览 • 2018-07-26 13:27 • 来自相关话题

s6-svscanctl: fatal: unable to control /service: supervisor not listening

SERVERhongxiaolu 发表了文章 • 0 个评论 • 1071 次浏览 • 2018-01-03 15:51 • 来自相关话题

有的小伙伴是通过-v 的方式把RANCHER SERVER的数据库映射到宿主机上,这种方式适用于小集群运行。 有时候,在重启主机或者变动RANCHER 容器后,或者数据迁移到其他节点后,重启RANCHER SERVER容器出现以下的提示,RANCHER SER ...查看全部
有的小伙伴是通过-v 的方式把RANCHER SERVER的数据库映射到宿主机上,这种方式适用于小集群运行。 有时候,在重启主机或者变动RANCHER 容器后,或者数据迁移到其他节点后,重启RANCHER SERVER容器出现以下的提示,RANCHER SERVER无法运行:
 
180103  5:21:55 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 25 ...
180103  5:21:56 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 24 ...
180103  5:21:58 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 25 ...
180103  5:22:01 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 24 ...
s6-svscanctl: fatal: unable to control /service: supervisor not listening
180103  5:22:08 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 24 ...
s6-svscanctl: fatal: unable to control /service: supervisor not listening
180103  5:22:21 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 25 ...
s6-svscanctl: fatal: unable to control /service: supervisor not listening
180103  5:22:23 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 26 ...
180103  5:22:25 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 25 ...
s6-svscanctl: fatal: unable to control /service: supervisor not listening
180103  5:22:25 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 25 ...
180103  5:22:26 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 26 ...
180103  5:22:28 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 24 ..
180103  5:22:30 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 27 ...
180103  5:22:34 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 24 ...
s6-svscanctl: fatal: unable to control /service: supervisor not listening
180103  5:22:41 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 25 ...
s6-svscanctl: fatal: unable to control /service: supervisor not listening
180103  5:22:54 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 25 ...
s6-svscanctl: fatal: unable to control /service: supervisor not listening
180103  5:23:20 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 24 ...
180103  5:23:53 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 24 ...
 
从日志中大致可以看出是因为数据库启动问题导致RANCHER 容器无法正常运行。
 
进入docker 数据卷目录,
/var/lib/docker/volumes/xxxxxxxxxx/_data
 
xxxxxxxxxx表示数据卷ID, 可以通过docker inspect 查看数据卷地址
 
在_data 路径下有个error.log, 这个是数据库的运行日志文件,查看问题发现以下错误日志:
 
180103  5:24:47 [Note] Plugin 'FEDERATED' is disabled.
/usr/sbin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
180103  5:24:47 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
180103  5:24:47 InnoDB: The InnoDB memory heap is disabled
180103  5:24:47 InnoDB: Mutexes and rw_locks use GCC atomic builtins
180103  5:24:47 InnoDB: Compressed tables use zlib 1.2.8
180103  5:24:47 InnoDB: Using Linux native AIO
180103  5:24:47 InnoDB: Initializing buffer pool, size = 128.0M
180103  5:24:47 InnoDB: Completed initialization of buffer pool
180103  5:24:47  InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name ./ibdata1
InnoDB: File operation call: 'open'.
InnoDB: Cannot continue operation.
180103  5:25:39 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
180103  5:25:39 [Note] Plugin 'FEDERATED' is disabled.
/usr/sbin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
180103  5:25:39 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
180103  5:25:39 InnoDB: The InnoDB memory heap is disabled
180103  5:25:39 InnoDB: Mutexes and rw_locks use GCC atomic builtins
180103  5:25:39 InnoDB: Compressed tables use zlib 1.2.8
180103  5:25:39 InnoDB: Using Linux native AIO
180103  5:25:39 InnoDB: Initializing buffer pool, size = 128.0M
180103  5:25:39 InnoDB: Completed initialization of buffer pool
180103  5:25:39  InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
 
通过error number 13 可以知道是因为数据库数据目录权限问题导致启动失败。
 
解决方法:
在宿主机上设置数据库映射目录的权限,比如 chmod -R 777 xxx/xxx/xxx
 
 

s6-svscanctl: fatal: unable to control /service: supervisor not listening

SERVERhongxiaolu 发表了文章 • 0 个评论 • 1071 次浏览 • 2018-01-03 15:51 • 来自相关话题

有的小伙伴是通过-v 的方式把RANCHER SERVER的数据库映射到宿主机上,这种方式适用于小集群运行。 有时候,在重启主机或者变动RANCHER 容器后,或者数据迁移到其他节点后,重启RANCHER SERVER容器出现以下的提示,RANCHER SER ...查看全部
有的小伙伴是通过-v 的方式把RANCHER SERVER的数据库映射到宿主机上,这种方式适用于小集群运行。 有时候,在重启主机或者变动RANCHER 容器后,或者数据迁移到其他节点后,重启RANCHER SERVER容器出现以下的提示,RANCHER SERVER无法运行:
 
180103  5:21:55 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 25 ...
180103  5:21:56 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 24 ...
180103  5:21:58 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 25 ...
180103  5:22:01 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 24 ...
s6-svscanctl: fatal: unable to control /service: supervisor not listening
180103  5:22:08 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 24 ...
s6-svscanctl: fatal: unable to control /service: supervisor not listening
180103  5:22:21 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 25 ...
s6-svscanctl: fatal: unable to control /service: supervisor not listening
180103  5:22:23 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 26 ...
180103  5:22:25 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 25 ...
s6-svscanctl: fatal: unable to control /service: supervisor not listening
180103  5:22:25 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 25 ...
180103  5:22:26 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 26 ...
180103  5:22:28 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 24 ..
180103  5:22:30 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 27 ...
180103  5:22:34 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 24 ...
s6-svscanctl: fatal: unable to control /service: supervisor not listening
180103  5:22:41 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 25 ...
s6-svscanctl: fatal: unable to control /service: supervisor not listening
180103  5:22:54 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 25 ...
s6-svscanctl: fatal: unable to control /service: supervisor not listening
180103  5:23:20 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 24 ...
180103  5:23:53 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 24 ...
 
从日志中大致可以看出是因为数据库启动问题导致RANCHER 容器无法正常运行。
 
进入docker 数据卷目录,
/var/lib/docker/volumes/xxxxxxxxxx/_data
 
xxxxxxxxxx表示数据卷ID, 可以通过docker inspect 查看数据卷地址
 
在_data 路径下有个error.log, 这个是数据库的运行日志文件,查看问题发现以下错误日志:
 
180103  5:24:47 [Note] Plugin 'FEDERATED' is disabled.
/usr/sbin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
180103  5:24:47 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
180103  5:24:47 InnoDB: The InnoDB memory heap is disabled
180103  5:24:47 InnoDB: Mutexes and rw_locks use GCC atomic builtins
180103  5:24:47 InnoDB: Compressed tables use zlib 1.2.8
180103  5:24:47 InnoDB: Using Linux native AIO
180103  5:24:47 InnoDB: Initializing buffer pool, size = 128.0M
180103  5:24:47 InnoDB: Completed initialization of buffer pool
180103  5:24:47  InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name ./ibdata1
InnoDB: File operation call: 'open'.
InnoDB: Cannot continue operation.
180103  5:25:39 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
180103  5:25:39 [Note] Plugin 'FEDERATED' is disabled.
/usr/sbin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
180103  5:25:39 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
180103  5:25:39 InnoDB: The InnoDB memory heap is disabled
180103  5:25:39 InnoDB: Mutexes and rw_locks use GCC atomic builtins
180103  5:25:39 InnoDB: Compressed tables use zlib 1.2.8
180103  5:25:39 InnoDB: Using Linux native AIO
180103  5:25:39 InnoDB: Initializing buffer pool, size = 128.0M
180103  5:25:39 InnoDB: Completed initialization of buffer pool
180103  5:25:39  InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
 
通过error number 13 可以知道是因为数据库数据目录权限问题导致启动失败。
 
解决方法:
在宿主机上设置数据库映射目录的权限,比如 chmod -R 777 xxx/xxx/xxx
 
 

PLEG is not healthy: pleg was last seen active 3m7.545057471s ago; threshold is 3m0s

回复

Rancher2.0Rancher Support Zhen 回复了问题 • 2 人关注 • 1 个回复 • 374 次浏览 • 2019-11-04 17:57 • 来自相关话题

rancher server挂了怎么重启

回复

Rancher1.6tuobashao 发起了问题 • 2 人关注 • 0 个回复 • 1091 次浏览 • 2018-08-07 16:31 • 来自相关话题

rancher 2.0 的rancher server日志在哪个目录下?

回复

Rancher2.0hongxiaolu 回复了问题 • 2 人关注 • 1 个回复 • 547 次浏览 • 2018-07-26 13:27 • 来自相关话题

s6-svscanctl: fatal: unable to control /service: supervisor not listening

SERVERhongxiaolu 发表了文章 • 0 个评论 • 1071 次浏览 • 2018-01-03 15:51 • 来自相关话题

有的小伙伴是通过-v 的方式把RANCHER SERVER的数据库映射到宿主机上,这种方式适用于小集群运行。 有时候,在重启主机或者变动RANCHER 容器后,或者数据迁移到其他节点后,重启RANCHER SERVER容器出现以下的提示,RANCHER SER ...查看全部
有的小伙伴是通过-v 的方式把RANCHER SERVER的数据库映射到宿主机上,这种方式适用于小集群运行。 有时候,在重启主机或者变动RANCHER 容器后,或者数据迁移到其他节点后,重启RANCHER SERVER容器出现以下的提示,RANCHER SERVER无法运行:
 
180103  5:21:55 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 25 ...
180103  5:21:56 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 24 ...
180103  5:21:58 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 25 ...
180103  5:22:01 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 24 ...
s6-svscanctl: fatal: unable to control /service: supervisor not listening
180103  5:22:08 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 24 ...
s6-svscanctl: fatal: unable to control /service: supervisor not listening
180103  5:22:21 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 25 ...
s6-svscanctl: fatal: unable to control /service: supervisor not listening
180103  5:22:23 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 26 ...
180103  5:22:25 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 25 ...
s6-svscanctl: fatal: unable to control /service: supervisor not listening
180103  5:22:25 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 25 ...
180103  5:22:26 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 26 ...
180103  5:22:28 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 24 ..
180103  5:22:30 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 27 ...
180103  5:22:34 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 24 ...
s6-svscanctl: fatal: unable to control /service: supervisor not listening
180103  5:22:41 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 25 ...
s6-svscanctl: fatal: unable to control /service: supervisor not listening
180103  5:22:54 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 25 ...
s6-svscanctl: fatal: unable to control /service: supervisor not listening
180103  5:23:20 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 24 ...
180103  5:23:53 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 24 ...
 
从日志中大致可以看出是因为数据库启动问题导致RANCHER 容器无法正常运行。
 
进入docker 数据卷目录,
/var/lib/docker/volumes/xxxxxxxxxx/_data
 
xxxxxxxxxx表示数据卷ID, 可以通过docker inspect 查看数据卷地址
 
在_data 路径下有个error.log, 这个是数据库的运行日志文件,查看问题发现以下错误日志:
 
180103  5:24:47 [Note] Plugin 'FEDERATED' is disabled.
/usr/sbin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
180103  5:24:47 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
180103  5:24:47 InnoDB: The InnoDB memory heap is disabled
180103  5:24:47 InnoDB: Mutexes and rw_locks use GCC atomic builtins
180103  5:24:47 InnoDB: Compressed tables use zlib 1.2.8
180103  5:24:47 InnoDB: Using Linux native AIO
180103  5:24:47 InnoDB: Initializing buffer pool, size = 128.0M
180103  5:24:47 InnoDB: Completed initialization of buffer pool
180103  5:24:47  InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name ./ibdata1
InnoDB: File operation call: 'open'.
InnoDB: Cannot continue operation.
180103  5:25:39 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
180103  5:25:39 [Note] Plugin 'FEDERATED' is disabled.
/usr/sbin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
180103  5:25:39 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
180103  5:25:39 InnoDB: The InnoDB memory heap is disabled
180103  5:25:39 InnoDB: Mutexes and rw_locks use GCC atomic builtins
180103  5:25:39 InnoDB: Compressed tables use zlib 1.2.8
180103  5:25:39 InnoDB: Using Linux native AIO
180103  5:25:39 InnoDB: Initializing buffer pool, size = 128.0M
180103  5:25:39 InnoDB: Completed initialization of buffer pool
180103  5:25:39  InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
 
通过error number 13 可以知道是因为数据库数据目录权限问题导致启动失败。
 
解决方法:
在宿主机上设置数据库映射目录的权限,比如 chmod -R 777 xxx/xxx/xxx