alfg / guildbit

:sound: Mumble Hosting Platform
https://guildbit.com
56 stars 8 forks source link

EU Server not creating new virtual mumble servers #15

Closed alfg closed 10 years ago

alfg commented 10 years ago

A user has reported that he is unable to create a EU server. I see one server created, but I'm unable to create others.

Found this exception in log (not sure why exception didn't report by email).

Traceback (most recent call last):
  File "/srv/guildbit/app/views.py", line 79, in post
    server_id = murmur.create_server_by_location(form.location.data, payload)
  File "/srv/guildbit/app/murmur.py", line 92, in create_server_by_location
    port_check = find_available_port(location)
  File "/srv/guildbit/app/murmur.py", line 267, in find_available_port
    active_ports.append(i["port"])
KeyError: 'port'
alfg commented 10 years ago

Murmur-rest software was not up to date, so it was missing the port key in the json response. I guess this explains why EU servers were low recently.

I also need to add more exception capturing to report things like this.