[Pianod] Music doesn't start when launched at startup

Perette Barella perette at barella.org
Sat Apr 6 07:10:19 PDT 2013


Hi Andrew,

Something went wrong on the player thread.  I'll add a message on that condition so it's clearer why it's stopping.

Now as far as troubleshooting this... 

Output from the player thread gets logged to standard error.  Starting pianod from /etc/rc or wherever the output may get logged somewhere but it depends on your flavor of UNIX/Linux, so probably just run pianod manually:
./pianod
Then telnet in from another window, fire it up, and see what happens.  Post the log here and we can dissect it some more.

One possibility is it's having trouble opening the audio device.  Try as root 'pianod -nroot'; if it works then there's an audio device permissions issue.  A long-term fix, rather than letting pianod as root with -nroot, would be to run pianod as whoever owns /dev/audio (or whatever the device is on your system) by -n<user>, or chmod g+w or o+w /dev/audio so pianod can use it too.

Lastly, I've seen some software that locks the audio device.  mserv does this on OS X, the Linux guys have mentioned that pianod does this itself on some Linuxes.  If you have some other media player that might have it open, make sure that's shut down and try again.

Perette


On 2013年04月06日, at 8:55, Andrew Shilliday wrote:

> I ran pianod from a local command line and everything seems to work fine.  Then I set it up to run automatically from /etc/init.d and moved my startscript and user config files into /etc/ as per the instructions.  
> 
> The daemon starts up correctly. I can start a session via telnet, and I can see the correct station list associated with my Pandora account.  When I go to play a station, however, nothing happens and the status stays at STOPPED.  Here's the log of one such command:
> 
> PLAY STATION "My Pandora Station"
> 132 admin selected the station: My Pandora Station
> 109 SelectedStation: station My Pandora Station
> 200 Success
> 133 Retrieved new playlist
> 105 Track playback complete
> 108 No station selected
> 103 Stopped
> 
> I've tried setting my daemon to run as a local user instead of as root, but that had no impact.
> 
> Any thoughts?
> _______________________________________________
> Pianod mailing list
> Pianod at lists.deviousfish.com
> http://lists.deviousfish.com/listinfo.cgi/pianod-deviousfish.com




More information about the Pianod mailing list