Forum Discussion
Error in REST https call to get the Auth token v15.1.8
Hi All,
We upgraded F5 on May 18,2024 from v12.1.3 to v15.1.8
we trying to get auth token from
/mgmt/shared/authn/login
But getting 401 error, please find the detailed error message. Can any one help me with this issue. It was working fine on v12.1.3
{"code":401,"message":"Authentication failed.","referer":"172.28.24.61","restOperationId":106134247,"kind":":resterrorresponse"}
- rjordanNimbostratus
Are you including "loginProviderName": "tmos" in your POST? Maybe /var/log/restjavad.0.log has some additional info about the failure.
- zzhang39Altostratus
- zzhang39Altostratus
Here's the scipt which works at 12.1.3, we do use loginProviderName toms.
Can you advice where to check "/var/log/restjavad.0.log"?
F5url="https://<example.com>/mgmt/shared/authn/login"
response=$(curl -X POST $F5url \
-H "Content-Type: application/json" \
-d "{
\"username\": \"$username\",
\"password\": \"$password\",
\"loginProviderName\": \"tmos\"
}" -k -s)
echo "Response from server:"
echo "$response"
- Lucas_ThompsonEmployee
The REST subsystem in BIG-IP can sometimes suffer from low user space RAM, especially with large configurations. Also there is an upgrade process that occurs immediately after booting into a new version.
It may help to change Management Provisioning to Large:
Restjavad can sometimes get into a "stuck" state where the worker processes suffer continuous timeout errors. The log files (/var/log/restjavad*) offer evidence of this behavior: search for the term "timeout" in those files.
- zzhang39Altostratus
Lucas_Thompson
We already set to Large.for " The log files (/var/log/restjavad*) offer evidence of this behavior: search for the term "timeout" in those files"
Can you please advise how do we access that log? looks like no-one clear on our team.
- Lucas_ThompsonEmployee
Sure. The REST log files can be reviewed using bash like in this video:
You can change the log level to increase or decrease the amount of logging:
https://my.f5.com/manage/s/article/K15436
This article talks about the exact names of those log files and gives some example commands:
https://my.f5.com/manage/s/article/K64371928
Finally, it may help to become familiar with Linux logging generally, as Linux is the host operating system used on BIG-IP and there are many log files that contain useful information. Here's Ubuntu's comprehensive article that should help:
https://help.ubuntu.com/community/LinuxLogFiles
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com