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

Relink music Directory from Linux to Windows fails #12715

Closed
CaMeLCaseError opened this issue Feb 2, 2024 · 8 comments
Closed

Relink music Directory from Linux to Windows fails #12715

CaMeLCaseError opened this issue Feb 2, 2024 · 8 comments

Comments

@CaMeLCaseError
Copy link

Bug Description

Relinking Music Library paths from a Linux config on a Windows install doesn't work. The linux paths (containing slashes) seem to cause Problems when relinking - I guess it's because C:\ is prepended or the slashes aren't compatible with search and replace.
See attached screenshots for examples.

Details to reproduce: I tried to move my .mixxx settings directory and all my audio files to a windows machine. Both using 2.5 alpha versions:

  • Renamed .mixxx to Mixxx and put it into the C:\Users...\AppData\Local\Mixxx
  • Installed Mixxx
  • After start went into preferences to relink. (when clicking on "relink" simply nothing visibly happens).
  • closed Mixxx
  • restarted Mixxx (and retried to relink also)

Screenshot 2024-02-02 211814

Maybe I have accidentally touched the recording button or mixx just created the recording directory using the linux file structure:
Screenshot 2024-02-02 212703

also visible here after relinking and a restart of mixxx the old path is still there. Interestingly C:\ is always only shown on file which are currently selected.
Screenshot 2024-02-02 214946

Version

2.5-alpha-222-gae53865a26 (main)

OS

Linux, Windows

@ronso0
Copy link
Member

ronso0 commented Feb 2, 2024

Do you still have the log file from the first session on Windows when you did the relink?
(Mixxx stores 11 log files, mixxx.log.10 is the oldest)

If no, can you go back to square one (remove/rename the Mixxx config directory in Windows) and relink again?
Then please share the log file. Maybe it contains some hints.

Actually the relinking should have been fixed with #12462 but I'm pretty sure no one tested this cross-OS.

@ronso0 ronso0 added the library label Feb 2, 2024
@ronso0
Copy link
Member

ronso0 commented Feb 2, 2024

Additionally, (again: simulate a fresh install by removing the Mixxx config directory) could you add one dummy music directory with just some tracks, then move it and try to relink?

@CaMeLCaseError
Copy link
Author

i will just do it again and save the logs... didn't know they existed until now. and still don't know where...

so I'll:

  • rename the Mixxx folder to Mixxx_bak
  • extract the .mixxx folder from Linux
  • rename .mixxx to Mixxx
  • start Mixxx 2.5

where do I find the logs? I can also start Mixxx with --developer if that gives some more output.

could you add one dummy music directory with just some tracks, then move it and try to relink?
You mean to create one dummy on linux and do the whole process? or just testing if relinking generally works on windows?

@CaMeLCaseError
Copy link
Author

I made a fresh mixxx config directory on linux and repeated the process.

started mixxx from command line:
Screenshot 2024-02-03 002904

log is here
mixxx.log

@CaMeLCaseError
Copy link
Author

only windows

  • started Mixxx without any Mixxx folder
  • added some album
  • closed mixxx
  • moved the album
  • started mixxx
  • relinked.

screenshot and logs attached :)
Screenshot 2024-02-03 003948
mixxx.log

@CaMeLCaseError
Copy link
Author

mixxx.log.1.log

@ronso0
Copy link
Member

ronso0 commented Feb 26, 2024

Okay, so the issue is that the Linux paths stored in the database are prefixed with c:\ for some reason.
/home/user/music
becomes
C:/home/user/music (note the forward slashes)
which is obviously not found in the track_locations table.

I'll take a look...

@ronso0
Copy link
Member

ronso0 commented Aug 6, 2024

Fixed in 2.4 by #12878

@ronso0 ronso0 closed this as completed Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants