|
From: Klemens L. <kle...@gm...> - 2011-09-07 08:39:30
|
H Roberto, thx for your advice. I am not sure how to run this commands in the "user session who is having the problem" because only "root" is used. I start the Bamboo Remote Agent app as root using "./bamboo-agent.sh start". Then both, the wrapper process and the started bamboo agent java process are running as root. since root is able to access the display, it should work. also, when i use "./bamboo-agent.sh console" so the wrapper is not in daemon mode, this two created processes run as root too and here the connection to the display works. br klemensl 2011/9/7 Roberto Espinoza <rob...@ta...>: > Hello Klemens, > It may be a problem with not having the right permissions to open the > display ":10.0". > You need to run the following command with the user who is the owner or have > permisions for display ":10.0" > Then run > xauth list ":10.0" > It should output something like > yourhost/unix:10 MIT-MAGIC-COOKIE-1 <some-id-number-here> > Once that is done, then in the user session who is having the problem to > open the ":10.0" display, run this > touch /your/home/folder/.Xauthority > xauth add <copy paste the yourhost/unix:10 line in here> > export DISPLAY=":10.0" > > After this, if you try to run firefox, it should be able to connect to the > display and open firefox in that desktop. > > Let me know if this works for you. > > > Cheers, > Roberto > On Tue, Sep 6, 2011 at 10:41 PM, Klemens Loschy <kle...@gm...> wrote: >> >> Hi, >> >> set > env.txt show "DISPLAY=:10.0". Is there anything else I look after? >> >> 2011/9/6 Leif Mortenson <lei...@ta...>: >> > Klemens >> > If you can't upgrade, then try adding the following line to your shell >> > script just before the Wrapper is launched: >> > >> > set > env.txt >> > >> > This will store the current environment into a file. >> > >> > I am sure the problem is the DISPLAY variable though. >> > >> > Cheers, >> > Leif >> > >> > On Tue, Sep 6, 2011 at 9:47 PM, Klemens Loschy <kle...@gm...> >> > wrote: >> >> Hi, >> >> >> >> unfortunately the update won't happen in near future. Things are bit >> >> complicated when you are trying to change a peace of software... Seems >> >> that 3.2.3 is installed. >> >> >> >> Sorry, br klemensl >> >> >> >> 2011/9/6 Leif Mortenson <lei...@ta...>: >> >>> Klemens, >> >>> Which version of the Wrapper are you using? The >> >>> wrapper.environment.dump property was added in version 3.5.0. If you >> >>> are using an older version, please upgrade to 3.5.11. That won't fix >> >>> your problem but it will let you investigate the issue. >> >>> >> >>> Cheers, >> >>> Leif >> >>> >> >>> On Tue, Sep 6, 2011 at 8:20 PM, Klemens Loschy <kle...@gm...> >> >>> wrote: >> >>>> Hi, >> >>>> >> >>>> thank you very much for the quick and helpful reply. >> >>>> >> >>>> The app is started on system startup. i have stopped the wrapper with >> >>>> ./myapp stop and started the it again with ./myapp start -> same >> >>>> problem. when i start the bamboo remote agent via ./myapp console, >> >>>> everything works fine. prompting the env variable $DISPLAY in the >> >>>> shell shows me ":10.0", that should work. so only when the wrapper is >> >>>> started in daemonized mode, i have this display issues. unfortunately >> >>>> i am not able to dump the environment by adding the >> >>>> wrapper.environment.dump=TRUE attribute. >> >>>> >> >>>> thx, br klemensl >> >>>> >> >>>> 2011/9/6 Leif Mortenson <lei...@ta...>: >> >>>>> Klemens, >> >>>>> This sounds like a display problem. Are you running the Wrapper as >> >>>>> "./myapp console" or "./myapp start", or is it being stared on >> >>>>> system >> >>>>> startup? >> >>>>> >> >>>>> Most X Windows applications work by looking for a DISPLAY >> >>>>> environment >> >>>>> variable. If that is not being found then the process will not be >> >>>>> able to display its GUI. >> >>>>> >> >>>>> Try adding the following to your wrapper.conf so you get the current >> >>>>> environment dumped to the log file. This should help debug the >> >>>>> problem. >> >>>>> >> >>>>> http://wrapper.tanukisoftware.com/doc/english/prop-environment-dump.html >> >>>>> wrapper.environment.dump=TRUE >> >>>>> >> >>>>> Please let me know how this works for you. >> >>>>> >> >>>>> Cheers, >> >>>>> Leif >> >>>>> >> >>>>> On Tue, Sep 6, 2011 at 5:54 PM, Klemens Loschy <kle...@gm...> >> >>>>> wrote: >> >>>>>> Hi, >> >>>>>> >> >>>>>> we are using the service wrapper to start a bamboo remote agent (VM >> >>>>>> running a RHELS 5.6). if the agent is started using the the service >> >>>>>> wrapper, our selenium tests do not work because the browser >> >>>>>> (firefox) >> >>>>>> can not be opened: >> >>>>>> Xlib: connection to ":10.0" refused by server >> >>>>>> Xlib: Client is not authorized to connect to Server >> >>>>>> Error: cannot open display: :10 >> >>>>>> >> >>>>>> When the remote agent is started without the service wrapper, >> >>>>>> everything works as expected. Always root is used to start the >> >>>>>> remote >> >>>>>> agent. >> >>>>>> >> >>>>>> Can anyone support me by solving this issue? >> >>>>>> >> >>>>>> thank you in advance, br klemensl >> > >> > >> > ------------------------------------------------------------------------------ >> > Special Offer -- Download ArcSight Logger for FREE! >> > Finally, a world-class log management solution at an even better >> > price-free! And you'll get a free "Love Thy Logs" t-shirt when you >> > download Logger. Secure your free ArcSight Logger TODAY! >> > http://p.sf.net/sfu/arcsisghtdev2dev >> > _______________________________________________ >> > Wrapper-user mailing list >> > Wra...@li... >> > https://lists.sourceforge.net/lists/listinfo/wrapper-user >> > >> >> >> ------------------------------------------------------------------------------ >> Special Offer -- Download ArcSight Logger for FREE! >> Finally, a world-class log management solution at an even better >> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >> download Logger. Secure your free ArcSight Logger TODAY! >> http://p.sf.net/sfu/arcsisghtdev2dev >> _______________________________________________ >> Wrapper-user mailing list >> Wra...@li... >> https://lists.sourceforge.net/lists/listinfo/wrapper-user > > > > -- > Roberto Espinoza > Tanuki Software, Ltd. > 6-16-7-1001 Nishi-Kasai, Edogawa-ku > Tokyo 134-0088 Japan > Tel/Fax: +81-3-3878-3211 > http://www.tanukisoftware.com > rob...@ta... > > ------------------------------------------------------------------------------ > Using storage to extend the benefits of virtualization and iSCSI > Virtualization increases hardware utilization and delivers a new level of > agility. Learn what those decisions are and how to modernize your storage > and backup environments for virtualization. > http://www.accelacomm.com/jaw/sfnl/114/51434361/ > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > |