Comments (5)
1- Can you try reaching to your captain.domain.com and get the nginx logs to see what is happening?
docker service logs captain-nginx --since 5m
I want to see whether it was a timeout or connection refused or what.
2- Your logs that you posted above indicates that skipVerifyingDomains
wasn't active, you should not be seeing verification failure if skipVerifyingDomains
is set to true.
3- Run these and copy the output here. (Make sure skip domain verification is ON)
docker service ps captain-captain --no-trunc
docker service inspect captain-captain
from caprover.
1- I'm not sure what the issue is here. It's just showing "Connection refused"?
captain-nginx.1.j8stwl1tlofo@selfhost | 2024/03/15 05:30:05 [error] 21#21: *5990 connect() failed (111: Connection refused) while connecting to upstream, client: 101.161.67.134, server: captain.selfhost.death.id.au, request: "GET / HTTP/2.0", upstream: "http://10.0.1.2:3000/", host: "captain.selfhost.death.id.au"
captain-nginx.1.j8stwl1tlofo@selfhost | 101.161.67.134 - - [15/Mar/2024:05:30:05 +0000] "captain.selfhost.death.id.au" "GET / HTTP/2.0" 502 552 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36" "-"
captain-nginx.1.j8stwl1tlofo@selfhost | 101.161.67.134 - - [15/Mar/2024:05:30:05 +0000] "captain.selfhost.death.id.au" "GET /favicon.ico HTTP/2.0" 502 552 "https://captain.selfhost.death.id.au/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36" "-"
captain-nginx.1.j8stwl1tlofo@selfhost | 2024/03/15 05:30:05 [error] 21#21: *5990 connect() failed (111: Connection refused) while connecting to upstream, client: 101.161.67.134, server: captain.selfhost.death.id.au, request: "GET /favicon.ico HTTP/2.0", upstream: "http://10.0.1.2:3000/favicon.ico", host: "captain.selfhost.death.id.au", referrer: "https://captain.selfhost.death.id.au/"
captain-nginx.1.j8stwl1tlofo@selfhost | 101.161.67.134 - - [15/Mar/2024:05:30:07 +0000] "captain.selfhost.death.id.au" "GET / HTTP/2.0" 502 552 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36" "-"
captain-nginx.1.j8stwl1tlofo@selfhost | 2024/03/15 05:30:07 [error] 21#21: *5990 connect() failed (111: Connection refused) while connecting to upstream, client: 101.161.67.134, server: captain.selfhost.death.id.au, request: "GET / HTTP/2.0", upstream: "http://10.0.1.2:3000/", host: "captain.selfhost.death.id.au"
captain-nginx.1.j8stwl1tlofo@selfhost | 2024/03/15 05:30:07 [error] 21#21: *5990 connect() failed (111: Connection refused) while connecting to upstream, client: 101.161.67.134, server: captain.selfhost.death.id.au, request: "GET /favicon.ico HTTP/2.0", upstream: "http://10.0.1.2:3000/favicon.ico", host: "captain.selfhost.death.id.au", referrer: "https://captain.selfhost.death.id.au/"
captain-nginx.1.j8stwl1tlofo@selfhost | 101.161.67.134 - - [15/Mar/2024:05:30:07 +0000] "captain.selfhost.death.id.au" "GET /favicon.ico HTTP/2.0" 502 552 "https://captain.selfhost.death.id.au/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36" "-"
captain-nginx.1.j8stwl1tlofo@selfhost | 2024/03/15 05:30:10 [error] 21#21: *5990 connect() failed (111: Connection refused) while connecting to upstream, client: 101.161.67.134, server: captain.selfhost.death.id.au, request: "GET / HTTP/2.0", upstream: "http://10.0.1.2:3000/", host: "captain.selfhost.death.id.au"
captain-nginx.1.j8stwl1tlofo@selfhost | 101.161.67.134 - - [15/Mar/2024:05:30:10 +0000] "captain.selfhost.death.id.au" "GET / HTTP/2.0" 502 552 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36" "-"
captain-nginx.1.j8stwl1tlofo@selfhost | 2024/03/15 05:30:10 [error] 21#21: *5990 connect() failed (111: Connection refused) while connecting to upstream, client: 101.161.67.134, server: captain.selfhost.death.id.au, request: "GET /favicon.ico HTTP/2.0", upstream: "http://10.0.1.2:3000/favicon.ico", host: "captain.selfhost.death.id.au", referrer: "https://captain.selfhost.death.id.au/"
captain-nginx.1.j8stwl1tlofo@selfhost | 101.161.67.134 - - [15/Mar/2024:05:30:10 +0000] "captain.selfhost.death.id.au" "GET /favicon.ico HTTP/2.0" 502 552 "https://captain.selfhost.death.id.au/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36" "-"
2 - The log from earlier was with skipVerifyingDomains
off, as that seemed more relevant. My Caprover instance is currently running with skipVerifyingDomains
on
3 -
$ docker service ps captain-captain --no-trunc
ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
sghghhahtr3we4in80l20lhh5 captain-captain.1 caprover/caprover:latest@sha256:905815f252fda652c99739214361ab1501b525f3063fa68b28bb19767a8b0247 selfhost Running Running 2 hours ago *:3000->3000/tcp,*:3000->3000/tcp
k2x9kjngiu0qgb3jeizdn9evr \_ captain-captain.1 caprover/caprover:latest@sha256:905815f252fda652c99739214361ab1501b525f3063fa68b28bb19767a8b0247 selfhost Shutdown Shutdown 2 hours ago
vv5nctrs63auokev26vad00zn \_ captain-captain.1 caprover/caprover:latest@sha256:905815f252fda652c99739214361ab1501b525f3063fa68b28bb19767a8b0247 selfhost Shutdown Failed 2 hours ago "task: non-zero exit (1)"
e3qksdi4vtf90xemjrb74jshv \_ captain-captain.1 caprover/caprover:latest@sha256:905815f252fda652c99739214361ab1501b525f3063fa68b28bb19767a8b0247 selfhost Shutdown Failed 2 hours ago "task: non-zero exit (1)"
zgi0xewtf4sjheo0qft59fhzh \_ captain-captain.1 caprover/caprover:latest@sha256:905815f252fda652c99739214361ab1501b525f3063fa68b28bb19767a8b0247 selfhost Shutdown Failed 2 hours ago "task: non-zero exit (1)"
$ docker service inspect captain-captain
[
{
"ID": "optc95kh18cpq1ozf13zkwgo3",
"Version": {
"Index": 20841
},
"CreatedAt": "2023-11-16T04:55:35.854900375Z",
"UpdatedAt": "2024-03-15T03:31:55.761588955Z",
"Spec": {
"Name": "captain-captain",
"Labels": {},
"TaskTemplate": {
"ContainerSpec": {
"Image": "caprover/caprover:latest@sha256:905815f252fda652c99739214361ab1501b525f3063fa68b28bb19767a8b0247",
"Labels": {
"randomLabelForceUpdate": "859b426f-9072-4783-b42b-c57532e36039"
},
"Env": [
"IS_CAPTAIN_INSTANCE=1"
],
"Mounts": [
{
"Type": "bind",
"Source": "/captain",
"Target": "/captain"
},
{
"Type": "bind",
"Source": "/var/run/docker.sock",
"Target": "/var/run/docker.sock"
}
],
"StopGracePeriod": 10000000000,
"DNSConfig": {},
"Secrets": [
{
"File": {
"Name": "captain-salt",
"UID": "0",
"GID": "0",
"Mode": 292
},
"SecretID": "ikw5x9i5bpsdv0xva9a77oufq",
"SecretName": "captain-salt"
}
],
"Isolation": "default"
},
"Resources": {},
"RestartPolicy": {
"Condition": "any",
"Delay": 5000000000,
"MaxAttempts": 0
},
"Placement": {
"Constraints": [
"node.id == 1w8dj9mjtrcvcz9jw7os044ge"
],
"Platforms": [
{
"Architecture": "amd64",
"OS": "linux"
},
{
"Architecture": "arm64",
"OS": "linux"
},
{
"OS": "linux"
},
{
"Architecture": "unknown",
"OS": "unknown"
},
{
"Architecture": "unknown",
"OS": "unknown"
},
{
"Architecture": "unknown",
"OS": "unknown"
}
]
},
"Networks": [
{
"Target": "r2fd5bn4b2gggooyg3vpxkgw5"
}
],
"LogDriver": {
"Name": "json-file",
"Options": {
"max-size": "512m"
}
},
"ForceUpdate": 5,
"Runtime": "container"
},
"Mode": {
"Replicated": {
"Replicas": 1
}
},
"UpdateConfig": {
"Parallelism": 1,
"FailureAction": "pause",
"Monitor": 5000000000,
"MaxFailureRatio": 0,
"Order": "stop-first"
},
"RollbackConfig": {
"Parallelism": 1,
"FailureAction": "pause",
"Monitor": 5000000000,
"MaxFailureRatio": 0,
"Order": "stop-first"
},
"EndpointSpec": {
"Mode": "vip",
"Ports": [
{
"Protocol": "tcp",
"TargetPort": 3000,
"PublishedPort": 3000,
"PublishMode": "host"
}
]
}
},
"PreviousSpec": {
"Name": "captain-captain",
"Labels": {},
"TaskTemplate": {
"ContainerSpec": {
"Image": "caprover/caprover:latest@sha256:905815f252fda652c99739214361ab1501b525f3063fa68b28bb19767a8b0247",
"Labels": {
"randomLabelForceUpdate": "859b426f-9072-4783-b42b-c57532e36039"
},
"Env": [
"IS_CAPTAIN_INSTANCE=1"
],
"Mounts": [
{
"Type": "bind",
"Source": "/captain",
"Target": "/captain"
},
{
"Type": "bind",
"Source": "/var/run/docker.sock",
"Target": "/var/run/docker.sock"
}
],
"Secrets": [
{
"File": {
"Name": "captain-salt",
"UID": "0",
"GID": "0",
"Mode": 292
},
"SecretID": "ikw5x9i5bpsdv0xva9a77oufq",
"SecretName": "captain-salt"
}
],
"Isolation": "default"
},
"Resources": {},
"Placement": {
"Constraints": [
"node.id == 1w8dj9mjtrcvcz9jw7os044ge"
],
"Platforms": [
{
"Architecture": "amd64",
"OS": "linux"
},
{
"Architecture": "arm64",
"OS": "linux"
},
{
"OS": "linux"
},
{
"Architecture": "unknown",
"OS": "unknown"
},
{
"Architecture": "unknown",
"OS": "unknown"
},
{
"Architecture": "unknown",
"OS": "unknown"
}
]
},
"Networks": [
{
"Target": "r2fd5bn4b2gggooyg3vpxkgw5"
}
],
"LogDriver": {
"Name": "json-file",
"Options": {
"max-size": "512m"
}
},
"ForceUpdate": 4,
"Runtime": "container"
},
"Mode": {
"Replicated": {
"Replicas": 1
}
},
"EndpointSpec": {
"Mode": "vip",
"Ports": [
{
"Protocol": "tcp",
"TargetPort": 3000,
"PublishedPort": 3000,
"PublishMode": "host"
}
]
}
},
"Endpoint": {
"Spec": {
"Mode": "vip",
"Ports": [
{
"Protocol": "tcp",
"TargetPort": 3000,
"PublishedPort": 3000,
"PublishMode": "host"
}
]
},
"Ports": [
{
"Protocol": "tcp",
"TargetPort": 3000,
"PublishedPort": 3000,
"PublishMode": "host"
}
],
"VirtualIPs": [
{
"NetworkID": "r2fd5bn4b2gggooyg3vpxkgw5",
"Addr": "10.0.1.2/24"
}
]
},
"UpdateStatus": {
"State": "completed",
"StartedAt": "2024-03-15T03:31:31.496168587Z",
"CompletedAt": "2024-03-15T03:31:55.761576255Z",
"Message": "update completed"
}
}
]
from caprover.
This is really bizarre! Your containers look very healthy. Let's try by passing the CapRover and just try to connect via the terminal:
docker exec -it $(docker ps --filter name=captain-nginx -q) curl captain-captain:3000 -v
What does this print?
from caprover.
I had a busy weekend and left this alone. Before I went to try your command today I just opened up the caprover page on a whim and... it's working fine?
So I went and removed my config-override.json
and... it still works?
I don't know what happened, but I'm going to close this issue, keep an eye on it, and reopen if it ever happens again.
from caprover.
I am facing the same issue and I am running a lot of production services... :( I will post after trying the above
from caprover.
Related Issues (20)
- [Deployment Issue] One Click Apps all time loading HOT 7
- root ssh login HOT 3
- Nginx deployment issue HOT 2
- Caprover restarts endlessly HOT 6
- Volumes wont attatch HOT 1
- caprover deploy not updating files on the server HOT 5
- [General Question] change captain-overlay-network subnet HOT 1
- Captain crashes on new server if registry is not set up HOT 1
- [Deployment Issue] Deploy from github using image doesn't work. HOT 2
- How to update the certificate of my self hosted registry? HOT 1
- Net Core 8.0 github actions deploy HOT 1
- Deployment Issue: SourceGuardian PHP Extension on One-Click App HOT 7
- [Deployment Issue] persistent storage not available during deployment HOT 1
- Caprover does not clean up registry HOT 1
- [Deployment Issue] React App Refresh Results in 404 Error Despite Nginx Configuration Modifications HOT 4
- Problem renewing the ssl certificate from caprover HOT 2
- [Question] Set source directory HOT 3
- [Question] Access CapRover dashboard through a secure connection HOT 4
- [Deployment Issue] 'Captain-definition file does not exist' after updating repo structure HOT 4
- Invalid credentials and Apps were incorrupted.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from caprover.