juju statu error

Asked by Dayo Olutayo

After a successfull bootstrap, juju status always give me the below error:

2012-10-28 12:49:14,903 INFO Connecting to environment...
2012-10-28 12:49:21,624 ERROR SSH forwarding error: -bash: warning: setlocale: LC_ALL: cannot change locale (en_NG.UTF-8)

2012-10-28 12:49:21,626 ERROR Cannot connect to environment: an integer is required
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/juju/providers/common/connect.py", line 42, in run
    client = yield self._internal_connect(share)
TypeError: an integer is required
2012-10-28 12:49:21,627 ERROR an integer is required

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu juju Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Dayo Olutayo (xplora) said :
#1

juju -v status

sunday@lapmach:~$ juju -v status
2012-10-28 13:07:23,035 DEBUG Initializing juju status runtime
2012-10-28 13:07:23,057 INFO Connecting to environment...
2012-10-28 13:07:25,654 DEBUG Connecting to environment using ec2-50-17-46-231.compute-1.amazonaws.com...
2012-10-28 13:07:25,655 DEBUG Spawning SSH process with remote_user="ubuntu" remote_host="ec2-50-17-46-231.compute-1.amazonaws.com" remote_port="2181" local_port="60417".
2012-10-28 13:07:29,165:7762(0x7f63e4254700):ZOO_INFO@log_env@658: Client environment:zookeeper.version=zookeeper C client 3.3.5
2012-10-28 13:07:29,165:7762(0x7f63e4254700):ZOO_INFO@log_env@662: Client environment:host.name=lapmach
2012-10-28 13:07:29,165:7762(0x7f63e4254700):ZOO_INFO@log_env@669: Client environment:os.name=Linux
2012-10-28 13:07:29,165:7762(0x7f63e4254700):ZOO_INFO@log_env@670: Client environment:os.arch=3.2.0-32-generic
2012-10-28 13:07:29,165:7762(0x7f63e4254700):ZOO_INFO@log_env@671: Client environment:os.version=#51-Ubuntu SMP Wed Sep 26 21:33:09 UTC 2012
2012-10-28 13:07:29,166:7762(0x7f63e4254700):ZOO_INFO@log_env@679: Client environment:user.name=(null)
2012-10-28 13:07:29,166:7762(0x7f63e4254700):ZOO_INFO@log_env@687: Client environment:user.home=/home/sunday
2012-10-28 13:07:29,166:7762(0x7f63e4254700):ZOO_INFO@log_env@699: Client environment:user.dir=/home/sunday
2012-10-28 13:07:29,166:7762(0x7f63e4254700):ZOO_INFO@zookeeper_init@727: Initiating client connection, host=localhost:60417 sessionTimeout=10000 watcher=0x7f63e224c6b0 sessionId=0 sessionPasswd=<null> context=0x2e6f5d0 flags=0
2012-10-28 13:07:29,167:7762(0x7f63de688700):ZOO_INFO@check_events@1585: initiated connection to server [127.0.0.1:60417]
2012-10-28 13:07:29,830 ERROR SSH forwarding error: -bash: warning: setlocale: LC_ALL: cannot change locale (en_NG.UTF-8)

2012-10-28 13:07:29,831:7762(0x7f63e4254700):ZOO_INFO@zookeeper_close@2321: Freeing zookeeper resources for sessionId=0

2012-10-28 13:07:55,656 DEBUG Retrying connection: Cannot connect to environment using ec2-50-17-46-231.compute-1.amazonaws.com (perhaps still initializing): could not connect before timeout after 1 retries
2012-10-28 13:07:58,056 DEBUG Connecting to environment using ec2-50-17-46-231.compute-1.amazonaws.com...
2012-10-28 13:07:58,056 DEBUG Spawning SSH process with remote_user="ubuntu" remote_host="ec2-50-17-46-231.compute-1.amazonaws.com" remote_port="2181" local_port="60751".
2012-10-28 13:08:01,066:7762(0x7f63e4254700):ZOO_INFO@log_env@658: Client environment:zookeeper.version=zookeeper C client 3.3.5
2012-10-28 13:08:01,066:7762(0x7f63e4254700):ZOO_INFO@log_env@662: Client environment:host.name=lapmach
2012-10-28 13:08:01,066:7762(0x7f63e4254700):ZOO_INFO@log_env@669: Client environment:os.name=Linux
2012-10-28 13:08:01,066:7762(0x7f63e4254700):ZOO_INFO@log_env@670: Client environment:os.arch=3.2.0-32-generic
2012-10-28 13:08:01,066:7762(0x7f63e4254700):ZOO_INFO@log_env@671: Client environment:os.version=#51-Ubuntu SMP Wed Sep 26 21:33:09 UTC 2012
2012-10-28 13:08:01,066:7762(0x7f63e4254700):ZOO_INFO@log_env@679: Client environment:user.name=(null)
2012-10-28 13:08:01,066:7762(0x7f63e4254700):ZOO_INFO@log_env@687: Client environment:user.home=/home/sunday
2012-10-28 13:08:01,066:7762(0x7f63e4254700):ZOO_INFO@log_env@699: Client environment:user.dir=/home/sunday
2012-10-28 13:08:01,066:7762(0x7f63e4254700):ZOO_INFO@zookeeper_init@727: Initiating client connection, host=localhost:60751 sessionTimeout=10000 watcher=0x7f63e224c6b0 sessionId=0 sessionPasswd=<null> context=0x2e9dc50 flags=0
2012-10-28 13:08:01,067:7762(0x7f63dde87700):ZOO_INFO@check_events@1585: initiated connection to server [127.0.0.1:60751]
2012-10-28 13:08:01,744:7762(0x7f63dde87700):ZOO_INFO@check_events@1632: session establishment complete on server [127.0.0.1:60751], sessionId=0x13aa6d3fe9d0028, negotiated timeout=10000
2012-10-28 13:08:01,745 ERROR SSH forwarding error: -bash: warning: setlocale: LC_ALL: cannot change locale (en_NG.UTF-8)

2012-10-28 13:08:01,745:7762(0x7f63e4254700):ZOO_INFO@zookeeper_close@2304: Closing zookeeper sessionId=0x13aa6d3fe9d0028 to [127.0.0.1:60751]

2012-10-28 13:08:01,746 ERROR Cannot connect to environment: an integer is required
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/juju/providers/common/connect.py", line 42, in run
    client = yield self._internal_connect(share)
TypeError: an integer is required
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1095, in gotResult
    _inlineCallbacks(r, g, deferred)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1039, in _inlineCallbacks
    result = g.send(result)
  File "/usr/lib/python2.7/dist-packages/juju/providers/common/connect.py", line 75, in _internal_connect
    yield self.wait_for_initialization(client)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1181, in unwindGenerator
    return _inlineCallbacks(None, gen, Deferred())
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1039, in _inlineCallbacks
    result = g.send(result)
  File "/usr/lib/python2.7/dist-packages/juju/providers/common/connect.py", line 80, in wait_for_initialization
    exists_d, watch_d = client.exists_and_watch("/initialized")
  File "/usr/lib/python2.7/dist-packages/txzookeeper/client.py", line 584, in exists_and_watch
    return self._exists(path, watcher), d
  File "/usr/lib/python2.7/dist-packages/txzookeeper/client.py", line 274, in _exists
    result = zookeeper.aexists(self.handle, path, watcher, callback)
exceptions.TypeError: an integer is required
2012-10-28 13:08:01,781 ERROR Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1095, in gotResult
    _inlineCallbacks(r, g, deferred)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1039, in _inlineCallbacks
    result = g.send(result)
  File "/usr/lib/python2.7/dist-packages/juju/providers/common/connect.py", line 75, in _internal_connect
    yield self.wait_for_initialization(client)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1181, in unwindGenerator
    return _inlineCallbacks(None, gen, Deferred())
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1039, in _inlineCallbacks
    result = g.send(result)
  File "/usr/lib/python2.7/dist-packages/juju/providers/common/connect.py", line 80, in wait_for_initialization
    exists_d, watch_d = client.exists_and_watch("/initialized")
  File "/usr/lib/python2.7/dist-packages/txzookeeper/client.py", line 584, in exists_and_watch
    return self._exists(path, watcher), d
  File "/usr/lib/python2.7/dist-packages/txzookeeper/client.py", line 274, in _exists
    result = zookeeper.aexists(self.handle, path, watcher, callback)
exceptions.TypeError: an integer is required

2012-10-28 13:08:01,782 ERROR an integer is required

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

Try:

sudo apt-get --reinstall install python2.7

Revision history for this message
Dayo Olutayo (xplora) said :
#3

The problem still persist

Revision history for this message
Dayo Olutayo (xplora) said :
#4

The problem still persist

Thanks,

Sunday Olutayo

----- Original Message -----
From: "actionparsnip" <email address hidden>
To: <email address hidden>
Sent: Sunday, October 28, 2012 1:30:58 PM
Subject: Re: [Question #212554]: juju statu error

Your question #212554 on juju in Ubuntu changed:
https://answers.launchpad.net/ubuntu/+source/juju/+question/212554

    Status: Open => Answered

actionparsnip proposed the following answer:
Try:

sudo apt-get --reinstall install python2.7

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/ubuntu/+source/juju/+question/212554/+confirm?answer_id=1

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/ubuntu/+source/juju/+question/212554

You received this question notification because you asked the question.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

What is the output of:

lsb_release -a; uname -a; apt-cache polict juju

Thanks

Revision history for this message
Dayo Olutayo (xplora) said :
#6

sunday@lapmach:~$ lsb_release -a; uname -a; apt-cache policy juju
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.1 LTS
Release: 12.04
Codename: precise
Linux lapmach 3.2.0-32-generic #51-Ubuntu SMP Wed Sep 26 21:33:09 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
juju:
  Installed: 0.6.0.1+bzr598-0juju1~precise1
  Candidate: 0.6.0.1+bzr598-0juju1~precise1
  Version table:
 *** 0.6.0.1+bzr598-0juju1~precise1 0
        500 http://ppa.launchpad.net/juju/pkgs/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status
     0.5+bzr531-0ubuntu1.3 0
        500 http://ng.archive.ubuntu.com/ubuntu/ precise-updates/universe amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ precise-security/universe amd64 Packages
     0.5+bzr531-0ubuntu1 0
        500 http://ng.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages

Thanks

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

I suggets you run:

ubuntu-bug juju

and report a bug

Revision history for this message
Dayo Olutayo (xplora) said :
#8

Running 'ubuntu-bug juju' I got the below:

The problem cannot be reported:

This is not an official Ubuntu package. Please remove any third party package and try again.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#9

Ahh yes, you are using a PPA version. You can either run:

sudo apt-get install ppa-purge; sudo ppa-purge ppa:juju/pkgs

Then retry juju and / or report a bug then.

or

contact the owner of the PPA you added:
https://launchpad.net/~juju/+contactuser

And ask them to assist. If you start adding random 3rd party package sources and get issues, don't be surprised.

Revision history for this message
Dayo Olutayo (xplora) said :
#10

still not working. So I report a bug

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#11

When you do, link the question to the bug using the link at the top of the page

Revision history for this message
Dayo Olutayo (xplora) said :
#12

The bug has actually been reported before

Revision history for this message
Launchpad Janitor (janitor) said :
#13

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Dayo Olutayo (xplora) said :
#14

The issue remain unsolved

Thanks,

Sunday Olutayo

Revision history for this message
Launchpad Janitor (janitor) said :
#15

This question was expired because it remained in the 'Open' state without activity for the last 15 days.