SongKong Jaikoz

SongKong and Jaikoz Music Tagger Community Forum

Linux headless problem

I installed the headless version on a linux server, but when i run the command ./songkongremote.sh i get this log:

Mar 01, 2020 3:28:54 PM com.jthink.songkong.util.SpecialPlatform isMacMusicAppSupported
SEVERE: MacOS:linux
Mar 01, 2020 3:28:54 PM com.jthink.songkong.util.SpecialPlatform isMacMusicAppSupported
SEVERE: MacOS:linux
Mar 01, 2020 3:28:54 PM com.jthink.songkong.cmdline.SongKong setLocale
SEVERE: Locale is:en
MoTTY X11 proxy: Unsupported authorisation protocol
Mar 01, 2020 3:28:54 PM com.jthink.songkong.cmdline.SongKong setFonts
WARNING: Fonts Enabled:false
Mar 01, 2020 3:28:54 PM com.jthink.songkong.cmdline.SongKong setFonts
WARNING: Configuring Fonts
Mar 01, 2020 3:28:54 PM com.jthink.songkong.cmdline.SongKong setFonts
WARNING: Unable to configure Fonts successfully
Mar 01, 2020 3:28:54 PM com.jthink.songkong.cmdline.SongKong init
WARNING: end
Mar 01, 2020 3:28:54 PM com.jthink.songkong.cmdline.SongKong finish
WARNING: finish
Mar 01, 2020 3:28:54 PM com.jthink.songkong.cmdline.SongKong cmdlineStart
WARNING: start
Mar 01, 2020 3:28:54 PM com.jthink.songkong.cmdline.SongKong cmdCheckDatabase
WARNING: start
Mar 01, 2020 3:28:54 PM com.jthink.songkong.cmdline.SongKong cmdCheckDatabase
WARNING: deletingDbLock
Mar 01, 2020 3:28:54 PM com.jthink.songkong.cmdline.SongKong cmdCheckDatabase
WARNING: end
Mar 01, 2020 3:28:55 PM com.jthink.songkong.cmdline.SongKong cmdlineStart
WARNING: LicenseChecked
Mar 01, 2020 3:28:55 PM com.jthink.songkong.cmdline.SongKongDatabase checkDatabaseCmdLine
WARNING: Setting Db Folder:/root/.songkong/Prefs/Database
Mar 01, 2020 3:28:55 PM com.jthink.songlayer.hibernate.HibernateUtil createFactory
SEVERE: ----Initilizing Hibernate Session factory
Mar 01, 2020 3:28:55 PM com.mchange.v2.log.MLog <clinit>
INFO: MLog clients using java 1.4+ standard logging.
Mar 01, 2020 3:28:55 PM com.mchange.v2.c3p0.C3P0Registry banner
INFO: Initializing c3p0-0.9.2.1 [built 20-March-2013 10:47:27 +0000; debug? true; trace: 10]
Mar 01, 2020 3:28:55 PM com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource getPoolManager
INFO: Initializing c3p0 pool... com.mchange.v2.c3p0.PoolBackedDataSource@15790673 [ connectionPoolDataSource -> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@6f3d8008 [ acquireIncrement -> 3, acquireRetryAttempts -> 10, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, debugUnreturnedConnectionStackTraces -> true, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1hge137a815ravp71fijvqx|340b9973, idleConnectionTestPeriod -> 3000, initialPoolSize -> 1, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 3600, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 200, maxStatements -> 3000, maxStatementsPerConnection -> 50, minPoolSize -> 1, nestedDataSource -> com.mchange.v2.c3p0.DriverManagerDataSource@57124c8f [ description -> null, driverClass -> null, factoryClassLocation -> null, identityToken -> 1hge137a815ravp71fijvqx|d41f816, jdbcUrl -> jdbc:h2:async:/root/.songkong/Prefs/Database/Database;FILE_LOCK=SOCKET;MVCC=TRUE;DB_CLOSE_ON_EXIT=FALSE;CACHE_SIZE=50000;, properties -> {password=******, user=******} ], preferredTestQuery -> null, propertyCycle -> 0, statementCacheNumDeferredCloseThreads -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 3300, usesTraditionalReflectiveProxies -> false; userOverrides: {} ], dataSourceName -> null, factoryClassLocation -> null, identityToken -> 1hge137a815ravp71fijvqx|34f7234e, numHelperThreads -> 3 ]
Mar 01, 2020 3:28:56 PM com.jthink.songkong.cmdline.SongKongDatabase checkDatabaseCmdLine
SEVERE: Accessed Database okay
Mar 01, 2020 3:28:56 PM com.jthink.songkong.cmdline.SongKong checkCache
WARNING: Checking Cache:/root/.songkong/Prefs/Database/EhCache
Mar 01, 2020 3:28:56 PM com.jthink.songkong.cmdline.SongKong checkCache
WARNING: Deleting Cache Lock:true
Mar 01, 2020 3:28:56 PM com.jthink.songkong.cmdline.SongKong checkCache
WARNING: Checked Cache:/root/.songkong/Prefs/Database/EhCache
Mar 01, 2020 3:28:56 PM com.jthink.songkong.cmdline.SongKong setUserAgent
WARNING: start
Mar 01, 2020 3:28:57 PM com.jthink.acoustid.query.AbstractAcoustidQuery performBasicSubmissionQuery
SEVERE: Posting to url:http://api.acoustid.org/v2/user/lookup?format=xml&client=8XaBELgH&user=0CHEmjNEG0
Mar 01, 2020 3:28:57 PM com.jthink.acoustid.query.AbstractAcoustidQuery analyseErrors
WARNING: AcoustidError<?xml version='1.0' encoding='UTF-8'?>
<response><error><code>6</code><message>invalid user API key ("User with the API key does not exist")</message></error><status>error</status></response>

Mar 01, 2020 3:28:57 PM com.jthink.acoustid.query.AbstractAcoustidQuery doPerformQuery
SEVERE: Acoustid Exception looking up from AcoustId:<?xml version='1.0' encoding='UTF-8'?>
<response><error><code>6</code><message>invalid user API key ("User with the API key does not exist")</message></error><status>error</status></response>

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

        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:667)
        at com.jthink.songkong.cmdline.SongKong.setUserAgent(SongKong.java:588)
        at com.jthink.songkong.cmdline.SongKong.cmdlineStart(SongKong.java:887)
        at com.jthink.songkong.cmdline.SongKong.finish(SongKong.java:1069)
        at com.jthink.songkong.cmdline.SongKong.main(SongKong.java:1099)

Mar 01, 2020 3:28:57 PM com.jthink.songkong.analyse.acoustid.AcoustId isValidAcoustidUser
SEVERE: Problem connecting to AcoustId, assume current User okay
Mar 01, 2020 3:28:57 PM com.jthink.songkong.cmdline.SongKong setUserAgent
WARNING: end
Mar 01, 2020 3:28:57 PM com.jthink.songkong.util.UncaughtExceptionHandler uncaughtException
SEVERE: An unexpected error has occurred Could not initialize class java.awt.GraphicsEnvironment$LocalGE on thread main, please report to support @jthink.net
java.lang.NoClassDefFoundError: Could not initialize class java.awt.GraphicsEnvironment$LocalGE
        at java.desktop/java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Unknown Source)
        at java.desktop/javax.swing.RepaintManager.<clinit>(Unknown Source)
        at java.desktop/javax.swing.JComponent.repaint(Unknown Source)
        at java.desktop/java.awt.Component.repaint(Unknown Source)
        at java.desktop/javax.swing.JLabel.setText(Unknown Source)
        at java.desktop/javax.swing.JLabel.<init>(Unknown Source)
        at java.desktop/javax.swing.JLabel.<init>(Unknown Source)
        at com.jthink.songkong.analyse.analyser.Counter.<init>(Counter.java:35)
        at com.jthink.songkong.analyse.analyser.Counters.<clinit>(Counters.java:32)
        at com.jthink.songkong.server.CmdRemote.<init>(CmdRemote.java:39)
        at com.jthink.songkong.cmdline.CmdLineDecoder.start(CmdLineDecoder.java:133)
        at com.jthink.songkong.cmdline.SongKong.cmdlineStart(SongKong.java:889)
        at com.jthink.songkong.cmdline.SongKong.finish(SongKong.java:1069)
        at com.jthink.songkong.cmdline.SongKong.main(SongKong.java:1099)


Exception: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread "main"

Okay this should not happen - I am travelling today but will look into this this evening.

Okay the code has not changed recently , so it is initilizing a JLabel but its not displaying it so this should not cause an issue on a headless environment. So is this a new server, is this headless with or without bundled JVM, if without what version of Java are you running with ?

I notice in the log above it says:

MoTTY X11 proxy: Unsupported authorisation protocol

I would have thought if you were running X11 then it wasnt headless, maybe this is confusing things ?

ok, i cleaned everything and redid the installation.
Now works perfectly! :thinking: :man_shrugging:

I take this opportunity to ask one thing: how can I import the settings, profiles and masks that I created on the windows version installed on my pc?

Thats great, I have now written a faq entry about transferring settings and files - Moving Configurations to a different computer

1 Like