AnsweredAssumed Answered

How copy map service from one ArcGIS server Machine to another ArcGIS server Machine

Question asked by EgbuleI on Apr 1, 2019
Latest reply on Apr 30, 2019 by EgbuleI

Please I would like to know if there is a new and easier way to achieve the transfer of map services from one ArcGIS server machine to another ArcGIS server machine. I have over 400 map services to transfer.

Some two years back I was able to achieve this using the discomap.ServiceTransferTool that i found on this forum and the transfer was made from Version 10.4 to 10.5. Now we upgraded to a full ArGIS Enterprise environment  10.6.2 (ArcGIS Server, Portal for ArcGIS and Datastore) unfortunately the tool has failed and every effort have proved abortive. I keep getting this "No JSON object could be decoded" error. I am not good with JSON and I couldn't figure out what it is that is generating this errort.


I would really appreciate helps and contributions from anyone here.





Please see attached screenshots of the tool and the error I got when executed.




** Service 'Irene//CIP_Project.MapServer' information read successfully. Now transfering... (5 steps)
pathInitial line 653: E:\arcgisserver\directories\arcgissystem\arcgisinput\Irene\CIP_Project.MapServer\extracted\v101\CIP_Project.msdpathInitial line 655: E$\arcgisserver\directories\arcgissystem\arcgisinput\Irene\CIP_Project.MapServer\extracted\v101\CIP_Project.msdpathInitial line 657: \\Hamiltonpool\E$\arcgisserver\directories\arcgissystem\arcgisinput\Irene\CIP_Project.MapServer\extracted\v101\ msdPath line 659: \\Hamiltonpool\E$\arcgisserver\directories\arcgissystem\arcgisinput\Irene\CIP_Project.MapServer\extracted\v101\ simpleServiceName line 668:

CIP_Project finalServiceName line 672:

Failed script TransferServices...

Traceback (most recent call last):
File "Y:\TOOLS\Server Tools\discomap.ServiceTransferTool-master\", line 1280, in <module>
transferMapServices(fromServerName, fromServerPort, fromAdminUser, fromAdminPass, serviceList, toServerName, toServerPort, toAdminUser, toAdminPass, serviceType, workspace, newFolder, overwrite, workFolder)
File "Y:\TOOLS\Server Tools\discomap.ServiceTransferTool-master\", line 621, in transferMapServices
serviceExists = isServicePresent(toServerName, str(toServerPort), toAdminUser, toAdminPass, simpleServiceName, folderName, "")
File "Y:\TOOLS\Server Tools\discomap.ServiceTransferTool-master\", line 101, in isServicePresent
token = gentoken(server, port, adminUser, adminPass)
File "Y:\TOOLS\Server Tools\discomap.ServiceTransferTool-master\", line 26, in gentoken
token = json.loads(urllib.urlopen(url + "?f=json", query_string).read())
File "C:\Python27\ArcGIS10.5\Lib\", line 89, in urlopen return, data)
File "C:\Python27\ArcGIS10.5\Lib\", line 215, in open return getattr(self, name)(url, data)
File "C:\Python27\ArcGIS10.5\Lib\", line 350, in open_http h.endheaders(data)
File "C:\Python27\ArcGIS10.5\Lib\", line 1038, in endheaders self._send_output(message_body)
File "C:\Python27\ArcGIS10.5\Lib\", line 882, in _send_output self.send(msg)
File "C:\Python27\ArcGIS10.5\Lib\", line 844, in send self.connect()
File "C:\Python27\ArcGIS10.5\Lib\", line 821, in connect self.timeout, self.source_address)
File "C:\Python27\ArcGIS10.5\Lib\", line 557, in create_connection for res in getaddrinfo(host, port, 0, SOCK_STREAM): 
IOError: [Errno socket error] [Errno 11001] getaddrinfo failed

Failed to execute (TransferServices).
Failed at Mon Apr 01 09:08:16 2019 (Elapsed Time: 1.84 seconds)