Ubuntu: Juju - Unknown error



Question:

I am using Ubuntu 14.04 server, have MaaS as Juju environment. I was having some issues which my bootstrapped node couldn't access the charm store, so I installed the squid proxy server.

Here's what I did:

enter image description here

Default

enter image description here

Commented

enter image description here

enter image description here

Commented the http_access deny_all

Added http_access allow network

Added http_acces allow all

enter image description here

Added acl network src 172.16.1.0/24

enter image description here

Juju status

enter image description here

enter image description here

The ~/.juju/environments.yaml file:

enter image description here

juju debug-log --replay :

enter image description here

I don't know why is not working, even the charms WordPress and MySQL are still allocating...

Any tips? Thanks in advance

EDITED

On the MaaS Server:

route -n

enter image description here

tracepath google.com

enter image description here

Now juju ssh 0:

route -n

enter image description here

tracepath google.com

enter image description here

curl -v google.com

enter image description here

Information about my setup on MaaS Server:

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

I re-bootstrapped my MaaS environment, deployed mysql+wordpress+relation and deployed juju gui, and this is my actual status, but my wordpress node can't seem to do: add-apt-repository ppa:charmers/charm-helpers despite having installed it on my server

enter image description here

enter image description here

enter image description here

Testing add-apt-repository ppa:charmers/charm-helpers on my MaaS server:

enter image description here

Testing add-apt-repository ppa:charmers/charm-helpers on the wordpress node ( hook failed install ):

enter image description here

EDITED

route -n

enter image description here

curl www.google.com

enter image description here

sudo apt-get install --reinstall ca-certificates

enter image description here

juju resolved --retry wordpress/0

juju resolved --retry phpmyadmin/0

juju debug-log --replay

wordpress:

enter image description here

phpmyadmin:

enter image description here

enter image description here

EDITED

enter image description here

juju ssh 2

su

cd /var/log/juju

export http_proxy=http://root:redeslinux@172.16.1.160:3128/

export https_proxy=http://root:redeslinux@172.16.1.160:3128/

cat unit-wordpress-0.log

enter image description here

enter image description here

plus apt-get update

and did too:

sudo visudo

Added Defaults env_keep="https_proxy" to the end of the file.

But when I go to my MaaS server where juju is installed:

juju resolved --retry wordpress/0

enter image description here

and so I went again to the node where wordpress is installed to check why is not working:

juju ssh 2

su

enter image description here

It works if I add export http_proxy=http://root:redeslinux@172.16.1.160:3128/ but when I close the wordpress node PuTTY, and open the MaaS server PuTTY and do juju resolved --retry wordpress/0 gives hook failed install.

What to do, to make export http_proxy=http://root:redeslinux@172.16.1.160:3128/ permanent in the wordpress node or similiar?

EDITED

enter image description here

The bootstrapped node show some messages:

enter image description here

juju debug-log --replay

machine-0: 2015-05-11 20:13:30 ERROR juju.worker.firewaller firewaller.go:435 failed to lookup "machine-0", skipping port change machine-0: 2015-05-11 20:13:30 ERROR juju.worker runner.go:219 exited "firewaller": gomaasapi: got error back from server: 401 OK (Expired timestamp: given 1431375210 and now 1431382411 has a greater difference than threshold 300) machine-0: 2015-05-11 20:13:31 ERROR juju.provisioner provisioner.go:204 environ provisioner died: failed to process updated machines: failed to get all instances from broker: gomaasapi: got error back from server: 401 OK (Expired timestamp: given 1431375211 and now 1431382412 has a greater difference than threshold 300) machine-0: 2015-05-11 20:13:31 ERROR juju.worker runner.go:219 exited "environ-provisioner": failed to process updated machines: failed to get all instances from broker: gomaasapi: got error back from server: 401 OK (Expired timestamp: given 1431375211 and now 1431382412 has a greater difference than threshold 300) machine-0: 2015-05-11 20:13:33 ERROR juju.worker runner.go:219 exited "firewaller": gomaasapi: got error back from server: 401 OK (Expired timestamp: given 1431375213 and now 1431382414 has a greater difference than threshold 300)

How to fix this?


Solution:1

I assume by charm store you are referring to the website? I'm almost sure that Squid is overkill.

I see that machine 0 uses your proxy successfully. I can also see that the default route of machine 0 is 172.16.1.1, but the default route of the MAAS host is 172.16.1.2. It is set up incorrectly in the MAAS web interface, as you show in your screenshot. Change the "Router" configuration in the MAAS DHCP website to 172.16.1.2, and re-try


Solution:2

I had same error check your time zone and set all to UTC, after installation you can return it back in any local time zone


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »