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

The default user failed to login #429

Closed
0xMadao opened this issue Sep 14, 2016 · 22 comments
Closed

The default user failed to login #429

0xMadao opened this issue Sep 14, 2016 · 22 comments
Assignees

Comments

@0xMadao
Copy link

0xMadao commented Sep 14, 2016

crane部署完后,使用默认的用户名和密码无法登录,提示服务忙,请稍候重试

@upccup
Copy link
Contributor

upccup commented Sep 14, 2016

thx for report. updated with https://github.com/Dataman-Cloud/crane#option-1-stable-version-in-one-line please try agine

@0xMadao
Copy link
Author

0xMadao commented Sep 14, 2016

@upccup 就是按照option1安装的,rolex_rolex_db_1容器里面的rolex库一张表都没有,是否正常?

@vitan
Copy link
Contributor

vitan commented Sep 14, 2016

@jeremywu0127 今天 options 1 更新了, 今天上午更新的。原来有个bug。就是 rolex_rolex_1 这个程序无法 start

@0xMadao
Copy link
Author

0xMadao commented Sep 14, 2016

@vitan 那最新的可用包什么时候放出来?我是今天下午2点多测试的,rolex_rolex_db_1的log显示MySQL init process done. Ready for start up.

@ckanner
Copy link

ckanner commented Sep 14, 2016

@jeremywu0127 可以拉下最新的代码,看这个https://github.com/Dataman-Cloud/crane/pull/419,已经merge了

@vitan
Copy link
Contributor

vitan commented Sep 14, 2016

@jeremywu0127 这个问题的话,应该是 mysql 容器没有成功启动,什么操作系统?

@vitan
Copy link
Contributor

vitan commented Sep 14, 2016

Issue in English is better, friendly to the Non-Chinese developers.

@0xMadao
Copy link
Author

0xMadao commented Sep 14, 2016

@vitan ubuntu 14.04 docker 1.12.1

@0xMadao
Copy link
Author

0xMadao commented Sep 14, 2016

@ckanner this is option 2 way to install ? cause I run option 1 again and it doesn't work

@vitan
Copy link
Contributor

vitan commented Sep 14, 2016

@jeremywu0127 need more info, please paste

docker ps, docker logs rolex_rolex_db_1 and docker logs rolex_rolex_1

@vitan vitan changed the title 默认用户无法登录 The default user failed to login Sep 18, 2016
@0xMadao
Copy link
Author

0xMadao commented Sep 18, 2016

@vitan here is part of logs

ubuntu@test-munin:~$ docker ps
CONTAINER ID        IMAGE                   COMMAND                  CREATED             STATUS              PORTS                         NAMES
c1c73953395c        blackmamba:24abb08      "nginx -g 'daemon off"   3 days ago          Up 3 days               0.0.0.0:80->80/tcp, 443/tcp   crane_blackmamba_1
58b08024241a        crane:24abb08           "/bin/sh -c ./crane"     3 days ago          Up 3 seconds        0.0.0.0:5013->5013/tcp        crane_crane_1
8ca9a5eb83a1        registry:crane24abb08   "/entrypoint.sh /etc/"   3 days ago          Up 3 days           5000/tcp                      crane_crane_registry_1
0cdcaedd3535        mysql:crane24abb08      "docker-entrypoint.sh"   3 days ago          Up 3 days            3306/tcp                      crane_crane_db_1

ubuntu@test-munin:~$docker logs crane_crane_db_1
2016-09-18T10:56:20.551916Z 10838 [Note] Aborted connection 10838 to db: 'crane' user: 'root' host: '172.19.0.4' (Got an error reading communication packets)
2016-09-18T10:56:50.804950Z 10839 [Note] Aborted connection 10839 to db: 'crane' user: 'root' host: '172.19.0.4' (Got an error reading communication packets)
2016-09-18T10:57:21.072828Z 10840 [Note] Aborted connection 10840 to db: 'crane' user: 'root' host: '172.19.0.4' (Got an error reading communication packets)

ubuntu@test-munin:~$docker logs crane_crane_1
time="2016-09-18T10:56:51Z" level=error msg="Parse info CRANE_SWARM_MANAGER_IP got error: missing delimiter '='"
time="2016-09-18T10:56:51Z" level=info msg="begin to init and enable plugin: registryauth"

@vitan
Copy link
Contributor

vitan commented Sep 19, 2016

The container crane_crane_1 is always restarting, which is caused by the mysql wrong init, I guess.

@upccup can you help to debug it? Need reproduce it on a Ubuntu server.

@0xMadao
Copy link
Author

0xMadao commented Sep 19, 2016

@upccup @vitan the code version which I used is
commit 24abb084cbff70ca94bbf3433d63dcdbd376bebb
Merge: c3fc206 960b84d
Author: Zhou Weitao <zhouwtlord@gmail.com>
Date: Wed Sep 14 18:05:25 2016 +0800
Merge pull request #437 from Dataman-Cloud/issue
Issue
and I use the option 1 to install the crane, server is ubuntu 14.04.2 docker version is 1.12.1 on aws ec2

@upccup
Copy link
Contributor

upccup commented Sep 19, 2016

@jeremywu0127 sorry to too late reply. is you mysql service is running good?

@f0x11
Copy link

f0x11 commented Sep 19, 2016

option 1

need more info

docker ps, docker logs, rolex_rolex_db_1 and docker logs rolex_rolex_1.

option 2

CRANE_IP=192.168.59.105 ./bin/build-and-start.sh

Do you set CRANE_IP?

@0xMadao
Copy link
Author

0xMadao commented Sep 20, 2016

@f0x11 @upccup I have already set the CRANE_IP, and mysql log is like,

2016-09-20T02:13:27.041001Z 15512 [Note] Aborted connection 15512 to db: 'crane' user: 'root' host: '172.19.0.4' (Got an error reading communication packets)
2016-09-20T02:13:57.311483Z 15513 [Note] Aborted connection 15513 to db: 'crane' user: 'root' host: '172.19.0.4' (Got an error reading communication packets)

@0xMadao
Copy link
Author

0xMadao commented Sep 20, 2016

docker logs crane_crane_1 shows like:

time="2016-09-20T02:21:31Z" level=fatal msg="Get http://myip:2375/v1.24/version: dial tcp myip:2375: i/o timeout"
time="2016-09-20T02:21:31Z" level=error msg="Parse info CRANE_SWARM_MANAGER_IP got error: missing delimiter '='"
time="2016-09-20T02:21:31Z" level=info msg="begin to init and enable plugin: registryauth"
time="2016-09-20T02:21:31Z" level=info msg="connecting mysql uri: root:111111@tcp(crane_db:3306)/crane?charset=utf8&parseTime=true&loc=Local"
time="2016-09-20T02:21:31Z" level=info msg="init and enable plugin: registryauth success"
time="2016-09-20T02:22:01Z" level=error msg="Unable to ping docker daemon. Ensure docker is running endpoint http://myip:2375err: Get http://myip:2375/v1.24/version: dial tcp myip:2375: i/o timeout"
time="2016-09-20T02:22:01Z" level=fatal msg="Get http://myip:2375/v1.24/version: dial tcp myip:2375: i/o timeout"
time="2016-09-20T02:22:01Z" level=error msg="Parse info CRANE_SWARM_MANAGER_IP got error: missing delimiter '='"
time="2016-09-20T02:22:01Z" level=info msg="begin to init and enable plugin: registryauth"
time="2016-09-20T02:22:01Z" level=info msg="connecting mysql uri: root:111111@tcp(crane_db:3306)/crane?charset=utf8&parseTime=true&loc=Local"
time="2016-09-20T02:22:01Z" level=info msg="init and enable plugin: registryauth success

does crane connect to the 2375 port by using the CRANE_IP? the CRANE_IP which I set is the public ip and the 2375 port doesn't expose to all address in aws security group

@0xMadao
Copy link
Author

0xMadao commented Sep 20, 2016

the reason is the aws sg,it works now! but I get anther error like

time="2016-09-20T02:39:05Z" level=warning msg="get node list error: This node is not a swarm manager. Use \"docker swarm init\" or \"docker swarm join\" to connect this node to swarm and try again."
time="2016-09-20T02:39:05Z" level=warning msg="get stack list error: This node is not a swarm manager. Use \"docker swarm init\" or \"docker swarm join\" to connect this node to swarm and try again."
time="2016-09-20T02:40:05Z" level=warning msg="get node list error: This node is not a swarm manager. Use \"docker swarm init\" or \"docker swarm join\" to connect this node to swarm and try again."
time="2016-09-20T02:40:05Z" level=warning msg="get stack list error: This node is not a swarm manager. Use \"docker swarm init\" or \"docker swarm join\" to connect this node to swarm and try again."

@0xMadao
Copy link
Author

0xMadao commented Sep 20, 2016

I solved it, crane doesn't init docker swarm mode during the install progress ?

@upccup
Copy link
Contributor

upccup commented Sep 20, 2016

@upccup
Copy link
Contributor

upccup commented Sep 20, 2016

@jeremywu0127 yes you should create a docker swarm cluster before run crane

@0xMadao
Copy link
Author

0xMadao commented Sep 20, 2016

thx to all guys, crane is great ! 👍

@0xMadao 0xMadao closed this as completed Sep 20, 2016
vitan added a commit that referenced this issue Sep 28, 2016
1. I18N
2. Merged blackmamba and rolex into crane
3. Improved the add node function
4. Added id attribute for html
5. Many UE improvements
6. Increased the test coverage
7. Implemented stack templates CRUD
8. Module plugin code refactor
9. Listed the supported OS
10. fixed bugs: #404 , #410, #429, #433, #451, #452, #460, #464, #465,
\#471 , #484, #500, #503, #504, #508, #510, #538
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

5 participants