On 09/05/12 15:03, Chemmo wrote:
> Hi,
> 
> I run Jenkins under a username which is used only by Jenkins from
> linux. I have previously entered my own (windows) credentials for
> proxy access when I need to update Jenkins/plugins, etc but have since
> removed the entry from the advanced tab of the update centre. I
> noticed my username was specified in the above file, so I deleted the
> file hoping it would not appear again, however it has come back again

Jenkins rewrites much of it's configuration when it is shutdown. Try
doing this again AFTER stopping Jenkins.

> Possibly unrelated, but I think this is causing problems where I
> cannot use svn with the Jenkins user. The user's credentials seem to
> be invalidated / corrupted by Jenkins (I see authentication failed
> errors after a number of hours) - I have proven this by changing the
> permissions for the users ~/.subversion/auth/svn.simple folder and
> contents so that it cannot be changed except by the root user. After
> doing this my problems disappeared, but it is not an ideal solution -
> for example, if I want to commit something in a shell script under
> this user I get the error:

Subversion can only store one set of credentials per repository. Jenkins
can only store one set of credentials per server.

My guess is that you're trying to use multiple credentials. Shutdown
Jenkins, remove all the "subversion.credentials" files from the jobs
directory on the server, remove the entries from
hudson.scm.SubversionSCM.xml and as the Jenkins user, make sure you
cache a single set of credentials for each repository you have to access.

This should be something like:

root@host ~ # su - jenkins -s /bin/bash
jenkins@host ~ $ rm -Rf ~/.subversion/auth/svn.simple
jenkins@host ~ $ echo -ne "[auth]\nstore-passwords = yes\n" >
~/.subversion/config
jenkins@host ~ $ svn ls --username=svnuser https://svn.example.com/

You'll need to do a similar thing on each of your slave nodes too.

> svn: E204899: Cannot create new file '/home/<domain>/
> <user>/.subversion/auth/svn.simple/auth.<some hex code>.tmp':
> Permission denied

This is almost certainly an issue of fundamental configuration - does
"/home/<domain>/<user>/" exist? Are your permissions sensible? Did you
run svn as root at some point and now you're trying to run as a normal
user? (i.e. check ownership).

-- 
Edward Cullen
Software Engineer
n.able Technology Services
mailto:edward.cul...@hp.com

Assigned to Data Protection & De-duplication: D2D - HP Storage
-----------------------------------------------------------------------
Hewlett-Packard, Long Down Avenue, Stoke Gifford, Bristol, BS34 8QZ,
United Kingdom.

The contents of this message and any attachments to it are confidential
and may be legally privileged. If you have received this message in
error you should delete it from your system immediately and advise the
sender.
To any recipient of this message within HP, unless otherwise stated, you
should consider this message and attachments as 'HP CONFIDENTIAL'

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to