Unable to access ../portal/sharing/rest/generateToken

194
3
01-26-2021 11:29 PM
DeanHowell1
Occasional Contributor II

Our production portal is running very slow. I have tried a few things like restarting services and then eventually the servers but with no luck.

The one thing is that I have noticed is that the I am unable to access the rest end point to generate a token ../portal/sharing/rest/generateToken when trying to get to the ArcGIS Server Administrator Directory.

Can anyone suggest why we might not be able to get to this end point?

Thanks

Dean

 

3 Replies
JonEmch
Esri Contributor

Hey there Dean,

   Could you add a screenshot of the error along with a .har capture of what happens when you try to ping server admin? Additionally, do you see anything in ArcGIS Server logs that may pertain to this issue?

Keep on keeping on!
DeanHowell1
Occasional Contributor II

Thanks @JonEmch what we discovered was that AWS rolled the public IP addresses for the portal and put it all out of sync. Once the DNS was updated all went back to normal 🙂

I appreciate you taking the time to respond.

AngusHooper1
Occasional Contributor II

Depending on your architecture, you will need to handle changing public ip addresses associated with the EC2. 

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-instance-addressing.html#concepts-public-a...

We release your instance's public IP address when it is stopped, hibernated, or terminated. Your stopped or hibernated instance receives a new public IP address when it is started.

This is why Esri documentation & cloudformation templates require an elastic IP as this presents a static IP address for your instance.

https://aws.amazon.com/premiumsupport/knowledge-center/ec2-associate-static-public-ip/

 

You'll also need to double check any internal mappings you have with federation url's, service url's, web adaptor etc etc. Make sure these reference anything other than the public ec2 ip, e.g. your DNS or the private IP. 

 

A private IPv4 address, regardless of whether it is a primary or secondary address, remains associated with the network interface when the instance is stopped and started, or hibernated and started, and is released when the instance is terminated.

Reply
0 Kudos