Keywords: ImA, Image Artist, connection, is, broken, login, 502 Bad Gateway,
Details:
The error message ImA connection is broken is shown when you attempt to login to ImA. When clicking show details you then see the following:
Hide details
<!>/home/acapella/Acapella/AcapellaResources/AcapellaColumbusWebapp/ProcLib/columbus/util_treeview.proc(45) [columbus::nav_OpenBranch_inner]:
<!>/home/acapella/Acapella/AcapellaResources/AcapellaColumbusWebapp/ProcLib/columbus/util_treeview.proc(62) [Columbus::nav_FetchList]:
<!>/home/acapella/Acapella/AcapellaResources/AcapellaColumbusWebapp/ProcLib/columbus/navigator.proc(796) [::Eval]: Eval() script failed:
<!>{inline eval script}(1) [Gemma::GetScreenList]:
<!>/home/acapella/Acapella/AcapellaResources/AcapellaImageArtist/ProcLib/gemma/api_client.proc(472) [Gemma::Get]:
<!>/home/acapella/Acapella/AcapellaResources/AcapellaImageArtist/ProcLib/gemma/api_client.proc(225) [Gemma::Request]:
<!>/home/acapella/Acapella/AcapellaResources/AcapellaImageArtist/ProcLib/gemma/api_client.proc(93) [Gemma::RequestRaw]:
<!>/home/acapella/Acapella/AcapellaResources/AcapellaImageArtist/ProcLib/gemma/api_client.proc(73) [::Error]: SImA API error 502 Content=<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.20.1</center>
</body>
</html>
The error indicates that the client is unable to communicate with the upstream ImA server. Take the following steps to un-deploy and re-deploy the ImA stack:
- login to ImA via SSH
- list the containers associated with the ImA stack:
$ docker stack ps ImA- Check the output to assess if the containers are shutdown or running.
- Navigate to the ImA installation directory (typically this is where the goods have been unzipped)
- Undeploy the ImA stack using the undeploy.sh script
$ ./undeploy.sh
- Wait for the stack to be terminated, then use the deploy.sh script to bring the ImA stack back up:
$ ./deploy.sh
You'll have to wait a few minutes for the stack to be brought back up.
-
Check the status of the containers associated with the ImA stack:
$ docker stack ps SImA
Please note that if you're not using the deploy.sh and undeploy.sh scripts to re-deploy the ImA stack then there is a nuance in the way the ImA stack is brought down when using docker stack rm ImA (or if simply powering down) which can leave the stack in a semi-deployed state. This is because the loki container needs to be brought down last, but Docker provides no functionality for determining the order in which the containers are stopped, hence loki may not be brought down last. When Docker redeploys the stack after the reboot, it will essentially restore the stack to the bad state, which can also be the cause of the "ImA connection is broken" error.
For access to the deploy and undeploy scripts see the following post:
Image Artist: How do I redeploy/restart the container stack?
Comments
0 comments
Article is closed for comments.