question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug in arcgis.gis.server.Server

See original GitHub issue

There appears to be a dodgy code that is error prone depending on how the Server class and publish_sd method is used.

If you initiate the Server class and proceed to publish_sd right away: server = Server( url=args.server_url, username=args.ags_admin, password=args.ags_pass ) server.publish_sd(sd_file=args.sdfile) Then in the publish_sd method there is an attempt to extract catalog = self._catalog if 'System' not in catalog.folders: But self._catalog is None in this scenario, hence attempt to read catalog.folder crashes the API. As such i think there should be a call to self.content which assures all is initiated as it should and prevents returning None

“site-packages\arcgis\gis\server\admin\administration.py” image

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
achapkowskicommented, Jan 29, 2019

I’ve gone through your workflow and tested it, and at the latest release I cannot reproduce this error.

Instead of accessing the Server directly, have you tried accessing it through the portal’s admin?

example

gis = GIS(mysite creds)
server = gis.admin.servers.list()[0]
0reactions
alexkemp94commented, Aug 8, 2019

image Same problem for me however achapkowski’s suggestion of acessing the server via GIS.admin.servers.list resolved the issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common problems and solutions—ArcGIS Server
This topic lists questions or issues that you might encounter when working with ArcGIS Server and suggests possible solutions. If you don't find...
Read more >
BUG-000098347: In ArcGIS GIS Server, stopping a service ...
In ArcGIS GIS Server, stopping a service with the Web Map Service (WMS) capability enabled produces 'Severe' errors in the logs with a...
Read more >
What's new in ArcGIS Server 10.8 - GIS Site Test
ArcGIS Server 10.8 offers new enhancements, tools, and bug fixes. For a list of issues that were fixed at 10.8, see the 10.8...
Read more >
What's new in ArcGIS Server 10.8 and 10.8.1
ArcGIS Server 10.8 and 10.8.1 offer new enhancements, tools, and bug fixes. ... You can access your authorization files in My Esri.
Read more >
What's new in ArcGIS Server 10.7
ArcGIS Server 10.7 offers new enhancements, tools, and bug fixes. For a list of issues that were ... You can access your new...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found