[Pianod] Pianod downloader, libao boot issues (pi: to exclusive)
pi.gonewest at xoxy.net
pi.gonewest at xoxy.net
Thu May 9 23:51:42 PDT 2013
Any other ideas on this?
On Tue, May 7, 2013 at 11:01 PM, Neil Okamoto - pi.gonewest at xoxy.net <
pi.gonewest.d5081a81ba.neil.okamoto#gmail.com at ob.0sg.net> wrote:
>
> On Tue, May 7, 2013 at 6:21 PM, Perette Barella - perette at barella.org
> wrote:
>
>> Re: boot-time issues
>> pianod-ao-test.tar.gz is in the Devel downloads. It's 144+some code to
>> check the audio device is there before starting the player thread, then
>> reinitialize libao if it's not. Let me know if that fixes the boot-up
>> problems with the libao default device, if so there's a bit more work to
>> make it work with other devices.
>
>
>
> I compiled the "pianod-ao-test" version, installed, and rebooted with the
> same init.d/pianod script as last night. No difference.
>
> $ nc 10.0.0.18 4445
> 200 Connected
> 100 pianod 144. Welcome!
> 141 Volume: 0
> 108 No station selected
> 103 Stopped
> user admin admin
> 132 admin signed in
> 200 Success
> 136 Privileges: admin owner service influence tuner
> status
> 204 No data or end of data
> 103 Stopped
> 108 No station selected
> select station madonna
> 132 admin selected the station: Madonna
> 109 SelectedStation: station Madonna
> 200 Success
> play
> 200 Success
> 132 admin resumed playback
> 133 Retrieved new playlist
> 105 Track playback complete
> 500 Internal server error: Player error
> 108 No station selected
> 103 Stopped
>
>
> I finally figured out a way to redirect stderr/stdout to a file, here's
> what I see.
>
> 2013-05-08 05:48:54: No user data found. Creating admin user.
> fb_setup_ip6_socket: socket: Address family not supported by protocol
> 2013-05-08 05:48:56: 132 startscript has disconnected
>
> 2013-05-08 05:50:28: 132 admin signed in
>
> 2013-05-08 05:50:34: 132 admin selected the station: Madonna
>
> 2013-05-08 05:50:36: 132 admin resumed playback
>
> Home directory / not ours.
> W: [pulseaudio] core-util.c: Failed to open configuration file
> '//.pulse//daemon.conf': Permission denied
> W: [pulseaudio] daemon-conf.c: Failed to open configuration file:
> Permission denied
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
> ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card
> 2013-05-08 05:50:38: Cannot open audio device default/default/default,
> trying default
>
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
> ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card
> 2013-05-08 05:50:38: Cannot open audio device
>
>
>
> but again, if I simply stop/start the daemon:
>
> $ nc 10.0.0.18 4445
> 200 Connected
> 100 pianod 144. Welcome!
> 141 Volume: 0
> 108 No station selected
> 103 Stopped
> user admin admin
> 132 admin signed in
> 200 Success
> 136 Privileges: admin owner service influence tuner
> select station madonna
> 132 admin selected the station: Madonna
> 109 SelectedStation: station Madonna
> 200 Success
> play
> 200 Success
> 132 admin resumed playback
> 133 Retrieved new playlist
> 111 ID:
> 55dd318639fcc490596b45ce9feafa5d8dff42684e2e4950604330f71e285a4ca0a712652bf5813c797a321c2c8d0dfbc32ce9f8e0513bec
> 112 Album: The Sweet Escape (Explicit)
> 113 Artist: Gwen Stefani
> 114 Title: The Sweet Escape
> 118 CoverArt:
> http://cont-sjl-1.pandora.com/images/public/amz/8/1/1/4/602517144118_500W_496H.jpg
> 115 Station: Madonna
> 116 Rating: neutral
> 117 SeeAlso:
> http://www.pandora.com/gwen-stefani/sweet-escape-explicit/sweet-escape?dc=232&ad=1:45:1:91202::0:0:0:0:803:003:CA:06037:0:0:0:0
> 120 UserRating: neutral
> 101 00:00/04:06/-04:05 Playing
> stop
> 132 admin stopped the player
> 108 No station selected
> 200 Success
>
> and the stderr log in this case:
>
> 2013-05-08 05:55:04: No user data found. Creating admin user.
> fb_setup_ip6_socket: socket: Address family not supported by protocol
> 2013-05-08 05:55:06: 132 startscript has disconnected
>
> 2013-05-08 05:55:23: 132 admin signed in
>
> 2013-05-08 05:55:34: 132 admin selected the station: Madonna
>
> 2013-05-08 05:55:36: 132 admin resumed playback
>
> Home directory /root not ours.
> W: [pulseaudio] core-util.c: Failed to open configuration file
> '/root/.pulse//daemon.conf': Permission denied
> W: [pulseaudio] daemon-conf.c: Failed to open configuration file:
> Permission denied
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
> 2013-05-08 05:56:17: 132 admin stopped the player
>
>
> All this business about /root/.pulse permission denied is because I'm
> passing "-n pi". So I'll undo that next and try again.
>
> _______________________________________________
> Pianod mailing list
> Pianod at lists.deviousfish.com
> http://lists.deviousfish.com/listinfo.cgi/pianod-deviousfish.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.deviousfish.com/pipermail/pianod-deviousfish.com/attachments/20130509/08ac3eb2/attachment-0003.htm>
More information about the Pianod
mailing list