RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Kodi won't open from main menu when roms are stored on network

    Scheduled Pinned Locked Moved Help and Support
    kodimain menuromsnetworkpermissions
    16 Posts 3 Posters 5.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • BuZzB
      BuZz administrators @jrhessey
      last edited by

      @jrhessey Please provide more information when requesting help (as agreed when registering on the forum). https://retropie.org.uk/forum/topic/3/read-this-first

      You don't say for example which version of retropie you are running. If you update all packages ports should be launched with bash directly, avoiding the need to have the launch script executable.

      You have already done this manually I see, but will need to know the actual error received (Check in /home/pi/.emulationstation/es_log.txt and /dev/shm/runcommand.log

      To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

      1 Reply Last reply Reply Quote 0
      • J
        jrhessey @backstander
        last edited by

        @backstander I will try when I get home. The posted network link is the howto I followed for storing the roms on the network.

        @BuZz I am running retropie 4 on a pi 3b, I believe. I'm sorry, I bought a kit off of Amazon. In looking at the forums, the commit I have is from June, 2122b7e86366115a88048fba1adbdaa7dce0ecbf. Maybe that can tell you guys something. Sorry, new to this.

        1 Reply Last reply Reply Quote 0
        • J
          jrhessey
          last edited by

          ls -l /home/pi/RetroPie/roms/kodi/kodi.sh results in below

          -rwxrwxrwx 1 1031 users 16 Nov 16 14:22 /home/pi/RetroPie/roms/kodi/kodi.sh

          there is no file called runcommand.log at that location.

          es_log.txt is below as well

          /home/pi/.emulationstation/es_log.txt

          I can't seem to find the Kodi crash logs if there are any, could you point me in the right direction please? Thanks for your help!

          B BuZzB 2 Replies Last reply Reply Quote 0
          • B
            backstander @jrhessey
            last edited by backstander

            @jrhessey

            ls -l /home/pi/RetroPie/roms/kodi/kodi.sh results in below
            -rwxrwxrwx 1 1031 users 16 Nov 16 14:22 /home/pi/RetroPie/roms/kodi/kodi.sh

            It does look like it's executable but I'm not sure about the user/group 1031/users
            I wonder if we can change that to something like pi/pi

            What does your /etc/fstab look like?

            I can't seem to find the Kodi crash logs if there are any, could you point me in the right direction please?

            You may not have any but they would be in the root of the user folder you are logged in as. In other words /home/pi/.

            Since you don't have runcommand.log or Kodi crash logs, it sounds like Kodi didn't launching this session and if/when it does launch, it's not crashing :-)

            es_log.txt is below as well

            The only mention of Kodi in your es_log.txt is:

            lvl2: 	Loading system config file /home/pi/.emulationstation/es_systems.cfg...
            lvl1: 	  Unknown platform for system "kodi" (platform "kodi" from list "kodi")
            

            But I don't think that would be anything that would stop Kodi from launching.

            Also what does your /home/pi/RetroPie/roms/kodi/kodi.sh look like?

            J 1 Reply Last reply Reply Quote 0
            • BuZzB
              BuZz administrators @jrhessey
              last edited by

              @jrhessey is that ES log from after launching Kodi ? I don't see any reference - looks like a log after just booting into ES.

              runcommand.log is stored in /dev/shm/runcommand.log after launching Kodi from ES - it will be gone after a reboot.

              Without a log of the error you are seeing I cannot advise further.

              To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

              J 1 Reply Last reply Reply Quote 0
              • J
                jrhessey @BuZz
                last edited by

                @BuZz

                Yeah that's after trying to run Kodi, all I see is that

                /home/pi/RetroPie/roms/kodi/kodi.sh permission denied error and it goes back to the kodi screen

                The only thing I saw about kodi was at the beginning of the file with the invalid file system. I'll try again this evening and see if I get anything different. I may try doing an image myself on a different SD card just to test it.

                1 Reply Last reply Reply Quote 0
                • BuZzB
                  BuZz administrators
                  last edited by BuZz

                  Did you update retropie-setup script and reinstall Kodi from the retropie-setup menu ?

                  what is the output of grep -A5 "<name>ports" {$HOME/.emulationstation,/etc/emulationstation}/es_systems.cfg

                  are you launching kodi from the ports menu ?

                  To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                  J 1 Reply Last reply Reply Quote 0
                  • J
                    jrhessey @backstander
                    last edited by jrhessey

                    @backstander

                    Sorry just noticed your reply

                    FSTAB below

                    proc            /proc           proc    defaults          0       0
                    /dev/mmcblk0p1  /boot           vfat    defaults          0       2
                    /dev/mmcblk0p2  /               ext4    defaults,noatime  0       1
                    //192.168.10.131/RetroPie/roms /home/pi/RetroPie/roms cifs username=user,password=password,users,_netdev,x-systemd.automount 0 0
                    //192.168.10.131/video /home/kodi/videos cifs username=user,password=password,users,_netdev,x-systemd.automount 0 0
                    # a swapfile is not a swap partition, no line here
                    #   use  dphys-swapfile swap[on|off]  for that
                    

                    /home/pi/RetroPie/roms/kodi/kodi.sh below

                    kodi-standalone
                    
                    BuZzB 1 Reply Last reply Reply Quote 0
                    • BuZzB
                      BuZz administrators @jrhessey
                      last edited by

                      @jrhessey Please format your post (use a code block - http://commonmark.org/help/)

                      To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                      J 1 Reply Last reply Reply Quote 0
                      • J
                        jrhessey @BuZz
                        last edited by

                        @BuZz

                        I did not run the update script. I did INSTALL Kodi from the retropie setup menu.

                        grep -A5 "<name>ports" {$HOME/.emulationstation,/etc/emulationstation}/es_systems.cfg

                        /home/pi/.emulationstation/es_systems.cfg:     <name>ports</name>
                        /home/pi/.emulationstation/es_systems.cfg-    <fullname>Ports</fullname>
                        /home/pi/.emulationstation/es_systems.cfg-    <path>/home/pi/RetroPie/roms/ports</path>
                        /home/pi/.emulationstation/es_systems.cfg-    <extension>.sh .SH</extension>
                        /home/pi/.emulationstation/es_systems.cfg-    <command>%ROM%</command>
                        /home/pi/.emulationstation/es_systems.cfg-    <platform>pc</platform>
                        --
                        /etc/emulationstation/es_systems.cfg:    <name>ports</name>
                        /etc/emulationstation/es_systems.cfg-    <fullname>Ports</fullname>
                        /etc/emulationstation/es_systems.cfg-    <path>/home/pi/RetroPie/roms/ports</path>
                        /etc/emulationstation/es_systems.cfg-    <extension>.sh .SH</extension>
                        /etc/emulationstation/es_systems.cfg-    <command>%ROM%</command>
                        /etc/emulationstation/es_systems.cfg-    <platform>pc</platform>
                        

                        I am trying to launch Kodi from the main rom menu. Followed the steps in the retropie wiki to create the menu option.

                        BuZzB 1 Reply Last reply Reply Quote 0
                        • J
                          jrhessey @BuZz
                          last edited by

                          @BuZz
                          Sorry, I was banging my head against the wall trying to figure how to format that so it wasn't all screwed up. Overlooked the ? next to compose.

                          1 Reply Last reply Reply Quote 0
                          • BuZzB
                            BuZz administrators @jrhessey
                            last edited by BuZz

                            @jrhessey

                            So - you are maintaining your own es_systems.cfg - it's also out of date, as latest retropie-setup will call bash directly for ports (update retropie-setup and re-install kodi).

                            To launch kodi via script on a usb drive formatted as a windows fs (fat32/exfat/ntfs etc) you will need to change it to <command>bash %ROM%</command> (retropie-setup does this when updating a port, but you won't get the changes since you are manually managing the config)

                            If you are launching it as a standalone system, you will also need to make a similar change

                              <system>
                                <fullname>Kodi</fullname>
                                <name>kodi</name>
                                <path>~/RetroPie/roms/kodi</path>
                                <extension>.sh .SH</extension>
                                <command>bash %ROM%</command>
                                <platform>kodi</platform>
                                <theme>kodi</theme>
                              </system>
                            

                            note the file to edit would be /home/pi/.emulationstation/es_systems.cfg - but bear in mind you will need to keep this file manually synced with /etc/emulationstation/es_systems.cfg which is automatically managed by RetroPie-Setup.

                            To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                            J 1 Reply Last reply Reply Quote 0
                            • J
                              jrhessey @BuZz
                              last edited by

                              @BuZz

                              I swore I tried bash in front of the %ROM%. I went back to check and it's not there. I must not have saved it correctly. I will give that a shot. If that does fix it, I'm sorry.

                              When I was stepping through this howto, I wondered what it would affect when they said it would be maintained manually. Now I know... Thanks!

                              P.S. They literally just updated the KODI wiki with bash %rom% instead of %rom$ in this section of code. HA!

                              BuZzB 1 Reply Last reply Reply Quote 1
                              • BuZzB
                                BuZz administrators @jrhessey
                                last edited by

                                @jrhessey I updated the wiki :)

                                To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                                1 Reply Last reply Reply Quote 1
                                • First post
                                  Last post

                                Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                                Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.