我的EC2實例運行Ubuntu 12.04LTS後,在用戶數據腳本執行後關閉。EC2上的Ubuntu 12.04LTS在關閉用戶數據腳本後關閉
它在ELB後面運行,健康檢查似乎正在工作。在系統日誌中,在進行一些健康檢查之後,會出現「正在檢查無人值守更新:」說明,然後關閉電源。
下面是系統日誌的一部分。
user-data: Using MemoryStore for the Session
user-data: Using MemoryStore for the data store
user-data: OAuth 2.0 Authorization Server started on port 3000
user-data: 10.0.18.6 - - [Wed, 12 Feb 2014 20:37:22 GMT] "GET/HTTP/1.1" 200 2789 "-" "ELB-HealthChecker/1.0"
user-data: 10.0.18.6 - - [Wed, 12 Feb 2014 20:37:52 GMT] "GET/HTTP/1.1" 200 2789 "-" "ELB-HealthChecker/1.0"
Checking for running unattended-upgrades:
acpid: exiting
Wed Feb 12 20:38:13 UTC 2014: shutting down for poweroff [up 156s].
* Stopping landscape-client daemon [80G
[74G[[31mfail[39;49m]
* Asking all remaining processes to terminate... [80G failed: /var/lib/cloud/instance/scripts/part-001 [-15]
2014-02-12 20:38:13,694 - cc_scripts_user.py[WARNING]: failed to run-parts in /var/lib/cloud/instance/scripts
Traceback (most recent call last):
File "/usr/lib/python2.7/logging/handlers.py", line 807, in emit
self._connect_unixsocket(self.address)
File "/usr/lib/python2.7/logging/handlers.py", line 745, in _connect_unixsocket
self.socket.connect(address)
File "/usr/lib/python2.7/socket.py", line 224, in meth
[74G return getattr(self._sock,name)(*args)
error: [Errno 111] Connection refused
Logged from file cc_scripts_user.py, line 33
[ OK ]
2014-02-12 20:38:13,721 - __init__.py[WARNING]: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/cloudinit/CloudConfig/__init__.py", line 117, in run_cc_modules
cc.handle(name, run_args, freq=freq)
File "/usr/lib/python2.7/dist-packages/cloudinit/CloudConfig/__init__.py", line 78, in handle
[name, self.cfg, self.cloud, cloudinit.log, args])
File "/usr/lib/python2.7/dist-packages/cloudinit/__init__.py", line 327, in sem_and_run
func(*args)
File "/usr/lib/python2.7/dist-packages/cloudinit/CloudConfig/cc_scripts_user.py", line 31, in handle
util.runparts(runparts_path)
File "/usr/lib/python2.7/dist-packages/cloudinit/util.py", line 229, in runparts
raise RuntimeError('runparts: %i failures' % failed)
RuntimeError: runparts: 1 failures
Traceback (most recent call last):
File "/usr/lib/python2.7/logging/handlers.py", line 807, in emit
self._connect_unixsocket(self.address)
File "/usr/lib/python2.7/logging/handlers.py", line 745, in _connect_unixsocket
self.socket.connect(address)
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
error: [Errno 111] Connection refused
Logged from file __init__.py, line 119
2014-02-12 20:38:13,722 - __init__.py[ERROR]: config handling of scripts-user, None, [] failed
Traceback (most recent call last):
File "/usr/lib/python2.7/logging/handlers.py", line 807, in emit
self._connect_unixsocket(self.address)
File "/usr/lib/python2.7/logging/handlers.py", line 745, in _connect_unixsocket
self.socket.connect(address)
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
error: [Errno 111] Connection refused
Logged from file __init__.py, line 121
Traceback (most recent call last):
File "/usr/lib/python2.7/logging/handlers.py", line 807, in emit
self._connect_unixsocket(self.address)
File "/usr/lib/python2.7/logging/handlers.py", line 745, in _connect_unixsocket
self.socket.connect(address)
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
error: [Errno 111] Connection refused
Logged from file __init__.py, line 116
ec2:
ec2: #############################################################
ec2: -----BEGIN SSH HOST KEY FINGERPRINTS-----
ec2: 1024 40:fa:b0:63:19:cb:ba:ab:d3:60:d5:f1:8e:7b:46:e0 [email protected] (DSA)
ec2: 256 5b:f6:a6:28:8e:70:6d:e5:37:53:f2:2c:d3:9f:4e:80 [email protected] (ECDSA)
ec2: 2048 ab:e4:68:84:28:b7:dd:31:9c:61:36:df:2a:90:0f:35 [email protected] (RSA)
ec2: -----END SSH HOST KEY FINGERPRINTS-----
ec2: #############################################################
-----BEGIN SSH HOST KEY KEYS-----
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFjnRoQzoWPMShoAHXgvoqWVxils40EfyzTzlj3ASR6zaOTt9Aw+JH+LwHe0bpmyhXAIgiG4Yo0aazwt1301kZY= [email protected]
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCp7JxhFxkc8RxfmzhEiLKOuH1NOrpaMsF+SENi47Z8ncA20+VZwhCETxnqVqiybqzITIuuV/33FkCu+4N5ii0GCiZIbdHd9zlbi0QTLXcV1CPORTNH3+1HEiyn6yKC3Cyk2qVqCTpKHNdboG1PKBWrLGg5PqyM45A7+4BSqTNk1vnvE0r3k6hKn8K4WSfQfy8LCBNm4/xq5rxuKSkMTSvoBenWMaaeS63t3k213Y+nQ0dilOXhjxa8VP55Vtx/7t2C1PwMZHiQNNpMiUmhduNzVr1yJKu7G57c+7iMIk7IGgAZ/tiNYqigvfKfJwYqEUEIisNrluBgSR3S2FXI/euJ [email protected]
-----END SSH HOST KEY KEYS-----
Traceback (most recent call last):
File "/usr/lib/python2.7/logging/handlers.py", line 807, in emit
self._connect_unixsocket(self.address)
File "/usr/lib/python2.7/logging/handlers.py", line 745, in _connect_unixsocket
self.socket.connect(address)
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
error: [Errno 111] Connection refused
Logged from file __init__.py, line 116
Traceback (most recent call last):
File "/usr/lib/python2.7/logging/handlers.py", line 807, in emit
self._connect_unixsocket(self.address)
File "/usr/lib/python2.7/logging/handlers.py", line 745, in _connect_unixsocket
self.socket.connect(address)
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
error: [Errno 111] Connection refused
Logged from file __init__.py, line 116
cloud-init boot finished at Wed, 12 Feb 2014 20:38:13 +0000. Up 156.72 seconds
2014-02-12 20:38:13,913 - cloud-init-cfg[ERROR]: errors running cloud_config [final]: ['scripts-user']
Traceback (most recent call last):
File "/usr/lib/python2.7/logging/handlers.py", line 807, in emit
self._connect_unixsocket(self.address)
File "/usr/lib/python2.7/logging/handlers.py", line 745, in _connect_unixsocket
self.socket.connect(address)
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
error: [Errno 111] Connection refused
Logged from file cloud-init-cfg, line 106
errors running cloud_config [final]: ['scripts-user']
* All processes ended within 2 seconds.... [80G
[74G[ OK ]
* Deconfiguring network interfaces... [80G
[74G[ OK ]
* Deactivating swap... [80G
[74G[ OK ]
* Will now halt
[38117.674998] System halted.
您是否在使用ELB自動縮放? – datasage
當自動縮放啓動時會出現問題。通過控制檯使用相同的用戶數據腳本啓動它,並且它很好。 –