cleartool: Error: Unable to change configuration specification

3 messages Options
Embed this post
Permalink
for the clearcase plug-in.
And when I force a build I get the following result.
[workspace] $ /usr/atria/bin/cleartool setcs -tag eraonel_rnc_roam_wanessa_fp_target_build configspec5301923926848382982.txt
cleartool: Error: Unable to change configuration specification: Permission denied.
FATAL: Base ClearCase failed. exit code=1
FATAL: cleartool did not return the expected exit code. Command line="setcs -tag eraonel_rnc_roam_wanessa_fp_target_build configspec5301923926848382982.txt", actual exit code=1
java.io.IOException: cleartool did not return the expected exit code. Command line="setcs -tag eraonel_rnc_roam_wanessa_fp_target_build configspec5301923926848382982.txt", actual exit code=1
	at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:100)
	at hudson.plugins.clearcase.ClearToolDynamic.setcs(ClearToolDynamic.java:62)
	at hudson.plugins.clearcase.action.DynamicCheckoutAction.checkout(DynamicCheckoutAction.java:57)
	at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:369)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1001)
	at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:428)
	at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:376)
	at hudson.model.Run.run(Run.java:1174)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:123)
It is quite clear that it is a permission problem but I don't know if it is user hudson that is not allowed to change config spec or another user.
However if I go to the workspace where the file configspec5301923926848382982.txt is
cd /var/lib/hudson/jobs/JobTx01/workspace
and execute the same command:
/usr/atria/bin/cleartool setcs -tag eraonel_rnc_roam_wanessa_fp_target_build configspec5301923926848382982.txt
I get no error message.
I checked that clearcase is correctly installed using "Check clearcase version".
I see that user hudson is owning the files. Does my dynamic view have to be owned by hudson too?
Any hints?
 
br,
 
//mikael

=============================
Ericsson AB

Mikael Petterson
Software Designer

Mobile: +46-(0)70-2673044
Email: [hidden email]
=============================

 
Mikael Petterson

cleartool: Error: Unable to change configuration specification

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Hi,
I don't use this:
Do Not Reset Config Spec If checked, Hudson will not use 'cleartool setcs' even if the specifed config spec is different to the dynamic view current config spec.
Steele, Richard

Re: cleartool: Error: Unable to change configuration specification

Reply Threaded More More options
Print post
Permalink
I take it you're starting Hudson as a user that is not known to ClearCase?  If so, you have three choices:

1. Run Hudson as a ClearCase user.,
2. Configure ClearCase to accept your Hudson user.
3. Configure ClearCase to accept anonymous users.  (I don't really know the terminology--I've heard this is possible, though it gets tricky.)

Rich

On Wed, Nov 4, 2009 at 1:42 AM, Mikael Petterson <[hidden email]> wrote:
Hi,
I don't use this:
Do Not Reset Config Spec If checked, Hudson will not use 'cleartool setcs' even if the specifed config spec is different to the dynamic view current config spec.
for the clearcase plug-in.
And when I force a build I get the following result.
[workspace] $ /usr/atria/bin/cleartool setcs -tag eraonel_rnc_roam_wanessa_fp_target_build configspec5301923926848382982.txt
cleartool: Error: Unable to change configuration specification: Permission denied.
FATAL: Base ClearCase failed. exit code=1
FATAL: cleartool did not return the expected exit code. Command line="setcs -tag eraonel_rnc_roam_wanessa_fp_target_build configspec5301923926848382982.txt", actual exit code=1
java.io.IOException: cleartool did not return the expected exit code. Command line="setcs -tag eraonel_rnc_roam_wanessa_fp_target_build configspec5301923926848382982.txt", actual exit code=1
	at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:100)
	at hudson.plugins.clearcase.ClearToolDynamic.setcs(ClearToolDynamic.java:62)
	at hudson.plugins.clearcase.action.DynamicCheckoutAction.checkout(DynamicCheckoutAction.java:57)
	at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:369)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1001)
	at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:428)
	at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:376)
	at hudson.model.Run.run(Run.java:1174)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:123)
It is quite clear that it is a permission problem but I don't know if it is user hudson that is not allowed to change config spec or another user.
However if I go to the workspace where the file configspec5301923926848382982.txt is
cd /var/lib/hudson/jobs/JobTx01/workspace
and execute the same command:
/usr/atria/bin/cleartool setcs -tag eraonel_rnc_roam_wanessa_fp_target_build configspec5301923926848382982.txt
I get no error message.
I checked that clearcase is correctly installed using "Check clearcase version".
I see that user hudson is owning the files. Does my dynamic view have to be owned by hudson too?
Any hints?
 
br,
 
//mikael

=============================
Ericsson AB

Mikael Petterson
Software Designer

Mobile: +46-(0)70-2673044
Email: [hidden email]
=============================

 

mezlight

RE: cleartool: Error: Unable to change configuration specification

Reply Threaded More More options
Print post
Permalink
In reply to this post by Mikael Petterson
Some javascript/style in this post has been disabled (why?)

Looks like you are using a dynamic view...

Make sure that the Hudson user can update the dynamic view config spec that you specified in the jobs ClearCase configuration.

 

First, what are the permissions of the dynamic view?

1)      cleartool lsview –prop [dynamic-view-name]

 

Second, what is the Hudson user (the user that started the container not the one who started the job) identity?

2)       id [user-name]

 

Third, compare the permissions between the two

 

From: Mikael Petterson [mailto:[hidden email]]
Sent: Wednesday, November 04, 2009 1:42 AM
To: [hidden email]
Subject: cleartool: Error: Unable to change configuration specification

 

Hi,
I don't use this:
Do Not Reset Config Spec[ ] If checked, Hudson will not use 'cleartool setcs' even if the specifed config spec is different to the dynamic view current config spec. 
for the clearcase plug-in.
And when I force a build I get the following result.
[workspace] $ /usr/atria/bin/cleartool setcs -tag eraonel_rnc_roam_wanessa_fp_target_build configspec5301923926848382982.txt
cleartool: Error: Unable to change configuration specification: Permission denied.
FATAL: Base ClearCase failed. exit code=1
FATAL: cleartool did not return the expected exit code. Command line="setcs -tag eraonel_rnc_roam_wanessa_fp_target_build configspec5301923926848382982.txt", actual exit code=1
java.io.IOException: cleartool did not return the expected exit code. Command line="setcs -tag eraonel_rnc_roam_wanessa_fp_target_build configspec5301923926848382982.txt", actual exit code=1
        at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:100)
        at hudson.plugins.clearcase.ClearToolDynamic.setcs(ClearToolDynamic.java:62)
        at hudson.plugins.clearcase.action.DynamicCheckoutAction.checkout(DynamicCheckoutAction.java:57)
        at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:369)
        at hudson.model.AbstractProject.checkout(AbstractProject.java:1001)
        at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:428)
        at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:376)
        at hudson.model.Run.run(Run.java:1174)
        at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
        at hudson.model.ResourceController.execute(ResourceController.java:88)
        at hudson.model.Executor.run(Executor.java:123)
It is quite clear that it is a permission problem but I don't know if it is user hudson that is not allowed to change config spec or another user.
However if I go to the workspace where the file configspec5301923926848382982.txt is
cd /var/lib/hudson/jobs/JobTx01/workspace
and execute the same command:
/usr/atria/bin/cleartool setcs -tag eraonel_rnc_roam_wanessa_fp_target_build configspec5301923926848382982.txt
I get no error message.
I checked that clearcase is correctly installed using "Check clearcase version".
I see that user hudson is owning the files. Does my dynamic view have to be owned by hudson too?
Any hints?
 
br,
 
//mikael

=============================
Ericsson AB

Mikael Petterson
Software Designer

Mobile: +46-(0)70-2673044
Email: [hidden email]
=============================