Autosys job fails - autosys

I have copied an autosys job, however a newly copied autosys job fails immediately with error code -655 after hitting on "ForceStart" button. With start time blank and end time displayed to be current time.
I have changed the machine name, and box, command name for the job respectively to be the correct ones. Cannot find the root cause of failure.

-655 is when the owner does not have access to the machine it is specified to run from. Make sure Owner has access to the run machine.

Related

Unable to start Weblogic after DB crash

My database crashed unexpectedly as the containing VM was collapsed and in turn Weblogic server went down. Now I've installed database in new VM and recovered data into it. But now, I'm unable to start my Weblogic admin server. I guess it's unable to retrieve the data from OPSS tables. What should I do now to start my Weblogic? How can I make all the database related changes from old VM to new VM?
Depending on the state of your AdminServer after the crash, it may be that your server is still seen as 'running' by the NodeManager. Try the following:
In the [weblogic_domain]/servers/AdminServer/tmp folder check for an AdminServer.lok file. If this file exists and you are sure your instance isn't running (ie. Checked there are no JVM running) delete the .lok file and try to start the AdminServer.
If this still fails you can delete the entire contents of the tmp folder but also go to the [weblogic_domain]/servers/AdminServer/data/nodemanager folder and delete all the files there.
Try starting the AdminServer again.
If it still fails you'll need to review the AdminServer and nodemanager logs and post them here for further help.

Why are my Episerver jobs failing when running automatically or run by the scheduler?

I'm using Episerver to run various jobs on an intranet website, and almost all of these jobs will fail to run automatically, but will work just fine when I run them manually.
99% of the time, this is the error message I get: Could not load file or assembly 'Midco.CMS.Intranet' or one of its dependencies. The system cannot find the file specified.
If I'm actually missing an assembly, then how is my job able to run manually?
The same code was run automatically on previous publishes of our site, but is now failing. I've tried creating a 'dummy' principal role with admin privileges, hoping that would allow the job to run, I've looked online for other solutions, and have tried debugging, but I can't find a way to make the jobs run automatically.
Are there any Episerver users out there who know how to get the job to run automatically? Thanks!
in order to get the scheduled Episerver jobs to run again, my team had to copy our existing Episerver database to a new database, then delete the old one. When we scheduled the jobs after copying to the new location, they all ran on time, without error, and have been running without issue for about 8 months. It was drastic but it worked.

SQLite reader.read() always returning false when executed from Task Scheduler

I have a C# program that uses a SQLite database to read/write data. This program requires UAC elevation and I require it to be running at all times. When I run this program manually, which I have to 'Run as admin', my SQLite database functions normally, able to read/write data to the database file. However, my issue is when I try to have this program execute automatically when the computer starts.
As I mentioned earlier, I require this program to execute at all times. So, I have put a couple things in place that re-executes the program in the event it crashes (which works great). However, I also need this to begin executing when the computer restarts. Normally this isn't a problem, but the program requires UAC and I will rarely be around to click Yes on the UAC dialog, so I read around and it seems the only way to do this was to set up a task in Task Scheduler. So, I have set up a task to run this at startup. Upon testing, the program does execute but not functioning correctly. Upon further debugging, I've found that each time my code reaches a SQLiteDataReader.read() line, it always seems to return false even though I know there are records there, but this only happens when the program is executed thru Task Scheduler. No errors seem to be coming from SQLite. I suspect file permissions to be the issue, but do not know how to resolve.
A couple things to note of what I've tried already.
1) In the Task Scheduler, I've set this up to execute using the same user account as I've been using to run it manually, which is also a Domain Admin, Admin, and a local Admin account.
2) The task is set to "run with highest privileges"
3) I've changed the security permissions to Full Control for just about every object I can think of (Admins, Domain Admins, Users, , Everyone, etc) on both the root folder of the program AND the SQLite database file.
4) I've even tried moving the entire application outside of the Program Files folder in case there was some sort of restricted access involved there as well.
I'm at my wits end trying to figure this out. Any ideas on what to try next? Or other solutions to get this to execute correctly at startup without user interaction?
I'm a bit late on reporting back on this issue. Stupid on my part... The task scheduler simply needed to include the applications file folder path as the Startup path. So it wasn't finding the database file as my path is using relative paths to reference. I personally don't understand why this shouldn't always just default to the app's folder, but you live and you learn and bang your head on everything in between.

Unable to map a shared folder in a batch script scheduled using task scheduler on windows 2012

I have a batch script which tries to map a network folder to a drive (net use Z: \ComputerName\Sharefoldername). The batch script is scheduled to run on windows using task scheduler. The script hangs when the following option is selected "Run whether user is logged on or not". It hangs in either case when "Do not store password" option is selected or unselected.
However the script runs successfully and network folder is mapped when the following option is selected "Run only when user is logged on".
The user running the batch script is a administrator on that machine. Also
following option is always selected "Run with highest privileges"
This is a security measure by design in more recent versions of Windows. Mapping a drive is user/profile dependent. When selecting "Run whether user is logged on or not", the script with run in a non-interactive mode (session 0) since it is not running as any particular user. This link explains it fairly well.
The script will definitely run successfully if there are no errors, but unfortunately, you'll be mapping the drive letter for a non-interactive session instead of the user intended for. If you add a command that is not user dependent, for example md c:\DirectoryTest, you will see that it'll still create the folder "DirectoryTest" in the c: drive since creating a folder is not user/profile dependent.
I think your best bet might be adding your mapping as part of a login script, or using Group Policy if available.
Please be sure to mark your questions as answered if you have been successfully helped.

Autosys job in windows fails to copy all files but doesnt fail

We have a BOX scheduled in Autosys. If the BOX gets triggered at the scheduled time, all the PDFs generated out of one of the steps is not getting copied but the job is also not failing. When we are HOLDING the box and running step by step all outputs are getting copied.
A good troubleshooting step would be to either add in a sleep/delay step of a short time between the generation of the files and the downstream jobs.
A better way might be to use a file trigger or file watcher that will only let the below steps proceed if the files are all there (you can trigger on number of files or whatever stat is appropriate).
If your copy step is a simple copy command without any validation (like copy abc_file_*.pdf) then it wouldn't have any trouble copying whatever files it sees, even if not as many as you intend.

Resources