Find the answer to your Linux question:
Results 1 to 5 of 5
Hi, System: ASUS Pro50n series Laptop Distro: Arch Linux DE: Gnome I've just installed Exaile media player via pacman and I try and run it, nothing happens. I run it ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2010
    Posts
    38

    [SOLVED] Exaile Only Runs in Root


    Hi,

    System:
    ASUS Pro50n series Laptop
    Distro: Arch Linux
    DE: Gnome

    I've just installed Exaile media player via pacman and I try and run it, nothing happens. I run it from the terminal and get the error:

    IOError: [Errno 13] Permission denied: '/home/scott/.config/exaile/exaile.log'
    I looked in the log file stated above and it says nothing.

    I can however, run exaile under root with "sudo exaile" and it runs fine then. Does anyone know why this is happening?

    I had a similar problem with Emesene messenger, but couldn't find anything on any forums so I just used Empathy IM Client instead.

    *EDIT* It appears that its possibly something to do with the read/write permissions relating to ~/.config/ folder... because it does the same with banshee also, and the errors relate to permission denied to all folders within ~/.config/ whereas in root it can read and write and access this folder and the config files within fine. Can anyone tell me how I can try changing the privileges relating to this folder?

    Thanks,
    Scott.

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    What does the following code give you?
    Code:
    ls -l /home/scott/.config/exaile/exaile.log
    Are you the owner? If not then

    Code:
    chown scott.scott /home/scott/.config/exaile/exaile.log
    Asuming that scott is your user name on the system.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  3. #3
    Just Joined!
    Join Date
    Jan 2010
    Posts
    38
    Hi Lazydog,

    the code gave me:

    [scott@ScottLAPTOP ~]$ ls -l /home/scott/.config/exaile/exaile.log
    -rw-r--r-- 1 root root 953 2010-01-21 14:56 /home/scott/.config/exaile/exaile.log
    Then I did teh chown command like you said and the previous command gives this now:

    [scott@ScottLAPTOP ~]$ ls -l /home/scott/.config/exaile/exaile.log-rw-r--r-- 1 scott scott 953 2010-01-21 14:56 /home/scott/.config/exaile/exaile.log
    So im taking that the "scott scott" part means that im now the owner of it?

    But now when I try and run Exaile I get a different error message:

    [scott@ScottLAPTOP ~]$ exaile
    Traceback (most recent call last):
    File "/usr/lib/exaile/exaile.py", line 56, in <module>
    main()
    File "/usr/lib/exaile/exaile.py", line 53, in main
    exaile = main.Exaile()
    File "/usr/lib/exaile/xl/main.py", line 77, in __init__
    self.setup_logging()
    File "/usr/lib/exaile/xl/main.py", line 267, in setup_logging
    logfile.doRollover() # each session gets its own file
    File "/usr/lib/python2.6/logging/handlers.py", line 125, in doRollover
    os.rename(sfn, dfn)
    OSError: [Errno 13] Permission denied
    Error in atexit._run_exitfuncs:
    Traceback (most recent call last):
    File "/usr/lib/python2.6/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
    File "/usr/lib/python2.6/logging/__init__.py", line 1508, in shutdown
    h.flush()
    File "/usr/lib/python2.6/logging/__init__.py", line 754, in flush
    self.stream.flush()
    ValueError: I/O operation on closed file
    Error in sys.exitfunc:
    Traceback (most recent call last):
    File "/usr/lib/python2.6/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
    File "/usr/lib/python2.6/logging/__init__.py", line 1508, in shutdown
    h.flush()
    File "/usr/lib/python2.6/logging/__init__.py", line 754, in flush
    self.stream.flush()
    ValueError: I/O operation on closed file

    Is the line:

    File "/usr/lib/exaile/exaile.py", line 56, in <module>
    main()
    File "/usr/lib/exaile/exaile.py", line 53, in main
    exaile = main.Exaile()
    File "/usr/lib/exaile/xl/main.py", line 77, in __init__
    self.setup_logging()
    File "/usr/lib/exaile/xl/main.py", line 267, in setup_logging
    logfile.doRollover() # each session gets its own file
    File "/usr/lib/python2.6/logging/handlers.py", line 125, in doRollover
    os.rename(sfn, dfn)
    OSError: [Errno 13] Permission denied
    saying that it cant access /usr/lib as well, similar to how it couldn't access ~/.config/ ? Its as if all the places it wants to access arent owned by me, only by root, why is this?

    Any ideas?


    Thanks,
    Scott.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    I would guess that you started exaile as root intially.

    I would run chown on your whole home directory.
    Code:
    su -
    chown -R scott.scott /home/scott
    exit

  6. #5
    Just Joined!
    Join Date
    Jan 2010
    Posts
    38
    Hi again Reed,

    Thats fixed the problem perfectly .

    I knew thats what I needed to do, I just didnt know how to make all the systems files belong to me thats all.

    Has anyone got any idea how all the folders ended up belonging to root, what did I do wrong?

    Thanks everyone for the help .
    Scott.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •