disappearing workspace

62 views
Skip to first unread message

Nate Gelbard

unread,
Jul 11, 2012, 3:34:42 PM7/11/12
to jenkins...@googlegroups.com
Hi, I'm a long time Hudson user and recently migrated our R&D test automation to Jenkins 1.464.

I have several jobs (on Linux slaves) that checkout several SVN URLs and execute a shell script loop that runs various test parameters.
These tests run over 24 hours.

I have discovered recently in the job log everything went fine for several iterations, then file not found errors occur, and the workspace is empty save for a few files.
All the svn checkouts and test outputs - gone. This is the 3rd time this week this has happened.

We have had this problem in Hudson as well, usually workspaces of active jobs disappear at midnight. Today it was Noon.

We've review the scripts for things like 'rm $WORKSPACE/' and found nothing. No one else logged in during that time. The scripts work when not run in jenkins.

Does anyone have an idea why a workspace is deleted while the job is running?
Thanks
-Nate

Kamal Ahmed

unread,
Jul 11, 2012, 3:48:01 PM7/11/12
to jenkins...@googlegroups.com
Hi,
I was setting up jenkins with Role based Security and seems to have locked myself out and now i only have anonymous rights.
How can i get back to the original state ?
I tried setting 
<useSecurity>false</useSecurity>
in config.xml

and restart Jenkins, but that is not working
Any tips?
Thanks,
-Kamal.

Christoph Kutzinski

unread,
Jul 11, 2012, 3:52:24 PM7/11/12
to jenkins...@googlegroups.com

Sami Tikka

unread,
Jul 12, 2012, 11:58:31 AM7/12/12
to jenkins...@googlegroups.com
There are some plugins that can be used to clean the workspace. At least:

https://wiki.jenkins-ci.org/display/JENKINS/Hudson+Distributed+Workspace+Clean+plugin
https://wiki.jenkins-ci.org/display/JENKINS/SVN+Workspace+Cleaner
https://wiki.jenkins-ci.org/display/JENKINS/Workspace+Cleanup+Plugin

Maybe you could check if you have any of those installed and then either disable them or try to check the Jenkins system log if those plugins have done anything during the time files start disappearing.

The Jenkins system log is at Manage Jenkins -> System log. You may need to change the logging level to see something.

-- Sami
Reply all
Reply to author
Forward
0 new messages