Help Center/ ServiceStage/ Best Practices/ Hosting and Managing a Weather Forecast Microservice Application on ServiceStage/ FAQs/ What Should I Do If a Weather Forecast Application with the Same Name Exists in the Current Environment?
Updated on 2023-07-14 GMT+08:00

What Should I Do If a Weather Forecast Application with the Same Name Exists in the Current Environment?

Symptom

When you create a weather forecast application with a specified name (for example, weathermap) on ServiceStage, the system displays the error "SVCSTG.00100458: The application name already exists" indicating that an application with the same name exists in the application list.

Solution

  1. When creating an application, set Name to a unique application name, for example, weathermap_test.
  2. Click the created weather forecast application, for example, weathermap_test. The application Overview page is displayed.
  3. Click Environment Variables and select an environment (for example, env-test) from the drop-down list.
  4. Click Add Environment Variable to configure environment variables.

    1. Set Name based on the selected source code repository branch by referring to the following table.

      Technology Used by Microservice Components

      Name

      Java Chassis

      servicecomb_service_application

      Spring Cloud

      spring_cloud_servicecomb_discovery_appName

    2. Set Variable/Variable Reference to the name of the created application, for example, weathermap_test.

  5. Click Submit.