Closed mpeterson2 closed 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.
Just looking at it, there's a double /
in between turbo-wookie and backend.
What's your config.yaml
file look like?
# 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
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
You have to use absolute paths. The turbo_wookie_directory
needs to be /home/michael/Code/turbo-wookie
.
Sorry. Thought I put a comment somewhere and didn't.. It might be in the example config.
And I didn't put it in there. It'll be along with the next push.
The double slashes don't matter.
Yep that did it.
I'm getting a 404 when I'm trying to open index.html and a file open error on /songs.