Retropie not saving Favorites upon reboot
-
Cannot move "/home/pi/.emulationstation/gamelists/n64/gamelist.xml to /home/pi/.emulationstation/gamelists/n64/gamelist.xml.bad"
no such file or directory exist -
@chrissyhemond Does the
/home/pi/.emulationstation/gamelists/
folder exist ? Try runningls -l /home/pi/.emulationstation/ ls -l /home/pi/.emulationstation/gamelists/
and see what't the output. The command should give you also the permissions on the folders, if they're not owned by the
pi
user, then I recommend reinstalling Emulationstation from the RetroPie-Setup script. -
@mitu said in Retropie not saving Favorites upon reboot:
-l
Really sorry, yes it works, I then proceeded to redo what you've told me MV etc.
It works and yes the message is gone.
Unfortunately, if I add a game to my favorite and reset the favorite thingy, then proceed to leave emulationstation, the message comes back
-
@mitu
what does it means when the text is red? -
@chrissyhemond said in Retropie not saving Favorites upon reboot:
what does it means when the text is red?
If we're talking about the listing in the command line, it usually means a broken symlink, i.e. the file file is a shortcut to another file - but the target shortcut file doesn't exist anymore.
-
@mitu
What can I do, if I move the said file with xml.bad as you told me, the moment i add a new favorite it justs come back the second i close emulationstation. -
@chrissyhemond Did you try re-installing the Emulationstation package from the RetroPie-Setup script ?
-
A quick workaround for this is restarting emulation station rather than rebooting. The favorites save when you do and then you can reboot or turn off as usual.
-
@mitu
I've done as you told me, I deleted it and re-installed it, it works now.
I can add favorites and they stay after shutdown.Thanks a lot.
My question now, how do I remove a game for the gamelist / favorite without having to go in file manager ?
I can add a favorite, but I can't remove it, if I do remove it and I restart the emulationstation, it stays there.
The only way I've found to do things is to go in file manager and delete both gamelist.xml from retropie and SNES. -
@chrissyhemond How are you removing the favorite flag ? It should be the same as adding it - pressing Y while the game is selected.
-
@mitu
Yeah that's exactly what I do.
But upon reboot or reset of the emulationstation it doesn't disappear, it stays in the favorite.I can add favorites, cannot remove them.
99 little bugs in the code, 99 little bugs.
Take one down, patch it around...
127 little bugs in the code. -
@chrissyhemond It could be a bug, but that's not what I'm experiencing - I can reliably add/remove favorites and the list stays the same when restarting Emulationstation. It could be something in your particular configuration/system that triggers this bug.
Do you see any errors in/home/pi/.emulationstation/es_log.txt
when you perform the actions ? -
@mitu
"Couldn't find entry in index! 1"
"Couldn't find entry in index! FALSE"
"Couldn't find entry in index! FALSE"
"Couldn't find entry in index! FALSE"that's what's added when i remove a favorite to the log.
-
@chrissyhemond Can you post the
gamelist.xml
file or at least the section for the game where that you added as favorite ? -
@mitu
I'm not too sure how to do that -
@chrissyhemond Use Winscp to login to the PI (details are in the https://github.com/retropie/retropie-setup/wiki/Transferring-Roms page) and copy the
/home/pi/.emulationstation/gamelists/nes/gamelist.xml
file to your pc.
Then paste the contents of the file to a site like pastebin.com and add the link in the topic post so we can take a look at it. -
I had basically the same issue. For me it was a permissions issue with the gamelist.xml that's automatically generated. Apr 14 v4.4 image.
I was getting an error that it couldn't save or write to /home/pi/.emulationstation/gamelists/snes/gamelist.xml when I quit emulationstation to the command line. Can't recall the actual message now.
Anyway you can check the current permissions by changing directories to /home/pi/.emulationstation/gamelists and run the command
ls -RlFor most of mine, but not all, the gamelist.xml was owned by root for the owner and group. While others were set to pi for the owner and group.
To update the permissions of all the gamelists to pi for the owner and group, while still in /home/pi/.emulationstation/gamelists you can run this command
sudo find ./ -name 'gamelist.xml' -exec chown pi:pi {} ;There are other ways to accomplish this, but this was what I'm comfortable with. Hopefully there's no typo, I'm going off of memory and I'm just finding all named gamelist.xml starting from the current directory then changing the owner and group to pi.
As far as how this happened, I don't know. I built my own gamelists from a windows machine with images and videos. Placed the gamelists in /opt/retropie/configs/all/emaulation/gamelists/ and they all had owners and groups of pi. Loaded the ComicBook theme. The images/videos are aren't in the same directory as the roms, they hang off of /home/pi/RetroPie/. These are the only things I've done from a stock image with the exception of setting up a keyboard and PS4 controller.
-
I had the same problem and was pulling my hair out. At least for me it turned out to be something else which was quite silly. Under "other settings", there's a an option called "save metadata on exit". Changing it to on allowed the favourites to be saved again. Just wanted to provide one more data point in case it helped someone else. Cheers.
-
@sscalley Thank you! This was exactly my issue as well, although I was using a pre-made image from somewhere else that had the same permissions issues.
For me, since my gamelist.xml files were in the roms directory, I needed to do the following:
cd ~\retropie\roms sudo ./ -name 'gamelist.xml' -exec chown pi:pi {} \;
Worked great!
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.