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@INFO: Machine agent started id:0
2013-03-21 22:06:51,683: juju.agents.machine@DEBUG: Units changed old:set([])
new:set(['mysql/0'])
2013-03-21 22:06:51,684: juju.agents.machine@DEBUG: Starting service unit:
mysql/0 ...
2013-03-21 22:06:51,706: unit.deploy@DEBUG: Downloading charm
cs:precise/mysql-15 to /home/ron/juju/ron-rowez/charms
2013-03-21 22:06:51,733: unit.deploy@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@ERROR: Fatal Python error: Py_Initialize:
Unable to get the locale encoding
2013-03-21 22:06:52,131: twisted@ERROR: File
"/usr/lib/python2.7/encodings/__init__.py", line 123
2013-03-21 22:06:52,131: twisted@ERROR: raise CodecRegistryError,\
2013-03-21 22:06:52,131: twisted@ERROR: ^
2013-03-21 22:06:52,131: twisted@ERROR: SyntaxError: invalid syntax
2013-03-21 22:06:52,132: twisted@ERROR:
2013-03-21 22:06:52,133: juju.agents.machine@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@INFO: Machine agent started id:0
2013-03-21 22:37:05,137: juju.agents.machine@DEBUG: Units changed old:set([])
new:set(['mysql/0'])
2013-03-21 22:37:05,137: juju.agents.machine@DEBUG: Starting service unit:
mysql/0 ...
2013-03-21 22:37:05,169: unit.deploy@DEBUG: Downloading charm
cs:precise/mysql-15 to /home/ron/juju/ron-rowez/charms
2013-03-21 22:37:05,222: unit.deploy@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@DEBUG: Starting service unit mysql/0...
2013-03-21 22:37:05,397: unit.deploy@INFO: Creating container mysql-0...
2013-03-21 22:37:57,017: unit.deploy@INFO: Created container ron-rowez-mysql-0
2013-03-21 22:37:57,080: unit.deploy@DEBUG: Charm extracted into container
2013-03-21 22:37:57,081: unit.deploy@DEBUG: Starting container...
2013-03-21 22:37:57,717: unit.deploy@INFO: Started container for mysql/0
2013-03-21 22:37:57,718: unit.deploy@INFO: Started service unit mysql/0
Results in start-error and nothing logged in machine-agent.log and
storage-server.log:
ron@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@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@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
Bugs, which is subscribed to 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
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs