Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Good ol' mpd [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
chINeSe mIDgEts
Apprentice
Apprentice


Joined: 02 Mar 2004
Posts: 209
Location: look behind you

PostPosted: Tue Jul 18, 2006 10:48 pm    Post subject: Good ol' mpd [solved] Reply with quote

I'm using a nifty fvwm setup with a music player in the dock, which uses mpd, mpc and ncmpc to play the music. I emerged the three and get this when running mpd

Code:
20x6 willy # /etc/init.d/mpd start
 * Re-caching dependency info (mtimes differ)...
 * Starting Music Player Daemon ...
problem opening file "/var/log/mpd.error.log" for writing                 [ !! ]


I tried chmod'ing the file, and moving them in the config to ~/.mpd/mpd.error.log, but neither seemed to help. Since mpc and ncmpc require mpd to be started, I'm stuck using xmms for now.

Thanks for any help.
_________________
...it must have been very demanding having to learn how to use Microsoft Office, right up there with other lofty challenges like learning how to zip your fly without getting your dick caught.


Last edited by chINeSe mIDgEts on Thu Jul 20, 2006 5:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
phsdv
Guru
Guru


Joined: 13 Mar 2005
Posts: 372
Location: Europe

PostPosted: Wed Jul 19, 2006 5:36 am    Post subject: Reply with quote

permissions for my file:
Code:
-rw-r----- 1 mpd audio 5706 Jul 15 21:30 /var/log/mpd.error.log

the conf file in /etc/mpd.conf
Code:
port "6600"
music_directory "/home/music"
playlist_directory "/home/music/.mpd/playlists"
log_file "/var/log/mpd.log"
error_file "/var/log/mpd.error.log"
state_file "/home/music/.mpd/mpdstate"
user "mpd"

It might help if you do
Code:
touch /var/log/mpd.error.log
to make sure the error file exixts before starting mpd (and assign it to the correct user:group)
Back to top
View user's profile Send private message
chINeSe mIDgEts
Apprentice
Apprentice


Joined: 02 Mar 2004
Posts: 209
Location: look behind you

PostPosted: Wed Jul 19, 2006 9:21 pm    Post subject: Reply with quote

Ok, so I decided to try and start mpd again, without touching anything, and I get the same error for /var/log/mpd.log. Chmod'ing still hasnt done anything, and I cant touch it because permission is denied.
_________________
...it must have been very demanding having to learn how to use Microsoft Office, right up there with other lofty challenges like learning how to zip your fly without getting your dick caught.
Back to top
View user's profile Send private message
feld
Guru
Guru


Joined: 29 Aug 2004
Posts: 593
Location: WI, USA

PostPosted: Wed Jul 19, 2006 10:52 pm    Post subject: Reply with quote

chown it to be owned by the user "mpd"


mpd drops privs to an unpriveleged user
_________________
< bmg505> I think the first line in reiserfsck is

if (random(65535)< 65500) { hose(partition); for (i=0;i<100000000;i++) print_crap(); }
Back to top
View user's profile Send private message
chINeSe mIDgEts
Apprentice
Apprentice


Joined: 02 Mar 2004
Posts: 209
Location: look behind you

PostPosted: Thu Jul 20, 2006 4:33 am    Post subject: Reply with quote

chown'ing did nothing. I'm stil getting the same error :?
_________________
...it must have been very demanding having to learn how to use Microsoft Office, right up there with other lofty challenges like learning how to zip your fly without getting your dick caught.
Back to top
View user's profile Send private message
idella4
Retired Dev
Retired Dev


Joined: 09 Jun 2006
Posts: 1600
Location: Australia, Perth

PostPosted: Thu Jul 20, 2006 10:03 am    Post subject: Reply with quote

my sympathies. permission dilemmas are a right pain.
how about this for some lateral thinking
Forget about rigid adherence to portage. Go to /usr/portage/distfiles
and acquire the source versionsof mpd and or ncmpc and copy it to ~/ under a folder name, something descriptive and original, like maybe programs.
Use emerge to remove one or both pkges.
Then run the standard ./configure make make install
on the packages. If you haven't figured out why, it's because
the program will be installed from within your userspace. Your battle is with system / aplication running permissions. Awfull stuff.
_________________
idella4@aus
Back to top
View user's profile Send private message
chINeSe mIDgEts
Apprentice
Apprentice


Joined: 02 Mar 2004
Posts: 209
Location: look behind you

PostPosted: Thu Jul 20, 2006 5:00 pm    Post subject: Reply with quote

It works!! (or so I think) Portage spoils us sometimes. Thanks a bunch for the help. :)



EDIT: Everything works if I run from the terminal, but the FVWM dock script needs to be fixed. CURSES!
_________________
...it must have been very demanding having to learn how to use Microsoft Office, right up there with other lofty challenges like learning how to zip your fly without getting your dick caught.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum