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

[Bug Report] Directory move is broken? #5440

Open
throwaway961 opened this issue Nov 3, 2024 · 2 comments
Open

[Bug Report] Directory move is broken? #5440

throwaway961 opened this issue Nov 3, 2024 · 2 comments
Labels
bug report Bug reports that are not yet verified

Comments

@throwaway961
Copy link

I'm trying to move from a Windows-based fileserver to Linux without losing all of my metadata and the generated images.

Previously, I was using the D:\private\organized, D:\private\VR, D:\private\unorganized, etc. locations. Now it's the /mnt/private/organized/, /mnt/private/VR/, /mnt/private/unorganized/ location, etc. I've got my config.yml updated to have the new locations added. No permissions issues or anything, all of that is set up.

When Stash attempts to walk the directory tree, it's getting confused as all hell. It seems to be merging the two folder names into one long name or something, there's no space before the D:\ part.

2024-11-02 23:13:23
Error   
error processing "/mnt/private/VR/BadoinkVR": detecting folder move: walking filesystem for folder rename detection: checking for parent folder "/mnt/private/VR/D:\\Private\\VR\\BadoinkVR": lstat /mnt/private/VR/D:\Private\VR\BadoinkVR: invalid argument

File paths are getting destroyed too:
image

If it helps:

image

@throwaway961 throwaway961 added the bug report Bug reports that are not yet verified label Nov 3, 2024
@github-project-automation github-project-automation bot moved this to To triage in Bug fixing Nov 3, 2024
@WithoutPants
Copy link
Collaborator

Migrating between filesystems with different path separators (/ and \) is currently unsupported.

@WithoutPants
Copy link
Collaborator

Further to this, the workaround is to manually migrate the folders table using SQL. It will require two separate SQL statements, in your case:

UPDATE folders SET path = REPLACE(path, '\', '/');
UPDATE folders SET path = REPLACE(path, 'D:/', '/mnt/');

Backup your database before doing this! These statements have not been tested, but I have done the opposite during testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Bug reports that are not yet verified
Projects
Status: To triage
Development

No branches or pull requests

2 participants