[Pianod] New error just crept up
Jimmy Pop
jimmypopali96 at gmail.com
Wed Jul 24 09:07:39 PDT 2013
The error in question was not generated by a pi, it was generated by a
3.3 kernel on a Debian fs, running on a Cubieboard, but the cubie and
pi are both arm processors. I'll try it on my full Debian box tonight.
Perhaps a buffer, that queues commands until it acknowledges it's
online would be helpful.
Also, if we could generate an offline event to the control port, that
would be helpful.
The Internet could be down, but a dedicated system on the local
network trying to control it should be informed.
On Jul 24, 2013, at 8:27 AM, Perette Barella <perette at barella.org> wrote:
> Sorry for the delay, I've been on a bicycle adventure for a few weeks.
>
> In the event of network problems, pianod stores the user credentials and retries periodically until the network comes up. At least on OS X, it recovers correctly. I took the ethernet offline and started up, yielding the dreaded getaddr failed:
>
> 133 Logging in to server
> 502 getaddr failed.
>
> When I brought the ethernet up, on the next pianod retry (once a minute):
>
> 133 Logging in to server
> 133 Pandora credentials changed.
> 136 Privileges: user
> 135 Station list has changed
> 134 Mix has been changed
>
> Of course, by then the start script had already completed so any subsequent commands (like picking stations or starting music) failed and didn't get run, but I was able to pick a station and start playback. This is not ideal, but I don't have any good ideas for improving it either.
>
> So I'll point to the Linux network libraries (getaddrinfo) and ask why isn't reflecting the network coming up and/or why it's troubled by running as 'nobody'? Is this true of all Linuxes (Linae?) or is this a quirk on the Pi?
>
> Perette
>
>
>
>
>
> On 2013年07月17日, at 13:30, Peter Li wrote:
>
>> Looking like this is actually going to be a problem for running pianod as a service that starts at boot. Not sure why it wasn't an issue before, but I guess just as well we started looking at it. Perette, do you have thoughts about how pianod should behave if it is instructed by the start script to log in and start playing immediately but it doesn't have network yet?
>
> _______________________________________________
> Pianod mailing list
> Pianod at lists.deviousfish.com
> http://lists.deviousfish.com/listinfo.cgi/pianod-deviousfish.com
More information about the Pianod
mailing list