broker fails on startup with "HTTPCodeError: Server returned HTTP code 0"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Landscape Client |
Fix Released
|
Critical
|
Thomas Herve | ||
landscape-client (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Jaunty |
Fix Released
|
Undecided
|
Unassigned | ||
Karmic |
Fix Released
|
Undecided
|
Unassigned | ||
Lucid |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Etienne reported that the official landscape karmic instance he started more than 1h ago wasn't communicating with Landscape (AMI-1515F67C, us-east). I tried to start it too and got this error in the broker log, and also when starting landscape-client interactively:
2010-04-20 20:28:50,961 INFO [MainThread] Broker started on 'system' bus with config /etc/landscape/
2010-04-20 20:28:51,023 ERROR [MainThread] None
Traceback (most recent call last):
File "/usr/lib/
result = context.call(ctx, function, *args, **kwargs)
File "/usr/lib/
return self.currentCon
File "/usr/lib/
return func(*args,**kw)
File "/usr/lib/
raise HTTPCodeError(
HTTPCodeError: Server returned HTTP code 0
2010-04-20 20:29:50,965 INFO [MainThread] Starting urgent message exchange with https:/
2010-04-20 20:29:52,325 INFO [Dummy-1 ] Sent 549 bytes and received 146 bytes in 1.36s.
2010-04-20 20:29:52,328 INFO [MainThread] Switching to normal exchange mode.
2010-04-20 20:29:52,330 INFO [MainThread] Server UUID changed (old=None, new=af6f2dcf-
2010-04-20 20:29:52,332 INFO [MainThread] Accepted types changed: +test +register +register-cloud-vm
2010-04-20 20:29:52,334 INFO [MainThread] Starting message exchange with https:/
2010-04-20 20:29:52,334 INFO [MainThread] Message exchange completed in 1.37s.
2010-04-20 20:29:53,582 INFO [Dummy-1 ] Sent 549 bytes and received 70 bytes in 1.25s.
2010-04-20 20:29:53,587 INFO [MainThread] Message exchange completed in 1.25s.
2010-04-20 20:37:16,044 INFO [MainThread] Broker stopped on 'system' bus with config /etc/landscape/
2010-04-20 20:37:17,780 INFO [MainThread] Broker started on 'system' bus with config /etc/landscape/
2010-04-20 20:37:17,836 ERROR [MainThread] None
Traceback (most recent call last):
File "/usr/lib/
result = context.call(ctx, function, *args, **kwargs)
File "/usr/lib/
return self.currentCon
File "/usr/lib/
return func(*args,**kw)
File "/usr/lib/
raise HTTPCodeError(
HTTPCodeError: Server returned HTTP code 0
2010-04-20 20:37:32,824 INFO [MainThread] Broker stopped on 'system' bus with config /etc/landscape/
2010-04-20 20:37:40,105 INFO [MainThread] Broker started on 'system' bus with config /etc/landscape/
2010-04-20 20:37:40,139 ERROR [MainThread] None
Traceback (most recent call last):
File "/usr/lib/
result = context.call(ctx, function, *args, **kwargs)
File "/usr/lib/
return self.currentCon
File "/usr/lib/
return func(*args,**kw)
File "/usr/lib/
raise HTTPCodeError(
HTTPCodeError: Server returned HTTP code 0
2010-04-20 20:38:22,274 INFO [MainThread] Broker stopped on 'system' bus with config /etc/landscape/
Don't know yet what is going on. Etienne then said he started two more karmic instances, and one of them eventually worked.
Related branches
- Free Ekanayaka (community): Approve
- Kevin McDermott (community): Approve
-
Diff: 134 lines (+41/-27)1 file modifiedlandscape/broker/registration.py (+41/-27)
Changed in landscape-client: | |
assignee: | nobody → Thomas Herve (therve) |
milestone: | none → 1.5.1 |
status: | New → In Progress |
Changed in landscape-client: | |
status: | In Progress → Fix Committed |
visibility: | private → public |
tags: | added: needs-testing |
Changed in landscape-client: | |
status: | Fix Committed → Fix Released |
tags: | removed: needs-testing verification-needed |
This is the user-data from that running instance which has landscape-client backtracing: 10-242- 58-193: ~# curl http:// 169.254. 169.254/ 1.0/user- data/;echo urls46:https:/ /landscape. canonical. com/message- systems4: otpsls64: X9bqtt30Ja64x6u LgiRz0VnlyCbc4n sx85k0NKW78SYdB 2BxaZ4ZrcFNI8lr qr6I;s8: ping-urls35: http:// landscape. canonical. com/ping;
root@ip-
ds12:exchange-
I also tried upgrading to landscape-client 1.4.4, same error.