SongKong Jaikoz

SongKong and Jaikoz Music Tagger Community Forum

I installed in SUSE linux headless mode and not working - Resolved. Thank you

I installed in SUSE linux headless mode and using command line prompt.
Why is the SongKong app is looking for an Applescript?

RiversideNas:~/SongKong/songkong # ./songkong.sh -m /mnt2/Media05/
debuglogfile is:/root/.songkong/Logs/songkong_debug%u-%g.log
userlogfile is:/root/.songkong/Logs/songkong_user%u-%g.log
SongKong:start
Start Fixing Songs

ScriptEngineManager providers.next(): javax.script.ScriptEngineFactory: Provider apple.applescript.AppleScriptEngineFactory could not be instantiated

Cannot invoke “javax.script.ScriptEngine.put(String, Object)” because “engine” is null
Processing:0
Songs loaded:0
Songs ignored because already matched:0
Songs fingerprinted:0
Songs matched to MusicBrainz release:0
Songs matched to MusicBrainz song only:0
Songs matched to AcoustId release:0
Songs matched to Acoustid song only:0
Songs matched to Discogs release:0
Songs matched with artwork:0
Songs matched to AcousticBrainz:0
Songs saved (if not preview):0
Songs renamed:0
Completed:0
Errors and Warnings:0
Reports:0
SongKong Exiting because of error
RiversideNas:~/SongKong/songkong # uname -a
Linux RiversideNas 5.3.18-150300.59.54-default #1 SMP Sat Mar 5 10:00:50 UTC 2022 (1d0fa95) x86_64 x86_64 x86_64 GNU/Linux
RiversideNas:~/SongKong/songkong # cat /root/.songkong/Logs/songkong_user0-0.log
17/03/2022 07.03.50:EDT:WARNING: SongKong 8.1 Scar 1134 07/01/2022 using Java 11.0.13 11.0.13+8-suse-3.68.1-x8664 64bit on Linux 5.3.18-150300.59.54-default amd64 initialized successfully
17/03/2022 07.03.50:EDT:WARNING: No of CPUs:12
17/03/2022 07.03.50:EDT:WARNING: SongKong has been configured with minimum heap memory of 150 mb, maximum heap memory of 1,800 mb and maximum permanent memory of -32 mb
17/03/2022 07.03.50:EDT:WARNING: Total Computer Memory is 15,781 mb
17/03/2022 10.55.53:EDT:WARNING: SongKong 8.1 Scar 1134 07/01/2022 using Java 14.0.2 14.0.2+12 64bit on Linux 5.3.18-150300.59.54-default amd64 initialized successfully
17/03/2022 10.55.53:EDT:WARNING: No of CPUs:12
17/03/2022 10.55.53:EDT:WARNING: SongKong has been configured with minimum heap memory of 150 mb, maximum heap memory of 900 mb and maximum permanent memory of -32 mb
17/03/2022 10.55.53:EDT:WARNING: Total Computer Memory is 15,781 mb
17/03/2022 22.37.10:EDT:WARNING: SongKong 8.1 Scar 1134 07/01/2022 using Java 14.0.2 14.0.2+12 64bit on Linux 5.3.18-150300.59.54-default amd64 initialized successfully
17/03/2022 22.37.10:EDT:WARNING: No of CPUs:12
17/03/2022 22.37.10:EDT:WARNING: SongKong has been configured with minimum heap memory of 150 mb, maximum heap memory of 900 mb and maximum permanent memory of -32 mb
17/03/2022 22.37.10:EDT:WARNING: Total Computer Memory is 15,781 mb
23/03/2022 22.19.02:GMT-04:00:INFO: *****Start
23/03/2022 22.21.16:GMT-04:00:INFO: *****Start
23/03/2022 22.21.51:GMT-04:00:WARNING: SongKong 8.1 Scar 1134 07/01/2022 using Java 18 18+36-2087 64bit on Linux 5.3.18-150300.59.54-default amd64 initialized successfully
23/03/2022 22.21.51:GMT-04:00:WARNING: No of CPUs:12
23/03/2022 22.21.51:GMT-04:00:WARNING: SongKong has been configured with minimum heap memory of 150 mb, maximum heap memory of 1,800 mb and maximum permanent memory of -32 mb
23/03/2022 22.21.51:GMT-04:00:WARNING: Total Computer Memory is 15,781 mb
23/03/2022 22.27.49:GMT-04:00:INFO: **********Start
RiversideNas:~/SongKong/songkong #

The Applescript is only used by MacOS but because it is referenced it generates that warning, I thought I had resolved it with https://jthink.atlassian.net/browse/SONGKONG-1359 but appears not. However that is not causing SongKong to fail it can be ignored.

The songkong_user0.0.log is not telling us the cause of error, can you try songkong_debug0-0.log

Also note you can use songkong -r on an headless machine to run in remote/server mode, then you can access via a webbrowser by going to http://ipaddress:4567

I sent you a PM with debug file.

Thanks, okay the problem is you are running songkong with Java 18 (/usr/java/jdk-18). SongKong uses the nashorn javascript engine for filerenaming masks and this was removed in Java 15 so until I replace this dependency cannot use SongKong on Java 15 or later.

java.lang.NullPointerException: Cannot invoke "javax.script.ScriptEngine.put(String, Object)" because "engine" is null
        at com.jthink.songkong.analyse.filename.FileNameFormatter.getRenameMaskJavascriptEngine(FileNameFormatter.java:692)
        at com.jthink.songkong.analyse.filename.FileNameFormatter.isAlbumMask(FileNameFormatter.java:752)
        at com.jthink.songkong.analyse.filename.FileNameFormatter.isAlbumMask(FileNameFormatter.java:732)
        at com.jthink.songkong.analyse.analyser.SongSaver.init(SongSaver.java:130)
        at com.jthink.songkong.analyse.toplevelanalyzer.FixSongsController.reset(FixSongsController.java:164)
        at com.jthink.songkong.analyse.toplevelanalyzer.FixSongsController.start(FixSongsController.java:185)
        at com.jthink.songkong.cmdline.CmdFixSongs.start(CmdFixSongs.java:61)
        at com.jthink.songkong.cmdline.CmdLineDecoder.start(CmdLineDecoder.java:152)
        at com.jthink.songkong.cmdline.SongKong.cmdlineStart(SongKong.java:1077)
        at com.jthink.songkong.cmdline.SongKong.finish(SongKong.java:1257)
        at com.jthink.songkong.cmdline.SongKong.main(SongKong.java:1287)

If you install the version that comes its own JVM http://www.jthink.net/songkong/downloads/current/songkong-linux-headless.tgz?val=80 it should work okay.

Sure. Let me try with JVm version. Thank you. I appreciate your feedback.

Thank you Paul. Please consider this issue is closed. I appreciate your help and quick feedback.

1 Like