servicecomb-service-center icon indicating copy to clipboard operation
servicecomb-service-center copied to clipboard

Help wanted - issue in deploying service-center-frontend in AWS

Open shri-arunraj opened this issue 1 year ago • 1 comments

Im running the docker images of servicecomb/service-center and servicecomb/scfrontend in my ec2 instance. And routing the requests to service center front end with AWS Route53 service with DNS entry https://servicecomb-dev-xx.com/. And the service-center UI is not rendered properly as expected. However the same configuration works in my local environment. Only thing different here is AWS DNS is https enabled URL. What am i doing wrong here? Please help ASAP!!

Do i need to enable SSL/TLS for service center for AWS deployment?

Steps to reproduce the behavior:

  1. run docker images with below docker compose config
  etcd:
    image: 'quay.io/coreos/etcd:latest'
    # restart: always
    #ports:
    #  - "2379:2379"
    environment:
      ETCD_ADVERTISE_CLIENT_URLS: http://etcd:2379
      ETCD_LISTEN_CLIENT_URLS: http://0.0.0.0:2379
      ETCD_INITIAL_ADVERTISE_PEER_URLS: http://etcd:2380
      ETCD_LISTEN_PEER_URLS: http://0.0.0.0:2380
      ETCD_INITIAL_CLUSTER: default=http://etcd:2380
  service-center:
    depends_on:
      - etcd
    image: 'servicecomb/service-center:latest'
    # restart: always
    container_name: service-center
    ports:
      - "30100:30100"
    environment:
      BACKEND_ADDRESS: http://etcd:2379

  scfrontend:
    depends_on:
      - service-center
    image: 'servicecomb/scfrontend:latest'
    container_name: service-center-UI
    # restart: always
    ports:
      - "30103:30103"
    environment:
      SC_ADDRESS: http://service-center:30100
  zipkin:
   image: openzipkin/zipkin
   container_name: zipkin
   ports:
    - "9411:9411"

  1. Create Route 53 DNS ENtry mapping for the port 30103
  2. click on the configured DNS entry https://servicecomb-dev-xx.xx.com/
  3. The requests would fail with the below error
  4. See error
  5. The requests are failing with HTTP 404 error
Screenshot 2022-08-09 at 6 35 53 PM

The service-center UI is not rendered.

shri-arunraj avatar Aug 09 '22 13:08 shri-arunraj

@little-cui looking forward for some hints to troubleshoot this issue..?

shri-arunraj avatar Aug 10 '22 06:08 shri-arunraj