lociii / jukebox

Democratic Jukebox - your democratic music player
MIT License
300 stars 62 forks source link

Stream dies if the queue runs out and no one is logged in #26

Closed Wird closed 11 years ago

Wird commented 11 years ago

Stream dies if the queue runs out and no one is logged in. how do i debug?

lociii commented 11 years ago
  1. Which playback command do you use? mpg123 or shout?
  2. Can you please provide the backtrace when the stream dies?

Thanks!

Wird commented 11 years ago

playback is shout

When I run jukebox_shout-fg, it stops with

sending... sending... sending... Traceback (most recent call last): File "bin/jukebox", line 14, in execute_manager(settings) File "/home/ggw/jukebox/local/lib/python2.7/site-packages/django/core/management/init.py", line 459, in execute_manager utility.execute() File "/home/ggw/jukebox/local/lib/python2.7/site-packages/django/core/management/init.py", line 382, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/ggw/jukebox/local/lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv self.execute(_args, _options.dict) File "/home/ggw/jukebox/local/lib/python2.7/site-packages/django/core/management/base.py", line 232, in execute output = self.handle(_args, _options) File "/home/ggw/jukebox/local/lib/python2.7/site-packages/jukebox/jukebox_shout/management/commands/jukebox_shout.py", line 141, in handle song = songs_api.getNextSong() File "/home/ggw/jukebox/local/lib/python2.7/site-packages/jukebox/jukebox_core/api.py", line 362, in getNextSong song_instance = self.getRandomSongByPreferences() File "/home/ggw/jukebox/local/lib/python2.7/site-packages/jukebox/jukebox_core/api.py", line 384, in getRandomSongByPreferences user_id = data["_auth_user_id"] KeyError: '_auth_user_id'

Many thanks for this super nice project /Thomas

Wird commented 11 years ago

And... ./jukebox --version 1.4.5

lociii commented 11 years ago

This issue was already fixed but i missed to upload a new release to pypi. Sorry.