Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Restart And Can't login to webpanel #525

Open
KRUXLEX opened this issue Mar 9, 2023 · 0 comments
Open

Docker Restart And Can't login to webpanel #525

KRUXLEX opened this issue Mar 9, 2023 · 0 comments

Comments

@KRUXLEX
Copy link

KRUXLEX commented Mar 9, 2023

Hi, I have a strange issue.

I was create a docker using from repo Dockerfile.

docker build -t mineos .
docker run -itd -p 1234:8443 -p 5000-5010:25565-25575 -v /srv/games/minecraft:/var/games/minecraft --name mineos mineos

Everything works.

After few days i must a restart docker using:

docker container stop mineos
docker container start mineos

After this docker start and works, servers (minecraft boot start) start and works, but I can't log in to WebPanel. Logs says that password is the same but don't work on panel.

2023-03-09T13:04:19.052981283Z 2023-03-09 13:04:19,052 WARN received SIGTERM indicating exit request
2023-03-09T13:04:19.053244045Z 2023-03-09 13:04:19,053 INFO waiting for mineos to die
2023-03-09T13:04:19.072236712Z 2023-03-09 13:04:19,072 INFO stopped: mineos (terminated by SIGTERM)
2023-03-09T13:05:37.334195995Z Password already set by entrypoint.sh, at /root/password
2023-03-09T13:05:37.335116310Z Password set to:  NzM5ZmJjY2MxMTZiND1h
2023-03-09T13:05:37.336108795Z GROUP_NAME not provided; defaulting to "mc"
2023-03-09T13:05:37.336670016Z a group named mc already exists.
2023-03-09T13:05:37.338424875Z a user named mc already exists.
2023-03-09T13:05:37.339029053Z Setting user password for 'mc'
2023-03-09T13:05:37.355340169Z Setting use_https to:  true
2023-03-09T13:05:37.356571678Z Setting server port to: 8443
2023-03-09T13:05:37.356715977Z Skipping Self-Signed SSL, it either exists or is disabled.
2023-03-09T13:05:37.356830170Z Setting https to true
2023-03-09T13:05:37.555596732Z 2023-03-09 13:05:37,555 CRIT Supervisor is running as root.  Privileges were not dropped because no user is specified in the config file.  If you intend to run as root, you can set user=root in the config file to avoid this message.
2023-03-09T13:05:37.555652862Z 2023-03-09 13:05:37,555 INFO Included extra file "/etc/supervisor/conf.d/mineos.conf" during parsing
2023-03-09T13:05:37.561725909Z 2023-03-09 13:05:37,561 INFO RPC interface 'supervisor' initialized
2023-03-09T13:05:37.561788577Z 2023-03-09 13:05:37,561 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2023-03-09T13:05:37.562205525Z 2023-03-09 13:05:37,562 INFO supervisord started with pid 1
2023-03-09T13:05:38.565082028Z 2023-03-09 13:05:38,564 INFO spawned: 'mineos' with pid 21
2023-03-09T13:05:39.567413594Z 2023-03-09 13:05:39,567 INFO success: mineos entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

Walkthrough is to stop docker, rm container and run

docker container stop mineos
docker container rm mineos
docker run -itd -p 9876:8443 -p 10000-10010:25565-25575 -v /srv/games/minecraft:/var/games/minecraft --name mineos mineos

It set new password, which work to next restart :D

└─# docker logs mineos --follow --timestamps
2023-03-09T13:30:06.055308665Z USER_PASSWORD not specified, generating random password.
2023-03-09T13:30:06.066470345Z *******************************************************
2023-03-09T13:30:06.066494699Z Password set to:  Zjk2MzBhYzliODE1MzA3
2023-03-09T13:30:06.066499329Z *******************************************************
2023-03-09T13:30:06.066502913Z GROUP_NAME not provided; defaulting to "mc"
2023-03-09T13:30:06.081419622Z Created group: mc (gid: 1000)
2023-03-09T13:30:06.112482828Z Created user: mc (uid: 1000, gid: 1000)
2023-03-09T13:30:06.112504451Z Setting user password for 'mc'
2023-03-09T13:30:06.129205353Z Setting use_https to:  true
2023-03-09T13:30:06.130714249Z Setting server port to: 8443
2023-03-09T13:30:06.135225719Z Generating Self-Signed SSL...
2023-03-09T13:30:06.147510590Z Generating a RSA private key
2023-03-09T13:30:06.151173498Z .+++++
2023-03-09T13:30:06.168728612Z ..........+++++
2023-03-09T13:30:06.168988359Z writing new private key to '.tmpkey.pem'
2023-03-09T13:30:06.170954366Z -----
2023-03-09T13:30:06.189370970Z writing RSA key
2023-03-09T13:30:06.201346544Z Setting https to true
2023-03-09T13:30:06.414027723Z 2023-03-09 13:30:06,413 CRIT Supervisor is running as root.  Privileges were not dropped because no user is specified in the config file.  If you intend to run as root, you can set user=root in the config file to avoid this message.
2023-03-09T13:30:06.414056854Z 2023-03-09 13:30:06,413 INFO Included extra file "/etc/supervisor/conf.d/mineos.conf" during parsing
2023-03-09T13:30:06.417916480Z 2023-03-09 13:30:06,417 INFO RPC interface 'supervisor' initialized
2023-03-09T13:30:06.418051159Z 2023-03-09 13:30:06,417 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2023-03-09T13:30:06.418298146Z 2023-03-09 13:30:06,418 INFO supervisord started with pid 1
2023-03-09T13:30:07.421617459Z 2023-03-09 13:30:07,421 INFO spawned: 'mineos' with pid 53
2023-03-09T13:30:08.506156704Z 2023-03-09 13:30:08,505 INFO success: mineos entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant