SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Jobs not running when loaded as service

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Jobs not running when loaded as service
Author Message
MTaggart



Joined: 20 Jun 2002
Posts: 23

Post Jobs not running when loaded as service Reply with quote

I am using 24X7 version 3.2.4 on a Windows 2K pro workstation attaching to a 3.2 Netware server.

I have my service logging in as a user that has access to the local computer (administrator equiv) as well as the Netware server. In fact, the user is auto logged on to the Netware box each time the workstation is booted.

When it's time for a job to start, the log indicates that it runs and I can see things on the local PC that would indicate that it's running. However, an output file is supposed to be copied to the Netware server drive mapping and it never occurs.

When I load 24x7 as a NON-Service program..(stop the service) then manually launch 24x7. When the time comes to run the job, everything works as expected.

Help!

Thu Jun 20, 2002 5:33 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: Jobs not running when loaded as service Reply with quote

You have some permissions issue. As a quick solution try using domain admin account to run the service or your own account for the service

To verify the problem create a simple job that executes a test batch file on your Netware box.

: I am using 24X7 version 3.2.4 on a Windows 2K pro workstation attaching to a
: 3.2 Netware server.

: I have my service logging in as a user that has access to the local computer
: (administrator equiv) as well as the Netware server. In fact, the user is
: auto logged on to the Netware box each time the workstation is booted.

: When it's time for a job to start, the log indicates that it runs and I can
: see things on the local PC that would indicate that it's running. However,
: an output file is supposed to be copied to the Netware server drive
: mapping and it never occurs.

: When I load 24x7 as a NON-Service program..(stop the service) then manually
: launch 24x7. When the time comes to run the job, everything works as
: expected.

: Help!

Thu Jun 20, 2002 5:51 pm View user's profile Send private message
MTaggart



Joined: 20 Jun 2002
Posts: 23

Post Re: Jobs not running when loaded as service Reply with quote

: You have some permissions issue. As a quick solution try using domain admin
: account to run the service or your own account for the service

While I agree that symptomatically you are correct. How do you explain that when it is run as "not a service" (which coincidentally is using the same credentials) it works ok?

I will attempt what you ask also.

: To verify the problem create a simple job that executes a test batch file on
: your Netware box.

Thu Jun 20, 2002 5:56 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: Jobs not running when loaded as service Reply with quote

The problem is that it is not given *the same credentials*

Most people do not understand that Windows treats services very differently from normal applications. Services are very limited in accessing network resources! That's why 24x7 help includes references to 3 MS Knowledge Base articles that explain the difference.

Just my 2 cents optinion: Don't run 24x7 as a service unless running as a service is the only option available. Not running as a service will save you a lot of development and troubleshooting time and cost as well as allow you to automate a lot more things.

: While I agree that symptomatically you are correct. How do you explain that
: when it is run as "not a service" (which coincidentally is using
: the same credentials) it works ok?

: I will attempt what you ask also.

Thu Jun 20, 2002 6:10 pm View user's profile Send private message
MTaggart



Joined: 20 Jun 2002
Posts: 23

Post Re: Jobs not running when loaded as service Reply with quote

: The problem is that it is not given *the same credentials*

: Most people do not understand that Windows treats services very differently
: from normal applications. Services are very limited in accessing network
: resources! That's why 24x7 help includes references to 3 MS Knowledge Base
: articles that explain the difference.

: Just my 2 cents optinion: Don't run 24x7 as a service unless running as a
: service is the only option available. Not running as a service will save
: you a lot of development and troubleshooting time and cost as well as
: allow you to automate a lot more things.

Well, is there a way to lock or password protect shutting down 24x7 to keep them from "accidentally" closing it from the systray?

Fri Jun 21, 2002 8:59 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: Jobs not running when loaded as service Reply with quote

Well, if you are running it on a user workstation then you are right you better run it as a service and use different workarounds to deal with the network access issues and other networking restrictions. Everything is doable, it is just a matter of development time...

There is no password protection for shutdown. Although you can enable display of the "Are you sure" prompt on shutdown (see Tools/Options menu).

: Well, is there a way to lock or password protect shutting down 24x7 to keep
: them from "accidentally" closing it from the systray?

Fri Jun 21, 2002 9:20 am View user's profile Send private message
MTaggart



Joined: 20 Jun 2002
Posts: 23

Post Re: Jobs not running when loaded as service Reply with quote

: Well, if you are running it on a user workstation then you are right you
: better run it as a service and use different workarounds to deal with the
: network access issues and other networking restrictions. Everything is
: doable, it is just a matter of development time...

: There is no password protection for shutdown. Although you can enable display
: of the "Are you sure" prompt on shutdown (see Tools/Options
: menu).

Hum....You may have caused me to stumble upon the problem. I was attempting to unload 24x7 as "run as service" by removing the check mark. When I did I got an error stating that "DELETE SERVICE ERROR - ERROR 5: ACCESS IS DENIED". The funny this is, I'm logged in as ADMINISTRATOR!

Also, back to your point of "everything is doable". Any suggestions on how to do it since time is of the essence?

Thanks!

Fri Jun 21, 2002 9:49 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: Jobs not running when loaded as service Reply with quote

Please tell me what you are trying to do on a Netware server so I can suggest a solution.

Thanks

: Hum....You may have caused me to stumble upon the problem. I was attempting
: to unload 24x7 as "run as service" by removing the check mark.
: When I did I got an error stating that "DELETE SERVICE ERROR - ERROR
: 5: ACCESS IS DENIED". The funny this is, I'm logged in as
: ADMINISTRATOR!

: Also, back to your point of "everything is doable". Any suggestions
: on how to do it since time is of the essence?

: Thanks!

Fri Jun 21, 2002 10:16 am View user's profile Send private message
MTaggart



Joined: 20 Jun 2002
Posts: 23

Post Re: Jobs not running when loaded as service Reply with quote

: Please tell me what you are trying to do on a Netware server so I can suggest
: a solution.

: Thanks

1. One program merely creates a log (text) file that I am copying from my W2kPro box to the Netware server (all this is done within a WISE Solutions, Inc. script that runs).

2. I am running an NTBACKUP to a file on one of the drive mappings of the netware server.

How about that error when I attempt to remove the service?

Fri Jun 21, 2002 12:40 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: Jobs not running when loaded as service Reply with quote

: 1. One program merely creates a log (text) file that I am copying from my
: W2kPro box to the Netware server (all this is done within a WISE
: Solutions, Inc. script that runs).

Are you copying the file using the mapped drive letter or using UNC names \\SERVER\SHARE ?

Can you setup the 24x7 service under domain admin account?

Can you run the job as another user to enforce new network batch-user logon withing the job?

: 2. I am running an NTBACKUP to a file on one of the drive mappings of the
: netware server.

Can you use UNC instead of drive mapping?

: 3. How about that error when I attempt to remove the service?

Try disabling the service in the control panel first.
Try loging as a domain admin, not as a local admin.

Fri Jun 21, 2002 2:11 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: Jobs not running when loaded as service Reply with quote

I started another message thread just for convinience. Please check my answers there.

Fri Jun 21, 2002 2:11 pm View user's profile Send private message
T Smith



Joined: 09 Jul 2002
Posts: 2

Post Re: Jobs not running when loaded as service Reply with quote

: Are you copying the file using the mapped drive letter or using UNC names
: \\SERVER\SHARE ?

: Can you setup the 24x7 service under domain admin account?

: Can you run the job as another user to enforce new network batch-user logon
: withing the job?

: Can you use UNC instead of drive mapping?

: Try disabling the service in the control panel first.
: Try loging as a domain admin, not as a local admin.

I am having the same problem with jobs that work fine one day that just quit running the next. Some times they run 2 or 3 days in a row, but inevitably stop working. I have been restarting the 24x7 service. This is a major pain.
I wish to disable running 24x7 as a service, but get the error 5 mentioned in the threads above.

I DO NOT have the domain admin password. 24x7 was installed and configured
using my local admin account. I tried disabling the service then unchecking the Run as service box. Still no luck.
How the heck can I get past this???


Tue Jul 09, 2002 1:10 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: Jobs not running when loaded as service Reply with quote

Here is a quick way:
Use the registry editor to delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\24x7 Scheduler" key. Restart the machine. That's it.

: I am having the same problem with jobs that work fine one day that just quit
: running the next. Some times they run 2 or 3 days in a row, but inevitably
: stop working. I have been restarting the 24x7 service. This is a major
: pain.
: I wish to disable running 24x7 as a service, but get the error 5 mentioned in
: the threads above.

: I DO NOT have the domain admin password. 24x7 was installed and configured
: using my local admin account. I tried disabling the service then unchecking
: the Run as service box. Still no luck.
: How the heck can I get past this???

Tue Jul 09, 2002 1:26 pm View user's profile Send private message
T Smith



Joined: 09 Jul 2002
Posts: 2

Post Re: Jobs not running when loaded as service Reply with quote

: Here is a quick way: Use the registry editor to delete
: "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\24x7
: Scheduler" key. Restart the machine. That's it.

One more thing - this is an unattended server. If I put 24x7 in the "startup" folder, when I log off, will it still be running?
If not, how else can you keep the program running when no one is logged on?

Thanks

Tue Jul 09, 2002 1:48 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: Jobs not running when loaded as service Reply with quote

On Windows NT/2000/XP only services under LocalSystem or domain account can run when no one is logged on. There are no other options for the programs.

However...
Why log off? Why not setup a screen saver with a password protection?

: One more thing - this is an unattended server. If I put 24x7 in the
: "startup" folder, when I log off, will it still be running?
: If not, how else can you keep the program running when no one is logged on?

: Thanks

Tue Jul 09, 2002 2:16 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.