Skip to content

DTaaS Integration Server

Prasad Talasila edited this page Apr 17, 2023 · 4 revisions

It's best to have an integration server for developing the application. Once you have the server up and running, you can develop and test your code within the complete application. You can spawn one using the latest release.

Checklist for Correct State of DTaaS

The following applications must be running:

From the terminal of the integration server

  • React website: localhost:4000
  • ML Workspace: localhost:8090
  • Grafana: localhost:3000

From web browser

  • React website: foo.com
  • ML Workspace: foo.com/user1
  • Grafana: foo.com/vis

Troubleshooting

Some of the trouble shooting tips:

Can't remember the HTTP login credentials

You can reset the same by logging into the server. Use SSH to log into the server.

cd /home/vagrant/DTaaS/servers/config/gateway
cat auth # you can see the username before colon on the first line
htpassword auth <username> # change the password

Restart the Traefik gateway

docker stop traefik-gateway
docker rm traefik-gateway
sudo docker run -d \
 --name "traefik-gateway" \
 --network=host -v "$PWD/traefik.yml:/etc/traefik/traefik.yml" \
 -v "$PWD/auth:/etc/traefik/auth" \
 -v "$PWD/dynamic:/etc/traefik/dynamic" \
 -v /var/run/docker.sock:/var/run/docker.sock \
 traefik:v2.5

If you don't want to restart the Traefik server, you can always try (disclaimer: haven't actually tried this)

docker stop traefik-gateway
docker cp auth traefik-gateway:/etc/traefik/auth
docker start traefik-gateway

You can't see the webpage

Check if the webpage server is up

wget localhost:4000

If the webpage is not accessible locally, you can go to DTaaS/client folder and do

nohup serve -s build -l 4000 & disown

Now check if the react server is up and running by doing wget localhost:4000.

Check if the Traefik gateway is up

docker ps -a

you should see traefik-gateway in running stage. Otherwise, do

docker start traefik-gateway

You can't login to the server

Make sure that you are using ssh [email protected].