Link to home
Start Free TrialLog in
Avatar of notesrookie
notesrookieFlag for United States of America

asked on

Unable to run scheduled agent from server in the same domain

Greetings experts,

I created an agent in database B on server B that opens database A on server A. Of course, when I run it manually I am am able to get to database A (on client on my laptop and on the server B). Server B is listed as a server with manager access in database A on server A. Server B is also in the admin group for database A. The agent in question has the run time security set to "3. Allow restricted operations with full admin. rights". When the agent in database B is scheduled, it stops when trying to open database A on server A. Is there anything else I need to do in order to allow server B to be able to open database A on server A? Address book on server A?

Thank you.
Avatar of notesrookie
notesrookie
Flag of United States of America image

ASKER

Forgot to include code I am using to get to database A on server A from database B.
Set comparedb = session.GetDatabase("serverA", "databaseA.nsf")
If comparedb.IsOpen Then
	Set compareview = comparedb.GetView("viewA")
Else
	Call agentLog.LogAction("Unable to open " & comparedb.Title & " database")
	Exit Sub
End If

Open in new window

Avatar of Sjef Bosman
Which Domino release does your server run?
Who signed the agent, and does that person have access to ServerA?
Are there messages in the Miscellaneous views of both ServerA and ServerB? Must be, they will explain what's wrong. May we see them?

Make sure that Server B is listed as a Trusted Server in Server A's Server document (second tab "Security", at the bottom of the page).  You may need to restart Server A for the change to take effect.
Both servers are running R7.0.1. I signed the agent and I have access to server A.

Error message in log for server A: none
Error message in log for server B: 01/28/2008 09:24:22 AM  AMgr: Agent ('To Do OCI' in 'databaseB.nsf') error message: Database serverA/Domain!!databaseA.nsf has not been opened yet.

The db statement I used to get to database A is "Set comparedb = New NotesDatabase("serverA/Domain", "databaseA.nsf")"

I have listed serverB in the ACL in database A as a server with manager access and the admin role as well.

Would I still need to place serverB in the trusted server field? The server was just rebooted over the weekend.
ASKER CERTIFIED SOLUTION
Avatar of Sjef Bosman
Sjef Bosman
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I made sure to enable the connection document between serverB and serverA (so thanks for that sjef) and added serverA as a trusted server in serverB's server document (thanks for that Bill-Hanson) and restarted the server.  I am not sure which one worked so I will split the points between you.

It never ceases to amaze how much I learn from you. Thank you so very much.
You're more than welcome!  And I think serverB should be in serverA's Server document on serverA. The other way round seems rather pointless, but who cares: problem solved! Teamwork! :-))