Server_admin_trig causes "You are not authorized to perform this operat

0 Likes

PROBLEM/ABSTRACT:
Performing an AccuRev operation returns the following warning:

You are not authorized to perform this operation.
<triggerInput>
<hook>server_admin_trig</hook>
<command>accurev command</command>
<principal>user name</principal>
<ip>some ip address</ip>
</triggerInput>

CAUSE:
1. The server_admin_trig is not running as an authorized AccuRev user account.

and/or

2. There is a runtime problem with the trigger script (ie. syntax for interpreted languages).


SOLUTION:
1. Log onto the AccuRev server as the operating system account who the AccuRev process/service runs as.

2. Verify the server_admin_trig located under <accurev install dir>/storage/site_slice/triggers has one of the following entries based on your OS:

# Unix Example
# $ENV{'HOME'} = "/home/replace_with_username";
#
# Windows Example
$ENV{'HOMEDRIVE'} = "c:";
$ENV{'HOMEPATH'} = "\\Documents and Settings\\Administrator";

3. Verify the trigger can compile, run the command 'perl -c server_admin_trig'. If this succeeds without error, proceed to step #4.

4. Based on your OS, cd into this directory.

5. cd into the .accurev directory.

6. Based on your authentication method, you will either see an authn file or a session token file.

7. Remove any authn or session token files.

8. Stop the AccuRev process/service

9. Start the AccuRev process/service

10. If you are running the traditional authentication method, run the command:

'accurev setlocalpasswd <password>'

If you are running the accurev login authentication method, run the command:

'accurev login -n <AccuRev username> <password>'

10. Run the command 'accurev info' to make sure your AccuRev account is properly set.

11. Run the command 'accurev secinfo', to make sure you have an authorized account. This output should say "authuser"

Once complete, the trigger should now be configured to run as an authorized AccuRev user account.

For more information contact AccuRev Support

Comment List
Anonymous
Related Discussions
Recommended