SongKong Jaikoz

SongKong and Jaikoz Music Tagger Community Forum

CLI option -f rename/move not working

I want to to rename/move the fixed files to another directory.
Therefore I execute:

docker exec -it songkong sh -c “/opt/songkong/jre/bin/java -Xms150m -Xmx1800m -jar lib/songkong-9.5.jar -f /music/inbox”

But I’m getting this error, which seems to be related to AccusticID API which from my point of view shouldn’t be used for renaming or moving at all.

Can you please have a look into it.

By the way:
docker exec -it songkong sh -c “/opt/songkong/jre/bin/java -Xms150m -Xmx1800m -jar lib/songkong-9.5.jar -m /music/inbox”
is working fine.

Best regards

Sep 19, 2023 8:59:20 PM com.jthink.songkong.cmdline.SongKong init
SEVERE: Checking for Existing Preferences:/root/.songkong/Prefs/songkong_fixsongs.properties:true
Sep 19, 2023 8:59:20 PM com.jthink.songkong.cmdline.SongKong setLocale
SEVERE: Locale is:en
Sep 19, 2023 8:59:20 PM com.jthink.songkong.cmdline.SongKong setExeFolder
WARNING: User Dir:/opt/songkong
Sep 19, 2023 8:59:20 PM com.jthink.songkong.cmdline.SongKong setExeFolder
WARNING: Java Dir:/opt/songkong/jre
Sep 19, 2023 8:59:20 PM com.jthink.songkong.cmdline.SongKong init
WARNING: end
Sep 19, 2023 8:59:20 PM com.jthink.songkong.cmdline.SongKong finish
WARNING: finish
Sep 19, 2023 8:59:20 PM com.jthink.songkong.cmdline.SongKong cmdlineOrRemoteModeStart
WARNING: start
Sep 19, 2023 8:59:20 PM com.jthink.songkong.cmdline.SongKong cmdCheckDatabase
WARNING: start
Sep 19, 2023 8:59:20 PM com.jthink.songkong.cmdline.SongKong cmdCheckDatabase
WARNING: deletingDbLock
Sep 19, 2023 8:59:20 PM com.jthink.songkong.cmdline.SongKong cmdCheckDatabase
WARNING: end
Sep 19, 2023 8:59:21 PM com.jthink.songkong.cmdline.SongKongDatabase checkDatabaseCmdLine
WARNING: Setting Db Folder:/root/.songkong/Prefs/Database
Sep 19, 2023 8:59:21 PM com.jthink.songlayer.hibernate.HibernateUtil createFactory
SEVERE: ----Initilizing Hibernate Session factory
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by javassist.util.proxy.SecurityActions (file:/opt/songkong/lib/javassist-3.18.1-GA.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of javassist.util.proxy.SecurityActions
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Sep 19, 2023 8:59:22 PM com.jthink.songkong.cmdline.SongKongDatabase checkDatabaseCmdLine
SEVERE: Accessed Database okay
Sep 19, 2023 8:59:22 PM com.jthink.songkong.cmdline.SongKong checkCache
WARNING: Checking Cache:/root/.songkong/Prefs/Database/EhCache
Sep 19, 2023 8:59:22 PM com.jthink.songkong.cmdline.SongKong checkCache
WARNING: Deleting Cache Lock:true
Sep 19, 2023 8:59:23 PM com.jthink.songkong.cmdline.SongKong checkCache
WARNING: Checked Cache:/root/.songkong/Prefs/Database/EhCache
Sep 19, 2023 8:59:23 PM com.jthink.songkong.cmdline.SongKong setUserAgent
WARNING: start
Sep 19, 2023 8:59:24 PM com.jthink.acoustid.query.AbstractAcoustidQuery performBasicSubmissionQuery
SEVERE: Posting to url:http://api.acoustid.org/v2/user/lookup?format=xml&client=8XaBELgH&user=b’gNLY2Pen
Sep 19, 2023 8:59:24 PM com.jthink.acoustid.query.AbstractAcoustidQuery analyseErrors
WARNING: AcoustidError<?xml version='1.0' encoding='UTF-8'?>
6invalid user API key (“User with the API key does not exist”)error

Sep 19, 2023 8:59:24 PM com.jthink.acoustid.query.AbstractAcoustidQuery doPerformQuery
SEVERE: Acoustid Exception looking up from AcoustId:<?xml version='1.0' encoding='UTF-8'?>
6invalid user API key (“User with the API key does not exist”)error

com.jthink.acoustid.exception.AcoustidException: <?xml version='1.0' encoding='UTF-8'?>
6invalid user API key (“User with the API key does not exist”)error

at com.jthink.acoustid.query.AbstractAcoustidQuery.doPerformQuery(AbstractAcoustidQuery.java:299)
at com.jthink.acoustid.query.AbstractAcoustidQuery.performQuery(AbstractAcoustidQuery.java:227)
at com.jthink.acoustid.query.AcoustIdQuery.lookupUser(AcoustIdQuery.java:157)
at com.jthink.songkong.analyse.acoustid.AcoustId.isValidAcoustidUser(AcoustId.java:738)
at com.jthink.songkong.cmdline.SongKong.setUserAgent(SongKong.java:688)
at com.jthink.songkong.cmdline.SongKong.cmdlineOrRemoteModeStart(SongKong.java:1069)
at com.jthink.songkong.cmdline.SongKong.finish(SongKong.java:1289)
at com.jthink.songkong.cmdline.SongKong.main(SongKong.java:1317)

Sep 19, 2023 8:59:24 PM com.jthink.songkong.analyse.acoustid.AcoustId isValidAcoustidUser
SEVERE: Problem connecting to AcoustId, assume current User okay
Sep 19, 2023 8:59:24 PM com.jthink.songkong.cmdline.SongKong setUserAgent
WARNING: end
SongKong:start
Sep 19, 2023 8:59:24 PM com.jthink.songkong.cmdline.CmdRenameFiles start
SEVERE: null
java.lang.NullPointerException
at com.jthink.songkong.cmdline.CmdRenameFiles.start(CmdRenameFiles.java:52)
at com.jthink.songkong.cmdline.CmdLineDecoder.start(CmdLineDecoder.java:174)
at com.jthink.songkong.cmdline.SongKong.cmdlineOrRemoteModeStart(SongKong.java:1071)
at com.jthink.songkong.cmdline.SongKong.finish(SongKong.java:1289)
at com.jthink.songkong.cmdline.SongKong.main(SongKong.java:1317)

null
Processing:0
Songs loaded:0
Songs renamed:0
Completed:0
Errors and Warnings:0
Reports:0
SongKong Exiting because of error

Hi, okay it is this bug that prevents Rename Files working from cmdline, already fixed for next release so you should not have too wait long.

1 Like

Also please there is another bug with command line possibly not using the correct profile for fix songs, please see Loaded Songs Count dont match when run FixSongs from Cmdline - this is also fixed for next release https://jthink.atlassian.net/browse/SONGKONG-2496

1 Like

Now fixed in SongKong 9.5.1 Jazz released 20th of September 2023