Closed sandoche closed 2 years ago
Hmm have you been able to run any other apps on the server? If not try a lightweight one-click-app just to see if its routing correctly. You could also try a hard reboot
of the server to see if that helps.
Everything looks good from app logs, with the last line suggesting its handling the request fine...
I tried to create a one click install app and it does work. Just to be sure the "Container HTTP Port" is suppose to be 80 right?
I'll try the reboot of the server
Also I tried with SSH and docker exec to enter in the container and wget localhost, I do get the right content of the index. It looks like the container port doesn't work as it should.
I did the reboot, still the same problem :/
Note that I already had a laravel project, I just added the captain-definition
file and the .deploy
folder
I also tried to recreate a caprover app from the same github repo (and the same env variable) and same issue with the new container.
Just to be sure the "Container HTTP Port" is suppose to be 80 right?
Yep port 80 should work fine, you could try a higher port e.g. 8080
by adding that to the caddyfile & add it to the EXPOSE
in the dockerfile, and of course updating the "Container HTTP Port".
But i would be surprised if that is the issue; i've been using variations of this template across multiple apps deployed on different servers for years now.
If you're able to share the project i can try and replicate & debug on my vps, otherwise I'm out of ideas right now...
Also I tried with SSH and docker exec to enter in the container and wget localhost, I do get the right content of the index.
Could you try also try doing this from a different container? e.g. http://srv-captain--APPNAME
Also I tried with SSH and docker exec to enter in the container and wget localhost, I do get the right content of the index.
Could you try also try doing this from a different container? e.g.
http://srv-captain--APPNAME
This actually works!
I am not sure what to do :/ Maybe I should try to reinstall my VM with Caprover
I'll try to run this project in another caprover I have in another server.
Also I tried with SSH and docker exec to enter in the container and wget localhost, I do get the right content of the index.
Could you try also try doing this from a different container? e.g.
http://srv-captain--APPNAME
This actually works!
Nice that suggests an nginx issue, you could try and see if anything weird is appearing in the logs when trying to access the app...
docker service logs captain-nginx --follow --since 10m
It does work on my other server with caprover.
So I guess I did something wrong when I installed caprover, I'll reset the server and do a fresh install. Thanks for your help!
Yeah though it's definitely a strange one as you say other apps are routing fine. No worries!
Actually I found the issue, after reinstalling I had the issue again, it was the firewall (not sure what port was problematic though), I just removed fully the firewall for now.
Hi,
When I try to access the website I have the caprover error page: Your app will be here! Go ahead and deploy your app now!
Even though the build seems successful. Do you know what am I doing wrong?
Image log
App Logs