Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Dependendy Build: Property "hostname" has not been set

We're running RTC 4.0.0.1 on a WIN 2008, which integrates (or rather, should integrate) with IBM i.

Password file has been created on IBM i, with ID and PW that can access RTC. So far so good.
When running the Dependency Build, I get this:
.....
.....
Setting project property: team.enterprise.build.start.time -> 1362069639148
* Property "hostname" has not been set
* Property "userid" has not been set
* Property "userpw" has not been set
* Adding reference: SystemInstance
* Attempting to create object of type org.apache.tools.ant.helper.DefaultExecutor
* Adding reference: ant.executor
* Build sequence for target(s) `all' is [fetch, build, all]
* Complete build sequence is [fetch, build, all, ]
*
* fetch:
*  INFO [main] (HttpMethodDirector.java:847) - Authentication requested but doAuthentication is disabled
*  INFO [main] (HttpMethodDirector.java:847) - Authentication requested but doAuthentication is disabled
*  INFO [main] (HttpMethodDirector.java:847) - Authentication requested but doAuthentication is disabled
*
* BUILD FAILED
* com.ibm.team.repository.common.TeamRepositoryException: Error logging in to repository https://abc.com:9443/jazz/.  Verify that the repository address and credentials to log in are correct.

----
Where do I set the three properties:

Property "hostname", Property "userid", Property "userpw" ?
It can't be referring to the passwordfile aka 'jbe.sh -createPasswordFile pass.txt' ?


0 votes


Accepted answer

Permanent link
You can ignore those messages:

* Property "hostname" has not been set
* Property "userid" has not been set
* Property "userpw" has not been set

Even in my builds that I have working I am seeing those messages as well.  The properties it is using to try to connect to the repository are the ones JAZZ_USER and JAZZ_PASSWORD_FILE that you specify in the startbfa.sh script to start the build agent.   JAZZ_PASSWORD_FILE does refer to a password file created using jbe.
Kenneth Munch selected this answer as the correct answer

2 votes


5 other answers

Permanent link
That's good to know. Thanks.
My JAZZ_USER and JAZZ_PASSWORD_FILE have been specified like you describe. I've just checked the credentials, and I am able to log in using them.
It still complains, for some reason:
BUILD FAILED
* com.ibm.team.repository.common.TeamRepositoryException: Error logging in to repository https://abc.com:9443/jazz/.  Verify that the repository address and credentials to log in are correct.

Do I need to define them somewhere else, besides in startbfa.sh ? (credentials are picked up OK, when I look in the build logfile).

0 votes

Comments

The repository address it lists in the log is correct?  When you tried using the user id specified from JAZZ_USER and the password entered into the password file for JAZZ_PASSWORD_FILE did you use the Eclipse client to login or the web client?  Make sure it works from the Eclipse client.  Also make sure to use the same case when logging in.

You don't need to specify JAZZ_USER and JAZZ_PASSWORD_FILE anywhere else.  If you look in the build log file for those properties you should see the values you entered in the startbfa.sh script.  If you don't you need to restart the build agent and request the build again.


Permanent link
Well, well. Interesting...
I've just added a Jazz Repository Connection - in the Eclipse client -for the build user defined as JAZZ_USER.
I cannot log on: "...CRJAZ6023E...invalid userid..."

Client info:



Server info:



Why am I able to log on through the web interface, using the same credentials ?

0 votes

Comments

The web interface is a bit more flexible in who can login.  If the user you are trying to login with has repository permissions JazzAdmins then you will be able to login through the web ui.  You need to make sure a user is defined in the RTC repository with the user id you are trying to login with to make logging in with the Eclipse client work.


Permanent link
The build user can now log on, using Eclipse. So far so good.
Dependency Build runs a bit longer, but for some reason the user cannot read his own workspace:
User 'BUILDER' does not have permission to read workspace 'Build WorkSpace'
Any ideas ?

0 votes


Permanent link
I reset the password a third time, and updated JAZZ_USER using jbe.sh (above).

Why the build user could not read its own WS, I cannot say. I created a new WS, and loaded it to match the old.
That worked.
Thanks for your help, Kevin (and Ralph)

0 votes


Permanent link
We get "...CRJAZ6023E...invalid userid..." every other week, or so.
We reset the password, update JAZZ_USER using jbe.sh, and the build runs again. We're unable to determine, what causes the password to revoke or expire.
Is it the BF Agent, who polls Eclipse, or ?

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 123

Question asked: Feb 28 '13, 5:45 p.m.

Question was seen: 8,959 times

Last updated: May 28 '13, 3:32 a.m.

Confirmation Cancel Confirm