Automic Workload Automation

Expand all | Collapse all

Error Code 1314 - A required privilege is not held by the client

Jump to Best Answer

Anon Anon08-24-2016 07:13 AM

Anon Anon08-24-2016 07:31 AM

  • 1.  Error Code 1314 - A required privilege is not held by the client

    Posted 08-17-2016 06:54 AM
    I am getting the "Error Code 1314 - A required privilege is not held by the client" while running a job. I have given the below privileges already, but still getting the error. 

  • The User who starts the agent must have the following rights if the INI-file parameter logon= has been set to "1":
     
  •            
    • Act as part of the                     operating system
    • Adjust memory quotas                     for a process
    • Allow log on locally
    • Back up files and directories **)
    • Logon as batch job                     *)
    • Logon as service
    • Replace a process                     level token
    • Restore files and                     directories 
    Help!!!


  • 2.  Error Code 1314 - A required privilege is not held by the client

    Posted 08-17-2016 07:13 AM

    DOES the user have These privileges?


    was the Agent restarted after granting the privileges to this user?

    Which additional Messages Comes - it specifies which exact privilege is missing -afaik in Messages Window.



  • 3.  Error Code 1314 - A required privilege is not held by the client

    Posted 08-17-2016 07:50 AM
    Yes, the user is having these privileges. And when I'm trying to start the agent I'm getting the below error message now.
    UC4 Version 10.0.1+build.800
    ====
    Warning: U0003336 Connection to ServiceManager ':0' cannot be established


    OK 


  • 4.  Error Code 1314 - A required privilege is not held by the client

    Posted 08-17-2016 08:25 AM

    Thats another Topic.

    U0003336 Connection to ServiceManager ':0' cannot be established Comes usually if you try to start the Agent via User Interface.

    docu:http://docs.automic.com/documentation/AE/11.2/english/AE_WEBHELP/help.htm?product=undefined#ucacsy.htm

    for the 1314 Err message Pls try starting the Agent manually and check the logfile and Report of the Job and the Messages window if it occurs again.



  • 5.  Error Code 1314 - A required privilege is not held by the client

    Posted 08-24-2016 07:00 AM
    Please find the below error message from the logs.

    20160824/055118.841 - U2001040 Error in function 'CreateProcessAsUser', error code '1314', error description: 'A required privilege is not held by the client.'.
    20160824/055118.841 - U2001000 Job 'TEST_JOB1' could not be started. Error code '1314', error description: 'A required privilege is not held by the client.'.
    20160824/055229.493 - U2000005 Job 'TEST_JOB1' with RunID '1723891' started.
    20160824/055229.509 - U2001040 Error in function 'CreateEnvironmentBlock', error code '5', error description: 'Access is denied.'.
    20160824/055229.509 -                   Cannot load user profile, error code 1314
    20160824/055229.524 - U2001040 Error in function 'CreateProcessAsUser', error code '1314', error description: 'A required privilege is not held by the client.'.
    20160824/055229.524 - U2001000 Job 'TEST_JOB1' could not be started. Error code '1314', error description: 'A required privilege is not held by the client.'.

    Kindly help!!!


  • 6.  Error Code 1314 - A required privilege is not held by the client

    Posted 08-24-2016 07:13 AM
    Issue Resolved!! Thanks..


  • 7.  Error Code 1314 - A required privilege is not held by the client

    Posted 08-24-2016 07:31 AM
    May I ask what cause this issue?


  • 8.  Error Code 1314 - A required privilege is not held by the client

    Posted 08-24-2016 07:36 AM
    "Logon as a batch user" option was not checked inside the job.


  • 9.  Error Code 1314 - A required privilege is not held by the client

    Posted 08-24-2016 07:37 AM
    Now the connectivity is fine. But I'm getting another error now while executing the job.

    Script:
    ! insert these lines in your script to determine if an error occurred
    mkdir D:\GOMF\GOMFDEV\USERS\MANI\Automic_Testing\Automictest
    @set retcode=%errorlevel%
    @if NOT %ERRORLEVEL% == 0 goto :retcode

    Error:

    8/24/2016 6:32:41 AM -  U2001011 Invalid directory name 'D:\GOMF\GOMFDEV\USERS\MANI\Automic_Testing'.
    8/24/2016 6:32:41 AM -  U0011000 'TEST_JOB1' (RunID: '0001723922') could not be started on 'VCLD2K8AP03'. See next message.


  • 10.  Error Code 1314 - A required privilege is not held by the client

    Posted 08-24-2016 07:42 AM
    Error in Logs:

    20160824/063243.553 - U2000005 Job 'TEST_JOB1' with RunID '1723922' started.
    20160824/063243.678 - U2001040 Error in function 'CreateEnvironmentBlock', error code '5', error description: 'Access is denied.'.
    20160824/063243.678 -                   Cannot load user profile, error code 1314
    20160824/063243.678 - U2001040 Error in function 'CreateProcessAsUser', error code '267', error description: 'The directory name is invalid.'.
    20160824/063243.678 - U2001011 Invalid directory name 'D:\GOMF\GOMFDEV\USERS\MANI\Automic_Testing'


  • 11.  Error Code 1314 - A required privilege is not held by the client

    Posted 08-24-2016 08:04 AM
    Does this user (the one in the loginobject + the one who starts the agent) have rights to create a DIR here?
    Is UAC disabled (WIN2012 in Registry too)?
    Is D a local or a mapped Drive?


  • 12.  Error Code 1314 - A required privilege is not held by the client

    Posted 08-24-2016 09:58 AM
    Yes, The user is having rights to create a DIR in the mentioned path.
    EnableLUA value is '1' in the registry.
    D is a local drive.


  • 13.  Error Code 1314 - A required privilege is not held by the client

    Posted 08-24-2016 10:20 AM
    Can you show the results of a manual dir from the command line on this directory?


  • 14.  Error Code 1314 - A required privilege is not held by the client

    Posted 08-24-2016 03:23 PM
    Value 1 means its active => must be deactivated.

    https://social.technet.microsoft.com/wiki/contents/articles/13953.windows-server-2012-deactivating-uac.aspx

    pls do not forget to restart the WIN server


  • 15.  Error Code 1314 - A required privilege is not held by the client

    Posted 08-25-2016 01:47 PM
    Great!! Issue resolved.. The job executed successfully.


  • 16.  RE: Error Code 1314 - A required privilege is not held by the client

    Posted 01-10-2020 05:30 AM
    Edited by Shashank Singh 01-10-2020 07:36 AM
    Hi All,

    I am getting the same error as discussed in the thread. After reading the thread I disabled the UAC and also selected the option in the job "Logon as a batch user". Added the user/login object under below policies -
    • Act as part of the operating system
    • Replace a process level token
    • Logon as service
    • Logon as batch job 
    • Restore files and directories
    • Adjust memory quotas for a process
    • Back up files and directories 

    But still the error persists. Can you let me know if we need to change anything else in the parameters?

    U02001000 Job 'WIN_TEST_WXXXXXXX02' could not be started. Error code '1314', error description: 'A required privilege is not held by the client.'.

    Thanks,
    Shashank




  • 17.  RE: Error Code 1314 - A required privilege is not held by the client

    Posted 01-10-2020 08:13 AM

    I found a strange thing here. When I change the parameter logon to 0 in agent's INI file, the test job (mkdir, dir etc.) runs fine but when the logon parameter is set to 1 the job fails.

    Strangely, the file transfer job was running fine throughout.
    Any ideas on such behavior of agent? Can we leave the logon parameter to 0? If the user who started the agent leaves, then the job would fail.




  • 18.  RE: Error Code 1314 - A required privilege is not held by the client
    Best Answer

    Posted 01-10-2020 12:37 PM
    This seems to make sense, initially. With that logon= parameter, you're defining that "The login data that is stored in the Login object is used." However, for this user, it looks like you're missing a permission. You noted that you have the following permissions set for the specific user in the login object:

    • Act as part of the operating system
    • Replace a process level token
    • Logon as service
    • Logon as batch job 
    • Restore files and directories
    • Adjust memory quotas for a process
    • Back up files and directories 

    However, the required permissions list from the documentation has one additional permission that doesn't seem to be accounted for, and it's related to when the ini file parameter "logon=" has been set to "1":

    1. The user who starts the agent must have the following rights if the INI file parameter logon= has been set to "1":
      • Act as part of the operating system
      • Adjust memory quotas for a process
      • Allow log on locally
      • Back up files and directories **)
      • Logon as batch job *)
      • Logon as service
      • Replace a process level token
      • Restore files and directories

    I would start here and investigate.

    ------------------------------
    [Sr. Systems Engineer]
    [BECU]
    ------------------------------



  • 19.  RE: Error Code 1314 - A required privilege is not held by the client

    Posted 11-27-2020 06:58 PM

    All, once you have all the permissions/user rights, you need to turn off UAC via the registry key.

    (HKEY_LOCAL_MACHINE, SOFTWARE, MICROSOFT, WINDOWS, CURRENT VERSION, POLICIES, SYSTEM, EnableLUA=Hex 0)


  • The User who starts the agent must have the following rights if the INI-file parameter logon= has been set to "1":
     
  •            
    • Act as part of the                     operating system
    • Adjust memory quotas                     for a process
    • Allow log on locally
    • Back up files and directories **)
    • Logon as batch job                     *)
    • Logon as service
    • Replace a process                     level token
    • Restore files and                     directories 
    Help!!!