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

[bug report] Run allinone_aliyun.sh failed #2610

Closed
fengzixu opened this issue Dec 24, 2018 · 7 comments
Closed

[bug report] Run allinone_aliyun.sh failed #2610

fengzixu opened this issue Dec 24, 2018 · 7 comments
Assignees
Labels
kind/bug This is bug report for project

Comments

@fengzixu
Copy link
Contributor

Question

When I want to process allinone_aliyun.sh to create a kubernetes cluster with the pouch(version 1.1.0), I find the error message as below:

Hit:1 http://mirrors.ustc.edu.cn/ubuntu bionic InRelease
Hit:2 http://mirrors.ustc.edu.cn/ubuntu bionic-updates InRelease
Hit:3 http://mirrors.aliyun.com/opsx/pouch/linux/debian pouch InRelease
Hit:4 http://mirrors.ustc.edu.cn/ubuntu bionic-backports InRelease
Hit:5 http://mirrors.ustc.edu.cn/ubuntu bionic-security InRelease
Hit:6 https://mirrors.aliyun.com/kubernetes/apt kubernetes-xenial InRelease
Hit:7 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease
Hit:8 https://download.docker.com/linux/ubuntu bionic InRelease
Reading package lists... Done
N: Skipping acquire of configured file 'stable/binary-i386/Packages' as repository 'http://mirrors.aliyun.com/opsx/pouch/linux/debian pouch InRelease' doesn't support architecture 'i386'
Hit:1 http://mirrors.ustc.edu.cn/ubuntu bionic InRelease
Hit:2 http://mirrors.aliyun.com/opsx/pouch/linux/debian pouch InRelease
Hit:3 http://mirrors.ustc.edu.cn/ubuntu bionic-updates InRelease
Hit:4 http://mirrors.ustc.edu.cn/ubuntu bionic-backports InRelease
Hit:5 https://mirrors.aliyun.com/kubernetes/apt kubernetes-xenial InRelease
Hit:6 http://mirrors.ustc.edu.cn/ubuntu bionic-security InRelease
Hit:7 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease
Hit:8 https://download.docker.com/linux/ubuntu bionic InRelease
Reading package lists... Done
N: Skipping acquire of configured file 'stable/binary-i386/Packages' as repository 'http://mirrors.aliyun.com/opsx/pouch/linux/debian pouch InRelease' doesn't support architecture 'i386'
Reading package lists... Done
Building dependency tree
Reading state information... Done
pouch is already the newest version (1.1.0-0ubuntu16).
0 upgraded, 0 newly installed, 0 to remove and 139 not upgraded.
Synchronizing state of pouch.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable pouch
update-rc.d: error: pouch Default-Start contains no runlevels, aborting.

My pouch.service

[Unit]
Description=pouch

[Service]
ExecStart=/usr/local/bin/pouchd --enable-cri=true --cri-version=v1alpha2
ExecReload=/bin/kill -HUP $MAINPID
Type=notify

# Having non-zero Limit*s causes performance problems due to accounting overhead
# in the kernel. We recommend using cgroups to do container-local accounting.
LimitNOFILE=infinity
LimitNPROC=infinity
LimitCORE=infinity

TimeoutStartSec=0
# set delegate yes so that systemd does not reset the cgroups of pouch containers
Delegate=yes

# kill only the pouch process, not all processes in the cgroup
KillMode=process

# restart the pouch process if it exits prematurely
Restart=on-failure
StartLimitBurst=3
StartLimitInterval=60s

[Install]
WantedBy=multi-user.target

@fuweid
Copy link
Contributor

fuweid commented Dec 25, 2018

@fengzixu the problem has been solved?

@allencloud allencloud added the kind/bug This is bug report for project label Dec 25, 2018
@fengzixu
Copy link
Contributor Author

@fuweid Nop. I try this operation on different machines. The mistake is the same.

@fengzixu
Copy link
Contributor Author

New mistake when I want to restart pouch through systemctl

root@xr-lab:/home/xr# systemctl restart pouch.service
Job for pouch.service failed because the control process exited with error code.
See "systemctl status pouch.service" and "journalctl -xe" for details.
root@xr-lab:/home/xr# systemctl status pouch.service
● pouch.service - pouch
   Loaded: loaded (/lib/systemd/system/pouch.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/pouch.service.d
           └─pouch.conf
   Active: failed (Result: exit-code) since Tue 2018-12-25 11:05:16 CST; 43s ago
  Process: 4147 ExecStart=/usr/bin/pouchd --enable-cri=true --cri-version=v1alpha2 (code=exited, status=203/EXEC)
 Main PID: 4147 (code=exited, status=203/EXEC)

12月 25 11:05:16 xr-lab systemd[1]: pouch.service: Service hold-off time over, scheduling restart.
12月 25 11:05:16 xr-lab systemd[1]: pouch.service: Scheduled restart job, restart counter is at 3.
12月 25 11:05:16 xr-lab systemd[1]: Stopped pouch.
12月 25 11:05:16 xr-lab systemd[1]: pouch.service: Start request repeated too quickly.
12月 25 11:05:16 xr-lab systemd[1]: pouch.service: Failed with result 'exit-code'.
12月 25 11:05:16 xr-lab systemd[1]: Failed to start pouch.
12月 25 11:05:57 xr-lab systemd[1]: pouch.service: Start request repeated too quickly.
12月 25 11:05:57 xr-lab systemd[1]: pouch.service: Failed with result 'exit-code'.
12月 25 11:05:57 xr-lab systemd[1]: Failed to start pouch.

@fuweid
Copy link
Contributor

fuweid commented Dec 25, 2018

@fengzixu could you provide more details about the log? like journalctl -u pouch.service thanks

@fuweid fuweid self-assigned this Dec 25, 2018
@fengzixu
Copy link
Contributor Author

@fuweid I run the command journalctl -u pouch.service, there are not any useful message. The lastest timestamp of logs is 2018-12-24T22:35:42.

-- Logs begin at Mon 2018-12-24 22:35:40 CST, end at Tue 2018-12-25 12:10:46 CST. --
12月 24 22:35:40 xr-lab pouchd[22261]: time="2018-12-24T22:35:40.786368698+08:00" level=warning msg="failed to get ip of sandbox "b75bb190c4ef2ed0cb10a9700cf53edf25bc506102fd0a1c4955f3386c958948": failed to get pod network status: Unexpec
12月 24 22:35:40 xr-lab pouchd[22261]:  with error: exit status 1"
12月 24 22:35:41 xr-lab pouchd[22261]: time="2018-12-24T22:35:40.794938761+08:00" level=warning msg="failed to get ContainerStatus: "a24732cfbc34844caa79acf7f48a5d4f1b734d487d7af0f9736499c429d13ec0", failed to get image docker.io/library/
12月 24 22:35:41 xr-lab pouchd[22261]: time="2018-12-24T22:35:41.824126239+08:00" level=warning msg="failed to get ip of sandbox "6696c45b0206f58cbc2b23a4204134b977c593b64194dcb6480597a97838adf2": failed to get pod network status: Unexpec
12月 24 22:35:41 xr-lab pouchd[22261]:  with error: exit status 1"
12月 24 22:35:41 xr-lab pouchd[22261]: time="2018-12-24T22:35:41.825627278+08:00" level=warning msg="failed to get ip of sandbox "02a19169397ac3e93ba0402e961aa8555d356fd026b6e48fd92816b4ee752848": failed to get pod network status: Unexpec
12月 24 22:35:41 xr-lab pouchd[22261]:  with error: exit status 1"
12月 24 22:35:41 xr-lab pouchd[22261]: time="2018-12-24T22:35:41.833407104+08:00" level=warning msg="failed to get ContainerStatus: "dbb1a0c04af58abf51b3a57fe92875cdceda635c81aec36e04b20d07efdac7bc", failed to get image registry.hub.docke
12月 24 22:35:41 xr-lab pouchd[22261]: time="2018-12-24T22:35:41.849020068+08:00" level=warning msg="failed to get ContainerStatus: "1435cd66d189a106459a4a44c1572ed0543ba444bf278d58c3c079497b629fcc", failed to get image quay.io/coreos/fla
12月 24 22:35:41 xr-lab pouchd[22261]: time="2018-12-24T22:35:41.864193951+08:00" level=warning msg="failed to get ContainerStatus: "2796b2217983ddc0cbceeea3fbd0e5700529ed01c13fc2b5acc4390ac876973e", failed to get image registry.cn-hangzh
12月 24 22:35:41 xr-lab pouchd[22261]: time="2018-12-24T22:35:41.874010713+08:00" level=warning msg="failed to get ip of sandbox "77b574630dbdd5a5f2473d6fc5c7c14c2dbddf7962ecee1a5f61bbf438bdbb56": failed to get pod network status: Unexpec
12月 24 22:35:41 xr-lab pouchd[22261]:  with error: exit status 1"
12月 24 22:35:41 xr-lab pouchd[22261]: time="2018-12-24T22:35:41.875437725+08:00" level=warning msg="failed to get ip of sandbox "b75bb190c4ef2ed0cb10a9700cf53edf25bc506102fd0a1c4955f3386c958948": failed to get pod network status: Unexpec
12月 24 22:35:41 xr-lab pouchd[22261]:  with error: exit status 1"
12月 24 22:35:41 xr-lab pouchd[22261]: time="2018-12-24T22:35:41.882973122+08:00" level=warning msg="failed to get ContainerStatus: "3a35e61f22b05eed435bb99bad239c07811005d1af99f8f961cea51e12d5700d", failed to get image docker.io/library/
12月 24 22:35:41 xr-lab pouchd[22261]: time="2018-12-24T22:35:41.898483699+08:00" level=warning msg="failed to get ContainerStatus: "0a37a332b4bc002d7fe51484bc9563328246957450f83a9d5f848b77b16d34c0", failed to get image registry.cn-hangzh
12月 24 22:35:41 xr-lab pouchd[22261]: time="2018-12-24T22:35:41.914265447+08:00" level=warning msg="failed to get ContainerStatus: "bf7db442e2d98dd891223fe1ff404e18763486cb833eb3d0e1e1deaf7f04be4b", failed to get image docker.io/library/
12月 24 22:35:41 xr-lab pouchd[22261]: time="2018-12-24T22:35:41.929634566+08:00" level=warning msg="failed to get ContainerStatus: "c7ee4001401201a2b1be5c2a43ff8f83ff0f5bc95df391889fc98f93516638ab", failed to get image registry.cn-hangzh
12月 24 22:35:41 xr-lab pouchd[22261]: time="2018-12-24T22:35:41.939412236+08:00" level=warning msg="failed to get ip of sandbox "51b563b147f9123218dbce557d0165977565de69b297eecf8b7e42a66cbfa670": failed to get pod network status: Unexpec
12月 24 22:35:41 xr-lab pouchd[22261]:  with error: exit status 1"
12月 24 22:35:41 xr-lab pouchd[22261]: time="2018-12-24T22:35:41.940836619+08:00" level=warning msg="failed to get ip of sandbox "9b3e5a651d9dffdaf4d99fe273f3444dffbb7435cab137a23b60953cb826b9c5": failed to get pod network status: Unexpec
12月 24 22:35:41 xr-lab pouchd[22261]:  with error: exit status 1"
12月 24 22:35:41 xr-lab pouchd[22261]: time="2018-12-24T22:35:41.948627264+08:00" level=warning msg="failed to get ContainerStatus: "a48fc525a7405c4369711b4afb8a433ec82e2da745b7b41a2d02ea37aa9b8966", failed to get image registry.cn-hangzh
12月 24 22:35:41 xr-lab pouchd[22261]: time="2018-12-24T22:35:41.964036194+08:00" level=warning msg="failed to get ContainerStatus: "f0cf16e9f212630836b950360f5f9c0afbd0a97eb9563f893ff254afb9e38d6b", failed to get image registry.cn-hangzh
12月 24 22:35:41 xr-lab pouchd[22261]: time="2018-12-24T22:35:41.972828868+08:00" level=warning msg="failed to get ip of sandbox "6e103226ba9855a62d0cf120e4b8efbccad9d11c0def00d02806250e908ac463": failed to get pod network status: Unexpec
12月 24 22:35:41 xr-lab pouchd[22261]:  with error: exit status 1"
12月 24 22:35:41 xr-lab pouchd[22261]: time="2018-12-24T22:35:41.974231201+08:00" level=warning msg="failed to get ip of sandbox "2f10a6d665fc3b037df214cff9815b391771d37e2e486d314a02eb6010860113": failed to get pod network status: Unexpec
12月 24 22:35:41 xr-lab pouchd[22261]:  with error: exit status 1"
12月 24 22:35:41 xr-lab pouchd[22261]: time="2018-12-24T22:35:41.982013047+08:00" level=warning msg="failed to get ContainerStatus: "f09b4871d526da75ede8905c741600c969af0cfde313a6c384b8319a85a01437", failed to get image registry.hub.docke
12月 24 22:35:41 xr-lab pouchd[22261]: time="2018-12-24T22:35:41.997701942+08:00" level=warning msg="failed to get ContainerStatus: "dabddf28659b33118abeb5c0bc720ab4fb150350c75c1fba8344319de571594d", failed to get image quay.io/calico/nod
12月 24 22:35:42 xr-lab pouchd[22261]: time="2018-12-24T22:35:42.00659604+08:00" level=warning msg="failed to get ip of sandbox "6e103226ba9855a62d0cf120e4b8efbccad9d11c0def00d02806250e908ac463": failed to get pod network status: Unexpect
12月 24 22:35:42 xr-lab pouchd[22261]:  with error: exit status 1"
12月 24 22:35:42 xr-lab pouchd[22261]: time="2018-12-24T22:35:42.007993078+08:00" level=warning msg="failed to get ip of sandbox "2f10a6d665fc3b037df214cff9815b391771d37e2e486d314a02eb6010860113": failed to get pod network status: Unexpec
12月 24 22:35:42 xr-lab pouchd[22261]:  with error: exit status 1"
12月 24 22:35:42 xr-lab pouchd[22261]: time="2018-12-24T22:35:42.016647413+08:00" level=warning msg="failed to get ContainerStatus: "f2285ceee376fb529a1902edb5288429610ba164fbbe9af08d094ba2428c8879", failed to get image registry.hub.docke
12月 24 22:35:42 xr-lab pouchd[22261]: time="2018-12-24T22:35:42.025517491+08:00" level=warning msg="failed to get ip of sandbox "51b563b147f9123218dbce557d0165977565de69b297eecf8b7e42a66cbfa670": failed to get pod network status: Unexpec
12月 24 22:35:42 xr-lab pouchd[22261]:  with error: exit status 1"
12月 24 22:35:42 xr-lab pouchd[22261]: time="2018-12-24T22:35:42.026923861+08:00" level=warning msg="failed to get ip of sandbox "9b3e5a651d9dffdaf4d99fe273f3444dffbb7435cab137a23b60953cb826b9c5": failed to get pod network status: Unexpec
12月 24 22:35:42 xr-lab pouchd[22261]:  with error: exit status 1"
12月 24 22:35:42 xr-lab pouchd[22261]: time="2018-12-24T22:35:42.034644758+08:00" level=warning msg="failed to get ContainerStatus: "a48fc525a7405c4369711b4afb8a433ec82e2da745b7b41a2d02ea37aa9b8966", failed to get image registry.cn-hangzh
12月 24 22:35:42 xr-lab pouchd[22261]: time="2018-12-24T22:35:42.050063574+08:00" level=warning msg="failed to get ContainerStatus: "c7ee4001401201a2b1be5c2a43ff8f83ff0f5bc95df391889fc98f93516638ab", failed to get image registry.cn-hangzh
12月 24 22:35:42 xr-lab pouchd[22261]: time="2018-12-24T22:35:42.058970809+08:00" level=warning msg="failed to get ip of sandbox "6696c45b0206f58cbc2b23a4204134b977c593b64194dcb6480597a97838adf2": failed to get pod network status: Unexpec
12月 24 22:35:42 xr-lab pouchd[22261]:  with error: exit status 1"
12月 24 22:35:42 xr-lab pouchd[22261]: time="2018-12-24T22:35:42.060419509+08:00" level=warning msg="failed to get ip of sandbox "02a19169397ac3e93ba0402e961aa8555d356fd026b6e48fd92816b4ee752848": failed to get pod network status: Unexpec
12月 24 22:35:42 xr-lab pouchd[22261]:  with error: exit status 1"
12月 24 22:35:42 xr-lab pouchd[22261]: time="2018-12-24T22:35:42.068135228+08:00" level=warning msg="failed to get ContainerStatus: "dbb1a0c04af58abf51b3a57fe92875cdceda635c81aec36e04b20d07efdac7bc", failed to get image registry.hub.docke
12月 24 22:35:42 xr-lab pouchd[22261]: time="2018-12-24T22:35:42.083924696+08:00" level=warning msg="failed to get ContainerStatus: "1435cd66d189a106459a4a44c1572ed0543ba444bf278d58c3c079497b629fcc", failed to get image quay.io/coreos/fla
12月 24 22:35:42 xr-lab pouchd[22261]: time="2018-12-24T22:35:42.093861316+08:00" level=warning msg="failed to get ip of sandbox "77b574630dbdd5a5f2473d6fc5c7c14c2dbddf7962ecee1a5f61bbf438bdbb56": failed to get pod network status: Unexpec
12月 24 22:35:42 xr-lab pouchd[22261]:  with error: exit status 1"
12月 24 22:35:42 xr-lab pouchd[22261]: time="2018-12-24T22:35:42.095272606+08:00" level=warning msg="failed to get ip of sandbox "b75bb190c4ef2ed0cb10a9700cf53edf25bc506102fd0a1c4955f3386c958948": failed to get pod network status: Unexpec
12月 24 22:35:42 xr-lab pouchd[22261]:  with error: exit status 1"
12月 24 22:35:42 xr-lab pouchd[22261]: time="2018-12-24T22:35:42.103003838+08:00" level=warning msg="failed to get ContainerStatus: "a24732cfbc34844caa79acf7f48a5d4f1b734d487d7af0f9736499c429d13ec0", failed to get image docker.io/library/
12月 24 22:35:42 xr-lab pouchd[22261]: time="2018-12-24T22:35:42.118484819+08:00" level=warning msg="failed to get ContainerStatus: "f0cf16e9f212630836b950360f5f9c0afbd0a97eb9563f893ff254afb9e38d6b", failed to get image registry.cn-hangzh
12月 24 22:35:42 xr-lab pouchd[22261]: time="2018-12-24T22:35:42.134229012+08:00" level=warning msg="failed to get ContainerStatus: "24916665585e770b78921bde18a05c68103e5818238ca16d7e8e5f27afdd07b9", failed to get image registry.cn-hangzh
12月 24 22:35:42 xr-lab pouchd[22261]: time="2018-12-24T22:35:42.14989468+08:00" level=warning msg="failed to get ContainerStatus: "1bb2d418657dae5445c0c2a55a17548cb3c29ed8f0968adc309404183cb40f6f", failed to get image quay.io/calico/cni:
12月 24 22:35:42 xr-lab pouchd[22261]: time="2018-12-24T22:35:42.166726132+08:00" level=warning msg="failed to get ContainerStatus: "bf7db442e2d98dd891223fe1ff404e18763486cb833eb3d0e1e1deaf7f04be4b", failed to get image docker.io/library/
...skipping...

@fengzixu
Copy link
Contributor Author

The problem has been identified. I will repair it.

@fuweid fuweid changed the title Run allinone_aliyun.sh failed [bug report] Run allinone_aliyun.sh failed Dec 27, 2018
@fengzixu
Copy link
Contributor Author

fengzixu commented Dec 28, 2018

Let me do it at today as my a final commit for pouch in this year.

fengzixu added a commit to fengzixu/pouch that referenced this issue Dec 28, 2018
bugfix: repair the script of creating k8s cluster with pouch

1. revise the binary path of pouchd
2. delete the `systemctl enable pouch`

Related to: AliyunContainerService#2610

This is my final commit for pouch in 2018. Thanks for pouch.
Happy New Year!
fuweid pushed a commit that referenced this issue Dec 28, 2018
bugfix: repair the script of creating k8s cluster with pouch

1. revise the binary path of pouchd
2. delete the `systemctl enable pouch`

Related to: #2610

This is my final commit for pouch in 2018. Thanks for pouch.
Happy New Year!
Ace-Tang pushed a commit that referenced this issue Mar 12, 2019
bugfix: repair the script of creating k8s cluster with pouch

1. revise the binary path of pouchd
2. delete the `systemctl enable pouch`

Related to: #2610

This is my final commit for pouch in 2018. Thanks for pouch.
Happy New Year!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug This is bug report for project
Projects
None yet
Development

No branches or pull requests

3 participants