User forums > General (but related to Code::Blocks)
CodeBlocks being called from hudson (on linux)
killerbot:
Has anyone setup a job in hudson which should call CB ?
I have done it in the past on windows (well actually a self made executable was actually calling CB), I am trying something similar in linux, but now the hudson job immediately calls CB.
The hudson job executes :
--- Code: ---/usr/local/bin/codeblocks --no-splash-screen --rebuild --target=Debug Arrays/Arrays.cbp
--- End code ---
Note : hudson installation created a special hudson user to run the "hudson application (java war)".
However it fails, gtk issue :
--- Code: ---Error: Unable to initialize gtk, is DISPLAY set properly?
Finished: FAILURE
--- End code ---
This would be a typical error when it would be run as root, but how come this special user also has these issues. Anyone any experience in this area ?
oBFusCATed:
Do you have a running X?
Do you start hudson from gui terminal or from cronjob, or hudson is even a daemon?
Jenna:
If hudson user seems to be allowed to start programs in your x-server, but it can not use it.
If you run xhost + before it. should work. It allows other users to use your X display.
Jenna:
--- Quote from: jens on December 29, 2010, 09:24:52 am ---If hudson user seems to be allowed to start programs in your x-server, but it can not use it.
If you run xhost + before it. should work. It allows other users to use your X display.
--- End quote ---
Better would be to just allow the hudson user access to your X displyay, because xhost + allows it for each and any user.
It should be doable with an Xaccess-file, but I have no time to look for it at the moment.
killerbot:
I just tried the suggestions (thanks), but no luck.
First : hudson is start by a startup script in /etc/init.d/
Started by the user 'hudson', which I verified by doing a 'ps'.
I tried to : xhost + hudson ==> xhost: bad hostname "hudson"
Then I tried : xhost + ==> access control disabled, clients can connect from any host
Restarted hudson, but the problem persists.
When I go into YAST (Suse linux), user and groups, no sign of user hudson in there.
I am bumping into my linux knowledge limits :-(
Navigation
[0] Message Index
[#] Next page
Go to full version