Ballsed up Kodi on RetroPie: Permission Denied

Welcome Page Forums RetroPie Project New to RetroPie? Start Here! Ballsed up Kodi on RetroPie: Permission Denied

This topic contains 17 replies, has 6 voices, and was last updated by Profile photo of coffeeking coffeeking 1 year, 5 months ago.

Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #113837
    Profile photo of coffeeking
    coffeeking
    Participant

    The error message I’m aways getting now when I try to access Kodi is

    home/pi/retropie/roms/ports/kodi.sh: permission denied

    Here’s what I did:

    Installed Kodi (As a channel in Ports section of RetroPie) by following this YouTube tutorial by the great Floob

    It was all working fine but it would never shut down properly and kept hanging so this link was advised to fix it

    https://github.com/RetroPie/RetroPie-Setup/wiki/KODI

    I have my Pi connected up to my network, so using Finder on my Mac I went into the raspberry pi folder

    /roms/ports/kodi.sh

    And changed the text in the file kodi.sh from

    #!/bin/bash
    “/opt/retropie/supplementary/runcommand/runcommand.sh” 0 SYS kodi

    to

    #!/bin/bash

    LOG_FILE=$HOME/.kodi/temp/kodi.log

    rm $LOG_FILE 2> /dev/null

    /usr/lib/kodi/kodi.bin –standalone &

    while [[ ! -f $LOG_FILE ]] ; do
    sleep 1s
    done

    while read line ; do
    if [[ ${line} =~ “application stopped” ]] ; then
    echo “Killing kodi”
    break
    fi
    done < <(tail –pid=$$ -f -n0 $LOG_FILE)

    killall kodi.bin

    fbset -depth 8 && fbset -depth 16

    I then hit save and a prompt came up that I ignored and said OK to (Could have been something about permissions)

    I then went back to my Pi to the Ports folder in RetroPie and I now have two KODI options in there

    One is “kodi” as normal, one is “_kodi”

    Neither of these work and give me the error
    home/pi/retropie/roms/ports/kodi.sh: permission denied

    Can anyone advise how to fix this please? I am VERY new to the raspberry pi and messing with anything like this. (I do know better to back up first before doing anything like this though, but on this occasion I didnt)

    #113857
    Profile photo of herbfargus
    herbfargus
    Member

    sudo chown pi:pi home/pi/RetroPie/roms/ports/kodi.sh

    #113877
    Profile photo of coffeeking
    coffeeking
    Participant

    Hi
    Thanks for the response.
    I’m sorry but I dont know what you mean?
    Do I just need to type that into the system and it will fix it yeah?

    Apologies for my dumbness.

    #113879
    Profile photo of InsecureSpike
    InsecureSpike
    Participant

    yup correct

    #113883
    Profile photo of coffeeking
    coffeeking
    Participant

    Hi
    I must be doing something wrong herre as I’m getting the following message:

    chown: cannot access ‘sudo chown pi:pi home/pi/RetroPie/roms/ports/kodi.sh’: No such file or directory

    So I’m hitting F4 to get out of RetroPie/Emulation Station

    Then Im presented with Uptime/Memory/Running Processes/IP Address/Temperature in red

    then

    pi@retropie ~$

    in green

    So I’m typing it in after this.

    Is this NOT where I should be typing it in?
    Can anyone advise in laymans terms what I need to do please?

    #113904
    Profile photo of zerojay
    zerojay
    Participant

    sudo chown pi:pi home/pi/RetroPie/roms/ports/kodi.sh

    This isn’t going to work unless he is currently in the / directory. So either cd / first before typing it in or use the following:

    sudo chown pi:pi /home/pi/RetroPie/roms/ports/kodi.sh

    #113906
    Profile photo of coffeeking
    coffeeking
    Participant

    Hi
    So to confirm after pressing F4 to get out of the emulator I need to type

    cd /

    then hit return
    then type the below line in its entirety

    sudo chown pi:pi /home/pi/RetroPie/roms/ports/kodi.sh

    then hit return?

    #113909
    Profile photo of herbfargus
    herbfargus
    Member

    My bad:
    sudo chown pi:pi /home/pi/RetroPie/roms/ports/kodi.sh

    #113916
    Profile photo of coffeeking
    coffeeking
    Participant

    Thanks guys but this isnt helping me I’m afraid.

    So I need to confirm EXACTLY what I need to do please?

    #113919
    Profile photo of labelwhore
    labelwhore
    Participant

    Press F4
    hit another buttton to keep Es from relaunching
    type: cd /home/pi/RetroPie/roms/ports
    hit enter
    type: sudo chown pi:pi kodi.sh
    hit enter

    To explain what’s going on here:

    ‘cd /home/pi/RetroPie/roms/ports’ get you into the directory where kodi.sh resides

    ‘sudo’ gives the user you are currently logged in with root permissions, which we need to run the chown command.

    ‘chown’ is the command to change ownership of a file, in this case kodi.sh.

    ‘pi:pi’ refers to the pi user.

    http://www.th3rdwave.com/tracks/
    ^^ my other hobby

    #113973
    Profile photo of coffeeking
    coffeeking
    Participant

    Hi
    I’m afraid still cannot get this to work. Here’s what happens

    I type

    cd /home/pi/RetroPie/roms/ports

    hit return

    fine but then when I then type
    sudo chown pi:pi kodi.sh

    Its says
    chown: cannot access ‘kodi.sh: No such file or directory

    (Screen image below)
    http://prntscr.com/9pynex

    But when I look for that file in Mac Finder its there
    (Image below)

    http://prntscr.com/9pyno0

    Can anyone help any further please?

    #113975
    Profile photo of Omnija
    Omnija
    Participant

    You could use your w/e file explorer and right click on it, click properties to check the permissions manually add (pi) to group and make sure X is checked.

    Side Note : linux is strict(case sensetive) and that look like a capital K, try

    sudo chown pi:pi Kodi.sh

    #113978
    Profile photo of coffeeking
    coffeeking
    Participant

    You could use your w/e file explorer and right click on it, click properties to check the permissions manually add (pi) to group and make sure X is checked.

    Side Note : linux is strict(case sensetive) and that look like a capital K, try Kodi.sh

    Sorry but I’m going to need a laymans terms / step by step of this please

    #113987
    Profile photo of coffeeking
    coffeeking
    Participant

    OK, getting a bit further here now, but its still not working

    I type

    cd /home/pi/RetroPie/roms/ports

    hit return

    and I’m presented with
    pi@retropie ~/RetroPie/roms/ports $

    I then type
    sudo chown pi:pi Kodi.sh

    With a capital K on Kodi, hit return

    And all that comes up is
    pi@retropie ~/RetroPie/roms/ports $
    (Same as above before)

    What do I do now?
    Having done that I tried rebooting, and running Kodi in Ports still says Permission denied

    #113993
    Profile photo of herbfargus
    herbfargus
    Member

    Try sudo chmod +x kodi.sh

    #114003
    Profile photo of coffeeking
    coffeeking
    Participant

    Try sudo chmod +x kodi.sh

    Tried it, got no further
    Here’s the results
    http://prntscr.com/9q231a

    Am I supposed to get some prompt telling me its worked?

    #114004
    Profile photo of herbfargus
    herbfargus
    Member

    If it didn’t give you an error it worked. Type ls -lah kodi.sh and show the results of that.

    #114012
    Profile photo of coffeeking
    coffeeking
    Participant

    Hey
    sudo chmod +x Kodi.sh

    (With a capital K) looks like it worked. All running again now, so many, many thanks.

    (When it first ran it went into serious low def, but on reboot now its fine again)

Viewing 18 posts - 1 through 18 (of 18 total)

Forums are currently read only - please visit the new RetroPie forums at https://retropie.org.uk/forums/

Skip to toolbar