SongKong Jaikoz

SongKong and Jaikoz Music Tagger Community Forum

Monitor Watch Folder - Linux

I’m away, will look at this next weekend.

Thanks Paul,

I hope that whatever you are doing includes some fun stuff!

Okay
There is an issue with cloning profiles if try to clone Default profile, see https://jthink.atlassian.net/jira/software/c/projects/SONGKONG/issues/SONGKONG-2432

Checked your support files, there is an error occurring each time you start Watch Folder, raised https://jthink.atlassian.net/browse/SONGKONG-2436 and will investigate further.

Fixed the WatchSongs stopping immediately error ready for next release. The workaround until then is to put a song into the watch folder so it isn’t completely empty.

1 Like

Thank you, I will test adding a song to that directory this weekend. Looking forwards to the next release.

Both issues fixed in SongKong 9.1.1 Juju released 3rd of May 2023

Hey Paul, I got 9.1.1 installed and tested. The monitor watch folder doesn’t seem to do anything. I sent support files - jobs 80 and 81 are my test ones. The job kept on running this time but it didn’t appear to process any of my changes. This is using remote on Ubuntu.

After it started did you add a folder of songs to the watch folder or directly add songs to the watch folder?

It should only work for first case.

Yes, I copied some albums in. Each album was in its own directory that included Flac files and a cover image. I was testing with 6 albums that were new additions to my library.

Okay I looked at your logs, there is no indication that anything was added to watch folder, SongKogn does not seem to be seeing them.

But I have just tested with linux based docker and it worked fine

  • Configured Watch Folder
  • Started Watch Monitor Watch Folder
  • Copied David Guetta folder over containing album Guetta Blaster
  • SongKong picked up on this and processed it
  • Stopping task can see it was processed okay
  • I then try adding album folder directly to the watch folder, and again it worked fine

So I dont know if you are doing something different, or if there is an issue with your particular brand of Linux, or maybe it is fileystem specific - is your watch folder on a locally mounted linux drive ?

The watch folder is on a NFS mount. I can try a directory that is local a bit later today. I’m copying the file by using the CLI of the box that is running SongKong. Our processes look pretty similar and I don’t think I’m missing anything from that perspective.

I think NFS may be the issue.

It’s doing the same thing with a local directory, I sent support files again - this time I have screenshots with date/time stamps and commands used for job #83. This is on Ubuntu 22.04.2 LTS.

Probably not the problem, but why do your music filenames have quote mark at start and end, can you retry without having these quotes.

Hey @paultaylor

The quotes were there because of spaces in the filenames. I removed the spaces and simplified a little so that there should not be any question of naming convention. I got the exact same results.

Hi, I have reviewed the code and I can see that if an exception occurs during intilization the exception is not logged properly, so I have fixed this and added some additional debugging. Then uploaded a new version of SongKong 9.1.1 for Linux, so please try re-downloading and installing latest version, About will now show build date of 06/06/2023 rather than 03/06/2023. Then try Monitor Watch Folder again on local filesystem, then rerun Create Support Files

You’re onto something, we had success here and I uploaded support files - Job #86 is the one of interest (the settings weren’t right on 85). 86 successfully processed 3 albums, slowly copied into the watch folder one at a time.

Hmm, all I did was add some logging and some code to catch Exception(which isn’t occuring according to your logs) so I dont see how that would fix anything.

It was really obvious that something was different, I’m comfortable that the process that I used had no differences. One thing that I have noticed though is that the files are not being renamed, I think it is supposed to use the mask from the rename files profile? It is moving them though. Perhaps I missed a setting in regards to renaming?

There is nothing different in the code apart from the extra logging from previous version

so I have no idea why it is now working.

Maybe interesting to see if NFS version working, because if not we may now log an exception that we would not before.

We removed rename and move files from Fix Songs because it caused too many problems and put them into Rename Songs. We then added move files back into Watch Songs because there is still need to move the files out of the watch folder as processed, but we havent included rename files, so it will only modify Base Folder not Sub Folder/Filename parts. This restriction is similar to Delete Duplicates, this cannot be performed as part of Watch Songs either, but can be run later on as required.