kaconke / streeme

Automatically exported from code.google.com/p/streeme
MIT License
0 stars 0 forks source link

NetworkError: 404 File Not Found - http://192.168.1.101:1213/play/6c0e905d67d6c07fe3a2610a028fa59823ed1cf0 #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When I want to play a song, streeme gives a NetworkError: 404 File Not Found - 
http://192.168.1.101:1213/play/6c0e905d67d6c07fe3a2610a028fa59823ed1cf0

First I thought it was because proxy_play.php had the wrong owner (root --> 
www-data), or the wrong rights (now 755). But that didn't help.

Then I changes the rights of all the music files (777). But that didn't help 
either.

Do you have any suggestions?

Original issue reported on code.google.com by peter.ah...@gmail.com on 6 Feb 2011 at 8:23

GoogleCodeExporter commented 8 years ago
There is no information about this 404 in the client_dev.log.

Original comment by peter.ah...@gmail.com on 6 Feb 2011 at 8:41

GoogleCodeExporter commented 8 years ago
There's nothing explicitly in the files to throw a 404 at the moment.. It 
almost seems that it's not loading the play route at all. If you try to run 
this command on the main port, does it work? It could be a bunch of things 
though - you might want to set up an apache log and see what your request is 
trying to get. You need mod_rewrite installed, but if you got that far - I 
think it probably is. 

Original comment by chaffn...@gmail.com on 7 Feb 2011 at 12:08

GoogleCodeExporter commented 8 years ago
I tried to run this command on the main port (1212) and I get the same 404. 
There are no errors in error.log about this. And I have mod_rewrite installed.

Also I tried 
http://192.168.1.101:1213/proxy_play.php?unique_song_id=6c0e905d67d6c07fe3a2610a
028fa59823ed1cf0

Again I get the 404 error.

Original comment by peter.ah...@gmail.com on 7 Feb 2011 at 8:10

GoogleCodeExporter commented 8 years ago
To be sure an to get more information in my logs I added a few debug rows to my 
apache2 config. I set the log level to debug, but still no errors

Original comment by peter.ah...@gmail.com on 7 Feb 2011 at 8:36

Attachments:

GoogleCodeExporter commented 8 years ago
I've managed to reporduce your error - I'm going to see what's going on

Original comment by chaffn...@gmail.com on 8 Feb 2011 at 6:22

GoogleCodeExporter commented 8 years ago
I've added a logging layer to the playback and art system. Could you update and 
then try and load some media. the issues should be reocrded in proxy.log in the 
log folder. I'm hoping it will give you a better idea what might be going on. 
If there's nothing in the file - I think your server may be misconfigured - you 
might attach a list of mods and package lists so we can see what's going on.

Original comment by chaffn...@gmail.com on 9 Feb 2011 at 12:17

GoogleCodeExporter commented 8 years ago
The apache is running as an user 'www-data'. But this user can't enter my music 
directory in my home folder. I tried it with the following command:

sudo su www-data
$: cd /home/peter/Music
cd: 1: can't cd to /home/peter/Music

Original comment by peter.ah...@gmail.com on 9 Feb 2011 at 8:18

GoogleCodeExporter commented 8 years ago
Were you able to solve the permissions issue then? Can you just grant read 
access to www-data for that directory and or files? that seems like the safest 
bet. If you did fix it, would you mind sharing what steps you took for people 
experiencing the same issues?

Original comment by chaffn...@gmail.com on 9 Feb 2011 at 9:15

GoogleCodeExporter commented 8 years ago
When you want to grand read access to /home/user/Music for www-data, you have 
to grand read access to /home/user. That's something you don't want.

I tried to make a symbolic link from /var/www/streeme/music to 
/home/user/Music, but that result in the same error.

I think, the best solution is to:
- Make a directory outside /home/user. 
- Move all your music in that directory, 
- Give the directory the right rights, 
- Direct streeme to that directory and 
- Make a symbolic link from /home/user to this directory

What I did (actually I did it in another order):
   sudo mkdir /var/music
   sudo chown -R user:user /var/music
   mv /home/user/Music/* /var/music
   rm -R /home/user/Music
   ln -s /var/music /home/user/Music
   change the 'watched_folders' in app.yml (change or add '/var/music'
   start InstallingStreeme from the './symfony cc' command.

Original comment by peter.ah...@gmail.com on 9 Feb 2011 at 10:30

GoogleCodeExporter commented 8 years ago
When you want to share your music directory with more users you could make a 
new group 'music', add the users to this group and change the /var/music owner 
to root:music and rights to 775.

Original comment by peter.ah...@gmail.com on 9 Feb 2011 at 10:34

GoogleCodeExporter commented 8 years ago
Thanks for the update. I'll add something to this effect in the *nix docs.

Original comment by chaffn...@gmail.com on 9 Feb 2011 at 3:46

GoogleCodeExporter commented 8 years ago
Make sure you have HTTP_Download installed via pear or you can't play any 
music. I spent two hours trying to find out why I couldn't play music and that 
was my issue. If you see the bar rapidly moving down through your songs in 
streeme, that's the cause. 

Original comment by djne...@gmail.com on 13 Feb 2011 at 7:46

GoogleCodeExporter commented 8 years ago
In my case HTTP_Download was installed correctly.

Original comment by peter.ah...@gmail.com on 13 Feb 2011 at 8:13

GoogleCodeExporter commented 8 years ago
hello

In the terminal;
pear/HTTP_Download is already installed and is the same as the released version 
1.1.4
install failed

run check_configuration.php ;

  OK        PHP version is at least 5.2.4 (5.2.10)
[[ ERROR ]] PEAR HTTP_Download is Installed: FAILED
            *** Please install HTTP_Download before trying to use the application ***
You must fix this problem before resuming the check.
Music still skips thru the list..

Runing mamp pro on sl, any thoughts about this?

Original comment by vam...@gmail.com on 6 Apr 2011 at 9:06

GoogleCodeExporter commented 8 years ago
hello, 
i had the same issue and resolve it by doing this:
 Make a directory outside /home/user for the music
 Set permission for www-data to the music folder

everything's fine now. 
this is a great project!!! it works fine with nginx

many thanx for the dev team

Original comment by Clabida...@gmail.com on 27 Mar 2013 at 11:04