turbowookie / turbo-wookie

Turbo Wookie Project. Because Turbo Wookie
http://turbowookie.github.io
BSD 3-Clause "New" or "Revised" License
9 stars 2 forks source link

404 on index.html and error on /songs #14

Closed mpeterson2 closed 10 years ago

mpeterson2 commented 10 years ago

I'm getting a 404 when I'm trying to open index.html and a file open error on /songs.

mpeterson2 commented 10 years ago
2013/11/24 23:14:08 ERROR:  Couldn't open file: 01 Bring Me the Horizon - Can You Feel My Heart.mp3
    open ~/Code/turbo-wookie//backend/mpd/music/01 Bring Me the Horizon - Can You Feel My Heart.mp3: no such file or directory
2013/11/24 23:14:08 Sending to client: An error occured while processing your request

Also I did check and it does exist.

mpeterson2 commented 10 years ago

Just looking at it, there's a double / in between turbo-wookie and backend.

sleepdeprecation commented 10 years ago

What's your config.yaml file look like?

mpeterson2 commented 10 years ago
# config.example.yaml
# an example configuration for Turbo Wookie's backend.
# 
# config.yaml is used in two ways, to generate an mpd.conf file
# and to set some server configuation variables (such as domain, and port, 
# and MPD's port).

#Don't use quotes in the config.yaml

mpd_command: mpd
server_port: 9000
server_domain: localhost
mpd_domain: localhost
mpd_http_domain: localhost
mpd_http_port: 8000
mpd_control_port: 6600

turbo_wookie_directory: ~/Code/turbo-wookie
mpd_subdirectory: backend/mpd

mpd_music_directory: music
mpd_playlist_directory: playlists
mpd_db_file: database.db
mpd_log_file: log
mpd_pid_file: pid
mpd_state_file: state
mpd_sticker_file: sticker.sql
mpeterson2 commented 10 years ago

It used to have:

mpd_subdirectory: /backend/mpd

It doesn't anymore and the path looks correct, but I still get the error.

2013/11/24 23:25:48 ERROR:  Couldn't open file: 01 Bring Me the Horizon - Can You Feel My Heart.mp3
    open ~/Code/turbo-wookie/backend/mpd/music/01 Bring Me the Horizon - Can You Feel My Heart.mp3: no such file or directory
2013/11/24 23:25:48 Sending to client: An error occured while processing your request
sleepdeprecation commented 10 years ago

You have to use absolute paths. The turbo_wookie_directory needs to be /home/michael/Code/turbo-wookie.

sleepdeprecation commented 10 years ago

Sorry. Thought I put a comment somewhere and didn't.. It might be in the example config.

sleepdeprecation commented 10 years ago

And I didn't put it in there. It'll be along with the next push.

sleepdeprecation commented 10 years ago

The double slashes don't matter.

mpeterson2 commented 10 years ago

Yep that did it.