LexPredict / lexpredict-contraxsuite

LexPredict ContraxSuite
GNU Affero General Public License v3.0
167 stars 62 forks source link

Ports in use when running compose up #31

Closed LegalBIGuy closed 6 years ago

LegalBIGuy commented 6 years ago

I have been getting the same errors when trying to run contraxsuite. Attached is a log when you can see I am updating to the latest version, verifying that all application ports are not in use, verifying all services were created, and then when I run the suite, I get failures with port already in use for kibana and uwsgi. Here is my terminal session:

hainsworths@SEH-Ubuntu-T500:~/lexpredict-contraxsuite-master/docker$ sudo ./update_local_contraxsuite_to_latest_version.sh [sudo] password for hainsworths: === This script will update local Contraxsuite instance to the latest docker image === Assume Contraxsuite is configured in ./setenv_local.sh file. === Pulling contraxsuite image from DockerHub Using default tag: latest latest: Pulling from lexpredict/lexpredict-contraxsuite Digest: sha256:91b61f160a8c7b3cee831db1d2aa4c78decc7c41994d65159aefcfe7c72a9175 Status: Downloaded newer image for lexpredict/lexpredict-contraxsuite:latest === Deploying Contraxsuite stack to Docker Swarm... ~/lexpredict-contraxsuite-master/docker/deploy ~/lexpredict-contraxsuite-master/docker ~/lexpredict-contraxsuite-master/docker ~/lexpredict-contraxsuite-master/docker/deploy ~/lexpredict-contraxsuite-master/docker ~/lexpredict-contraxsuite-master/docker/deploy ~/lexpredict-contraxsuite-master/docker Creating service contraxsuite_contrax-celery Creating service contraxsuite_contrax-rabbitmq Creating service contraxsuite_contrax-curator_metricbeat Creating service contraxsuite_contrax-filebeat Creating service contraxsuite_contrax-flower Creating service contraxsuite_contrax-jupyter Creating service contraxsuite_contrax-curator_filebeat Creating service contraxsuite_contrax-metricbeat Creating service contraxsuite_contrax-kibana Creating service contraxsuite_contrax-elasticsearch Creating service contraxsuite_contrax-tika Creating service contraxsuite_contrax-uwsgi Creating service contraxsuite_contrax-redis Creating service contraxsuite_contrax-db ~/lexpredict-contraxsuite-master/docker hainsworths@SEH-Ubuntu-T500:~/lexpredict-contraxsuite-master/docker$ sudo lsof -i COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME systemd-r 739 systemd-resolve 12u IPv4 20657 0t0 UDP localhost:domain systemd-r 739 systemd-resolve 13u IPv4 20658 0t0 TCP localhost:domain (LISTEN) avahi-dae 825 avahi 12u IPv4 24088 0t0 UDP :mdns avahi-dae 825 avahi 13u IPv6 24089 0t0 UDP :mdns avahi-dae 825 avahi 14u IPv4 24090 0t0 UDP :45476 avahi-dae 825 avahi 15u IPv6 24091 0t0 UDP :49363 dhclient 1494 root 6u IPv4 27695 0t0 UDP :bootpc dockerd 1575 root 20u IPv6 38681 0t0 TCP :7946 (LISTEN) dockerd 1575 root 21u IPv6 38682 0t0 UDP :7946 dockerd 1575 root 25u IPv6 38513 0t0 TCP :2377 (LISTEN) dhclient 1641 root 5u IPv6 28167 0t0 UDP SEH-Ubuntu-T500:dhcpv6-client cupsd 16866 root 6u IPv6 95668 0t0 TCP ip6-localhost:ipp (LISTEN) cupsd 16866 root 7u IPv4 95669 0t0 TCP localhost:ipp (LISTEN) cups-brow 16874 root 7u IPv4 95692 0t0 UDP :ipp hainsworths@SEH-Ubuntu-T500:~/lexpredict-contraxsuite-master/docker$ sudo docker service ls ID NAME MODE REPLICAS IMAGE PORTS sipkhbym2qsw contraxsuite_contrax-celery replicated 2/2 lexpredict/lexpredict-contraxsuite:latest
i7eplqrr0pk7 contraxsuite_contrax-curator_filebeat replicated 1/1 stefanprodan/es-curator-cron:latest
zbliyteohgee contraxsuite_contrax-curator_metricbeat replicated 1/1 stefanprodan/es-curator-cron:latest
q2croh89kysc contraxsuite_contrax-db replicated 0/1 postgres:9.6
1cda0c35c3r8 contraxsuite_contrax-elasticsearch replicated 1/1 docker.elastic.co/elasticsearch/elasticsearch-oss:6.2.4
pgm3hhl3naws contraxsuite_contrax-filebeat global 0/1 docker.elastic.co/beats/filebeat:6.2.4
a440th0p8lpb contraxsuite_contrax-flower replicated 1/1 lexpredict/lexpredict-contraxsuite:latest
:5555->5555/tcp 8e4dcjx5pvd9 contraxsuite_contrax-jupyter replicated 1/1 lexpredict/lexpredict-contraxsuite:latest :8888->8888/tcp zlr6jdfufwbw contraxsuite_contrax-kibana replicated 0/1 docker.elastic.co/kibana/kibana-oss:6.2.4 :5601->5601/tcp e5dvlujpvxbv contraxsuite_contrax-metricbeat global 0/1 docker.elastic.co/beats/metricbeat:6.2.4
5o6fqquuj0jh contraxsuite_contrax-rabbitmq replicated 1/1 rabbitmq:3-management
snv12uw9vcwa contraxsuite_contrax-redis replicated 0/1 redis:latest
6jzbepq1dhqb contraxsuite_contrax-tika replicated 0/3 lexpredict/tika-server:latest
6mtzzahmby72 contraxsuite_contrax-uwsgi replicated 0/1 lexpredict/lexpredict-contraxsuite:latest :65080->8080/tcp, :65443->4443/tcp hainsworths@SEH-Ubuntu-T500:~/lexpredict-contraxsuite-master/docker$ ls build cors_support deploy outer_nginx_config.example README.md setenv.sh setup_local_contraxsuite_ubuntu_16_04.sh update_local_contraxsuite_to_latest_version.sh util hainsworths@SEH-Ubuntu-T500:~/lexpredict-contraxsuite-master/docker$ cd .. hainsworths@SEH-Ubuntu-T500:~/lexpredict-contraxsuite-master$ ls contraxsuite_services 'Development Guide.md' docker documentation LICENSE notebook-examples README.md static version.txt hainsworths@SEH-Ubuntu-T500:~/lexpredict-contraxsuite-master$ cd docker hainsworths@SEH-Ubuntu-T500:~/lexpredict-contraxsuite-master/docker$ ls build cors_support deploy outer_nginx_config.example README.md setenv.sh setup_local_contraxsuite_ubuntu_16_04.sh update_local_contraxsuite_to_latest_version.sh util hainsworths@SEH-Ubuntu-T500:~/lexpredict-contraxsuite-master/docker$ cd deploy hainsworths@SEH-Ubuntu-T500:~/lexpredict-contraxsuite-master/docker/deploy$ ls dependencies elasticsearch.yml.template new_contraxsuite_cluster_ubuntu_16_04.sh run-contraxsuite-docker-compose.sh deploy-contraxsuite-to-swarm-cluster.sh filebeat.yml.template push-image-from-dockerhub-to-private-registry.sh temp docker-compose.yml metricbeat.yml.template registry undeploy-deploy-contraxsuite-from-swarm-cluster.sh hainsworths@SEH-Ubuntu-T500:~/lexpredict-contraxsuite-master/docker/deploy$ sudo ./run-contraxsuite-docker-compose.sh ~/lexpredict-contraxsuite-master/docker ~/lexpredict-contraxsuite-master/docker/deploy ~/lexpredict-contraxsuite-master/docker/deploy WARNING: The DOCKER_ELASTICSEARCH_CPUS variable is not set. Defaulting to a blank string. WARNING: The DOCKER_TIKA_CPUS variable is not set. Defaulting to a blank string. WARNING: Some services (contrax-celery, contrax-db, contrax-elasticsearch, contrax-filebeat, contrax-flower, contrax-jupyter, contrax-kibana, contrax-metricbeat, contrax-rabbitmq, contrax-redis, contrax-tika, contrax-uwsgi) use the 'deploy' key, which will be ignored. Compose does not support 'deploy' configuration - use docker stack deploy to deploy to a swarm. WARNING: Some services (contrax-elasticsearch, contrax-filebeat, contrax-metricbeat) use the 'configs' key, which will be ignored. Compose does not support 'configs' configuration - use docker stack deploy to deploy to a swarm. WARNING: The Docker Engine you're using is running in swarm mode.

Compose does not use swarm mode to deploy services to multiple nodes in a swarm. All containers will be scheduled on the current node.

To deploy your application across the swarm, use docker stack deploy.

Starting deploy_contrax-curator_metricbeat_1 ... Starting deploy_contrax-curator_metricbeat_1 Starting deploy_contrax-tika_1 ... Starting deploy_contrax-rabbitmq_1 ... Starting deploy_contrax-rabbitmq_1 Starting deploy_contrax-tika_1 Starting deploy_contrax-elasticsearch_1 ... Starting deploy_contrax-elasticsearch_1 Starting deploy_contrax-db_1 ... Starting deploy_contrax-redis_1 ... Starting deploy_contrax-db_1 Starting deploy_contrax-redis_1 Starting deploy_contrax-curator_filebeat_1 ... Starting deploy_contrax-elasticsearch_1 ... done Starting deploy_contrax-kibana_1 ... Starting deploy_contrax-db_1 ... done Recreating deploy_contrax-celery_1 ... Starting deploy_contrax-kibana_1 ... error

ERROR: for deploy_contrax-kibana_1 Cannot start service contrax-kibana: driver failed programming external connectivity on endpoint deploy_contrax-kibana_1 (34f0c3da7705daa767Recreating deploy_contrax-celery_1 ... done Recreating deploy_contrax-uwsgi_1 ... Recreating deploy_contrax-uwsgi_1 ... error

ERROR: for deploy_contrax-uwsgi_1 Cannot start service contrax-uwsgi: driver failed programming external connectivity on endpoint deploy_contrax-uwsgi_1 (fba3fa1470e775e9b8da0ff1e5434ca1c81533c63de2df746935296bb9c1cacd): Error starting userland proxy: listen tcp 127.0.0.1:65443: bind: address already in use

ERROR: for contrax-kibana Cannot start service contrax-kibana: driver failed programming external connectivity on endpoint deploy_contrax-kibana_1 (34f0c3da7705daa767ca2e50716c6da9800025fbdaf64836a5dcdc4efe7586c6): Error starting userland proxy: listen tcp 127.0.0.1:5601: bind: address already in use

ERROR: for contrax-uwsgi Cannot start service contrax-uwsgi: driver failed programming external connectivity on endpoint deploy_contrax-uwsgi_1 (fba3fa1470e775e9b8da0ff1e5434ca1c81533c63de2df746935296bb9c1cacd): Error starting userland proxy: listen tcp 127.0.0.1:65443: bind: address already in use ERROR: Encountered errors while bringing up the project.

LegalBIGuy commented 6 years ago

I was running this on Ubuntu 18.04 LTS. I created a new server 16.04 LTS, and it is starting up correctly. You can ignore this issue. I am looking forward to taking it for a spin.