Re: Xvnc Plugin Password Issue (already ran as hudson usr)

2017-04-06 Thread Ha Thuy, Suesi Tran
have you found the solution?

On Sunday, April 24, 2011 at 5:15:17 AM UTC+8, Dave wrote:
>
> Quick overview, I installed the Hudson Xvnc plugin as suggested by
> https://wiki.jenkins-ci.org/display/JENKINS/Xvnc+Plugin on a Fedora
> instance.  Then I logged in as hudson on the device, ran vncserver and
> checked the "Run Xvnc during build."  I still get password errors. 
>
> Full details are that I configured the 
> system by logging in as Hudson on my device and installing vnc-server (via
> yum install vnc-server) 
> then ran vncserver to create & set up a password.  I then killed 
> that vncserver with "vncserver -kill :1" as suggested by 
>
> http://jenkins.361315.n4.nabble.com/problems-running-the-Xvnc-plugin-td2254960.html.
>  
>   
> Unfortunately, I am receiving the following error when I try to run my 
> build
> about 
> requiring a password to access your desktops.  Any ideas on this?  (I 
> have tried checking the "Clean up before start" option) 
>
> Here is the full console output: 
>
> Starting xvnc 
> [workspace] $ /usr/bin/vncserver :10 -geometry 800x600 
>
> You will require a password to access your desktops. 
>
> getpassword error: Invalid argument 
> Password:Starting xvnc 
> [workspace] $ /usr/bin/vncserver :11 -geometry 800x600 
>
> You will require a password to access your desktops. 
>
> getpassword error: Invalid argument 
> Password:Starting xvnc 
> [workspace] $ /usr/bin/vncserver :12 -geometry 800x600 
>
> You will require a password to access your desktops. 
>
> getpassword error: Invalid argument 
> Password:Starting xvnc 
> [workspace] $ /usr/bin/vncserver :13 -geometry 800x600 
>
> You will require a password to access your desktops. 
>
> getpassword error: Invalid argument 
> Password:ERROR: Failed to parse POMs 
> java.io.IOException: Failed to run '/usr/bin/vncserver :13 -geometry
> 800x600' (exit code 1), blacklisting display #13; consider checking the
> "Clean up before start" option 
> at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:100) 
> at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:98) 
> at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:98) 
> at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:98) 
> at hudson.plugins.xvnc.Xvnc.setUp(Xvnc.java:73) 
> at
> hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:521)
>  
>
> at
> hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:420) 
> at hudson.model.Run.run(Run.java:1362) 
> at
> hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:405) 
>     at
> hudson.model.ResourceController.execute(ResourceController.java:88) 
> at hudson.model.Executor.run(Executor.java:145) 
> Finished: FAILURE
>
> --
> View this message in context: 
> http://jenkins.361315.n4.nabble.com/Xvnc-Plugin-Password-Issue-already-ran-as-hudson-usr-tp3470679p3470679.html
> Sent from the Jenkins users mailing list archive at Nabble.com.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f9cace26-a497-49b2-94ec-3b3d3ea2a69d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Xvnc plugin

2013-03-27 Thread JonathanRRogers
On Tuesday, March 26, 2013 4:35:33 PM UTC-4, JohnA wrote:

 I had a similar (but not exactly the same) problem on Ubuntu 10.04. I 
 solved it by using this command line:

 /usr/bin/Xvfb :$DISPLAY_NUMBER -ac -screen 0 1024x768x16


 Set it in Manage Jenkins | Xvnc | Command Line. The Xvfb utility is part 
 of the xvnc4server package.


Actually, Xvfb is from the Xorg project and has nothing to do with VNC. The 
Ubuntu package which installs Xvfb is called xvfb. It is similar to Xvnc 
in that it is an X11 server which maintains a framebuffer in regular memory 
and requires no display hardware. However, unlike Xvnc, it doesn't provide 
any way for a user to interact directly with a session.

Xvfb is ideal for running tests or other automated processes which need an 
X11 server available. I use it for running WebDriver tests through Firefox. 
I use the Xvfb Jenkins plugin which is really easy to use. I definitely 
think that this approach is better than VNC as long as there is no need for 
a user to interact with a session since configuration issues like those 
discussed here are less likely. It is possible to take screenshots and 
attach them to builds as artifacts, which my test suite does in the case of 
WebDriver test failures.
URL:https://wiki.jenkins-ci.org/display/JENKINS/Xvfb+Plugin 

-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Xvnc plugin

2013-03-27 Thread J Arrizza
Well, excellent points all the way around. In my case I don't try to
connect to the running xvnc server, so xvfb works just fine for me. And I'd
say that the OP now has an additional option.use the Xvfb plugin.

I am curious though, could someone give exact, step-by-step instructions to
set the .Xauthority password correctly on Ubuntu? As I said in my previous
post, the jenkins userid does not show up in the users command output,
there is no /home/jenkins created when jenkins or the plugin is
installed, etc.

John

On Wed, Mar 27, 2013 at 10:37 AM, JonathanRRogers jonathanrrog...@gmail.com
 wrote:

 On Tuesday, March 26, 2013 4:35:33 PM UTC-4, JohnA wrote:

 I had a similar (but not exactly the same) problem on Ubuntu 10.04. I
 solved it by using this command line:

 /usr/bin/Xvfb :$DISPLAY_NUMBER -ac -screen 0 1024x768x16


 Set it in Manage Jenkins | Xvnc | Command Line. The Xvfb utility is part
 of the xvnc4server package.


 Actually, Xvfb is from the Xorg project and has nothing to do with VNC.
 The Ubuntu package which installs Xvfb is called xvfb. It is similar to
 Xvnc in that it is an X11 server which maintains a framebuffer in regular
 memory and requires no display hardware. However, unlike Xvnc, it doesn't
 provide any way for a user to interact directly with a session.

 Xvfb is ideal for running tests or other automated processes which need an
 X11 server available. I use it for running WebDriver tests through Firefox.
 I use the Xvfb Jenkins plugin which is really easy to use. I definitely
 think that this approach is better than VNC as long as there is no need for
 a user to interact with a session since configuration issues like those
 discussed here are less likely. It is possible to take screenshots and
 attach them to builds as artifacts, which my test suite does in the case of
 WebDriver test failures.
 URL:https://wiki.jenkins-ci.org/display/JENKINS/Xvfb+Plugin

 --
 You received this message because you are subscribed to the Google Groups
 Jenkins Users group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to jenkinsci-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Xvnc plugin

2013-03-26 Thread haglo
I have jenkins 1.506 under ubuntu 12.10

I start Jenkins as Standalone Server with the following command:
java -jar /lunifera/jenkins/jenkins.war --httpPort=8083 
--logfile=/var/log/jenkins/jenkins.log

I user the plugin Jenkins Xvnc
I have setup this plugin how described in this blog:
http://blog.dahanne.net/2011/07/18/run-ui-tests-on-a-headless-jenkins-hudson-continuous-integration-server-running-ubuntu/

When I make a build with Xvnc I get the following error:

Starting xvnc
[workspace] $ /usr/bin/vncserver :0 -geometry 800x600
vncserver: The HOME environment variable is not set.





-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Xvnc plugin

2013-03-26 Thread Urivan Flores
Set the HOME env variable to the home directory of the user running jenkins.

Regards,

-Urivan
On Mar 26, 2013 6:47 AM, haglo h.g.gloeck...@googlemail.com wrote:

 I have jenkins 1.506 under ubuntu 12.10

 I start Jenkins as Standalone Server with the following command:
 java -jar /lunifera/jenkins/jenkins.war --httpPort=8083
 --logfile=/var/log/jenkins/jenkins.log

 I user the plugin Jenkins Xvnc
 I have setup this plugin how described in this blog:

 http://blog.dahanne.net/2011/07/18/run-ui-tests-on-a-headless-jenkins-hudson-continuous-integration-server-running-ubuntu/

 When I make a build with Xvnc I get the following error:

 Starting xvnc
 [workspace] $ /usr/bin/vncserver :0 -geometry 800x600
 vncserver: The HOME environment variable is not set.





  --
 You received this message because you are subscribed to the Google Groups
 Jenkins Users group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to jenkinsci-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.