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

    Can't select emulator for ROM

    Scheduled Pinned Locked Moved Help and Support
    10 Posts 7 Posters 11.0k 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.
    • E
      evothian
      last edited by

      This has been working since I set up my pi a few weeks ago but it has suddenly stopped. I haven't really done much to it other than add new roms. I currently have both MAME and fba stuff in the arcade folder so I have lr-mame-2003 set as the default and then for the handful of fba roms I was using "Select emulator for rom" in the runcommand menu to make those launch using fba.

      Now if I try to either "Select emulator for rom" or "Remove emulator choice for rom" on a ROM that I've previously selected an emulator for I see an error message flash at the bottom of the screen and no changes happen.

      The message is: sed: couldn’t open temporary file /opt/retropie/configs/all/<temp name>: Permission denied

      Pi Model: 3
      RetroPie Version Used: 3.8.1
      Built From: SD Image (I did update the setup script very early on when getting my bluetooth controllers working but that was well before the issue started)

      Anyone have any ideas? I haven't made any changes to any users or permissions or anything.

      1 Reply Last reply Reply Quote 0
      • ProxyCellP
        ProxyCell
        last edited by

        This is a total shot in the dark here: but could you set very "permissive" permissions on that folder and all of it's sub-directories and files ?

        RPi3b+ - No overclock
        RetroPie - latest from Github, as always
        2x SF30 Pro 8Bitdo controllers

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

          Sounds like the pi user no longer has write permissions in the folder as @ProxyCell mentioned - probably due to being owned by root. try sudo chown -R pi:pi /opt/retropie/configs if that doesn't help we might need to do some chmods also.

          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

          E 1 Reply Last reply Reply Quote 1
          • E
            evothian @BuZz
            last edited by

            Thank you @ProxyCell and @BuZz ! That fixed it. That folder was indeed owned by root. Everything is working again.

            1 Reply Last reply Reply Quote 1
            • E
              evothian
              last edited by

              Whenever I reboot the pi it does change the owner of the /opt/retropie/configs/all directory back to root (all the other directories under config stay owned by pi. Not sure what is causing it to change back. For now I have a workaround whenever I need to make a change at least.

              P 1 Reply Last reply Reply Quote 0
              • P
                pimpmaul69 @evothian
                last edited by

                @evothian said in Can't select emulator for ROM:

                Whenever I reboot the pi it does change the owner of the /opt/retropie/configs/all directory back to root (all the other directories under config stay owned by pi. Not sure what is causing it to change back. For now I have a workaround whenever I need to make a change at least.

                If you sftp in it with winscp logged in as root and right click on the /opt/retropie/configs/ folder and choose 0777 permissions for all files and folders is it changing back from doing it that way? I updated to retropie 4.0 beta 2 and it messed up the permissions for my config folder and thats how i fixed it. Worked like a charm

                E 1 Reply Last reply Reply Quote 0
                • E
                  evothian @pimpmaul69
                  last edited by

                  @pimpmaul69 Yeah that's essentially what I ended up doing. I just made the folder 777 and then when the owner is root it doesn't matter.

                  The command I ran was sudo chmod -R 777 /opt/retropie/configs for anyone else looking at this later.

                  1 Reply Last reply Reply Quote 1
                  • L
                    LeKing
                    last edited by

                    Thanks so much guys it helped me well ! I use "sudo chmod -R 777 /opt/retropie/configs" I searched in every god damn files ... of my Rasp for that... Thought I might find one just like the "videomodes.cfg" to just delete the preset ... !

                    Thx again !

                    1 Reply Last reply Reply Quote 0
                    • M
                      M4X4M
                      last edited by

                      For people still having to deal with that problem:
                      In my case the tips here didn't work out so I went into:
                      sudo nano /opt/retropie/configs/all/emulators.cfg
                      And deleted everything in it manually. After that it worked again (at least for now)

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        sssetz @M4X4M
                        last edited by

                        @M4X4M said in Can't select emulator for ROM:

                        For people still having to deal with that problem:
                        In my case the tips here didn't work out so I went into:
                        sudo nano /opt/retropie/configs/all/emulators.cfg
                        And deleted everything in it manually. After that it worked again (at least for now)

                        THank you @M4X4M this worked for me, FINALLY. Its been weeks. :)

                        1 Reply Last reply Reply Quote 0
                        • 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.