Code Monkey home page Code Monkey logo

Comments (19)

tuanphpvn avatar tuanphpvn commented on May 18, 2024 1

Thank your. U r awesome.

from caprover.

githubsaturn avatar githubsaturn commented on May 18, 2024 1

Thanks. It might be worth letting them know about this issue. It means that they do not support docker swarm networking with their default config which is a problem considering how docker is growing. Anyways, I have added some notes to readme for troubleshooting.

from caprover.

githubsaturn avatar githubsaturn commented on May 18, 2024

Are you accessing a remote server? Or a VM on your local machine? Do you have firewall setup?

I assume you started off by running the following line?

 mkdir /captain && docker run -v /var/run/docker.sock:/var/run/docker.sock dockersaturn/captainduckduck

if so, you can run the following line to see the logs:

docker service logs captain-captain --follow

Please post the logs here to debug.

from caprover.

tuanphpvn avatar tuanphpvn commented on May 18, 2024

Thank you for your hard work.
But I got another problem. I remove container, docker, even remove docker and install again.
Why docker keep download captainduckduck docker images?

from caprover.

githubsaturn avatar githubsaturn commented on May 18, 2024

Please see #12

from caprover.

tuanphpvn avatar tuanphpvn commented on May 18, 2024

Can you reopen it.

I use this:

  1. sudo ufw allow 3000
  2. Access: http://139.162.125.94:3000/
  3. docker service logs captain-captain --follow

And it show nothing. any idea?

Also, I left the swarm with:

docker service rm $(docker service ls -q)
docker swarm leave --force

How can I join it again ? Thanks

from caprover.

githubsaturn avatar githubsaturn commented on May 18, 2024

If docker service logs captain-captain --follow doesn't output anything, it means your docker hasn't started Captain yet. But you were saying it automatically reappeared after you stopped it - which means it was running. Did you run the exact installtion line from readme?

mkdir /captain && docker run -v /var/run/docker.sock:/var/run/docker.sock dockersaturn/captainduckduck

When you ran this, did it output anything?

run the following commands:
docker service ls and docker service ps captain-captain to see if there is a running instance of Captain.

PS: answer to your second question: when you run the Captain installation line, it automatically starts a swarm and joins it. It does not work if there is an existing swarm (to avoid accidential double installation due to human error)

from caprover.

tuanphpvn avatar tuanphpvn commented on May 18, 2024

Here is the output. Please review

error

from caprover.

githubsaturn avatar githubsaturn commented on May 18, 2024

It means CaptainDuckDuck is failing to start. Maybe a not clean captain directory? If you need more help, let's chat over Slack

from caprover.

sadeden avatar sadeden commented on May 18, 2024

Hi,
I have exactly the same issue here. Any command that we could issue to help debug this ?

from caprover.

sadeden avatar sadeden commented on May 18, 2024

Actually I found the --no-trunc option of docker service ps and I have another clue :
starting container failed: subnet sandbox join failed for "10.255.0.0/16": error creating vxlan interface: operation not supported This is the error I get. Will investigate this and come back with a solution... I hope.

from caprover.

sadeden avatar sadeden commented on May 18, 2024

@tuanphpvn maybe you have the same issue as me. My dedicated server came with an "optimised" version of linux Kernel missing the CONFIG_VXLAN option. You should install/compile a proper one.
Hope it helps.

from caprover.

githubsaturn avatar githubsaturn commented on May 18, 2024

@sadeden thanks for the info. Mind sharing what server provider you use?

from caprover.

sadeden avatar sadeden commented on May 18, 2024

I'm using OVH services.

from caprover.

CoreyTrombley avatar CoreyTrombley commented on May 18, 2024

Even after I disabled the firewall ufw disable, I still was unable to connect to external_ip:3000. I checked the logs, everything seemed fine. docker service ps captain-captain did not contain any errors. I really don't know where to go from here.

Any ides or assistance would be greatly appreciated!

edit
I was using a digital ocean $5 one-click docker instance.

from caprover.

iszlai avatar iszlai commented on May 18, 2024

Have the same issue on linode :

leheli@localhost:/captain$ docker run -v /var/run/docker.sock:/var/run/docker.sock dockersaturn/captainduckduck
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm info lifecycle [email protected]~prestart: [email protected]
npm info lifecycle [email protected]~start: [email protected]

> [email protected] start /usr/src/app
> node ./bin/www

Captain Starting ...
Installing Captain Service ...
December 11th 2017, 9:56:07.951 pm    Starting swarm at 172.104.246.242:2377
Swarm started: 0wkozycr6ewfo9v12pnjpwn9i
npm info lifecycle [email protected]~poststart: [email protected]
npm info ok
leheli@localhost:/captain$ netstat -tunap
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      -
tcp        0      0 0.0.0.0:8000            0.0.0.0:*               LISTEN      5852/python
tcp        0      0 172.104.246.242:22      80.99.202.213:52946     ESTABLISHED -
tcp        0      0 172.104.246.242:22      115.238.245.2:60187     TIME_WAIT   -
tcp        0    432 172.104.246.242:22      80.99.202.213:53029     ESTABLISHED -
tcp6       0      0 :::22                   :::*                    LISTEN      -
tcp6       0      0 :::2377                 :::*                    LISTEN      -
tcp6       0      0 :::7946                 :::*                    LISTEN      -
udp6       0      0 :::7946                 :::*                                -
leheli@localhost:/captain$ docker ps -a
CONTAINER ID        IMAGE                                COMMAND             CREATED              STATUS                          PORTS               NAMES
d98838d3b6a7        dockersaturn/captainduckduck:0.2.2   "npm start"         4 seconds ago        Created                                             captain-captain.1.qyeh6dpw8byuc38zt9e4uzvwe
fbf5b1ec70e8        dockersaturn/captainduckduck:0.2.2   "npm start"         25 seconds ago       Created                                             captain-captain.1.rm7chbuoaga3d54ht8mg5xahn
c2a766911101        dockersaturn/captainduckduck:0.2.2   "npm start"         51 seconds ago       Created                                             captain-captain.1.wzv7n84sy6z7hgylbmg0sddj1
c358847575ed        dockersaturn/captainduckduck:0.2.2   "npm start"         56 seconds ago       Created                                             captain-captain.1.r8t4hpwzg4mykt4sk0th1rxvb
ea517e2421d6        dockersaturn/captainduckduck:0.2.2   "npm start"         About a minute ago   Created                                             captain-captain.1.utz8rjgeiqu4bnha7nefgkqun
ccf1da83b1fc        dockersaturn/captainduckduck         "npm start"         About a minute ago   Exited (0) About a minute ago                       jovial_liskov
16f5a30aff46        dockersaturn/captainduckduck         "npm start"         2 minutes ago        Exited (0) 2 minutes ago                            gifted_shockley
f8df66d79065        dockersaturn/captainduckduck         "npm start"         17 minutes ago       Exited (0) 17 minutes ago                           laughing_hermann
leheli@localhost:/captain$ docker service logs captain-captain --follow

After checking

leheli@localhost:/captain$ docker service ps captain-captain --no-trunc
ID                          NAME                    IMAGE                                NODE                DESIRED STATE       CURRENT STATE                      ERROR                                                                                                                                  PORTS
vej8a3ks59gb008h3fmtvq5dv   captain-captain.1       dockersaturn/captainduckduck:0.2.2   localhost           Ready               Preparing less than a second ago
y30ncpz0gcn3dwzm7dv2k134y    \_ captain-captain.1   dockersaturn/captainduckduck:0.2.2   localhost           Shutdown            Failed about a minute ago          "starting container failed: subnet sandbox join failed for "10.255.0.0/16": error creating vxlan interface: operation not supported"
ypds5anzcszyoxklvksc10sam    \_ captain-captain.1   dockersaturn/captainduckduck:0.2.2   localhost           Shutdown            Failed 3 minutes ago               "starting container failed: subnet sandbox join failed for "10.255.0.0/16": error creating vxlan interface: operation not supported"
yvizbrcrfku1e5xungr15isx1    \_ captain-captain.1   dockersaturn/captainduckduck:0.2.2   localhost           Shutdown            Failed 3 minutes ago               "starting container failed: subnet sandbox join failed for "10.255.0.0/16": error creating vxlan interface: operation not supported"
xf957gkai44cj3f50iq4yuao9    \_ captain-captain.1   dockersaturn/captainduckduck:0.2.2   localhost           Shutdown            Failed 4 minutes ago               "starting container failed: subnet sandbox join failed for "10.255.0.0/16": error creating vxlan interface: operation not supported"
leheli@localhost:/captain$

from caprover.

githubsaturn avatar githubsaturn commented on May 18, 2024

@iszlai this is a typical issue with Docker and Linode. They are using a version of kernel with some limited functionalities. Someone needs to tell them they should default this options to enabled 😕 Anyways.... there is a discussion and possible solution with Linode here: docker/machine#2753 (comment)

from caprover.

githubsaturn avatar githubsaturn commented on May 18, 2024

@CoreyTrombley

  • Can you please output the result of docker service ps captain-captain --no-trunc?
  • on your server please do curl localhost:3000
  • Did you use captainduckduck serversetup and after that you cannot connect to IP:3000? If that's the case, then there is no problem. After initial setup, HTTPS will be enforced and you can only access captain using the URL e.g. captain.something.domain.com

from caprover.

CoreyTrombley avatar CoreyTrombley commented on May 18, 2024

@githubsaturn as of today, I followed the steps and everything seems to be working. It might have been that I was on a public wifi at the time that i needed to "accept" some terms. There may have been some router firewall that I could not control.

Thank you for your support in this matter.

from caprover.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.