Hi guys,When I integrated katalon to Jenkins, when execute command in shell, the log in jenkins shows as following:I don't know why this message shows up, this question has been bothering me for a long time! ---------------------------Started by user adminBuilding in workspace /var/lib/jenkins/workspace/Ubuntu Katalon Project Testing Job[WS-CLEANUP] Deleting project workspace...[WS-CLEANUP] Deferred wipeout is used...[WS-CLEANUP] Done[Ubuntu Katalon Project Testing Job] $ /bin/sh -xe /tmp/jenkins6556380007636881375.sh+ cd /home/johnzhang/Katalon/KatalonStudio/Katalon_Studio_Linux_64-5.8.6+ ./katalon -noSplash -runMode=console -consoleLog -projectPath=/home/johnzhang/Katalon/KatalonProject/DailyTest/DailyTest.prj -retry=0 -testSuitePath=Test Suites/Linux1 -browserType=Chrome!SESSION 2018-11-17 21:31:09.750 -----------------------------------------------eclipse.buildId=unknownjava.version=1.8.0_181java.vendor=Oracle CorporationBootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_USFramework arguments: -runMode=console -projectPath=/home/johnzhang/Katalon/KatalonProject/DailyTest/DailyTest.prj -retry=0 -testSuitePath=Test Suites/Linux1 -browserType=ChromeCommand-line arguments: -os linux -ws gtk -arch x86_64 -data config -runMode=console -consoleLog -projectPath=/home/johnzhang/Katalon/KatalonProject/DailyTest/DailyTest.prj -retry=0 -testSuitePath=Test Suites/Linux1 -browserType=Chrome!ENTRY com.kms.katalon 4 0 2018-11-17 21:31:11.211!MESSAGE [SCR] Component definition XMLs not found in bundle com.kms.katalon. The component header value is OSGI-INF/component.xml!ENTRY com.kms.katalon 4 0 2018-11-17 21:31:11.213!MESSAGE [SCR] Component definition XMLs not found in bundle com.kms.katalon. The component header value is OSGI-INF/component.xml!ENTRY com.kms.katalon 4 0 2018-11-17 21:31:11.932!MESSAGE [SCR] Component definition XMLs not found in bundle com.kms.katalon. The component header value is OSGI-INF/component.xml!ENTRY com.kms.katalon 4 0 2018-11-17 21:31:11.933!MESSAGE [SCR] Component definition XMLs not found in bundle com.kms.katalon. The component header value is OSGI-INF/component.xml!ENTRY org.eclipse.osgi 4 0 2018-11-17 21:31:12.399!MESSAGE Application error!STACK 1java.lang.IllegalStateException: The platform metadata area could not be written: /home/johnzhang/Katalon/KatalonStudio/Katalon_Studio_Linux_64-5.8.6/config/.metadata. By default the platform writes its contentunder the current working directory when the platform is launched. Use the -data parameter tospecify a different content area for the platform. at org.eclipse.core.internal.runtime.DataArea.assertLocationInitialized(DataArea.java:61) at org.eclipse.core.internal.runtime.DataArea.getStateLocation(DataArea.java:129) at org.eclipse.core.internal.preferences.InstancePreferences.getBaseLocation(InstancePreferences.java:44) at org.eclipse.core.internal.preferences.InstancePreferences.initializeChildren(InstancePreferences.java:209) at org.eclipse.core.internal.preferences.InstancePreferences.<init>(InstancePreferences.java:59) at org.eclipse.core.internal.preferences.InstancePreferences.internalCreate(InstancePreferences.java:220) at org.eclipse.core.internal.preferences.EclipsePreferences.create(EclipsePreferences.java:352) at org.eclipse.core.internal.preferences.EclipsePreferences.create(EclipsePreferences.java:340) at org.eclipse.core.internal.preferences.PreferencesService.createNode(PreferencesService.java:391) at org.eclipse.core.internal.preferences.RootPreferences.getChild(RootPreferences.java:60) at org.eclipse.core.internal.preferences.RootPreferences.getNode(RootPreferences.java:95) at org.eclipse.core.internal.preferences.RootPreferences.node(RootPreferences.java:84) at org.eclipse.core.internal.preferences.AbstractScope.getNode(AbstractScope.java:38) at org.eclipse.core.runtime.preferences.InstanceScope.getNode(InstanceScope.java:77) at com.kms.katalon.preferences.internal.ScopedPreferenceStore.getStorePreferences(ScopedPreferenceStore.java:216) at com.kms.katalon.preferences.internal.ScopedPreferenceStore.<init>(ScopedPreferenceStore.java:117) at com.kms.katalon.preferences.internal.PreferenceStoreManager.initialPreferenceStore(PreferenceStoreManager.java:25) at com.kms.katalon.preferences.internal.PreferenceStoreManager.getPreferenceStore(PreferenceStoreManager.java:21) at com.kms.katalon.preferences.internal.PreferenceStoreManager.getPreferenceStore(PreferenceStoreManager.java:14) at com.kms.katalon.util.ApplicationSession.getStore(ApplicationSession.java:51) at com.kms.katalon.util.ApplicationSession.clean(ApplicationSession.java:17) at com.kms.katalon.core.application.Application.preRunInit(Application.java:80) at com.kms.katalon.core.application.Application.start(Application.java:49) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610) at org.eclipse.equinox.launcher.Main.run(Main.java:1519) at org.eclipse.equinox.launcher.Main.main(Main.java:1492)Failed to connect to Mir: Failed to connect to server socket: No such file or directoryUnable to init server: Could not connect: Connection refusedKatalon: Cannot open display: Katalon:An error has occurred. See the log file/var/lib/jenkins/.eclipse/1995275406_linux_gtk_x86_64/configuration/1542461469997.log.Build step 'Execute shell' marked build as failureFinished: FAILURE
1 Like
This may be duplicating to
java.lang.IllegalStateException: The platform metadata area could not be written: /home/johnzhang/Katalon/KatalonStudio/Katalon_Studio_Linux_64-5.8.6/config/.metadata. By default the platform writes its contentunder the current working directory when the platform is launched. Use the -data parameter tospecify a different content area for the platform.
I guess you have File permission problem. Please make sure the user johnzhang has appropriate permission to the ancestor directories of /home/johnzhang/Katalon/KatalonStudio/Katalon_Studio_Linux_64-5.8.6/config
Or, you may be executing Katalon in console mode as a different OS user. aren’t you ?
1 Like
kazurayam said:
java.lang.IllegalStateException: The platform metadata area could not be written: /home/johnzhang/Katalon/KatalonStudio/Katalon_Studio_Linux_64-5.8.6/config/.metadata. By default the platform writes its contentunder the current working directory when the platform is launched. Use the -data parameter tospecify a different content area for the platform.
I guess you have File permission problem. Please make sure the user johnzhang has appropriate permission to the ancestor directories of /home/johnzhang/Katalon/KatalonStudio/Katalon_Studio_Linux_64-5.8.6/config
Or, you may be executing Katalon in console mode as a different OS user. aren’t you ?
Thanks for your help, I’ll try to add the command chmod 777.