Layer 7 API Management

Expand all | Collapse all

Service Unavailable during Migration

Jump to Best Answer
  • 1.  Service Unavailable during Migration

    Posted 05-28-2017 12:49 PM

    Hi,

     

    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.

     

    Thanks,

    Ravish



  • 2.  Re: Service Unavailable during Migration

    Posted 05-28-2017 08:20 PM

    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?

     

    Regards,

    Mark



  • 3.  Re: Service Unavailable during Migration

    Posted 05-28-2017 11:19 PM

    Hi Mark,

     

    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 runCommand
    INFO: Running Command: migrateOut
    May 28, 2017 10:20:00 PM com.ca.gateway.rest.commandline.command.GatewayCommand setClientConfig
    WARNING: TLS hostname verification has been disabled
    May 28, 2017 10:20:00 PM com.ca.gateway.rest.commandline.command.GatewayCommand setClientConfig
    WARNING: TLS server certificate check has been disabled
    May 28, 2017 10:20:00 PM com.ca.gateway.rest.commandline.command.Command runCommand
    INFO: Running Command: migrateOut
    May 28, 2017 10:20:02 PM com.ca.gateway.rest.commandline.command.Command runCommand
    WARNING: Error executing command
    javax.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.

     

    Thanks,

    Ravish



  • 4.  Re: Service Unavailable during Migration

    Posted 05-29-2017 12:51 AM

    Check that restman service is published



  • 5.  Re: Service Unavailable during Migration

    Posted 05-29-2017 01:49 AM

    For restman also, I am getting the same error:

    Status: 503 Service Unavailable



  • 6.  Re: Service Unavailable during Migration

    Posted 05-29-2017 06:55 PM

    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?

     

    Regards,

    Mark



  • 7.  Re: Service Unavailable during Migration

    Posted 06-01-2017 03:11 AM

    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 .



  • 8.  Re: Service Unavailable during Migration
    Best Answer

    Posted 06-01-2017 05:45 AM

    Issue was with certificate.