While running MigrationOut command, I am getting Service Unavailable.
Command: D:\GMU>GatewayMigrationUtility.bat migrateOut --argFile Dev2_Jenkins.properties --dest service.xml --service serviceId
Running....[Fatal Error] :1:1: Content is not allowed in prolog.
Execution failed. Reason: Service Unavailable
When I run same command for other gateway node, it runs successfully, but for different node, I get the above error.
Can anyone please suggest me what could be the issue.
Hello Ravish4596 ,
Could be network problem.
If you can run it successfully on other gateway node(s) in the same cluster, you don't have to run it against this problematic gateway node.
Do you find anything in gmu.log on the GMU install folder?
Actually, I tried to run the same command in different environment node and it is working. We have configured same Active Directory in both the environment. It means same username and password is being used in both the environment for login.
Please find the logs from gmu.log:::
May 28, 2017 10:04:29 PM com.ca.gateway.rest.commandline.command.Command runCommandINFO: Running Command: migrateOutMay 28, 2017 10:20:00 PM com.ca.gateway.rest.commandline.command.GatewayCommand setClientConfigWARNING: TLS hostname verification has been disabledMay 28, 2017 10:20:00 PM com.ca.gateway.rest.commandline.command.GatewayCommand setClientConfigWARNING: TLS server certificate check has been disabledMay 28, 2017 10:20:00 PM com.ca.gateway.rest.commandline.command.Command runCommandINFO: Running Command: migrateOutMay 28, 2017 10:20:02 PM com.ca.gateway.rest.commandline.command.Command runCommandWARNING: Error executing commandjavax.ws.rs.WebApplicationException: 503 Service Unavailable at com.ca.gateway.rest.api.GatewayManagementGatewayClient$IP10Bundle.getAsItemReferenceType(Unknown Source) at com.ca.gateway.rest.api.resource.impl.BundleResource.getBundle(Unknown Source) at com.ca.gateway.rest.commandline.command.MigrateOutCommand.a(Unknown Source) at com.ca.gateway.rest.commandline.command.MigrateOutCommand.run(Unknown Source) at com.ca.gateway.rest.commandline.command.GatewayCommand.run(Unknown Source) at com.ca.gateway.rest.commandline.command.Command.runCommand(Unknown Source) at com.ca.gateway.rest.commandline.Main.main(Unknown Source)
But, I am not sure why this is throwing 503 Service Unavailable Exception.
Check that restman service is published
For restman also, I am getting the same error:
Status: 503 Service Unavailable
HTTP 503 usually means the server is currently unable to handle the request due to a temporary overload or scheduled maintenance.
Is it consistent? Are other gateway services working fine? Do you try restart gateway?
Agree with Mark, In case thread is not available to take request source system can receive 503 https status .
Restart your gateway and try to migrate .
Issue was with certificate.