alfg / murmur-rest

:headphones: A RESTful API for administering virtual Mumble servers. Built with Flask and Ice.
https://github.com/alfg/murmur-rest
79 stars 34 forks source link

UnmarshalOutOfBoundsException when trying to get list of servers #1

Closed dbreese closed 10 years ago

dbreese commented 10 years ago

I'm new to Murmur & Ice, so please forgive for any stupid questions. :)

I installed murmur-rest, start up the server, but when I try

$ curl http://127.0.0.1:5000/api/v1/servers/

I get a huge spew with the following stack trace:

Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1836, in call return self.wsgi_app(environ, start_response) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1820, in wsgi_app response = self.make_response(self.handle_exception(e)) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1403, in handle_exception reraise(exc_type, exc_value, tb) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1817, in wsgi_app response = self.full_dispatch_request() File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1381, in handle_user_exception reraise(exc_type, exc_value, tb) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request return self.view_functionsrule.endpoint File "/usr/local/lib/python2.7/dist-packages/flask_classy.py", line 216, in proxy response = view(**request.view_args) File "/home/ubuntu/murmur-rest/app/api.py", line 41, in index 'users': (s.isRunning() and len(s.getUsers())) or 0, File "/home/ubuntu/murmur-rest/Murmur.ice", line 2627, in getUsers

UnmarshalOutOfBoundsException: exception ::Ice::UnmarshalOutOfBoundsException { reason = }

I really have the basic configuration running (ie, no fancy config, no virtual servers).

Do I need to first create a virtual server (error may indicate I do?)

alfg commented 10 years ago

HI @dbreese,

Thanks for reporting this. /servers/ should be returning an empty list when no virtual servers are running. So I'm thinking there might be a conflict between the slice file, or versions of mumble-server or ice.

Can I get the version of python-zeroc-ice and mumble-server you are running?

Thanks, Alf

dbreese commented 10 years ago

Hi, @alfg, thanks for the response. Here are the versions we are using:

python-zeroc-ice: 3.4.2-3

mumble-server: 1.2.3-2ubuntu2

dbreese commented 10 years ago

@alfg I installed the static mumble-server 1.2.5 libraries (ppa dist is not available for Ubuntu oneiric yet?) and it now works!

$ curl http://127.0.0.1:5000/api/v1/servers/
127.0.0.1 - - [26/Mar/2014 03:09:08] "GET /api/v1/servers/ HTTP/1.1" 200 -
[
    {
        "address": ":::1234",
        "channels": 2,
        "id": 1,
        "log_length": 1691,
        "maxusers": "10",
        "name": "",
        "running": true,
        "uptime": "0:00:55",
        "uptime_seconds": 55,
        "users": 0
    }
]
alfg commented 10 years ago

Awesome, glad it's working for you! I'll keep that issue in mind.