MiSTer Downloader Tool
-
- Top Contributor
- Posts: 1441
- Joined: Mon May 25, 2020 7:54 pm
- Has thanked: 497 times
- Been thanked: 467 times
Re: MiSTer Downloader Tool
CRT SCR$ Project - building a collection of high-quality photos of CRT displays
CRT ART Books - retro-gaming books with authentic CRT photos
Re: MiSTer Downloader Tool
I've tried a fresh install of both the regular sd installer from github and the mr fusion image and it still returns the same error.
Is there anything I can do to fix this problem?
- Attachments
-
- IMG_20220828_075231.jpg (52.17 KiB) Viewed 9802 times
- PistolsAtDawn
- Posts: 359
- Joined: Fri Feb 18, 2022 7:29 pm
- Has thanked: 307 times
- Been thanked: 100 times
Re: MiSTer Downloader Tool
Are you running the Downloader directly instead of using the wrapper update_all.sh script?
https://github.com/theypsilon/Update_All_MiSTer
Re: MiSTer Downloader Tool
Re: MiSTer Downloader Tool
Sorry I've only just seen this. In my case it doesn't like my wifi dongle anymore for some reason so I have to update it via ethernet which works fine. Bit annoying but ya know.
Re: MiSTer Downloader Tool
It apparently tries to remove the file (3 attempts), but SFTPing into MiSTer, I can tell it's still there, and has a modification time from 7/7/2021.
EDIT: Nevermind, after another update attempt, it went all back to normal, without doing anything really... Not sure what happened here.
-
- Core Developer
- Posts: 459
- Joined: Wed May 26, 2021 9:35 pm
- Has thanked: 59 times
- Been thanked: 383 times
Re: MiSTer Downloader Tool
If the Mister was just powered on or fairly recently connected to the internet, may want to wait till you get the date/time on the Mister Bar on the OSD before attempting to do an update. Of course make sure the date/time is fairly accurate and not days or years off.
Re: MiSTer Downloader Tool
- Attachments
-
- downloader.log.zip
- (15.34 KiB) Downloaded 184 times
-
- Top Contributor
- Posts: 1911
- Joined: Wed May 27, 2020 1:59 pm
- Has thanked: 145 times
- Been thanked: 454 times
Re: MiSTer Downloader Tool
The solution I found was to use symlinks from SD to everything which is on USB and use" base_path": "/media/fat".
Someone found the reason for the problem: it is a command used to transfer the file and this command does not work across file systems.
See:
https://www.geeksforgeeks.org/python-os-replace-method/
-
- Top Contributor
- Posts: 1911
- Joined: Wed May 27, 2020 1:59 pm
- Has thanked: 145 times
- Been thanked: 454 times
Re: MiSTer Downloader Tool
Even if you rebooted or turned off MISTer you should still be able to boot MISTer and ssh into it.
Re: MiSTer Downloader Tool
I was able to update MiSTER and MAIN.rbf manually via ssh, so the problem is not critical.
With the old update script everything was working fine. This is the behaviour of the new script, where the author tried to update the main file in an atomic statement. For some unkown reason, it tires to back up the main mister files to USB0 instead of its original location.
Please advise me to a configuration, where
- every game roms, bioses, virtual HDDs are on the USB
- everything else is on the SDCARD (cores, configurations, scripts)
-
- Top Contributor
- Posts: 1911
- Joined: Wed May 27, 2020 1:59 pm
- Has thanked: 145 times
- Been thanked: 454 times
Re: MiSTer Downloader Tool
Please confirm that the only directory you have is the games directory, if you have more please post the list.
-
- Scripting Wizard
- Posts: 106
- Joined: Sun May 24, 2020 8:20 pm
- Been thanked: 41 times
Re: MiSTer Downloader Tool
For the setup you describe, you don't need base_path set to usb0, you ideally should just use the "storage priority" feature, which has been new since May, it's on by default, and it's described in the README: https://github.com/MiSTer-devel/Downloader_MiSTer and in my public Patreon post: https://www.patreon.com/posts/external-storage-66092738
Thanks to "storage priority," the downloader uses the same logic the firmware uses to load any file under games, by checking on external folders first. Thus, you can just move your games and docs folders to your USB folder, remove the config you had for your base_path, and all will work fine. No need to use cross-device symlinks, which are a source of problems in their own right.
Re: MiSTer Downloader Tool
Thanks. Will check that if there is another update of main and will let you know...
So base_path entry can be completely deleted from the ini file?
-
- Scripting Wizard
- Posts: 106
- Joined: Sun May 24, 2020 8:20 pm
- Been thanked: 41 times
Re: MiSTer Downloader Tool
Exactly. Yeah, let me know in the next main update
-
- Top Contributor
- Posts: 1911
- Joined: Wed May 27, 2020 1:59 pm
- Has thanked: 145 times
- Been thanked: 454 times
Re: MiSTer Downloader Tool
This is totally false.theypsilon wrote: ↑Sun Nov 27, 2022 2:22 pm ...
No need to use cross-device symlinks, which are a source of problems in their own right.
-
- Scripting Wizard
- Posts: 106
- Joined: Sun May 24, 2020 8:20 pm
- Been thanked: 41 times
Re: MiSTer Downloader Tool
They are tricky because they don't have a warranted valid path since the external devices could be unmounted or mounted in different locations. They also violate assumptions on software that are taken to prevent corrupting files via atomic operations, as the other end of the symlink it's a different filesystem. Furthermore, they are not officially supported in ExFAT systems, and many utilities outside the MiSTer ecosystem could break them without notice. And I could continue with more reasons why they do bring trouble.
I've seen many users experiencing errors because of cross-device symlinks, so your comment is not very helpful. As I said previously, they can be used by power users that know how to troubleshoot all of this but it is not a recommended general practice.
-
- Top Contributor
- Posts: 1911
- Joined: Wed May 27, 2020 1:59 pm
- Has thanked: 145 times
- Been thanked: 454 times
Re: MiSTer Downloader Tool
Now, after reading your post I realize that things are not so simple.
Following are some comments, my experience with symlinks. IT IS IN NO WAY A RECOMMENDATION FOR THE USE OF SYMLINKS (see theypsilon post above).
I am in no way what I would call a power usuer, it has been many, many years since I did some real work with Unix/Linux. I know more than enough to figure out things and if not I know where to look.
I was using "Switch to USB" until Sorge said it was kind of obsolete and one should use symlinks. I like to experiment so it is what I did.
If the drive is unmounted you also have the problem when just the games directory is on USB and no symlinks are used.
The drive is mounted differently, for example on usb1, I doubt it would happen in normal use. It never happened to me. I suppose it could happen if one connects a 2nd USB drive and on MISTer boot the new drive shows up as USB0 and the MISTer data drive shows up as USB1. I suppose if it happened the user would realize the problems he experiences has something to do with this new USB drive. Who would do such a thing? I did: I wanted to know how slow it would be to make a backup of my USB drive using only MISTer (I like to experiment). I connected the new drive while MISTer was up so it showed up as USB1, after the backup I unmounted the drive and disconnected it so I do not know what would have happened if I booted MISTer with both drives connected. If a switch had happened I wouldn't have noticed it as it was a backup. Note: don't try this at home as it took almost 2 days to do the backup.
Regarding atomic operations I did not think about that and I wonder how often such operations happen on MISTer and if they would cause problems. But as I said I am quite ignorant on the subject. I know they are used by the downloader when updating MISTer or Linux but everything happens on the SD card and symlinks are not involved.
EXTFAT and symlinks: MISTer supports them and it seems to work fairly well. But I experienced a problem which may have something to do with that:
Mame Getter and HBMame Getter did not like them for some reason and always reported 0 mra found. I "fixed" the problem by creating ini files pointing to the real location of /media/udb0/_Arcade, /media/usb0/games/mame and /media/usb0/games/hbmame.
I also must admit that I created a symlink for the games directory which seems useless and an heresy but I had a good reason.
The Minimig core has some kind of bug: when the games directory is on USB it only want its games directory in /media/usb0/Amiga, not /media/uisb0/games/Amiga which is not a big deal by itself but it also accepts only one KickStart which must be /media/usb0/KICK.ROM. This is a big deal as you can only have one configuration or several configurations using the same KickStart. With a symlink /media/fat/games -> /media/usb0/games Minimig is fooled and one can use /media/usb0/games/Amiga and any KickStart which allows different configurations with different KickStart.
Once again this is not a recommendation, just my experience and it has worked very well for me for more than a year.
Thanks to theypsilon for your downloader. I mentioned earlier that I initially I did not like it and kept using the old updater for a while, this was because it started to download things which the old updater didn't. When you are used to something it can be hard to switch to something new. In the end the downloader is way better, faster, offers more features. The end of the year is coming, R.I.P. the old updater which did it job and was way better than manually downloading core updates. Thanks also for the old updater, it made my life easier as did the introduction of the mras for the arcade cores (I am not sure who introduced them but thanks to him/them).
- segamemister
- Posts: 68
- Joined: Tue Mar 08, 2022 3:13 pm
- Location: Chao Garden
- Has thanked: 8 times
- Been thanked: 13 times
Re: MiSTer Downloader Tool
Relating the minimig kickstart issue that should be fixed not sure about the games issue though
viewtopic.php?t=5038
-
- Top Contributor
- Posts: 1911
- Joined: Wed May 27, 2020 1:59 pm
- Has thanked: 145 times
- Been thanked: 454 times
Re: MiSTer Downloader Tool
My default configuration is MegaAGS, with the symlink /media/fat/games -> /media/usb0/games it starts properly. When I delete the symlink it fails with the error No KickStart found, system halted. If I use again the symlink it works.
This happens only when using the USB drive for the Amiga directory: it must be /media/usb0/Amiga, it does not allow /media/usb0/games/Amiga and the only KickStart which can be used is /media/usb0/KICK.ROM, nothing else works.
I read the thread but it does not mention where the Amiga directory is located.
I will make some more tests at some point instead of just deleting the symlink.
This is the link where this was discussed at the time:
viewtopic.php?p=29483#p29483
Re: MiSTer Downloader Tool
What's the database for mame and hbmame games to add to downloader.ini for the PC launcher of Downloader? My MiSTer cannot connect to the internet, so I need to keep the mame and hmame ROM folders updated via PC. Thanks for any tips.
Re: MiSTer Downloader Tool
theypsilon wrote: ↑Sun Nov 27, 2022 3:20 pmExactly. Yeah, let me know in the next main update
Seems to be working. Needed to cleanup after the first run: the same folders appear both on usb0 and fat. Still not sure exactly what folders are affected by the "storage_priority" settings...
Re: MiSTer Downloader Tool
Hey there! This thread greatly helped me cleaning up my folders, removing unwanted cores. However, I just can't remove zx48, there seems to be no filter-tag for it. Any experience removing /filtering this core?