I can't get the local play feature to work and still have control. I am using the latest version on webplay with xaudio.
I have looked through the code and I don't understatnd enough to figure out the IPC stuff. My setup doesn't appear to be creating the files in mqtmp. What should be the steps of the creation of these files and how I can I debug why they are not working.
Thanks
Todd at tech-rat.com
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
first check your syslog -- it should log all errors.
rhea.cgi will create try and create a file in mqtmp called PLAYLIST_REPO/mqtmp/pls_id_user_remoteaddr (or w/o user if not using md5_auth) on or about line 348 of rhea.c. (it will also try and create the mqtmp directory if it doesn't exist).
if it fails it logs to syslog and continues (and as you noticed w/o control). the obvious error is that the web user doesn't have permission to create the file.
at this point it's not really about IPC (you haven't got that far until you successfully ftok() against the file which requires that it exist) which is exactly why control doesn't work. no IPC == no control.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I can't get the local play feature to work and still have control. I am using the latest version on webplay with xaudio.
I have looked through the code and I don't understatnd enough to figure out the IPC stuff. My setup doesn't appear to be creating the files in mqtmp. What should be the steps of the creation of these files and how I can I debug why they are not working.
Thanks
Todd at tech-rat.com
first check your syslog -- it should log all errors.
rhea.cgi will create try and create a file in mqtmp called PLAYLIST_REPO/mqtmp/pls_id_user_remoteaddr (or w/o user if not using md5_auth) on or about line 348 of rhea.c. (it will also try and create the mqtmp directory if it doesn't exist).
(void)creat(msgqname, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH);
if it fails it logs to syslog and continues (and as you noticed w/o control). the obvious error is that the web user doesn't have permission to create the file.
at this point it's not really about IPC (you haven't got that far until you successfully ftok() against the file which requires that it exist) which is exactly why control doesn't work. no IPC == no control.