Layer list in the web app is empty.

4221
14
Jump to solution
07-18-2016 12:42 PM
GagagDa_Morvi
New Contributor

I have built an app using Web App Builder. It has a Map which has a map layer that is served by a map service by ArcGIS Server. All these components are local on my computer including the Portal and ArcGIS Server. Everything works well on my computer. However others are only able to see the basemap when they connect to my app but not the layer data itself. All the resources including the Map, App etc. are shared with everyone. What is going wrong here - seems I am obviously missing something? Can someone please help me - this is really frustrating. Thank you!

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
DerekLaw
Esri Esteemed Contributor

Hi Gagag,

  • What do the other end users see when they try to access your web app?
  • Does the app load properly, but the map display appears empty? or is there an error message?
  • What kind of authentication/security model are you using for Portal for ArcGIS? for ArcGIS Server?
  • Is the Server site federated with Portal?
  • What release of the software are you using?
  • Are you using Web AppBuilder embedded in Portal or Developer Edition?
  • Can you get the other end users to install Fiddler or Firebug to monitor the network traffic when they attempt to load the web app?
  • Are the end users on computers that are on the same network/domain as your computer?
  • Can the end users access the REST endpoint of the map services directly?

Need more info to try and help troubleshoot.

View solution in original post

14 Replies
DerekLaw
Esri Esteemed Contributor

Hi Gagag,

  • What do the other end users see when they try to access your web app?
  • Does the app load properly, but the map display appears empty? or is there an error message?
  • What kind of authentication/security model are you using for Portal for ArcGIS? for ArcGIS Server?
  • Is the Server site federated with Portal?
  • What release of the software are you using?
  • Are you using Web AppBuilder embedded in Portal or Developer Edition?
  • Can you get the other end users to install Fiddler or Firebug to monitor the network traffic when they attempt to load the web app?
  • Are the end users on computers that are on the same network/domain as your computer?
  • Can the end users access the REST endpoint of the map services directly?

Need more info to try and help troubleshoot.

RebeccaStrauch__GISP
MVP Emeritus

...all the things Derek asked, but also check to make sure the data itself is accessible to all, and the paths are a something that can be read by others (i.e. Derek's last point, make sure others can see the end point).

It would also be helpful to know the version of Server you are using...and of Web AppBuilder (and whether using the Online version or a developer edition, and the version...or Portal version).

GagagDa_Morvi
New Contributor

Thanks. Please see my response to Derek.

0 Kudos
GagagDa_Morvi
New Contributor

Thanks  for your response. It seems the issue is with the map service whose endpoint is encoded as and points to localhost. . This service was created from ArcMap by sharing the map (File->Share As->Save a Service Definition File). The connection that I use is a fully qualified machine name (not localhost). However when the service ends up in the ArcGIS server admin, I see its REST and SOAP endpoints encoded as localhost. I don't know why it happens that way. How to fix it?

Here are answers to your questions:

  • What do the other end users see when they try to access your web app?
    • They only see the basemap. They don't see the layer.
  • Does the app load properly, but the map display appears empty? or is there an error message?
    • Just shows the basemap. There are no errors.
  • What kind of authentication/security model are you using for Portal for ArcGIS? for ArcGIS Server?
    • All the resources are shared with everyone.
  • Is the Server site federated with Portal?
    • I don't understand this - is this a setting on Portal?
  • What release of the software are you using?
    • 10.1
  • Are you using Web AppBuilder embedded in Portal or Developer Edition?
    • I use the Web App Builder that is available in the Portal website where I author the map and the app.
  • Can you get the other end users to install Fiddler or Firebug to monitor the network traffic when they attempt to load the web app?
    • Can't do this - IT won't allow.
  • Are the end users on computers that are on the same network/domain as your computer?
    • They are on the same network.
  • Can the end users access the REST endpoint of the map services directly?
    • They can't. The endpoints are encoded as locahost - so obviously that won't work on users' computer. If I manually update the endpoint url with a fully qualified name, it times out
0 Kudos
GagagDa_Morvi
New Contributor

Ok some update - I took care of the service url to be fully qualified server url. I also opened up all the ports to ArcGISServer.exe so that it can send and receive on any port - either TCP or UDP. With this setting, when I access the REST end point of the service from another computer, I do get the REST response. The end point uses port #6443.

However, when I access the map viewer from another computer, the layer still doesn't show up.

0 Kudos
RebeccaStrauch__GISP
MVP Emeritus

Have you set up a web adaptor for your ArcGIS Server?  Typically 6080 or 6443 is used when accessing using the <machinename> to access the REST (i.e. <machinename:6080> for unsecure, <machinename:6443> for secure).  If you have web adaptor(s) in place, it is port :80 for unsecure and uses http, and port :443 for secure, and uses https....but you shouldn't typically have to specify the port for these.

If you have secure services, you may need to set up a proxy GitHub - Esri/resource-proxy: Proxy files for DotNet, Java and PHP.

re: getting network traffic without firebug/fiddler.....F12 on browsers, even IE, will typically give you some feedback or going in tools and clicking on the developer tools, that is unless your IT has disabled this too.

And of course, go thru the links Derek provided, since he know more about Portal than I do.

DerekLaw
Esri Esteemed Contributor

Hi Gagag,

Ok, so it sounds like you are using ArcGIS Server 10.1 with Portal for ArcGIS (which release?) and it is NOT a federated deployment.

Q1. What is the security/authentication model set for the Server site? This could be the built-in identity store, enterprise identity store, etc. Help topic here,

Configuring ArcGIS Server security—Documentation (10.4) | ArcGIS for Server

You can check by logging into ArcGIS Server Manager > Security tab.

Q2. Did you enable HTTP, HTTP and HTTPS, or HTTPS only for your Server site?

Secure ArcGIS Server communication—Documentation (10.4) | ArcGIS for Server

Q3. Did you set security on your web services from ArcGIS Server?

Restricting access to GIS web services—Documentation (10.4) | ArcGIS for Server

Q4. When you added your web services to Portal by registering them - did you specify the fully qualified domain name as part of the URL that you added? If they were secure, did you save the credentials with the item?

Add items—Portal for ArcGIS (10.4.1) | ArcGIS for Server

> Can you get the other end users to install Fiddler or Firebug to monitor the network traffic when they attempt to load the web app?

  • Can't do this - IT won't allow.

That's unfortunate, because without this logged network traffic info, it will be challenging to help you troubleshoot your issue.

GagagDa_Morvi
New Contributor

Thanks, Derek. I will follow up on the information that you point me to and report. Meanwhile I would like to know if this behavior is due to limitation of the software which is part of the EDN and licensed as EDN - I am using the ArcGIS Server and the Portal that I received as EDN. Could that be the case?

0 Kudos
GagagDa_Morvi
New Contributor

Hi Derek,

I have gone through all the links and accordingly checked my ArcGIS Server and Portal settings. I am using HTTP/HTTPS and am using ArcGIS Server built-in security. I have shared my service with everyone. I used fully qualified server name when I created the service definition (.sd) file. When I check the details of the service in ArcGIS Server manager, I see the fully qualified server machine name, https://<servername>:6443/arcgis/rest/services/<servicename>MapServer. My web adapter is configured to work with portal.

However, I see following two interesting things:

  1. I am able to access this ArcGIS Service from ArcMap without any problems. The ArcMap gives the usual complain about the security certificate - but I can add the layer to the map and can query it. It all works perfect.
  2. While working in the Portal, when I create a Map and add this service as a layer to it, it only shows up in the map if I have logged into the ArcGIS Server manager in the same browser. If I log out of the ArcGIS Server Manager, the layer doesn't render in the map in Portal.

I think I am getting closer but still not there. And I am stumped as to what could be wrong in this setup here. May be I should uninstall ArcGIS Server, Web adapter and Portal and reinstall them?

0 Kudos