maniacs-setup fails with "503" error
Bug #1549554 reported by
Rod Smith
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
maas-cert-server |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
The maniacs-setup script fails sporadically with:
*******
* A MAAS administrative account with a name of bladernr is being
* created.
*
* Please enter a password for this account:
* Please re-enter the password for verification:
* Setting up the bladernr MAAS account using the supplied password
The MAAS server gave an unexpected response: 503
Mark Wenning, Jeff Lane, Mike Rushton and I have all run into it. I SUSPECT that the cause is that the script temporarily shuts down Apache, and if it's not fully up again by the time the script needs it, the 503 error results.
To post a comment you must log in.
I've seen this on 2 systems, both behind a proxy firewall (Dell Linuxlab). After "tuning" the proxy settings a bit, it instead crashed with the following: python2. 7/runpy. py", line 162, in _run_module_as_main python2. 7/runpy. py", line 72, in _run_code python2. 7/dist- packages/ maascli/ __main_ _.py", line 20, in <module> python2. 7/dist- packages/ maascli/ __init_ _.py", line 46, in main execute( options) python2. 7/dist- packages/ maascli/ cli.py" , line 78, in __call__ python2. 7/dist- packages/ maascli/ auth.py" , line 78, in check_valid_apikey insecure) python2. 7/dist- packages/ maascli/ api.py" , line 67, in http_request python2. 7/dist- packages/ httplib2/ __init_ _.py", line 1569, in request python2. 7/dist- packages/ httplib2/ __init_ _.py", line 1316, in _request request( conn, request_uri, method, body, headers) python2. 7/dist- packages/ httplib2/ __init_ _.py", line 1251, in _conn_request python2. 7/dist- packages/ httplib2/ __init_ _.py", line 900, in connect sock.connect( (self.host, self.port) + sa[2:]) python2. 7/dist- packages/ httplib2/ socks.py" , line 424, in connect __negotiatehttp (destpair[ 0], destpair[1]) python2. 7/dist- packages/ httplib2/ socks.py" , line 390, in __negotiatehttp (statuscode, statusline[2])) socks.HTTPError : (502, 'cannotconnect')
...
* Please enter a password for this account:
* Please re-enter the password for verification:
* Setting up the ubuntu MAAS account using the supplied password
Traceback (most recent call last):
File "/usr/lib/
"__main__", fname, loader, pkg_name)
File "/usr/lib/
exec code in run_globals
File "/usr/lib/
main()
File "/usr/lib/
options.
File "/usr/lib/
options.url, credentials, options.insecure)
File "/usr/lib/
insecure=
File "/usr/lib/
return http.request(url, method, body=body, headers=headers)
File "/usr/lib/
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/usr/lib/
(response, content) = self._conn_
File "/usr/lib/
conn.connect()
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
raise HTTPError(
httplib2.
ubuntu@maas:~$
...