Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Scan failed: Errno 21] Unable to add scanned Switch games #1194

Open
DurandalJoyeuse opened this issue Sep 18, 2024 · 4 comments
Open

[Scan failed: Errno 21] Unable to add scanned Switch games #1194

DurandalJoyeuse opened this issue Sep 18, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@DurandalJoyeuse
Copy link

DurandalJoyeuse commented Sep 18, 2024

RomM version
Running in docker with release tag - rommapp/romm:latest

Describe the bug and steps to reproduce
I've done a rip of my physical Switch carts using the MigDumper and uploaded these dumps onto my homelab. I've formatted the file path as expected - /library/switch/roms, however when it attempts to import my Switch library during the library scan it comes up with the error Scan failed: Errno 21. I am not sure if it matters to RomM but the format that MigDumper exports the files out to are ***.xci and ***.bin

Screenshots
Screenshot_20240918_002822

Desktop (please complete the following information):
Screenshot_20240918_005540-1

Screenshot_20240918_005746

Logs
romm dozzle dump.log

@DurandalJoyeuse DurandalJoyeuse added the bug Something isn't working label Sep 18, 2024
@gantoine
Copy link
Member

Is there a chance that /romm/library/switch/roms/The House of the Dead Remake (LA-H-A32DA-USA)/C23...516.xci a folder?

@DurandalJoyeuse
Copy link
Author

So I went back and realized that the dumps I made are slightly nested - The House of the Dead Remake (LA-H-A32DA-USA) then goes to the serial name for the folder then the files. I renamed the top folder to include the entire string. However, instead of at least importing that file that should in theory pass it just errors out on another random file.

Screenshot 2024-09-18 135758
Screenshot 2024-09-18 135923

I guess my follow up is:

  1. Is it intended behavior to only perform an import if the entire directory to scan passes the requirements?
  2. Is there any intent in the future to allow for nested files? My current intent was to just keep the serial folders organized in a top level folder so I can still identify what they are and copy that folder out of the properly named folder. But if I would have to rename them to enter them into RomM, then rename them again to download them as intended for the MigSwitch that's way too much burden.

@gantoine
Copy link
Member

Is it intended behavior to only perform an import if the entire directory to scan passes the requirements?

No games will be imported as they're scanned, but if the system is unable to read your filesystem due to some bad data it'll kill the scan.

Is there any intent in the future to allow for nested files

The intent in the future is to use hash-based matching for games, which will be a less strict folder strucutre.

download them as intended for the MigSwitch

At some point we'll build a system that'll allow you to sync games to your MigSwitch (but that's in a far future).

@DurandalJoyeuse
Copy link
Author

Gotcha that makes sense. I appreciate fast responses. It sounds like my Switch games just wont be a good fit for RomM for the time being.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants