-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Response code 502 (Bad Gateway) #201
Comments
@maxime1992 is there anything in the logs of the exoframe server? |
How can I access them? If you mean |
@maxime1992 currently you'd need to run |
Thanks for the command 👍 Here are the logs
Might be cool 🙌 EDIT I've recently updated |
@maxime1992 seems like it's failing to get service info after executing compose. |
The first log I've posted was produced with that command:
(gives the same whether I use |
@maxime1992 aha, got it. |
Ah! Maybe stopped 🤔 ? Because But I have some when I do Gonna try to remove them and redeploy 👍 |
@yamalight just tried to remove every containers. When running Tried to deployed once again but still the same error 🤔 |
@maxime1992 alright. next guess - I've noticed that you are mapping your port to external one - are you sure that port is free? 🤔 |
According to Are you refering to the port of mysql? If not which port? (thanks for your patience!) EDIT: Just tried to comment out the port mapping for mysql within the Docker compose and deployed again: Same error. |
@maxime1992 I am referring to port of mysql, yes. alright, so that's not it 🤔 |
@yamalight sure. Just tried both locally and on the server: Both working fine |
@maxime1992 alright, this is really weird 😅 |
Oh ok have a good trip then! 🙌 I really need to somehow deploy this week end so I think I'll just deploy image by image (if that work). Have a good week! |
@yamalight hi! I need to deploy this we and so I've decided to just destroy and recreate the exoframe server hoping that it'd work 😄. Which it did. Until I called Then when I tried to deploy I had the error I think that might be helpful info to debug :) |
=( nevermind. Removed it again, created a brand new one and I still have the error now |
@maxime1992 could you try running exoframe-server locally and reproducing this? does it also happens? or is this something that only happens on your server? 🤔 |
@yamalight I'd be glad to but it might be really hard to reproduce IMO 🤔 I'm going to try to run exoframe in dev mode on my server. I'll let you know if I manage to do that! |
HA! GOT IT! So I managed to build a dev image on the server and tried to run the deploy again.
So now it makes total sense 👍 My private image cannot be fetched by Docker. (CF #117 and exoframejs/exoframe-server#19). And to give a try on the server at some point I logged into my private registry, and downloaded the image. From there, Docker-Compose was able to start 👍! But then when I removed it and launched a deploy again... 💥 I thought that as I logged into my private registry from the server, Docker-Compose would be able to work from there. It seems that it's not the case 🤷♂️ We discussed it here exoframejs/exoframe-server#19 (comment). Any idea @yamalight? Maybe exoframe is handling that in the end? Or the Docker-Compose running from exoframe doesn't have access to my credentials? I should definitely try to finish up my PR but if I can have a workaround first to deploy my project that'd be great (another workaround that pulling the new image manually before running my build on CI 😓) |
Ah! I think I know what the problem is - currently exoframe-server uses docker-compose that it has installed inside the image! Hence it doesn't get your local compose config. |
I'm closing this due to inactivity. Feel free to re-open if needed. |
Hi @yamalight, I'm still hitting that error and have no other way of loging into ssh onto my server, pull the images I need first, and then manually start a CI task to deploy 😓 It's not a really automated workflow :D ! Have I been the only one facing that issue with private repos? I'm quite surprised honnestly but maybe everyone just have public images 🤷♂️ |
We do have an issue for private repos (#117), but I haven't had time to look into it at all. |
Hi,
I'm trying to deploy my project but unfortunately I keep getting
502 (Bad Gateway)
I'm trying to deploy from
Docker-Compose
and I've made it really simple to try to narrow down the issue:And my
exoframe.json
The text was updated successfully, but these errors were encountered: