Open owlmsj opened 8 years ago
I cannot even start container after few stops - not sure why it fails, every time I start it looks like it's started but exits immediately. Every time only that monit daemon awakened message gets appended after starting container.
... Stopping mysqld: [ OK ] Starting mysqld: [ OK ] Stopping mysqld: [ OK ] Running Monit... Generated unique Monit id 52d610ef224aa4d7b8acdec0bb647d1e and stored to '/root/.monit.id' Starting Monit 5.14 daemon with http interface at []:2812 Running Monit... Starting Monit 5.14 daemon with http interface at []:2812 Running Monit... Monit daemon with PID 1 awakened Running Monit... Monit daemon with PID 1 awakened Running Monit... Monit daemon with PID 1 awakened Running Monit... Monit daemon with PID 1 awakened
i have the same issue described by opensourcegeek above.
I have the problem too.
I have the same issue
coreos1 upper # docker logs -f zabbix Stopping mysqld: [ OK ] Initializing MySQL database: Installing MySQL system tables... OK Filling help tables... OK
To start mysqld at boot time you have to copy support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password' /usr/bin/mysqladmin -u root -h 4ade6c1a8f6e password 'new-password'
Alternatively you can run: /usr/bin/mysql_secure_installation
which will also give you the option of removing the test databases and anonymous user created by default. This is strongly recommended for production servers.
See the manual for more instructions.
You can start the MySQL daemon with: cd /usr ; /usr/bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl cd /usr/mysql-test ; perl mysql-test-run.pl
Please report any problems with the /usr/bin/mysqlbug script!
[ OK ] Starting mysqld: [ OK ] Looking for 'mysql' as: /usr/bin/mysql Looking for 'mysqlcheck' as: /usr/bin/mysqlcheck Running 'mysqlcheck with default connection arguments Running 'mysqlcheck with default connection arguments mysql.columns_priv OK mysql.db OK mysql.event OK mysql.func OK mysql.general_log Error : You can't use locks with log tables. status : OK mysql.help_category OK mysql.help_keyword OK mysql.help_relation OK mysql.help_topic OK mysql.host OK mysql.ndb_binlog_index OK mysql.plugin OK mysql.proc OK mysql.procs_priv OK mysql.servers OK mysql.slow_log Error : You can't use locks with log tables. status : OK mysql.tables_priv OK mysql.time_zone OK mysql.time_zone_leap_second OK mysql.time_zone_name OK mysql.time_zone_transition OK mysql.time_zone_transition_type OK mysql.user OK Running 'mysql_fix_privilegetables'... OK mysql root and admin password: mypassword Stopping mysqld: [ OK ] Starting mysqld: [ OK ] Stopping mysqld: [ OK ] Running Monit... Generated unique Monit id df71844989978bc0fc517be80e0971e5 and stored to '/root/.monit.id' Starting Monit 5.14 daemon with http interface at []:2812 Running Monit... Starting Monit 5.14 daemon with http interface at [_]:2812 Running Monit... Monit daemon with PID 1 awakened Running Monit... Monit daemon with PID 1 awakened Running Monit... Monit daemon with PID 1 awakened Running Monit... Monit daemon with PID 1 awakened Running Monit... Monit daemon with PID 1 awakened Running Monit... Monit daemon with PID 1 awakened Running Monit... Monit daemon with PID 1 awakened Running Monit... Monit daemon with PID 1 awakened Running Monit... Monit daemon with PID 1 awakened Running Monit... Monit daemon with PID 1 awakened Running Monit... Monit daemon with PID 1 awakened Running Monit... Monit daemon with PID 1 awakened Running Monit... Monit daemon with PID 1 awakened Running Monit... Monit daemon with PID 1 awakened Running Monit... Monit daemon with PID 1 awakened Running Monit... Monit daemon with PID 1 awakened Running Monit... Monit daemon with PID 1 awakened Running Monit... Monit daemon with PID 1 awakened Running Monit... Monit daemon with PID 1 awakened Running Monit... Monit daemon with PID 1 awakened
Facing the same issue, any workarounds or solutions so far ?
@owlmsj @opensourcegeek @kwetiaw @fuchu @xianxian0703 Hi all, I've found the same issue and luckily solved it. run
docker run -it --name zabbix berngp/docker-zabbix "shell"
to get the shell, and
just delete the /var/run/monit.pid of the container and then commit the change to the image.
@yangguang760 Cool - I've been using docker.io/zabbix/zabbix-2.4, but looks like this image isn't available anymore. An alternative seems to be https://hub.docker.com/r/monitoringartist/zabbix-2.4/, I haven't used that though.
@yangguang760 docker run -it --name zabbix berngp/docker-zabbix "shell" unable to run ,how to solve?
I'm trying to simply re run a commited image (cmd: "docker run -d -P --name zabbix"),
and the container log this message right before it dies:
Tips? Please help!