Amadmin session failover returns unauthorized on first request. Behavior is different on four server architecture - I see this error in one of three attempts.
Configure 2 servers in site with enabled Session HA Persistence and Failover and use attached session_test.sh to do this:
- login amadmin and demo user to 1st server
- shut down 1st server
- try to get session idle time from 2nd server
Checking session idle time from 2nd server and then turning off 1st server will make session of amadmin user known to 2nd server and then it will work.