AutoSys Workload Automation

 View Only
Expand all | Collapse all

CAWA_E_20020 Logon failed for ic_batch_win due to: The user name or password is incorrect..Error code: 1326

Chandru.Venkataraman

Chandru.VenkataramanMar 26, 2017 09:33 PM

  • 1.  CAWA_E_20020 Logon failed for ic_batch_win due to: The user name or password is incorrect..Error code: 1326

    Posted Feb 21, 2017 12:08 PM

    I'm getting this error when trying to execute a job on a Windows agent.

    CAWA_E_20020 Logon failed for ic_batch_win due to: The user name or password is incorrect..Error code: 1326

     

    I'm using the same domain user on two different machines. The job runs fine on one machine but I get the error on another. It's the same password for each. 

     

    Is it a setting in windows that I need to adjust?



  • 2.  Re: CAWA_E_20020 Logon failed for ic_batch_win due to: The user name or password is incorrect..Error code: 1326

    Posted Feb 21, 2017 01:11 PM

    Try running the following via a Command Prompt on the problem host:

     

    runas /noprofile /user:<domain>\ic_batch_win notepad

     

    On failure this may give you a useful message.



  • 3.  Re: CAWA_E_20020 Logon failed for ic_batch_win due to: The user name or password is incorrect..Error code: 1326

    Posted Feb 21, 2017 01:18 PM

    I have seen this when the autosys_secure doesn't have the right information. Have you already checked that?



  • 4.  Re: CAWA_E_20020 Logon failed for ic_batch_win due to: The user name or password is incorrect..Error code: 1326

    Posted Feb 21, 2017 07:48 PM

    Hi Chris,

     

    Please ensure

    1. the machine definition has the "opsys: windows" attribute set.

    2. The owner of the job is defined exactly as registered under autosys_secure (domain/user Vs user@domain)

    3. Check the Windows Event Viewer -> Security for Logon Failure around the time the job ran, and check the Domain information in the event. At times, the logon maybe attempted as localuser instead of the domain user.

     

    I hope this helps.

     

    Cheers,

    Chandru



  • 5.  Re: CAWA_E_20020 Logon failed for ic_batch_win due to: The user name or password is incorrect..Error code: 1326

    Posted Mar 26, 2017 09:33 PM

    Hi Chris,

    Did any of the responses help?

     

    Thanks,

    Chandru



  • 6.  Re: CAWA_E_20020 Logon failed for ic_batch_win due to: The user name or password is incorrect..Error code: 1326

    Posted Mar 26, 2018 09:17 AM

    Hello Chandru,

     

    Facing the same issue in windows environment when a job executes.

    Below is the error message from the job log generated in agent machine.

     

    CAWA_E_20020 Logon failed for huwprd due to: The user name or password is incorrect..Error code: 1326

     

    But other jobs with same owner and machine is successful in execution. Kindly suggest.

     

    Added "opsys: windows" to the machine definitions, no change in execution.

     

    Thanks,

    Ramesh.



  • 7.  Re: CAWA_E_20020 Logon failed for ic_batch_win due to: The user name or password is incorrect..Error code: 1326

    Posted Mar 26, 2018 09:20 AM

    elevated access perhaps. 

    remember the ID needs to be Login Locally and Login as batch.

    if its powershell you may need to make sure you have elevated privileges turned on. 

    Steve C.



  • 8.  Re: CAWA_E_20020 Logon failed for ic_batch_win due to: The user name or password is incorrect..Error code: 1326

    Posted Mar 26, 2018 10:17 AM

    Hello Steve,

     

    The Elevated Access is already in place, we have done this during agent install.

    oscomponent.logon.elevated=true

     

    Issue happens only for one job, while other jobs executes successfully.

    Also when this job is force started, it completes successfully. So, Issue is only with the scheduled runs.

     

    Thanks,

    Ramesh.



  • 9.  Re: CAWA_E_20020 Logon failed for ic_batch_win due to: The user name or password is incorrect..Error code: 1326

    Posted Mar 26, 2018 10:21 AM

    ok. i have seen this before .. a LONG LONG time ago. what version of the agent? 

    and what is the job doing? 

    Scott... this smells of 11.3 ... 



  • 10.  Re: CAWA_E_20020 Logon failed for ic_batch_win due to: The user name or password is incorrect..Error code: 1326

    Posted Mar 26, 2018 11:51 AM

    Hello Steve,

     

    Agent Version: R11.3 SP3

    Version R11.3, Service Pack 3, Maintenance Level 0, Build 669

     

    The job is calling a .bat file with an parameter. The job sync the data in application end.

     

    One more information in regards to this job. The job has successfully executed a month back in scheduled runs.

     

    Thanks,

    Ramesh.



  • 11.  Re: CAWA_E_20020 Logon failed for ic_batch_win due to: The user name or password is incorrect..Error code: 1326

    Posted Mar 26, 2018 09:05 PM

    Hi Ramesh,

     

    Can you please clarify this statement?

    Below is the error message from the job log generated in agent machine.

     

    Does that mean the job runs and fails with exit code 1326? (autorep -J <job> shows the exit code) The CA WA System Agent  maps the exit code from the job to the Windows OS exit code list.

     

    C:\>net helpmsg 1326

     

    The user name or password is incorrect.

     

    Is the AE job defined with owner "huwprd" and is "huwprd" local to the CA WA System Agent Windows host or a domain user? If it's local try re-creating the user hive/profile.

     

    Does the .bat file being called from the job have anything to do with accessing file in a network share (\\server\share)?

    If yes, does the user "huwprd" have appropriate access to the network share?

     

    To rule AutoSys out (process of elimination) , I'd suggest setting up the same batch file run via Task Scheduler as user "huwprd" and see if that works. If that fails too, then something about the .bat file.

     

    Cheers,

    Chandru



  • 12.  Re: CAWA_E_20020 Logon failed for ic_batch_win due to: The user name or password is incorrect..Error code: 1326

    Posted Mar 27, 2018 06:10 AM

    Hello Chandru,

     

    The job restarts and fails.

    In autosys its -655 error code and data in spool file for this job has the error "The user name or password is incorrect..Error code: 1326".

     

    We see the job is restarting with below errors messages.

     

    STARTING 03/26/2018 07:51:29 8 PD 03/26/2018 07:51:29 MACHINE_NAME

    STARTJOBFAIL 03/26/2018 07:51:42 8 PD 03/26/2018 07:51:43 MACHINE_NAME

    RESTART 03/26/2018 07:51:52 8 PD 03/26/2018 07:51:52

    <System Restart - Job was unable to start.>

     

    But we have other jobs running in the same machine and with the same owner which is executing successfully.

     

    Also we have other jobs using the same batch file with other parameter called, which also works fine.

     

    The account used is an domain account and not an local account.

     

    The .bat file is not in network share, but in D Drive.

     

     

    Thanks,

    Ramesh



  • 13.  Re: CAWA_E_20020 Logon failed for ic_batch_win due to: The user name or password is incorrect..Error code: 1326

    Posted Mar 26, 2018 11:58 AM

    Ramesh

     

    you know they are on 11.3.7 now right? did you open a ticket? I would , and prepare to upgrade the agent.

    I am not with CA, it just looks like that sometimes :-)

    Hope that helps 

     

     

    Steve C.



  • 14.  Re: CAWA_E_20020 Logon failed for ic_batch_win due to: The user name or password is incorrect..Error code: 1326

    Posted Mar 27, 2018 08:47 AM

    Hello Steve,

     

    Yet to open a ticket.



  • 15.  Re: CAWA_E_20020 Logon failed for ic_batch_win due to: The user name or password is incorrect..Error code: 1326

    Posted Apr 05, 2018 07:48 AM

    Thanks for you suggestions, the issue is fixed.

     

    Changed the time of job execution and the job is now able to execute successfully in its scheduled run too.

     

    But I am not able to understand the logic behind this, just that the random solution worked fine.



  • 16.  RE: Re: CAWA_E_20020 Logon failed for ic_batch_win due to: The user name or password is incorrect..Error code: 1326

    Posted Aug 07, 2020 02:50 AM
    Hi Ramesh

    Did you got the root cause and actual fix, I am facing similar issue.

    I have a below job, and on force start getting -655 error. And in agent machine I can see see error below.

    I have a simple job 
    JIL
    ---------------------------------------
    insert_job: 163016_TEST_JOB job_type: cmd
    description: test
    machine: xxxx
    owner: xxxx
    max_run_alarm: 0
    alarm_if_fail: y
    alarm_if_terminated: y
    send_notification: n
    command: date


    Error on file runner_os_component.log
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    08/06/2020 22:31:19.240-0400: Job 181504.20526365_2/WAAE_WF0.1/MAIN failed - The user name or password is incorrect.
    08/06/2020 22:31:19.241-0400: Transmitter: Sending AFM: 20200806 22311924+0500 JavaAgent#tcpip@DA2_SCH OS_COMPONENT 181504.20526365_2/WAAE_WF0.1/MAIN State SUBERROR Failed SetEnd Status("The user name or password is incorrect.") Cmpc(1326) JobLogId(D7D4FCCEB2B00DC113E46406EB20F66E818A5985)
    08/06/2020 22:31:22.129-0400: ServiceControl called with SERVICE_CONT