You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/general/swag.md
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1228,6 +1228,29 @@ This error means that nginx can't talk to the application. There is a few common
1228
1228
1229
1229
- Delete it, and restart the container to have it regenerate
1230
1230
- Manually set the content(we wont override it)
1231
+
1232
+
Here are a few troubleshooting steps:
1233
+
1234
+
- Try to ping the container from the swag container:
1235
+
`docker exec swag ping <container name>`(If your swag container isn't named `swag`, replace `swag` with the swag container's name).
1236
+
- If this doesn't work:
1237
+
- Check if the container is actually running
1238
+
- check if both swag and the container in question are on the same container network.
1239
+
- try to find the ip of the container on the network shared with swag (e.g. `docker inspect <container name>`) and try to ping that from swag (`docker exec swag ping <container ip>`)
1240
+
- If this succeeds, you have an issue with name resolution inside docker networks
1241
+
- If this fails, you either have an issue with docker networking in general or the containers don't share a common network.
1242
+
- If this works:
1243
+
- Try to fetch the web interface from the swag container:
1244
+
`docker exec swag curl http(s)://<container name>:<application port>`(make sure that this matches whatever is in your proxy conf)
1245
+
- If this works: Check your proxy conf again. Probably something (protocol, container name, port) is wrong there
1246
+
- If this doesn't work:
1247
+
- Check the startup log of the application (`docker logs <container name>`).
1248
+
- Did it start sucessfully/Did it fail for some reason?
1249
+
- Many applications print what endpoint they are running on there. Check if this matches the values in your proxy conf and the ones used for curl
1250
+
- Check if the interface the application listens on is correct. Usually this should be 0.0.0.0, but the ip the container has on the network shared with swag should also be fine.
1251
+
If only 127.0.0.1 or another unrelated IP is listened there, this could be the issue
1252
+
- Check what protocol and port the application actually listens at.
0 commit comments