[Bug 1130809] Re: lxc-ls crashed with SIGABRT in Py_FatalError()
rowez
1130809 at bugs.launchpad.net
Thu Mar 21 21:48:45 UTC 2013
Upgraded to 13.04 (raring ..).
twistd 12.3.0 is using /usr/bin/python 2.7.3 (storage-server.log)
Have no PYTHONPATH.
Only PATH is present.
And /usr/bin/python is a symlink to python2.7.
And /usr/bin/python3 is a symlink to python3.3.
Only the machine is running in juju status.
The service mysql is pending and pending. ......
The -Es is not present in /usr/bin/lxc-ls
and got this error in machine-agent.log:
2013-03-21 22:06:43,565: juju.agents.machine at INFO: Machine agent started id:0
2013-03-21 22:06:51,683: juju.agents.machine at DEBUG: Units changed old:set([]) new:set(['mysql/0'])
2013-03-21 22:06:51,684: juju.agents.machine at DEBUG: Starting service unit: mysql/0 ...
2013-03-21 22:06:51,706: unit.deploy at DEBUG: Downloading charm cs:precise/mysql-15 to /home/ron/juju/ron-rowez/charms
2013-03-21 22:06:51,733: unit.deploy at DEBUG: Using <juju.machine.unit.UnitContainerDeployment object at 0x1efd4d0> for mysql/0 in /home/ron/juju/ron-rowez
2013-03-21 22:06:52,131: twisted at ERROR: Fatal Python error: Py_Initialize: Unable to get the locale encoding
2013-03-21 22:06:52,131: twisted at ERROR: File "/usr/lib/python2.7/encodings/__init__.py", line 123
2013-03-21 22:06:52,131: twisted at ERROR: raise CodecRegistryError,\
2013-03-21 22:06:52,131: twisted at ERROR: ^
2013-03-21 22:06:52,131: twisted at ERROR: SyntaxError: invalid syntax
2013-03-21 22:06:52,132: twisted at ERROR:
2013-03-21 22:06:52,133: juju.agents.machine at ERROR: Error starting unit: mysql/0
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/juju/agents/machine.py", line 97, in watch_service_units
yield self.unit_deployer.start_service_unit(unit_name)
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1069, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/python2.7/dist-packages/juju/unit/deploy.py", line 91, in start_service_unit
running = yield deployment.is_running()
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1069, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/python2.7/dist-packages/juju/machine/unit.py", line 301, in is_running
prefix=self.container.container_name)
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1069, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/python2.7/dist-packages/juju/lib/lxc/__init__.py", line 147, in get_containers
_, output = yield deferToThread(_cmd, ["lxc-ls"])
File "/usr/lib/python2.7/dist-packages/twisted/python/threadpool.py", line 172, in _worker
result = context.call(ctx, function, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
File "/usr/lib/python2.7/dist-packages/juju/lib/lxc/__init__.py", line 48, in _cmd
raise LXCError(stdout_data)
LXCError: Fatal Python error: Py_Initialize: Unable to get the locale encoding
File "/usr/lib/python2.7/encodings/__init__.py", line 123
raise CodecRegistryError,\
^
SyntaxError: invalid syntax
With the -Es it looks like:
2013-03-21 22:36:44,992: juju.agents.machine at INFO: Machine agent started id:0
2013-03-21 22:37:05,137: juju.agents.machine at DEBUG: Units changed old:set([]) new:set(['mysql/0'])
2013-03-21 22:37:05,137: juju.agents.machine at DEBUG: Starting service unit: mysql/0 ...
2013-03-21 22:37:05,169: unit.deploy at DEBUG: Downloading charm cs:precise/mysql-15 to /home/ron/juju/ron-rowez/charms
2013-03-21 22:37:05,222: unit.deploy at DEBUG: Using <juju.machine.unit.UnitContainerDeployment object at 0x2f844d0> for mysql/0 in /home/ron/juju/ron-rowez
2013-03-21 22:37:05,364: unit.deploy at DEBUG: Starting service unit mysql/0...
2013-03-21 22:37:05,397: unit.deploy at INFO: Creating container mysql-0...
2013-03-21 22:37:57,017: unit.deploy at INFO: Created container ron-rowez-mysql-0
2013-03-21 22:37:57,080: unit.deploy at DEBUG: Charm extracted into container
2013-03-21 22:37:57,081: unit.deploy at DEBUG: Starting container...
2013-03-21 22:37:57,717: unit.deploy at INFO: Started container for mysql/0
2013-03-21 22:37:57,718: unit.deploy at INFO: Started service unit mysql/0
Results in start-error and nothing logged in machine-agent.log and
storage-server.log:
ron at TPBRR:~$ sudo juju status
machines:
0:
agent-state: running
dns-name: localhost
instance-id: local
instance-state: running
services:
mysql:
charm: cs:precise/mysql-15
relations: {}
units:
mysql/0:
agent-state: pending
machine: 0
public-address: null
2013-03-21 22:39:59,528 INFO 'status' command finished successfully
ron at TPBRR:~$ sudo juju status
machines:
0:
agent-state: running
dns-name: localhost
instance-id: local
instance-state: running
services:
mysql:
charm: cs:precise/mysql-15
relations: {}
units:
mysql/0:
agent-state: installed
machine: 0
public-address: 10.0.3.227
2013-03-21 22:41:54,989 INFO 'status' command finished successfully
ron at TPBRR:~$ sudo juju status
machines:
0:
agent-state: running
dns-name: localhost
instance-id: local
instance-state: running
services:
mysql:
charm: cs:precise/mysql-15
relations: {}
units:
mysql/0:
agent-state: start-error
machine: 0
public-address: 10.0.3.227
2013-03-21 22:42:31,949 INFO 'status' command finished successfully
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to juju in Ubuntu.
https://bugs.launchpad.net/bugs/1130809
Title:
lxc-ls crashed with SIGABRT in Py_FatalError()
To manage notifications about this bug go to:
https://bugs.launchpad.net/juju/+bug/1130809/+subscriptions
More information about the Ubuntu-server-bugs
mailing list