It's all about the answers!

Ask a question

Build Forge: Using variable _USE_BFCREDS=1 doesn't work


Andreas Eisenhoffer (15167) | asked Feb 18 '13, 8:48 a.m.
Hi,
I'd like to override Build Forge server authentication with Management Console login credentials by using special environment variable _USE_BFCREDS=1.
I'm getting following error message:
AUTH	 Using Build Forge user credentials for server authentication
AUTH	Unable to set user account to permission denied
RESULT 4 (4)
EXEC unable to create/verify project relative working directory.
Thanks for any help,
regards Andreas

6 answers



permanent link
Spencer Murata (2.3k115971) | answered Feb 19 '13, 8:09 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
 That means that the Build Agent user does not have credentials to do the 'su'.  Whatever user is running the bfagent daemon must have su permissions.

~Spencer

permanent link
Andreas Eisenhoffer (15167) | answered Feb 19 '13, 8:33 a.m.
Hi Spencer,

oh yes, will check this ... thanks again for your helpful answer !

Regards Andreas

permanent link
Andreas Eisenhoffer (15167) | answered Feb 19 '13, 10:39 a.m.
Build Agent user has 'su' permissions ! (Checked this on server command line and then startet bfagent with 'bfagent -s').  Still get:
AUTH	 Using Build Forge user credentials for server authentication
AUTH Unable to set user account to permission denied (hugo)
RESULT	4 (4)

EXEC environment_test/environment_test_160 under /home/buildforge on server bflxx861 could not be accessed.
EXEC unable to create/verify project relative working directory.


Don't know what's wrong here ? Any ideas ?
Regards Andreas

Comments
Spencer Murata commented Feb 19 '13, 12:25 p.m.
FORUM MODERATOR / JAZZ DEVELOPER

Does the test connection by itself work correctly (i.e. passes)?  My guess is that that fails too, so you can gather more information about the failure using the same debug technique here:


permanent link
Andreas Eisenhoffer (15167) | answered Feb 20 '13, 3:06 a.m.
Test connection shows status 'Pass':
No Errors
Host: bflxx861.boeblingen.de.ibm.com:5556
Agent Version: 7.1.3.0-0-0054
Authentication: hugo
Platform: linux 2.6.18-274.7.1.el5 #1 SMP Thu Oct 20 16:21:01 EDT 2011
Status: Pass
Duration: 0
	
			
		200 HELLO - BuildForge Agent v7.1.3.0-0-0054
320 AUTH AuthOk["hugo"]
320 SET EnvSet["BF_AGENT_VERSION","7.1.3.0-0-0054"]
320 SET EnvSet["BF_AGENT_PLATFORM","linux 2.6.18-274.7.1.el5 #1 SMP Thu Oct 20 16:21:01 EDT 2011"]
320 EXEC Locale["C"]
320 PTY Pty[*PtyPipe]
320 EXEC Locale["C"]
320 EXEC ExecShellPath["/bin/bash"]
300 HEARTBEAT 1
310 * TERM environment variable not set.
310 PLAT linux 2.6.18-274.7.1.el5 #1 SMP Thu Oct 20 16:21:01 EDT 2011
320 PING PingOk
251 RESULT 0
260 EOR
	

	


permanent link
Spencer Murata (2.3k115971) | answered Feb 20 '13, 8:13 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
 If the test connection works, and the daemon running bfagent has the su permissions, then really the only other thing that could cause a permission denied is if the authentication password is wrong.  Are you positive that the user/password are the same between the Linux box and the BF console?  The last test would be to create an identical "hugo" user in BF and see if that is able to run the build.  Other than that you will have to enter a PMR for the issue.

~Spencer

permanent link
Andreas Eisenhoffer (15167) | answered Feb 20 '13, 10:59 a.m.
Test with an identical "hugo" user in BF also failed. Further debugging showed that the problem/error seems to be the PAM authentication on the server (Linux box). We continue changing PAM configuration.
Thanks for your help so far.
Regards Andreas

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.