Skip to content

Game(s) with very long names causing problems with organization feature - "Error creating directory" #310

@kahardin

Description

@kahardin

Summary:

I am running the latest version of the docker container (tag: latest), and my games live on a SMB share via a NAS. After enabling the organization features I noticed in the logs that one game with a very long title generates a directory creation error, which makes the container continually rescan the library and reattempt to make the directory.

Game File:

Mon-Yu [010037101A4CE000][v0][Base].nsp

Full Name:

Mon-Yu Defeat Monsters And Gain Strong Weapons And Armor. You May Be Defeated, But Don’t Give Up. Become Stronger. I Believe There Will Be A Day When The Heroes Defeat The Devil King for file Mon-Yu [010037101A4CE000][v0][Base].nsp

Excerpt from Log:

ownfoil | [2026-03-25 01:09:02.403] INFO (library) Starting library organization process for all libraries...
ownfoil | [2026-03-25 01:09:02.404] DEBUG (settings) Reading configuration file.
ownfoil | [2026-03-25 01:09:09.946] DEBUG (titles) Identification still in progress, not unloading TitleDB.
ownfoil | [2026-03-25 01:09:23.531] ERROR (library) Error creating directory /games/Mon-Yu Defeat Monsters And Gain Strong Weapons And Armor. You May Be Defeated, But Don’t Give Up. Become Stronger. I Believe There Will Be A Day When The Heroes Defeat The Devil King for file Mon-Yu [010037101A4CE000][v0][Base].nsp: [Errno 2] No such file or directory: '/games/Mon-Yu Defeat Monsters And Gain Strong Weapons And Armor. You May Be Defeated, But Don’t Give Up. Become Stronger. I Believe There Will Be A Day When The Heroes Defeat The Devil King'
ownfoil | [2026-03-25 01:09:59.635] INFO (library) Starting removal of outdated update files...
ownfoil | [2026-03-25 01:10:00.176] INFO (library) Finished removal of outdated update files.
ownfoil | [2026-03-25 01:10:00.183] INFO (library) Library organization process for all libraries completed.
ownfoil | [2026-03-25 01:10:00.284] INFO (library) Starting library identification process for all libraries...
ownfoil | [2026-03-25 01:10:00.289] INFO (library) Library identification process for all libraries completed.
ownfoil | [2026-03-25 01:10:00.289] INFO (library) Adding missing apps to database...
ownfoil | [2026-03-25 01:10:05.286] INFO (library) Processed 100/373 titles, added 0 missing apps so far
ownfoil | [2026-03-25 01:10:10.070] INFO (library) Processed 200/373 titles, added 0 missing apps so far
ownfoil | [2026-03-25 01:10:14.940] INFO (library) Processed 300/373 titles, added 0 missing apps so far
ownfoil | [2026-03-25 01:10:18.386] INFO (library) Finished adding missing apps to database. Total apps added: 0
ownfoil | [2026-03-25 01:10:22.340] INFO (library) Starting library organization process for all libraries...
ownfoil | [2026-03-25 01:10:22.340] DEBUG (settings) Reading configuration file.
ownfoil | [2026-03-25 01:10:30.289] DEBUG (titles) Identification still in progress, not unloading TitleDB.
ownfoil | [2026-03-25 01:10:43.317] ERROR (library) Error creating directory /games/Mon-Yu Defeat Monsters And Gain Strong Weapons And Armor. You May Be Defeated, But Don’t Give Up. Become Stronger. I Believe There Will Be A Day When The Heroes Defeat The Devil King for file Mon-Yu [010037101A4CE000][v0][Base].nsp: [Errno 2] No such file or directory: '/games/Mon-Yu Defeat Monsters And Gain Strong Weapons And Armor. You May Be Defeated, But Don’t Give Up. Become Stronger. I Believe There Will Be A Day When The Heroes Defeat The Devil King'

The above continually loops, I believe due to the error. My guess is that the full path name is too long for my SMB share, which is why the directory creation fails. None of the other games experienced this problem, and the issue clears up when Mon-Yu us removed from my library. Would it be possible to get an option to account for and truncate the directory and file names for games with excessively long titles?

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugIssue reporting a bug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions