Cannot register datastore on ArcGIS.com (AGOL) for organisations with ssl

6328
7
05-02-2014 05:42 AM
PeterClemmensen
New Contributor
I just got an ArcGIS 10.2.1 Geoeventprocessor setup and I want to create a datastore on ArcGIS.com. The organization that my user connects to on AGOL is requiring ssl.
In 10.2.0 I could just write https://"organization".maps.arcgis.com and it would authenticate my user.

In 10.2.1 I cannot write anything other than username and password.

The error I get in the log is:
Encountered error trying to refresh ArcGIS Connection Information. java.lang.RuntimeException: Could not read content from Portal: {"code":403,"message":"Request not made over ssl","details":[]} at com.esri.ges.datastore.agsconnection.DefaultPortalConnection.updateCache(DefaultPortalConnection.java:132)[225:com.esri.ges.framework.datastore.agsconnection-datastore:10.2.1] at com.esri.ges.datastore.agsconnection.DefaultArcGISServerConnection$CacheUpdater.update(DefaultArcGISServerConnection.java:95)[225:com.esri.ges.framework.datastore.agsconnection-datastore:10.2.1] at com.esri.ges.datastore.agsconnection.DefaultArcGISServerConnection$CacheUpdater.run(DefaultArcGISServerConnection.java:128)[225:com.esri.ges.framework.datastore.agsconnection-datastore:10.2.1] 


Is there anyone who now how to get through to the organizational account?

Is there a setting somewhere that will let the datastore figure out it needs to use ssl?
I guess it is being redirected from http://ArcGIS.com to the https page of the organization.

Peter C
0 Kudos
7 Replies
RJSunderman
Esri Regular Contributor
Hello Peter -

I remember that work was done for the 10.2.1 release which changed how different Server connections were registered - ArcGIS Online (AGOL) being different than an on-premises / local ArcGIS for Server. This work was continued and additional changes were made for the 10.2.2 product release.

Is it an option for you to try registering your AGOL connection using SSL with the latest product release (10.2.2)?

- RJ
0 Kudos
PeterClemmensen
New Contributor
Hi RJ
I am currently integrating with other products that require a 10.2.1, so if I install a 10.2.2 I am pretty sure the other product will not work. I think I am stuck on a 10.2.1 here.

I hope it is still possible to solve it somehow. With a setting somewhere, I am sure I will not be allowed to turn of the "require ssl" flag of the organization account, but I am pretty sure that it is causing the problem.

/Peter C
0 Kudos
JavierDelgadillo
Esri Contributor
Peter,

Which options are you using when creating the connection?  If you put in an https URL into the URL for the DataStore, GEP will use the https URL.  Starting with 10.2.1, GEP uses GIS-tier authentication when communicating with an ArcGIS Server or Portal. 

Can you get to this service you want by registering an AGOL connection instead of a Server or Portal connection?

-Javier
0 Kudos
PeterClemmensen
New Contributor
Hi Javier
Yes I tried that.
Especially since in 10.2.0 ArcGIS Server changed the type of connection from "ArcGIS Online" to "ArcGIS Server" after I created the datastore, because I entered the URL of the Organizational account instead of http://www.ArcGIS.com.

In 10.2.1:
If I try to create a server connection with the organizational ArcGIS.com URL I get a: "Did not get a valid ArcGIS Server response from "URL"
If I try to create a portal connection with the organizational ArcGIS.com URL, I get an "Invalid URL: Please provide a valid url for example: http://<hostname>:<port>/arcgis".

It would be nice if there was a config setting, where it was possible to change the URL that the ArcGIS server uses to connect to AGOL, since it is no longer possible to change it in the user interface.
I tried to search the files under the ArcGIS Server installation for a configuration, but was not able to find a setting that I think would do the trick.

/Peter
0 Kudos
PeterClemmensen
New Contributor
As an extra thought I noted that the error in the log is actually not complaining about my user account or ArcGIS.com.
It seems to make the connection, but does not try to read content from the portal using ssl.

"Could not read content from Portal: {"code":403,"message":"Request not made over ssl""

Still dont know how to fix it, though.

/Peter C
0 Kudos
JavierDelgadillo
Esri Contributor
The recommended approach in this scenario is to register an AGOL connection in GEP with the account that published the service you're trying to consume. 

Are you registering the AGOL connection with the account that published the service?

-Javier
0 Kudos
KDeVogelaere
Occasional Contributor

The error "Did not get a valid ArcGIS Server response from " also appears when you are trying to Register an ArcGIS Server to connect through a proxy. Follow these steps for 10.2.2 Re: GeoEvent Processor - Feed Parsing error: can't find the next feed

0 Kudos