downloader error when updating

Kernel, Main, Utilities & Applications, Miscellaneous Devices.
MorkMikael
Posts: 96
Joined: Thu Jun 04, 2020 9:01 pm
Has thanked: 16 times
Been thanked: 19 times

downloader error when updating

Unread post by MorkMikael »

when i run downloader i get


/root# downloader.sh
Running MiSTer Downloader

START!

Reading file: /media/fat/downloader.ini
Reading default db
Traceback (most recent call last):
File "/tmp/dont_download.zip/downloader/main.py", line 32, in main
exit_code = execute_runner(env, logger)
File "/tmp/dont_download.zip/downloader/main.py", line 44, in execute_runner
exit_code = runner.run()
File "/tmp/dont_download.zip/downloader/runner.py", line 92, in run
local_store = self._local_repository.load_store(self._store_migrator)
File "/tmp/dont_download.zip/downloader/local_repository.py", line 72, in load_store
store_migrator.migrate(local_store)
File "/tmp/dont_download.zip/downloader/store_migrator.py", line 31, in migrate
self._migrations.migrate(local_store)
File "/tmp/dont_download.zip/downloader/store_migrator.py", line 84, in migrate
local_store['dbs'][db_id]['zips'][zip_id]['folders'] = {folder: {} for folder in local_store['dbs'][db_id]['zips'][zip_id]['folders']}
KeyError: 'folders'

Downloader failed!
grizzly
Top Contributor
Posts: 381
Joined: Tue Jun 16, 2020 12:22 pm
Has thanked: 58 times
Been thanked: 77 times

Re: downloader error when updating

Unread post by grizzly »

Some questions.
New or old sd card?
New or old mister setup on the sd card?
Free space on the sd card?

If new setup how did you set it up?
As in using the official mister or maybe mr fusion or something else?
What filesystem is on the sd card ntfs/fat32/exfat/ext/etc? (seen alot of problem with ntfs on this forum!)
Higgy
Posts: 92
Joined: Mon May 25, 2020 9:37 am
Has thanked: 7 times
Been thanked: 30 times

Re: downloader error when updating

Unread post by Higgy »

The thing that has caused me problems twice is running out of storage space, so certainly worth a check.
I fill the card to the gills with games, then forget that some of the bigger updates need space to install!
theypsilon
Scripting Wizard
Posts: 106
Joined: Sun May 24, 2020 8:20 pm
Been thanked: 41 times

Re: downloader error when updating

Unread post by theypsilon »

MorkMikael wrote: Tue Oct 19, 2021 1:45 pm when i run downloader i get


/root# downloader.sh
Running MiSTer Downloader

START!

Reading file: /media/fat/downloader.ini
Reading default db
Traceback (most recent call last):
File "/tmp/dont_download.zip/downloader/main.py", line 32, in main
exit_code = execute_runner(env, logger)
File "/tmp/dont_download.zip/downloader/main.py", line 44, in execute_runner
exit_code = runner.run()
File "/tmp/dont_download.zip/downloader/runner.py", line 92, in run
local_store = self._local_repository.load_store(self._store_migrator)
File "/tmp/dont_download.zip/downloader/local_repository.py", line 72, in load_store
store_migrator.migrate(local_store)
File "/tmp/dont_download.zip/downloader/store_migrator.py", line 31, in migrate
self._migrations.migrate(local_store)
File "/tmp/dont_download.zip/downloader/store_migrator.py", line 84, in migrate
local_store['dbs'][db_id]['zips'][zip_id]['folders'] = {folder: {} for folder in local_store['dbs'][db_id]['zips'][zip_id]['folders']}
KeyError: 'folders'

Downloader failed!


Hey, thanks for reporting this. Could you try again? I think it should be fixed now, it seems you ran into some edge case I was not aware of.
MorkMikael
Posts: 96
Joined: Thu Jun 04, 2020 9:01 pm
Has thanked: 16 times
Been thanked: 19 times

Re: downloader error when updating

Unread post by MorkMikael »

works now thanks theypsilon.
Post Reply