Basic authentication failed.

mukesh18
Giga Contributor

Hello,

why Did Basic authentication fail for user: mid server? even the MID server is working fine.

find_real_file.png

find_real_file.png

1 ACCEPTED SOLUTION
8 REPLIES 8

Goodman2
ServiceNow Employee
ServiceNow Employee

Did you check the config.xml file in the /servicenow/midserver1/agent directory on midserver1's host machine?

Line 29 will have the user name that midserver1 is passing to your instance and as Jeff and Sukraj said you should find it's passing "mid user" not "midserver".

 <parameter name="mid.instance.username" value="mid user"/>

 

"mid user" and "midserver" are two different user records from sys_user.list with two different sys_ID's.

 

Did you attempt to install any other MID Servers on your host that might still be running and attempting to login to the instance with the "midserver" user name but never connected due to the authentication failures?

If you only intend to have one MID server running then check in the servicenow directory at root/top level on your host machine. If you have more than one subdirectory there you may have another MID running. 

You can check your running processes and services also. If you're not sure if there is an extra MID running there you can always stop the midserver1 service and after it shuts down check to see if there are still any processes/services running for servicenow or snc.

There's a lot of possibilities but you'll need to figure out what is passing the "midserver" user name with an invalid password to your instance.

 

 

 

Hi David,

"mid server" and "mid user" both refer to a single user. mid server refers to name of the user and mid user refer to the ID of the user.

find_real_file.png

the only single MID server is setupfind_real_file.png

Config.xml file for your reference

find_real_file.png

The names still do not match.  The original error message says:

Basic authentication failed for user: midserver

Your user table shows:

ID: mid user

Name: Mid Server

Config.xml has: mid user

None of those is midserver

So what is using midserver?  Where is that message coming from?

I am personally not a fan of spaces in user IDs, so maybe switching from "mid user" to "miduser" may be better all around.