Published web map service with wrong url at portal

2203
7
11-07-2018 07:24 AM
IgnacioFagian
New Contributor

Im publishing a web map service with ArcGIS Pro 2.2.1 and ArcGIS server 10.6.1, the service is plublished in
https://mysite.com/arcgis/rest/services/SIT/chs/MapServer and works succesfull.

But the automatic generated item at portal for that webmap has wrong url:
https://mysite.com/portal/rest/services/SIT/chs/MapServer (Error 500) and the correct url must says /arcgis
instead of /portal

Exist a configuration to set the url of service asociated to portal item?

0 Kudos
7 Replies
JonathanQuinn
Esri Notable Contributor

If you look at the federation information for the Server through the Portaladmin API or the Sharing API, is it correct?

0 Kudos
IgnacioFagian
New Contributor

Jonathan, this is the configuration I see in portaladmin


Portal is running at https://mysite.com/portal and arcgis server is at https://mysite.com/arcgis 

When clicking on validate, return the following message:

0 Kudos
JonathanQuinn
Esri Notable Contributor

The services URL is incorrect. When you configure ArcGIS Enterprise, you'll install Portal, Server, the ArcGIS Data Store, and two web adaptors. At a basic level:

1) Create the portal (ex. https://portal.domain.com:7443/arcgis)

2) Create the server (ex. https://server.domain.com:6443/arcgis)

3) Register the Data Store with Server, (ex. https://data-store.domain.com:2443/arcgis

Then, you'll register the web adaptors. Let's say you install one called "server" to be registered for Server and one called "portal" to be registered with Portal.

4) Register the "server" web adaptor with Server and you'll be able to reach https://wa-machine.domain.com/server

5) Register the "portal" web adaptor with Portal and you'll be able to reach https://wa-machine.domain.com/portal

When federating, you'll use the Server URL with the web adaptor as the services URL and the you can use either the same URL as the admin URL or https://server.domain.com:6443/arcgis

Base ArcGIS Enterprise deployment—ArcGIS Enterprise | ArcGIS Enterprise 

What is ArcGIS Enterprise Builder?—ArcGIS Enterprise | ArcGIS Enterprise 

Tutorial: Set up a base ArcGIS Enterprise deployment—ArcGIS Enterprise | ArcGIS Enterprise 

At this point, you can update the services URL manually.

0 Kudos
IgnacioFagian
New Contributor

Hi Jonathan!

We have already set 2 web adaptors, but you suggested that we have to make 2 subdomains and then register ours web adaptor.

We have 2 different urls now

the portal (subdoamin.site.com/portal) configured with web adaptor

the arcgis server (subdomain.site.com/arcgis) configured with another web adaptor.

The steps we've done was these:

1- create the subdomain

2- install webadaptor

3- set up webadaptor for portal

4- install webadaptor

5- set up webadaptor for arcgis

The portal and server installation was made in the same server. So we have only 1 server with the 2 services runnning

I don't understand what we could do now to solve this issue.

Thanks

0 Kudos
ArchitSrivastava1
New Contributor III

Hello Igancio,

As per the screenshot it seems that the information passed in service URL is incorrect while setting up the federation (referred as URL in screenshot), it seems that it has the Portal URL passed where as the correct syntax is as follows (both the URLs passed here should be of ArcGIS Server):

Service URL: https://webadaptorhost.domain.com/webadaptorname  

Admin URL  : https://gisserver.domain.com:6443/arcgis  

(Refer to "Federate an ArcGIS Server site with your portal" )

Both these URLs will be of ArcGIS Server. The easiest way to update that is to follow the steps mentioned below:

  • Navigate to https://webadaptorhost.domain.com//portal/sharing/rest
  • Login with Portal Administrative credentials.
  • Click on the "Org ID: 0123456789ABCDEF" and scroll down to the bottom of the window.
  • Select "Servers" under "Child Resources".
  • Select "Server id" > "Update Server"  and provide the correct URL. 

Hope it helps!

Regards,

Archit

0 Kudos
IgnacioFagian
New Contributor

Hello Archit,

I did your suggestions step by step.

I added a second server item with correct server url https://webad.domain.com/arcgis and is the one that I select when I publish with arcgisPro.

I already made the publication of a new map from arcgis pro and the item generated at portal continues with wrong url of the map service. It will be necessary to restart arcgisserver or something else?

0 Kudos
FeichiShih
New Contributor II

Hi Ignacio, 

Were you able to get past this problem? I'm having the same issue, I updated the Server URL, but newly published portal item still had the wrong url prefix.

0 Kudos