Forum Discussion

Pritish_Panda's avatar
Pritish_Panda
Contributor
9 years ago

Permission issue for soapui in jenkins

Hi,

 

I have installed Soapui in my jenkins server (Remote Linux server) as a root user and I have created one job in jenkins to run my Soapui project through maven which will tag to soapui . So my jenkins always login to the jenkins server as a jenkins user which is a service user So now getting the permission issue . I mean jenkins unable to run soapui because it was installed by a root user. 

 

Here is the error I am getting 

 

[INFO] Building Integration Tests for Bedrock 4.2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ Bedrock_integration-tests ---[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ Bedrock_integration-tests ---[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent![INFO] skip non existing resourceDirectory /home/jenkins/jenkins/jobs/Maven_SoapUI_Integration_Test/workspace/SoapUI_Test_with_maven/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ Bedrock_integration-tests ---[INFO] No sources to compile
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ Bedrock_integration-tests ---[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent![INFO] skip non existing resourceDirectory /home/jenkins/jenkins/jobs/Maven_SoapUI_Integration_Test/workspace/SoapUI_Test_with_maven/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ Bedrock_integration-tests ---[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ Bedrock_integration-tests ---[INFO] No tests to run.
[INFO] 
[INFO] --- ready-api-maven-plugin:1.7.0:test (p1) @ Bedrock_integration-tests ---[WARNING] System property 'soapui.home' is not set! Using this directory instead: .Setting soapui.home value /home/ppanda/SmartBear/ReadyAPI-1.7.0/bin/
[WARNING] No base packages specified - no classpath scanning will be done[INFO] Hibernate Validator 4.1.0.Final
[INFO] Adding module 'com.smartbear.ready.cmd.CommandLineModule
02:38:28,418 INFO  [SoapUI] Adding [/home/ppanda/SmartBear/ReadyAPI-1.7.0/bin/ext/postgresql-9.3-1102.jdbc41.jar] to extensions classpath
02:38:28,419 INFO  [SoapUI] Adding [/home/ppanda/SmartBear/ReadyAPI-1.7.0/bin/ext/sqljdbc4.jar] to extensions classpath
02:38:28,419 INFO  [SoapUI] Adding [/home/ppanda/SmartBear/ReadyAPI-1.7.0/bin/ext/mysql-connector-java-5.1.36-bin.jar] to extensions classpath
02:38:28,419 INFO  [SoapUI] Adding [/home/ppanda/SmartBear/ReadyAPI-1.7.0/bin/ext/jsch-0.1.42.jar] to extensions classpath
02:38:28,419 INFO  [DefaultSoapUICore] Creating new settings at [/var/lib/jenkins/soapui-settings.xml]
02:38:28,834 WARN  [SoapUIProGroovyScriptEngineFactory] Missing scripts folder [/home/jenkins/jenkins/jobs/Maven_SoapUI_Integration_Test/workspace/scripts]
02:38:28,835 INFO  [DefaultSoapUICore] Adding listeners from [/home/ppanda/SmartBear/ReadyAPI-1.7.0/bin/listeners/demo-listeners.xml]
[INFO] Initializing database..
02:38:30,051 INFO  [PluginManager] 0 plugins loaded in 2 ms
02:38:30,051 INFO  [DefaultSoapUICore] All plugins loaded
[INFO] Waiting for changelog lock....
02:38:30,365 INFO  [SoapUI] Adding [/home/ppanda/SmartBear/ReadyAPI-1.7.0/bin/ext/postgresql-9.3-1102.jdbc41.jar] to extensions classpath
02:38:30,367 INFO  [SoapUI] Adding [/home/ppanda/SmartBear/ReadyAPI-1.7.0/bin/ext/sqljdbc4.jar] to extensions classpath
02:38:30,367 INFO  [SoapUI] Adding [/home/ppanda/SmartBear/ReadyAPI-1.7.0/bin/ext/mysql-connector-java-5.1.36-bin.jar] to extensions classpath
02:38:30,367 INFO  [SoapUI] Adding [/home/ppanda/SmartBear/ReadyAPI-1.7.0/bin/ext/jsch-0.1.42.jar] to extensions classpath
02:38:30,367 INFO  [DefaultSoapUICore] Creating new settings at [/var/lib/jenkins/soapui-settings.xml]
02:38:30,371 INFO  [DefaultSoapUICore] Adding listeners from [/home/ppanda/SmartBear/ReadyAPI-1.7.0/bin/listeners/demo-listeners.xml]
02:38:30,409 INFO  [PluginManager] 0 plugins loaded in 0 ms
02:38:30,409 INFO  [DefaultSoapUICore] All plugins loaded
No valid SoapUI NG license exists.
Please enter absolute path of the license file (.zip or .key):
[ERROR] java.util.NoSuchElementException: No line found[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.543 s
[INFO] Finished at: 2016-06-03T02:38:30-04:00
[INFO] Final Memory: 37M/480M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.smartbear:ready-api-maven-plugin

 

I can't install the soapui as a jenkins user because it's a service user. And I tried to change the user as root for jenkins but then  jenkins unable to pull data from git,getting some error for that. 

 

So give me some suggestion on that . Thanks  

  • It is not evident from the log which confirms the issue with permissions. By the way, it is showing under some user name, not as root.
  • nmrao's avatar
    nmrao
    Champion Level 3
    It is not evident from the log which confirms the issue with permissions. By the way, it is showing under some user name, not as root.