Trouble using local environment
Thiago Cardoso
artefon at gmail.com
Thu Jul 12 17:29:08 UTC 2012
Kapil, thanks for your response.
I checked the unit log and, indeed, I have an error. Here some info
about my box:
Linux 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC
2012 x86_64 x86_64 x86_64 GNU/Linux
$ python --version
Python 2.7.3
$ dpkg-query -W juju
juju 0.5+bzr531-0ubuntu1.2
And the error on unit's output.log:
unit.py: error: unrecognized arguments: --nodaemon
--session-file /var/run/juju/unit-crawler-0-agent.zksession
usage: unit.py [-h] [--debug] [--profile] [--savestats]
[--rundir RUNDIR]
[--pidfile PIDFILE] [--logfile LOGFILE]
[--loglevel {DEBUG,INFO,ERROR,WARNING,CRITICAL}]
[--chroot CHROOT] [--umask UMASK] [--uid UID] [--gid GID]
[--daemon] [--syslog] [--sysprefix PREFIX]
[--principal PRINCIPALS]
[--zookeeper-servers ZOOKEEPER_SERVERS]
[--juju-directory JUJU_DIRECTORY] [--unit-name UNIT_NAME]
thanks
-- Thiago
On Wed, Jul 11, 2012 at 6:42 PM, Kapil Thangavelu
<kapil.thangavelu at canonical.com> wrote:
> It does appear from the log output that the unit is up and running, but that
> the agent process failed to start. Could you send the output of the unit
> agent logs. They should be located within the container in the directory
> /var/log/juju
>
> thanks,
>
> Kapil
>
> On Wed, Jul 11, 2012 at 11:04 AM, Thiago Cardoso <artefon at gmail.com> wrote:
>>
>> follow up
>>
>> I found a virtual machine running (with nmap) and I was able to log
>> in. It seems to be running ok although for some reason the status
>> continues as 'pending' with the log stuck at the same point.
>>
>> I think this is the machine that should be executing the charm given
>> its hostname: ubuntu at thiago-local-crawler-0:~$.
>>
>> thanks
>> -- Thiago
>>
>>
>> On Wed, Jul 11, 2012 at 10:35 AM, Thiago Cardoso <artefon at gmail.com>
>> wrote:
>> > Hi,
>> >
>> > I am trying juju for my app deployment, but I'm having some problems
>> > with local testing. When I bootstrap and deploy in
>> > a local environment, I get the following status:
>> >
>> > $ juju status -e local
>> > machines:
>> > 0:
>> > agent-state: running
>> > dns-name: localhost
>> > instance-id: local
>> > instance-state: running
>> > services:
>> > crawler:
>> > charm: local:oneiric/crawler-1
>> > relations: {}
>> > units:
>> > crawler/0:
>> > agent-state: pending
>> > machine: 0
>> > public-address: null
>> > 2012-07-11 09:55:55,628 INFO 'status' command finished
>> > successfully
>> >
>> > The machine gets stuck at 'pending' state. debug-log gives the following
>> > output:
>> >
>> > $ juju debug-log -r -e local
>> > 2012-07-11 10:00:32,087 INFO Enabling distributed debug log.
>> > 2012-07-11 10:00:32,090 INFO Tailing logs - Ctrl-C to stop.
>> > 2012-07-11 10:00:14,089 Machine:0: unit.deploy DEBUG: Created
>> > master container thiago-local-0-template
>> > 2012-07-11 10:00:14,090 Machine:0: unit.deploy INFO: Creating
>> > container crawler-0...
>> > 2012-07-11 10:00:21,467 Machine:0: unit.deploy INFO: Container
>> > created for crawler/0
>> > 2012-07-11 10:00:21,476 Machine:0: unit.deploy DEBUG: Charm
>> > extracted into container
>> > 2012-07-11 10:00:21,661 Machine:0: unit.deploy DEBUG: Starting
>> > container...
>> > 2012-07-11 10:00:22,910 Machine:0: unit.deploy INFO: Started
>> > container for crawler/0
>> > 2012-07-11 10:00:22,911 Machine:0: unit.deploy INFO: Started
>> > service unit crawler/0
>> >
>> > The log stops at this point. I thought that it was downloading the
>> > server image or something, but the network shows no activity.
>> > It is in this state for 30 minutes now, any suggestions?
>> >
>> > Thanks in advance
>> > -- Thiago
>>
>> --
>> Juju mailing list
>> Juju at lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/juju
>
>
More information about the Juju
mailing list