Link to home
Start Free TrialLog in
Avatar of MLittlewood
MLittlewood

asked on

Corrupted user id passed to iSeries ODBC connection from scheduled agent

We have LS:DO code which has been running for years which connects to an iSeries using an ODBC driver.
We recently moved the code to a new domino server.  As for as we can tell the config is identical.
However the connection is now failing with "User does not exist". The user specified has the first character of the name missing.  I have put in print statements to prove we are passing the right id.

The agent works perfectly if run from a client or event as a run on server agent,  but when scheduled we get this error.

We tried a different user id and a character from the middle of the id was blanked out.

Any help/advice much appreciated
Avatar of Sjef Bosman
Sjef Bosman
Flag of France image

Did you enable ODBC logging, to find out what data is passed and what generates the error?

What O/S is the Domino server running on? What Domino server and Notes releases do you use?
Avatar of MLittlewood
MLittlewood

ASKER


Yes:  IBM][iSeries Access ODBC Driver]Communication link failure. comm rc=8001 - CWBSY0001 - User  UNNINFO on server [blah] does not exist, Password length = 8, Prompt Mode = Never, System IP Address = [blah]

The user passed was actually GUNNINFO but is being received as  UNNINFO  (with a leading space)

when we tried a different id GUNNINFORM  it was passed as GUNNINF RM  with a space in the middle.

The server is 6.5.3  and running on windows 2000 SP4.
I am currently looking into a possible mismatch between the release level of the ODBC driver and client access on the iSeries
You're also loggin locally, on the Domino-server? Or are source and destination server one and the same?
The destination server is separate.  It is an iSeries (AS/400). The domino server is running on Windoows 2000.  Thanks for your help.  
So which log says that one letter is missing, the one on the iSeries or the one on the Domino server? Or do they both say the same?
They log on the domino server. I can't find any related errors in the iSeries log just an entry for attempting to process the signon request for UNNINFO
Please check the DSN configuration again on the iSeries.  So there is a DSN configuration on the iSeries, and an ODBC connection on the client or domino server?  

I've run into a few cases where I need double authentication and the odbc port enabled on the firewall before it would work.   Even though the Domino ID was correct, if you're getting a failed login  with no corresponding error on the Domino log, then it's not domino failing you, its your Active Directory, server permissions and ODBC Port permissions.
Thanks I am getting an error on the Domino log,  but only when running from a scheduled agent,  not when run directly or even as a runonserver agent
Ah, then the user Id needs to have permission to run unrestricted agents.  If you set your events.nsf to capture agent errors, you will see the exact error on the Domino side.  Most of the time it is because the userID needs to have permission to run unrestricted agents (that access the file structure) on the server.  Go to server documents: security section, and make sure that the user ID is added to the appropriate agent permissions.  If the Id is misspelled, then recreate the ID using the same name (tell it not to recreate the mail file, if that is a problem.  I usually create one ID just to do these things).

If you're not logging agent errors, then you need to turn these on so you can see them as they occur.  
I think I have to agree with you that it must be some version conflict. Did you already try to re-install the ODBC drivers?
Just a sidebar, when running manually or runonserver, the agent uses the current user's permissions.   Scheduled, it's using whoever signed the agent, to run on the Domino server, plus whoever is configured in the Domino Server's ODBC  DSN configuration (Advanced Options) for the login name and password.  When you configure the system ODBC, you can test the connectivity.

so how are we doing?
Hi,  Sorry for the delay replying.

Unfortunately,  the agent is signed by the domino administrator which is the same ID that I am using to run it manually.

I tried replacing the ODBC DLL,  but that caused an error,  I am going to try and reinstall the drivers properly.

Thanks for all your input.
We got a workaround, though not a solution to this issue by reducing the size of the user id to 5 characters
ASKER CERTIFIED SOLUTION
Avatar of GranMod
GranMod

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