xuggler: no error but , file still not converted to 3gp - video-encoding

i am using xuggler to convert file to 3gp format. Now afetr a lot of googling i have come to a point where i get no error on the console but the converted file is just 65Kbs as opposed to the 3Mb source file and if i try to play it , it says the file has no playable streams. Its a simple program that should just convert the file and stop , but it keeps on working as if its busy, but after enabling debug , the debug output on console just stops and nothing happens. Here is the console output
2011-09-13 11:06:21,551 [main] DEBUG c.x.mediatool.MediaDebugListener - onOpen()
2011-09-13 11:06:21,556 [main] DEBUG com.xuggle.xuggler - Closing dangling Container (../../../../../../../csrc/com/xuggle/xuggler/Container.cpp:83)
2011-09-13 11:06:21,580 [main] DEBUG c.x.mediatool.MediaDebugListener - onAddStream(0)
2011-09-13 11:06:21,581 [main] DEBUG c.x.mediatool.MediaDebugListener - onAddStream(1)
2011-09-13 11:06:21,697 [main] DEBUG c.x.mediatool.MediaDebugListener - onOpenStream(0)
2011-09-13 11:06:21,700 [main] DEBUG c.x.mediatool.MediaDebugListener - onOpenStream(1)
2011-09-13 11:06:21,702 [main] DEBUG c.x.mediatool.MediaDebugListener - onWriteHeader()
2011-09-13 11:06:21,703 [main] DEBUG c.x.mediatool.MediaDebugListener - onAudioSamples(com.xuggle.xuggler.IAudioSamples#-1877078776[sample rate:8000;channels:1;format:FMT_S16;time stamp:440000;complete:true;num samples:200;size:400;key:true;time base:1/1000000;], 1)
2011-09-13 11:06:21,704 [main] DEBUG c.x.mediatool.MediaDebugListener - onAudioSamples(com.xuggle.xuggler.IAudioSamples#-1877078152[sample rate:8000;channels:1;format:FMT_S16;time stamp:465122;complete:true;num samples:208;size:416;key:true;time base:1/1000000;], 1)
2011-09-13 11:06:21,705 [main] DEBUG c.x.mediatool.MediaDebugListener - onAudioSamples(com.xuggle.xuggler.IAudioSamples#-1877078152[sample rate:8000;channels:1;format:FMT_S16;time stamp:491244;complete:true;num samples:209;size:418;key:true;time base:1/1000000;], 1)
2011-09-13 11:06:21,717 [main] DEBUG c.x.mediatool.MediaDebugListener - onWritePacket(com.xuggle.xuggler.IPacket#-1898647008[complete:true;dts:440000;pts:440000;size:25749;key:true;flags:1;stream index:0;duration:1;position:-1;time base:1/1000000;])
2011-09-13 11:06:21,718 [main] DEBUG c.x.mediatool.MediaDebugListener - onVideoPicture(com.xuggle.xuggler.IVideoPicture#-1877121728[pixel type:YUV420P;width:320;height:240;time stamp:440000;complete:true;size:115200;key:true;time base:1/1000000;], null, 0)
2011-09-13 11:06:21,723 [main] DEBUG c.x.mediatool.MediaDebugListener - onWritePacket(com.xuggle.xuggler.IPacket#-1877553928[complete:true;dts:473367;pts:473367;size:15732;key:false;flags:0;stream index:0;duration:1;position:-1;time base:1/1000000;])
2011-09-13 11:06:21,724 [main] DEBUG c.x.mediatool.MediaDebugListener - onVideoPicture(com.xuggle.xuggler.IVideoPicture#-1877009568[pixel type:YUV420P;width:320;height:240;time stamp:473367;complete:true;size:115200;key:true;time base:1/1000000;], null, 0)
2011-09-13 11:06:21,728 [main] DEBUG c.x.mediatool.MediaDebugListener - onWritePacket(com.xuggle.xuggler.IPacket#-1898734664[complete:true;dts:506733;pts:506733;size:12211;key:false;flags:0;stream index:0;duration:1;position:-1;time base:1/1000000;])
2011-09-13 11:06:21,729 [main] DEBUG c.x.mediatool.MediaDebugListener - onVideoPicture(com.xuggle.xuggler.IVideoPicture#-1877009568[pixel type:YUV420P;width:320;height:240;time stamp:506733;complete:true;size:115200;key:true;time base:1/1000000;], null, 0)
2011-09-13 11:06:21,737 [main] DEBUG c.x.mediatool.MediaDebugListener - onWritePacket(com.xuggle.xuggler.IPacket#-1898792584[complete:true;dts:540100;pts:540100;size:12179;key:false;flags:0;stream index:0;duration:1;position:-1;time base:1/1000000;])
2011-09-13 11:06:21,738 [main] DEBUG c.x.mediatool.MediaDebugListener - onVideoPicture(com.xuggle.xuggler.IVideoPicture#-1877009568[pixel type:YUV420P;width:320;height:240;time stamp:540100;complete:true;size:115200;key:true;time base:1/1000000;], null, 0)
2011-09-13 11:06:21,742 [main] DEBUG c.x.mediatool.MediaDebugListener - onWritePacket(com.xuggle.xuggler.IPacket#-1898779032[complete:true;dts:573467;pts:573467;size:11425;key:false;flags:0;stream index:0;duration:1;position:-1;time base:1/1000000;])
2011-09-13 11:06:21,743 [main] DEBUG c.x.mediatool.MediaDebugListener - onVideoPicture(com.xuggle.xuggler.IVideoPicture#-1877009568[pixel type:YUV420P;width:320;height:240;time stamp:573467;complete:true;size:115200;key:true;time base:1/1000000;], null, 0)
2011-09-13 11:06:21,747 [main] DEBUG c.x.mediatool.MediaDebugListener - onWritePacket(com.xuggle.xuggler.IPacket#-1877553928[complete:true;dts:606833;pts:606833;size:13114;key:false;flags:0;stream index:0;duration:1;position:-1;time base:1/1000000;])
2011-09-13 11:06:21,748 [main] DEBUG c.x.mediatool.MediaDebugListener - onVideoPicture(com.xuggle.xuggler.IVideoPicture#-1877009568[pixel type:YUV420P;width:320;height:240;time stamp:606833;complete:true;size:115200;key:true;time base:1/1000000;], null, 0)
2011-09-13 11:06:21,752 [main] DEBUG c.x.mediatool.MediaDebugListener - onWritePacket(com.xuggle.xuggler.IPacket#-1898647008[complete:true;dts:640200;pts:640200;size:13063;key:false;flags:0;stream index:0;duration:1;position:-1;time base:1/1000000;])
2011-09-13 11:06:21,753 [main] DEBUG c.x.mediatool.MediaDebugListener - onVideoPicture(com.xuggle.xuggler.IVideoPicture#-1877009568[pixel type:YUV420P;width:320;height:240;time stamp:640200;complete:true;size:115200;key:true;time base:1/1000000;], null, 0)
2011-09-13 11:06:21,754 [main] DEBUG c.x.mediatool.MediaDebugListener - onAudioSamples(com.xuggle.xuggler.IAudioSamples#-1877013536[sample rate:8000;channels:1;format:FMT_S16;time stamp:517492;complete:true;num samples:209;size:418;key:true;time base:1/1000000;], 1)
2011-09-13 11:06:21,755 [main] DEBUG c.x.mediatool.MediaDebugListener - onAudioSamples(com.xuggle.xuggler.IAudioSamples#-1898957664[sample rate:8000;channels:1;format:FMT_S16;time stamp:543739;complete:true;num samples:209;size:418;key:true;time base:1/1000000;], 1)
2011-09-13 11:06:21,756 [main] DEBUG c.x.mediatool.MediaDebugListener - onAudioSamples(com.xuggle.xuggler.IAudioSamples#-1877009728[sample rate:8000;channels:1;format:FMT_S16;time stamp:569987;complete:true;num samples:209;size:418;key:true;time base:1/1000000;], 1)
2011-09-13 11:06:21,761 [main] DEBUG c.x.mediatool.MediaDebugListener - onWritePacket(com.xuggle.xuggler.IPacket#-1898734664[complete:true;dts:673567;pts:673567;size:12108;key:false;flags:0;stream index:0;duration:1;position:-1;time base:1/1000000;])
2011-09-13 11:06:21,761 [main] DEBUG c.x.mediatool.MediaDebugListener - onVideoPicture(com.xuggle.xuggler.IVideoPicture#-1877121728[pixel type:YUV420P;width:320;height:240;time stamp:673567;complete:true;size:115200;key:true;time base:1/1000000;], null, 0)
2011-09-13 11:06:21,766 [main] DEBUG c.x.mediatool.MediaDebugListener - onWritePacket(com.xuggle.xuggler.IPacket#-1877018296[complete:true;dts:706933;pts:706933;size:11122;key:false;flags:0;stream index:0;duration:1;position:-1;time base:1/1000000;])
2011-09-13 11:06:21,766 [main] DEBUG c.x.mediatool.MediaDebugListener - onVideoPicture(com.xuggle.xuggler.IVideoPicture#-1877009568[pixel type:YUV420P;width:320;height:240;time stamp:706933;complete:true;size:115200;key:true;time base:1/1000000;], null, 0)
2011-09-13 11:06:21,767 [main] DEBUG c.x.mediatool.MediaDebugListener - onAudioSamples(com.xuggle.xuggler.IAudioSamples#-1898952704[sample rate:8000;channels:1;format:FMT_S16;time stamp:596234;complete:true;num samples:209;size:418;key:true;time base:1/1000000;], 1)
2011-09-13 11:06:21,768 [main] DEBUG c.x.mediatool.MediaDebugListener - onAudioSamples(com.xuggle.xuggler.IAudioSamples#-1877013536[sample rate:8000;channels:1;format:FMT_S16;time stamp:622482;complete:true;num samples:209;size:418;key:true;time base:1/1000000;], 1)
2011-09-13 11:06:21,769 [main] DEBUG c.x.mediatool.MediaDebugListener - onAudioSamples(com.xuggle.xuggler.IAudioSamples#-1898957664[sample rate:8000;channels:1;format:FMT_S16;time stamp:648729;complete:true;num samples:209;size:418;key:true;time base:1/1000000;], 1)
2011-09-13 11:06:21,774 [main] DEBUG c.x.mediatool.MediaDebugListener - onWritePacket(com.xuggle.xuggler.IPacket#-1898734664[complete:true;dts:740300;pts:740300;size:11072;key:false;flags:0;stream index:0;duration:1;position:-1;time base:1/1000000;])
2011-09-13 11:06:21,774 [main] DEBUG c.x.mediatool.MediaDebugListener - onVideoPicture(com.xuggle.xuggler.IVideoPicture#-1877121728[pixel type:YUV420P;width:320;height:240;time stamp:740300;complete:true;size:115200;key:true;time base:1/1000000;], null, 0)
2011-09-13 11:06:21,778 [main] DEBUG c.x.mediatool.MediaDebugListener - onWritePacket(com.xuggle.xuggler.IPacket#-1898647008[complete:true;dts:773667;pts:773667;size:10359;key:false;flags:0;stream index:0;duration:1;position:-1;time base:1/1000000;])
2011-09-13 11:06:21,779 [main] DEBUG c.x.mediatool.MediaDebugListener - onVideoPicture(com.xuggle.xuggler.IVideoPicture#-1877009568[pixel type:YUV420P;width:320;height:240;time stamp:773667;complete:true;size:115200;key:true;time base:1/1000000;], null, 0)
2011-09-13 11:06:21,783 [main] DEBUG c.x.mediatool.MediaDebugListener - onWritePacket(com.xuggle.xuggler.IPacket#-1877018296[complete:true;dts:807033;pts:807033;size:10871;key:false;flags:0;stream index:0;duration:1;position:-1;time base:1/1000000;])
2011-09-13 11:06:21,786 [main] DEBUG c.x.mediatool.MediaDebugListener - onVideoPicture(com.xuggle.xuggler.IVideoPicture#-1877121728[pixel type:YUV420P;width:320;height:240;time stamp:807033;complete:true;size:115200;key:true;time base:1/1000000;], null, 0)
2011-09-13 11:06:21,790 [main] DEBUG c.x.mediatool.MediaDebugListener - onWritePacket(com.xuggle.xuggler.IPacket#-1897935648[complete:true;dts:3520;pts:3520;size:662;key:true;flags:1;stream index:1;duration:1024;position:-1;time base:1/8000;])
2011-09-13 11:06:21,791 [main] DEBUG c.x.mediatool.MediaDebugListener - onAudioSamples(com.xuggle.xuggler.IAudioSamples#-1877009728[sample rate:8000;channels:1;format:FMT_S16;time stamp:674977;complete:true;num samples:209;size:418;key:true;time base:1/1000000;], 1)
2011-09-13 11:06:21,792 [main] DEBUG c.x.mediatool.MediaDebugListener - onAudioSamples(com.xuggle.xuggler.IAudioSamples#-1898952704[sample rate:8000;channels:1;format:FMT_S16;time stamp:701224;complete:true;num samples:209;size:418;key:true;time base:1/1000000;], 1)
2011-09-13 11:06:21,793 [main] DEBUG c.x.mediatool.MediaDebugListener - onAudioSamples(com.xuggle.xuggler.IAudioSamples#-1877013536[sample rate:8000;channels:1;format:FMT_S16;time stamp:727471;complete:true;num samples:209;size:418;key:true;time base:1/1000000;], 1)
2011-09-13 11:06:21,797 [main] DEBUG c.x.mediatool.MediaDebugListener - onWritePacket(com.xuggle.xuggler.IPacket#-1898792584[complete:true;dts:840400;pts:840400;size:29105;key:true;flags:1;stream index:0;duration:1;position:-1;time base:1/1000000;])
2011-09-13 11:06:21,798 [main] DEBUG c.x.mediatool.MediaDebugListener - onVideoPicture(com.xuggle.xuggler.IVideoPicture#-1877009840[pixel type:YUV420P;width:320;height:240;time stamp:840400;complete:true;size:115200;key:true;time base:1/1000000;], null, 0)
2011-09-13 11:06:21,802 [main] DEBUG c.x.mediatool.MediaDebugListener - onWritePacket(com.xuggle.xuggler.IPacket#-1877018296[complete:true;dts:873767;pts:873767;size:9525;key:false;flags:0;stream index:0;duration:1;position:-1;time base:1/1000000;])
2011-09-13 11:06:21,803 [main] DEBUG c.x.mediatool.MediaDebugListener - onVideoPicture(com.xuggle.xuggler.IVideoPicture#-1877009840[pixel type:YUV420P;width:320;height:240;time stamp:873767;complete:true;size:115200;key:true;time base:1/1000000;], null, 0)
2011-09-13 11:06:21,806 [main] DEBUG c.x.mediatool.MediaDebugListener - onWritePacket(com.xuggle.xuggler.IPacket#-1898792584[complete:true;dts:907133;pts:907133;size:6788;key:false;flags:0;stream index:0;duration:1;position:-1;time base:1/1000000;])
2011-09-13 11:06:21,807 [main] DEBUG c.x.mediatool.MediaDebugListener - onVideoPicture(com.xuggle.xuggler.IVideoPicture#-1877009840[pixel type:YUV420P;width:320;height:240;time stamp:907133;complete:true;size:115200;key:true;time base:1/1000000;], null, 0)
2011-09-13 11:06:21,808 [main] DEBUG c.x.mediatool.MediaDebugListener - onAudioSamples(com.xuggle.xuggler.IAudioSamples#-1898957664[sample rate:8000;channels:1;format:FMT_S16;time stamp:753719;complete:true;num samples:209;size:418;key:true;time base:1/1000000;], 1)
2011-09-13 11:06:21,809 [main] DEBUG c.x.mediatool.MediaDebugListener - onAudioSamples(com.xuggle.xuggler.IAudioSamples#-1877009728[sample rate:8000;channels:1;format:FMT_S16;time stamp:779966;complete:true;num samples:209;size:418;key:true;time base:1/1000000;], 1)
2011-09-13 11:06:22,884 [main] DEBUG c.x.mediatool.MediaDebugListener - onWritePacket(com.xuggle.xuggler.IPacket#-1897998320[complete:true;dts:4553;pts:4553;size:18;key:true;flags:1;stream index:1;duration:1024;position:-1;time base:1/8000;])
2011-09-13 11:06:22,885 [main] DEBUG c.x.mediatool.MediaDebugListener - onAudioSamples(com.xuggle.xuggler.IAudioSamples#-1898952704[sample rate:8000;channels:1;format:FMT_S16;time stamp:806214;complete:true;num samples:209;size:418;key:true;time base:1/1000000;], 1)
2011-09-13 11:06:22,888 [main] DEBUG c.x.mediatool.MediaDebugListener - onWritePacket(com.xuggle.xuggler.IPacket#-1877008432[complete:true;dts:940500;pts:940500;size:9728;key:false;flags:0;stream index:0;duration:1;position:-1;time base:1/1000000;])
2011-09-13 11:06:22,889 [main] DEBUG c.x.mediatool.MediaDebugListener - onVideoPicture(com.xuggle.xuggler.IVideoPicture#-1877009840[pixel type:YUV420P;width:320;height:240;time stamp:940500;complete:true;size:115200;key:true;time base:1/1000000;], null, 0)
2011-09-13 11:06:22,893 [main] DEBUG c.x.mediatool.MediaDebugListener - onWritePacket(com.xuggle.xuggler.IPacket#-1898647008[complete:true;dts:973867;pts:973867;size:10757;key:false;flags:0;stream index:0;duration:1;position:-1;time base:1/1000000;])
2011-09-13 11:06:22,893 [main] DEBUG c.x.mediatool.MediaDebugListener - onVideoPicture(com.xuggle.xuggler.IVideoPicture#-1877009840[pixel type:YUV420P;width:320;height:240;time stamp:973867;complete:true;size:115200;key:true;time base:1/1000000;], null, 0)
2011-09-13 11:06:22,894 [main] DEBUG c.x.mediatool.MediaDebugListener - onAudioSamples(com.xuggle.xuggler.IAudioSamples#-1877013536[sample rate:8000;channels:1;format:FMT_S16;time stamp:832461;complete:true;num samples:209;size:418;key:true;time base:1/1000000;], 1)
2011-09-13 11:06:22,895 [main] DEBUG c.x.mediatool.MediaDebugListener - onAudioSamples(com.xuggle.xuggler.IAudioSamples#-1898957664[sample rate:8000;channels:1;format:FMT_S16;time stamp:858709;complete:true;num samples:209;size:418;key:true;time base:1/1000000;], 1)
2011-09-13 11:06:22,896 [main] DEBUG c.x.mediatool.MediaDebugListener - onAudioSamples(com.xuggle.xuggler.IAudioSamples#-1877009728[sample rate:8000;channels:1;format:FMT_S16;time stamp:884956;complete:true;num samples:209;size:418;key:true;time base:1/1000000;], 1)
2011-09-13 11:06:22,900 [main] DEBUG c.x.mediatool.MediaDebugListener - onWritePacket(com.xuggle.xuggler.IPacket#-1877553928[complete:true;dts:1007233;pts:1007233;size:9689;key:false;flags:0;stream index:0;duration:1;position:-1;time base:1/1000000;])
2011-09-13 11:06:22,900 [main] DEBUG c.x.mediatool.MediaDebugListener - onVideoPicture(com.xuggle.xuggler.IVideoPicture#-1877009840[pixel type:YUV420P;width:320;height:240;time stamp:1007233;complete:true;size:115200;key:true;time base:1/1000000;], null, 0)
2011-09-13 11:06:22,905 [main] DEBUG c.x.mediatool.MediaDebugListener - onWritePacket(com.xuggle.xuggler.IPacket#-1877079312[complete:true;dts:1040600;pts:1040600;size:15668;key:false;flags:0;stream index:0;duration:1;position:-1;time base:1/1000000;])
2011-09-13 11:06:22,905 [main] DEBUG c.x.mediatool.MediaDebugListener - onVideoPicture(com.xuggle.xuggler.IVideoPicture#-1877009840[pixel type:YUV420P;width:320;height:240;time stamp:1040600;complete:true;size:115200;key:true;time base:1/1000000;], null, 0)
2011-09-13 11:06:22,909 [main] DEBUG c.x.mediatool.MediaDebugListener - onWritePacket(com.xuggle.xuggler.IPacket#-1898647008[complete:true;dts:1073967;pts:1073967;size:14610;key:false;flags:0;stream index:0;duration:1;position:-1;time base:1/1000000;])
2011-09-13 11:06:22,910 [main] DEBUG c.x.mediatool.MediaDebugListener - onVideoPicture(com.xuggle.xuggler.IVideoPicture#-1877009840[pixel type:YUV420P;width:320;height:240;time stamp:1073967;complete:true;size:115200;key:true;time base:1/1000000;], null, 0)
2011-09-13 11:06:22,911 [main] DEBUG c.x.mediatool.MediaDebugListener - onAudioSamples(com.xuggle.xuggler.IAudioSamples#-1898952704[sample rate:8000;channels:1;format:FMT_S16;time stamp:911204;complete:true;num samples:209;size:418;key:true;time base:1/1000000;], 1)

Related

Kafka cannot connect to zookeeper - connection refused

I have this setup that has been working fine since last year December which suddenly refused to work.
I have this docker-compose yaml file like this:
version: "3.8"
services:
zookeeper1:
image: debezium/zookeeper:1.8
container_name: zookeeper1
ports:
- 2181:2181
networks:
- internalnet
kafka1:
image: debezium/kafka:1.8
container_name: kafka1
ports:
- 9092:9092
depends_on:
- zookeeper1
environment:
- KAFKA_BROKER_ID=100
- KAFKA_ZOOKEEPER_CONNECT=zookeeper1:2181
- KAFKA_ADVERTISED_HOST_NAME=kafka1
- KAFKA_LISTENERS=LISTENER_BOB://kafka1:29092,LISTENER_FRED://localhost:9092
- KAFKA_ADVERTISED_LISTENERS=LISTENER_BOB://kafka1:29092,LISTENER_FRED://localhost:9092
- KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=LISTENER_BOB:PLAINTEXT,LISTENER_FRED:PLAINTEXT
- KAFKA_INTER_BROKER_LISTENER_NAME=LISTENER_BOB
- KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS=60000
networks:
- internalnet
volumes:
- ./kafka/kafka1/kafka_data:/kafka/data
- ./kafka/kafka1/kafka_logs:/kafka/logs
networks:
internalnet:
driver: bridge
Zookeeper is running ok but kafka fails to run with the following log:
WARNING: Using default NODE_ID=1, which is valid only for non-clustered installations.
Starting in ZooKeeper mode using NODE_ID=1.
Using ZOOKEEPER_CONNECT=0.0.0.0:2181
Using configuration config/server.properties.
Using KAFKA_LISTENERS=LISTENER_BOB://kafka1:29092,LISTENER_FRED://localhost:9092 and KAFKA_ADVERTISED_LISTENERS=LISTENER_BOB://kafka1:29092,LISTENER_FRED://localhost:9092
2022-09-16 16:26:57,844 - INFO [main:Log4jControllerRegistration$#31] - Registered kafka:type=kafka.Log4jController MBean
2022-09-16 16:26:58,521 - INFO [main:X509Util#77] - Setting -D jdk.tls.rejectClientInitiatedRenegotiation=true to disable client-initiated TLS renegotiation
2022-09-16 16:26:58,667 - INFO [main:LoggingSignalHandler#72] - Registered signal handlers for TERM, INT, HUP
2022-09-16 16:26:58,674 - INFO [main:Logging#66] - starting
2022-09-16 16:26:58,678 - INFO [main:Logging#66] - Connecting to zookeeper on 0.0.0.0:2181
2022-09-16 16:26:58,719 - INFO [main:Logging#66] - [ZooKeeperClient Kafka server] Initializing a new session to 0.0.0.0:2181.
2022-09-16 16:26:58,733 - INFO [main:Environment#98] - Client environment:zookeeper.version=3.6.3--6401e4ad2087061bc6b9f80dec2d69f2e3c8660a, built on 04/08/2021 16:35 GMT
2022-09-16 16:26:58,734 - INFO [main:Environment#98] - Client environment:host.name=44841d8b6caa
2022-09-16 16:26:58,734 - INFO [main:Environment#98] - Client environment:java.version=11.0.14.1
2022-09-16 16:26:58,734 - INFO [main:Environment#98] - Client environment:java.vendor=Red Hat, Inc.
2022-09-16 16:26:58,734 - INFO [main:Environment#98] - Client environment:java.home=/usr/lib/jvm/java-11-openjdk-11.0.14.1.1-5.fc34.x86_64
2022-09-16 16:26:58,735 - INFO [main:Environment#98] - Client environment:java.class.path=/kafka/libs/activation-1.1.1.jar:/kafka/libs/aopalliance-repackaged-2.6.1.jar:/kafka/libs/argparse4j-0.7.0.jar:/kafka/libs/audience-annotations-0.5.0.jar:/kafka/libs/commons-cli-1.4.jar:/kafka/libs/commons-lang3-3.8.1.jar:/kafka/libs/connect-api-3.0.0.jar:/kafka/libs/connect-basic-auth-extension-3.0.0.jar:/kafka/libs/connect-file-3.0.0.jar:/kafka/libs/connect-json-3.0.0.jar:/kafka/libs/connect-mirror-3.0.0.jar:/kafka/libs/connect-mirror-client-3.0.0.jar:/kafka/libs/connect-runtime-3.0.0.jar:/kafka/libs/connect-transforms-3.0.0.jar:/kafka/libs/hk2-api-2.6.1.jar:/kafka/libs/hk2-locator-2.6.1.jar:/kafka/libs/hk2-utils-2.6.1.jar:/kafka/libs/jackson-annotations-2.12.3.jar:/kafka/libs/jackson-core-2.12.3.jar:/kafka/libs/jackson-databind-2.12.3.jar:/kafka/libs/jackson-dataformat-csv-2.12.3.jar:/kafka/libs/jackson-datatype-jdk8-2.12.3.jar:/kafka/libs/jackson-jaxrs-base-2.12.3.jar:/kafka/libs/jackson-jaxrs-json-provider-2.12.3.jar:/kafka/libs/jackson-module-jaxb-annotations-2.12.3.jar:/kafka/libs/jackson-module-scala_2.12-2.12.3.jar:/kafka/libs/jakarta.activation-api-1.2.1.jar:/kafka/libs/jakarta.annotation-api-1.3.5.jar:/kafka/libs/jakarta.inject-2.6.1.jar:/kafka/libs/jakarta.validation-api-2.0.2.jar:/kafka/libs/jakarta.ws.rs-api-2.1.6.jar:/kafka/libs/jakarta.xml.bind-api-2.3.2.jar:/kafka/libs/javassist-3.27.0-GA.jar:/kafka/libs/javax.servlet-api-3.1.0.jar:/kafka/libs/javax.ws.rs-api-2.1.1.jar:/kafka/libs/jaxb-api-2.3.0.jar:/kafka/libs/jersey-client-2.34.jar:/kafka/libs/jersey-common-2.34.jar:/kafka/libs/jersey-container-servlet-2.34.jar:/kafka/libs/jersey-container-servlet-core-2.34.jar:/kafka/libs/jersey-hk2-2.34.jar:/kafka/libs/jersey-server-2.34.jar:/kafka/libs/jetty-client-9.4.43.v20210629.jar:/kafka/libs/jetty-continuation-9.4.43.v20210629.jar:/kafka/libs/jetty-http-9.4.43.v20210629.jar:/kafka/libs/jetty-io-9.4.43.v20210629.jar:/kafka/libs/jetty-security-9.4.43.v20210629.jar:/kafka/libs/jetty-server-9.4.43.v20210629.jar:/kafka/libs/jetty-servlet-9.4.43.v20210629.jar:/kafka/libs/jetty-servlets-9.4.43.v20210629.jar:/kafka/libs/jetty-util-9.4.43.v20210629.jar:/kafka/libs/jetty-util-ajax-9.4.43.v20210629.jar:/kafka/libs/jline-3.12.1.jar:/kafka/libs/jopt-simple-5.0.4.jar:/kafka/libs/kafka-clients-3.0.0.jar:/kafka/libs/kafka-log4j-appender-3.0.0.jar:/kafka/libs/kafka-metadata-3.0.0.jar:/kafka/libs/kafka-raft-3.0.0.jar:/kafka/libs/kafka-server-common-3.0.0.jar:/kafka/libs/kafka-shell-3.0.0.jar:/kafka/libs/kafka-storage-3.0.0.jar:/kafka/libs/kafka-storage-api-3.0.0.jar:/kafka/libs/kafka-streams-3.0.0.jar:/kafka/libs/kafka-streams-examples-3.0.0.jar:/kafka/libs/kafka-streams-scala_2.12-3.0.0.jar:/kafka/libs/kafka-streams-test-utils-3.0.0.jar:/kafka/libs/kafka-tools-3.0.0.jar:/kafka/libs/kafka_2.12-3.0.0.jar:/kafka/libs/log4j-1.2.17.jar:/kafka/libs/lz4-java-1.7.1.jar:/kafka/libs/maven-artifact-3.8.1.jar:/kafka/libs/metrics-core-2.2.0.jar:/kafka/libs/metrics-core-4.1.12.1.jar:/kafka/libs/netty-buffer-4.1.62.Final.jar:/kafka/libs/netty-codec-4.1.62.Final.jar:/kafka/libs/netty-common-4.1.62.Final.jar:/kafka/libs/netty-handler-4.1.62.Final.jar:/kafka/libs/netty-resolver-4.1.62.Final.jar:/kafka/libs/netty-transport-4.1.62.Final.jar:/kafka/libs/netty-transport-native-epoll-4.1.62.Final.jar:/kafka/libs/netty-transport-native-unix-common-4.1.62.Final.jar:/kafka/libs/osgi-resource-locator-1.0.3.jar:/kafka/libs/paranamer-2.8.jar:/kafka/libs/plexus-utils-3.2.1.jar:/kafka/libs/reflections-0.9.12.jar:/kafka/libs/rocksdbjni-6.19.3.jar:/kafka/libs/scala-collection-compat_2.12-2.4.4.jar:/kafka/libs/scala-java8-compat_2.12-1.0.0.jar:/kafka/libs/scala-library-2.12.14.jar:/kafka/libs/scala-logging_2.12-3.9.3.jar:/kafka/libs/scala-reflect-2.12.14.jar:/kafka/libs/slf4j-api-1.7.30.jar:/kafka/libs/slf4j-log4j12-1.7.30.jar:/kafka/libs/snappy-java-1.1.8.1.jar:/kafka/libs/trogdor-3.0.0.jar:/kafka/libs/zookeeper-3.6.3.jar:/kafka/libs/zookeeper-jute-3.6.3.jar:/kafka/libs/zstd-jni-1.5.0-2.jar
2022-09-16 16:26:58,740 - INFO [main:Environment#98] - Client environment:java.library.path=/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib
2022-09-16 16:26:58,745 - INFO [main:Environment#98] - Client environment:java.io.tmpdir=/tmp
2022-09-16 16:26:58,745 - INFO [main:Environment#98] - Client environment:java.compiler=<NA>
2022-09-16 16:26:58,745 - INFO [main:Environment#98] - Client environment:os.name=Linux
2022-09-16 16:26:58,748 - INFO [main:Environment#98] - Client environment:os.arch=amd64
2022-09-16 16:26:58,748 - INFO [main:Environment#98] - Client environment:os.version=5.10.16.3-microsoft-standard-WSL2
2022-09-16 16:26:58,748 - INFO [main:Environment#98] - Client environment:user.name=kafka
2022-09-16 16:26:58,748 - INFO [main:Environment#98] - Client environment:user.home=/kafka
2022-09-16 16:26:58,749 - INFO [main:Environment#98] - Client environment:user.dir=/kafka
2022-09-16 16:26:58,749 - INFO [main:Environment#98] - Client environment:os.memory.free=975MB
2022-09-16 16:26:58,749 - INFO [main:Environment#98] - Client environment:os.memory.max=1024MB
2022-09-16 16:26:58,749 - INFO [main:Environment#98] - Client environment:os.memory.total=1024MB
2022-09-16 16:26:58,754 - INFO [main:ZooKeeper#1006] - Initiating client connection, connectString=0.0.0.0:2181 sessionTimeout=18000 watcher=kafka.zookeeper.ZooKeeperClient$ZooKeeperClientWatcher$#3fc79729
2022-09-16 16:26:58,782 - INFO [main:ClientCnxnSocket#239] - jute.maxbuffer value is 4194304 Bytes
2022-09-16 16:26:58,797 - INFO [main:ClientCnxn#1736] - zookeeper.request.timeout value is 0. feature enabled=false
2022-09-16 16:26:58,807 - INFO [main:Logging#66] - [ZooKeeperClient Kafka server] Waiting until connected.
2022-09-16 16:26:58,840 - INFO [main-SendThread(0.0.0.0:2181):ClientCnxn$SendThread#1181] - Opening socket connection to server 0.0.0.0/0.0.0.0:2181.
2022-09-16 16:26:58,842 - INFO [main-SendThread(0.0.0.0:2181):ClientCnxn$SendThread#1183] - SASL config status: Will not attempt to authenticate using SASL (unknown error)
2022-09-16 16:26:58,861 - WARN [main-SendThread(0.0.0.0:2181):ClientCnxn$SendThread#1300] - Session 0x0 for sever 0.0.0.0/0.0.0.0:2181, Closing socket connection. Attempting reconnect except it is a SessionExpiredException.
java.net.ConnectException: Connection refused
at java.base/sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:777)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:344)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1290)
Also got the following log from kafka server.log
2022-09-16 14:26:52,915 - INFO [main:Log4jControllerRegistration$#31] - Registered kafka:type=kafka.Log4jController MBean
2022-09-16 14:26:54,942 - INFO [main:Logging#66] - starting
2022-09-16 14:26:54,965 - INFO [main:Logging#66] - Connecting to zookeeper on 0.0.0.0:2181
2022-09-16 14:26:55,082 - INFO [main:Logging#66] - [ZooKeeperClient Kafka server] Initializing a new session to 0.0.0.0:2181.
2022-09-16 14:26:55,341 - INFO [main:Logging#66] - [ZooKeeperClient Kafka server] Waiting until connected.
2022-09-16 14:27:55,367 - INFO [main:Logging#66] - [ZooKeeperClient Kafka server] Closing.
2022-09-16 14:27:55,758 - INFO [main:Logging#66] - [ZooKeeperClient Kafka server] Closed.
2022-09-16 14:27:55,797 - ERROR [main:MarkerIgnoringBase#159] - Fatal error during KafkaServer startup. Prepare to shutdown
kafka.zookeeper.ZooKeeperClientTimeoutException: Timed out waiting for connection while in state: CONNECTING
at kafka.zookeeper.ZooKeeperClient.$anonfun$waitUntilConnected$3(ZooKeeperClient.scala:254)
at kafka.zookeeper.ZooKeeperClient.waitUntilConnected(ZooKeeperClient.scala:250)
at kafka.zookeeper.ZooKeeperClient.<init>(ZooKeeperClient.scala:108)
at kafka.zk.KafkaZkClient$.apply(KafkaZkClient.scala:1981)
at kafka.server.KafkaServer.initZkClient(KafkaServer.scala:457)
at kafka.server.KafkaServer.startup(KafkaServer.scala:196)
at kafka.Kafka$.main(Kafka.scala:109)
at kafka.Kafka.main(Kafka.scala)
2022-09-16 14:27:55,813 - INFO [main:Logging#66] - shutting down
2022-09-16 14:27:55,858 - INFO [main:Logging#66] - shut down completed
2022-09-16 14:27:55,861 - ERROR [main:MarkerIgnoringBase#143] - Exiting Kafka.
2022-09-16 14:27:55,864 - INFO [kafka-shutdown-hook:Logging#66] - shutting down
2022-09-16 14:42:16,757 - INFO [main:Log4jControllerRegistration$#31] - Registered kafka:type=kafka.Log4jController MBean
2022-09-16 14:42:18,622 - INFO [main:Logging#66] - starting
2022-09-16 14:42:18,624 - INFO [main:Logging#66] - Connecting to zookeeper on 0.0.0.0:2181
2022-09-16 14:42:18,656 - INFO [main:Logging#66] - [ZooKeeperClient Kafka server] Initializing a new session to 0.0.0.0:2181.
2022-09-16 14:42:18,749 - INFO [main:Logging#66] - [ZooKeeperClient Kafka server] Waiting until connected.
2022-09-16 14:43:18,769 - INFO [main:Logging#66] - [ZooKeeperClient Kafka server] Closing.
2022-09-16 14:43:19,784 - INFO [main:Logging#66] - [ZooKeeperClient Kafka server] Closed.
2022-09-16 14:43:19,796 - ERROR [main:MarkerIgnoringBase#159] - Fatal error during KafkaServer startup. Prepare to shutdown
kafka.zookeeper.ZooKeeperClientTimeoutException: Timed out waiting for connection while in state: CONNECTING
at kafka.zookeeper.ZooKeeperClient.$anonfun$waitUntilConnected$3(ZooKeeperClient.scala:254)
at kafka.zookeeper.ZooKeeperClient.waitUntilConnected(ZooKeeperClient.scala:250)
at kafka.zookeeper.ZooKeeperClient.<init>(ZooKeeperClient.scala:108)
at kafka.zk.KafkaZkClient$.apply(KafkaZkClient.scala:1981)
at kafka.server.KafkaServer.initZkClient(KafkaServer.scala:457)
at kafka.server.KafkaServer.startup(KafkaServer.scala:196)
at kafka.Kafka$.main(Kafka.scala:109)
at kafka.Kafka.main(Kafka.scala)
2022-09-16 14:43:19,809 - INFO [main:Logging#66] - shutting down
2022-09-16 14:43:19,858 - INFO [main:Logging#66] - shut down completed
2022-09-16 14:43:19,870 - ERROR [main:MarkerIgnoringBase#143] - Exiting Kafka.
2022-09-16 14:43:19,876 - INFO [kafka-shutdown-hook:Logging#66] - shutting down
2022-09-16 14:53:57,029 - INFO [main:Log4jControllerRegistration$#31] - Registered kafka:type=kafka.Log4jController MBean
2022-09-16 14:53:59,011 - INFO [main:Logging#66] - starting
2022-09-16 14:53:59,017 - INFO [main:Logging#66] - Connecting to zookeeper on 0.0.0.0:2181
2022-09-16 14:53:59,115 - INFO [main:Logging#66] - [ZooKeeperClient Kafka server] Initializing a new session to 0.0.0.0:2181.
2022-09-16 14:53:59,247 - INFO [main:Logging#66] - [ZooKeeperClient Kafka server] Waiting until connected.
2022-09-16 14:54:59,256 - INFO [main:Logging#66] - [ZooKeeperClient Kafka server] Closing.
2022-09-16 14:55:00,389 - INFO [main:Logging#66] - [ZooKeeperClient Kafka server] Closed.
2022-09-16 14:55:00,397 - ERROR [main:MarkerIgnoringBase#159] - Fatal error during KafkaServer startup. Prepare to shutdown
kafka.zookeeper.ZooKeeperClientTimeoutException: Timed out waiting for connection while in state: CONNECTING
at kafka.zookeeper.ZooKeeperClient.$anonfun$waitUntilConnected$3(ZooKeeperClient.scala:254)
at kafka.zookeeper.ZooKeeperClient.waitUntilConnected(ZooKeeperClient.scala:250)
at kafka.zookeeper.ZooKeeperClient.<init>(ZooKeeperClient.scala:108)
at kafka.zk.KafkaZkClient$.apply(KafkaZkClient.scala:1981)
at kafka.server.KafkaServer.initZkClient(KafkaServer.scala:457)
at kafka.server.KafkaServer.startup(KafkaServer.scala:196)
at kafka.Kafka$.main(Kafka.scala:109)
at kafka.Kafka.main(Kafka.scala)
2022-09-16 14:55:00,400 - INFO [main:Logging#66] - shutting down
2022-09-16 14:55:00,491 - INFO [main:Logging#66] - shut down completed
2022-09-16 14:55:00,525 - ERROR [main:MarkerIgnoringBase#143] - Exiting Kafka.
2022-09-16 14:55:00,529 - INFO [kafka-shutdown-hook:Logging#66] - shutting down
I even went as far as uninstalling docker-desktop and re-installing, still the same issue.
Extra info: i am running docker-desktop (with wsl-2 on ubuntu distro) on windows 11.
It's possible Debezium did an update which broke your setup, so I suggest you grab a latest compose file, many of which exist at
https://github.com/debezium/debezium-examples
Look at the logs,
Using ZOOKEEPER_CONNECT=0.0.0.0:2181
It's not using KAFKA_ZOOKEEPER_CONNECT ... Remove the KAFKA_ prefix to set the appropriate value, then your logs should say something like ZOOKEEPER_CONNECT=zookeeper1:2181

Producer cannot connect to kafka in docker compose in Docker Desktop on mac

I'm working on Mac with Docker Desktop. I'm trying to run wurstmeister/kafka from docker compose and connect a producer to it.
This is my docker-compose.yml:
version: '3.8'
services:
zookeeper:
container_name: zookeeper
image: zookeeper:3.7.0
ports:
- "2181:2181"
environment:
ZOO_MY_ID: 1
ZOO_SERVERS: server.1=zookeeper:2888:3888;2181
restart: on-failure
kafka:
container_name: kafka
image: wurstmeister/kafka:2.13-2.7.0
ports:
- "9092:9092"
environment:
KAFKA_LISTENERS: INTERNAL://kafka:19092,EXTERNAL://localhost:9092
KAFKA_ADVERTISED_LISTENERS: INTERNAL://kafka:19092,EXTERNAL://localhost:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL
KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
KAFKA_BROKER_ID: 1
restart: on-failure
depends_on:
- zookeeper
Then I have producer connecting to localhost:9092 and sending a simple message. The producer works fine - tested with another kafka image confluentinc/cp-kafka:6.2.0.
When I try to use producer with wurstmeister/kafka I'm getting a lot of this errors:
22:07:13.421 [kafka-producer-network-thread | simple-producer] DEBUG org.apache.kafka.clients.NetworkClient - [Producer clientId=simple-producer] Initialize connection to node localhost:9092 (id: -1 rack: null) for sending metadata request
22:07:13.421 [kafka-producer-network-thread | simple-producer] DEBUG org.apache.kafka.clients.NetworkClient - [Producer clientId=simple-producer] Initiating connection to node localhost:9092 (id: -1 rack: null) using address localhost/127.0.0.1
22:07:13.421 [kafka-producer-network-thread | simple-producer] DEBUG org.apache.kafka.common.network.Selector - [Producer clientId=simple-producer] Created socket with SO_RCVBUF = 326640, SO_SNDBUF = 146988, SO_TIMEOUT = 0 to node -1
22:07:13.421 [kafka-producer-network-thread | simple-producer] DEBUG org.apache.kafka.clients.NetworkClient - [Producer clientId=simple-producer] Completed connection to node -1. Fetching API versions.
22:07:13.421 [kafka-producer-network-thread | simple-producer] DEBUG org.apache.kafka.clients.NetworkClient - [Producer clientId=simple-producer] Initiating API versions fetch from node -1.
22:07:13.422 [kafka-producer-network-thread | simple-producer] DEBUG org.apache.kafka.clients.NetworkClient - [Producer clientId=simple-producer] Sending API_VERSIONS request with header RequestHeader(apiKey=API_VERSIONS, apiVersion=3, clientId=simple-producer, correlationId=20) and timeout 30000 to node -1: {client_software_name=apache-kafka-java,client_software_version=2.7.0,_tagged_fields={}}
22:07:13.423 [kafka-producer-network-thread | simple-producer] DEBUG org.apache.kafka.common.network.Selector - [Producer clientId=simple-producer] Connection with localhost/127.0.0.1 disconnected
java.io.EOFException: null
at org.apache.kafka.common.network.NetworkReceive.readFrom(NetworkReceive.java:97)
at org.apache.kafka.common.network.KafkaChannel.receive(KafkaChannel.java:447)
at org.apache.kafka.common.network.KafkaChannel.read(KafkaChannel.java:397)
at org.apache.kafka.common.network.Selector.attemptRead(Selector.java:674)
at org.apache.kafka.common.network.Selector.pollSelectionKeys(Selector.java:576)
at org.apache.kafka.common.network.Selector.poll(Selector.java:481)
at org.apache.kafka.clients.NetworkClient.poll(NetworkClient.java:561)
at org.apache.kafka.clients.producer.internals.Sender.runOnce(Sender.java:325)
at org.apache.kafka.clients.producer.internals.Sender.run(Sender.java:240)
at java.base/java.lang.Thread.run(Thread.java:829)
22:07:13.424 [kafka-producer-network-thread | simple-producer] DEBUG org.apache.kafka.clients.NetworkClient - [Producer clientId=simple-producer] Node -1 disconnected.
22:07:13.424 [kafka-producer-network-thread | simple-producer] WARN org.apache.kafka.clients.NetworkClient - [Producer clientId=simple-producer] Bootstrap broker localhost:9092 (id: -1 rack: null) disconnected
Why this happens? What is the cause of this error? And how can make it work?
EDIT: added kafka container logs
Kafka container last logs below and no new logs added when I try to connect producer:
[2021-09-09 21:07:28,227] INFO Kafka version: 2.7.0 (org.apache.kafka.common.utils.AppInfoParser)
[2021-09-09 21:07:28,230] INFO Kafka commitId: 448719dc99a19793 (org.apache.kafka.common.utils.AppInfoParser)
[2021-09-09 21:07:28,231] INFO Kafka startTimeMs: 1631221648211 (org.apache.kafka.common.utils.AppInfoParser)
[2021-09-09 21:07:28,238] INFO [KafkaServer id=1] started (kafka.server.KafkaServer)
[2021-09-09 21:07:28,365] INFO [broker-1-to-controller-send-thread]: Recorded new controller, from now on will use broker 1 (kafka.server.BrokerToControllerRequestThread)

Rancher launch failled

I start with Rancher and actually, I want to install it on an Amazon VPS, I followed the instructions in Rancher's doc, but when I run this command :
docker run --restart=unless-stopped -p 8080:8080 rancher/server --db-host 172.26.3.141 --db-port 3306 --db-user rancher --db-pass xxxx --db-name rancher
to launch the Rancher container, it hangs at this level:
time="2019-06-09T10:14:17Z" level=info msg="Done downloading all drivers" service=gms
It does not display an error message, but does not advance either. Someone to an idea please ??? Thank you !
I use Amazon EC2 with Debian 9 and docker-ce: 18.6
This is the logs :
CATTLE_AGENT_PACKAGE_HOST_API_URL=/usr/share/cattle/artifacts/host-api.tar.gz
CATTLE_AGENT_PACKAGE_PER_HOST_SUBNET_URL=/usr/share/cattle/artifacts/rancher-per-host-subnet.
CATTLE_AGENT_PACKAGE_PYTHON_AGENT_URL=/usr/share/cattle/artifacts/go-agent.tar.gz
CATTLE_AGENT_PACKAGE_WINDOWS_AGENT_URL=/usr/share/cattle/artifacts/go-agent.zip
CATTLE_API_UI_URL=//releases.rancher.com/api-ui/1.0.8
CATTLE_CATTLE_VERSION=v0.183.79
CATTLE_DB_CATTLE_DATABASE=mysql
CATTLE_DB_CATTLE_MYSQL_HOST=172.31.5.211
CATTLE_DB_CATTLE_MYSQL_NAME=rancher
CATTLE_DB_CATTLE_MYSQL_PORT=3306
CATTLE_DB_CATTLE_USERNAME=rancher
CATTLE_GRAPHITE_HOST=
CATTLE_GRAPHITE_PORT=
CATTLE_HOME=/var/lib/cattle
CATTLE_HOST_API_PROXY_MODE=embedded
CATTLE_LOGBACK_OUTPUT_GELF_HOST=
CATTLE_LOGBACK_OUTPUT_GELF_PORT=
CATTLE_RANCHER_CLI_VERSION=v0.6.13
CATTLE_RANCHER_COMPOSE_VERSION=v0.12.5
CATTLE_RANCHER_SERVER_IMAGE=rancher/server
CATTLE_RANCHER_SERVER_VERSION=v1.6.28
CATTLE_USE_LOCAL_ARTIFACTS=true
DEFAULT_CATTLE_API_UI_CSS_URL=/api-ui/ui.min.css
DEFAULT_CATTLE_API_UI_INDEX=//releases.rancher.com/ui/1.6.50
DEFAULT_CATTLE_API_UI_JS_URL=/api-ui/ui.min.js
DEFAULT_CATTLE_AUTH_SERVICE_EXECUTE=true
DEFAULT_CATTLE_CATALOG_EXECUTE=true
DEFAULT_CATTLE_CATALOG_URL={"catalogs":{"community":{"url":"https://git.rancher.io/community-er"},"library":{"url":"https://git.rancher.io/rancher-catalog.git","branch":"${RELEASE}"}}}
DEFAULT_CATTLE_COMPOSE_EXECUTOR_EXECUTE=true
DEFAULT_CATTLE_MACHINE_EXECUTE=true
DEFAULT_CATTLE_RANCHER_CLI_DARWIN_URL=https://releases.rancher.com/cli/v0.6.13/rancher-darwin
DEFAULT_CATTLE_RANCHER_CLI_LINUX_URL=https://releases.rancher.com/cli/v0.6.13/rancher-linux-a
DEFAULT_CATTLE_RANCHER_CLI_WINDOWS_URL=https://releases.rancher.com/cli/v0.6.13/rancher-windo
DEFAULT_CATTLE_RANCHER_COMPOSE_DARWIN_URL=https://releases.rancher.com/compose/v0.12.5/ranche2.5.tar.gz
DEFAULT_CATTLE_RANCHER_COMPOSE_LINUX_URL=https://releases.rancher.com/compose/v0.12.5/rancher5.tar.gz
DEFAULT_CATTLE_RANCHER_COMPOSE_WINDOWS_URL=https://releases.rancher.com/compose/v0.12.5/ranch2.5.zip
DEFAULT_CATTLE_SECRETS_API_EXECUTE=true
DEFAULT_CATTLE_WEBHOOK_SERVICE_EXECUTE=true
10:13:23.794 [main] INFO ConsoleStatus - Loading configuration
2019-06-09 10:13:29,181 INFO [main] [ConsoleStatus] Starting DB migration
2019-06-09 10:13:31,523 INFO [main] [ConsoleStatus] DB migration done
2019-06-09 10:13:32,021 INFO [main] [ConsoleStatus] Cluster membership changed [127.0.0.1:
2019-06-09 10:13:32,022 INFO [main] [ConsoleStatus] Checking cluster state on start-up
2019-06-09 10:13:32,023 INFO [main] [ConsoleStatus] Waiting to become master
2019-06-09 10:13:53,813 INFO [main] [ConsoleStatus] Loading processes
2019-06-09 10:13:54,294 INFO [main] [ConsoleStatus] Starting [1/94]: LockDelegatorImpl
2019-06-09 10:13:54,295 INFO [main] [ConsoleStatus] Starting [2/94]: AnnotatedListenerRegi
2019-06-09 10:13:54,302 INFO [main] [ConsoleStatus] Starting [3/94]: EventService
2019-06-09 10:13:54,302 INFO [main] [ConsoleStatus] Starting [4/94]: DefaultObjectMetaData
2019-06-09 10:13:55,281 INFO [main] [ConsoleStatus] Starting [5/94]: JsonDefaultsProvider
2019-06-09 10:13:55,327 INFO [main] [ConsoleStatus] Starting [6/94]: ObjectDefaultsPostIns
2019-06-09 10:13:55,327 INFO [main] [ConsoleStatus] Starting [7/94]: DefaultProcessManager
2019-06-09 10:13:55,328 INFO [main] [ConsoleStatus] Starting [8/94]: SampleDataStartupV3
2019-06-09 10:13:55,334 INFO [main] [ConsoleStatus] Starting [9/94]: TaskManagerImpl
2019-06-09 10:13:55,358 INFO [main] [ConsoleStatus] Starting [10/94]: ServiceAccountCreate
2019-06-09 10:13:55,373 INFO [main] [ConsoleStatus] Starting [11/94]: WebsocketProxyLaunch
2019-06-09 10:13:55,373 INFO [main] [ConsoleStatus] Starting [12/94]: SampleDataStartupV15
2019-06-09 10:13:55,374 INFO [main] [ConsoleStatus] Starting [13/94]: SchemaFactory:v1-adm
2019-06-09 10:13:55,750 INFO [main] [ConsoleStatus] Starting [14/94]: SchemaFactory:v1-age
2019-06-09 10:13:55,769 INFO [main] [ConsoleStatus] Starting [15/94]: SchemaFactory:v1-age
2019-06-09 10:13:55,777 INFO [main] [ConsoleStatus] Starting [16/94]: SchemaFactory:v1-bas
2019-06-09 10:13:56,237 INFO [main] [ConsoleStatus] Starting [17/94]: SchemaFactory:v1-mem
2019-06-09 10:13:56,469 INFO [main] [ConsoleStatus] Starting [18/94]: SchemaFactory:v1-own
2019-06-09 10:13:56,695 INFO [main] [ConsoleStatus] Starting [19/94]: SchemaFactory:v1-pro
2019-06-09 10:13:56,943 INFO [main] [ConsoleStatus] Starting [20/94]: SchemaFactory:v1-pro
2019-06-09 10:13:57,169 INFO [main] [ConsoleStatus] Starting [21/94]: SchemaFactory:v1-rea
time="2019-06-09T10:13:57Z" level=info msg="Downloading key from http://localhost:8081/v1/scr
time="2019-06-09T10:13:57Z" level=fatal msg="Error getting config." error="Invalid key conten
2019-06-09 10:13:57,474 INFO [main] [ConsoleStatus] Starting [22/94]: SchemaFactory:v1-rea
2019-06-09 10:13:57,685 INFO [main] [ConsoleStatus] Starting [23/94]: SchemaFactory:v1-reg
2019-06-09 10:13:57,689 INFO [main] [ConsoleStatus] Starting [24/94]: SchemaFactory:v1-res
2019-06-09 10:13:57,910 INFO [main] [ConsoleStatus] Starting [25/94]: SchemaFactory:v1-ser
2019-06-09 10:13:58,189 INFO [main] [ConsoleStatus] Starting [26/94]: SchemaFactory:v1-tok
2019-06-09 10:13:58,193 INFO [main] [ConsoleStatus] Starting [27/94]: SchemaFactory:v1-use
2019-06-09 10:13:58,419 INFO [main] [ConsoleStatus] Starting [28/94]: AgentBasedProcessHan
2019-06-09 10:13:58,419 INFO [main] [ConsoleStatus] Starting [29/94]: AgentHostStateUpdate
2019-06-09 10:13:58,420 INFO [main] [ConsoleStatus] Starting [30/94]: AgentManager
2019-06-09 10:13:58,420 INFO [main] [ConsoleStatus] Starting [31/94]: AuthServiceLauncher
2019-06-09 10:13:58,421 INFO [main] [ConsoleStatus] Starting [32/94]: BackupCreate
2019-06-09 10:13:58,423 INFO [main] [ConsoleStatus] Starting [33/94]: BackupRemove
2019-06-09 10:13:58,423 INFO [main] [ConsoleStatus] Starting [34/94]: CatalogLauncher
2019-06-09 10:13:58,423 INFO [main] [ConsoleStatus] Starting [35/94]: ComposeExecutorLaunc
2019-06-09 10:13:58,423 INFO [main] [ConsoleStatus] Starting [36/94]: ConfigItemRegistryIm
2019-06-09 10:13:58,568 INFO [main] [ConsoleStatus] Starting [37/94]: ConfigItemServerImpl
2019-06-09 10:13:58,791 INFO [main] [ConsoleStatus] Starting [38/94]: ConfigUpdatePublishe
2019-06-09 10:13:58,792 INFO [main] [ConsoleStatus] Starting [39/94]: DataManager
2019-06-09 10:13:58,792 INFO [main] [ConsoleStatus] Starting [40/94]: DefaultAuthorization
time="2019-06-09T10:13:59Z" level=info msg="Downloading key from http://localhost:8081/v1/scr
time="2019-06-09T10:13:59Z" level=fatal msg="Error getting config." error="Invalid key conten
2019-06-09 10:14:00,070 INFO [main] [ConsoleStatus] Starting [41/94]: DefaultJooqResourceM
2019-06-09 10:14:00,070 INFO [main] [ConsoleStatus] Starting [42/94]: DefaultObjectSeriali
2019-06-09 10:14:00,070 INFO [main] [ConsoleStatus] Starting [43/94]: DockerComposeStackHa
2019-06-09 10:14:00,070 INFO [main] [ConsoleStatus] Starting [44/94]: DynamicExtensionMana
2019-06-09 10:14:00,070 INFO [main] [ConsoleStatus] Starting [45/94]: ExtensionResourceMan
2019-06-09 10:14:00,071 INFO [main] [ConsoleStatus] Starting [46/94]: HostApiRSAKeyProvide
2019-06-09 10:14:00,071 INFO [main] [ConsoleStatus] Starting [47/94]: HostTemplateManager
2019-06-09 10:14:00,071 INFO [main] [ConsoleStatus] Starting [48/94]: ImageStoragePoolMapA
2019-06-09 10:14:00,072 INFO [main] [ConsoleStatus] Starting [49/94]: InstanceHostMapActiv
2019-06-09 10:14:00,073 INFO [main] [ConsoleStatus] Starting [50/94]: InstanceHostMapDeact
2019-06-09 10:14:00,074 INFO [main] [ConsoleStatus] Starting [51/94]: InstanceManager
2019-06-09 10:14:00,074 INFO [main] [ConsoleStatus] Starting [52/94]: IpsecHealthcheckEnab
2019-06-09 10:14:00,075 INFO [main] [ConsoleStatus] Starting [53/94]: LoadBalancerServiceI
2019-06-09 10:14:00,075 INFO [main] [ConsoleStatus] Starting [54/94]: MachineDriverLoader
2019-06-09 10:14:00,077 INFO [main] [ConsoleStatus] Starting [55/94]: MachineLauncher
2019-06-09 10:14:00,077 INFO [main] [ConsoleStatus] Starting [56/94]: MetadataConfigItemFa
2019-06-09 10:14:00,080 INFO [main] [ConsoleStatus] Starting [57/94]: MountRemove
2019-06-09 10:14:00,080 INFO [main] [ConsoleStatus] Starting [58/94]: PostInstancePurge
2019-06-09 10:14:00,080 INFO [main] [ConsoleStatus] Starting [59/94]: PostStartLabelsProvi
2019-06-09 10:14:00,080 INFO [main] [ConsoleStatus] Starting [60/94]: ProjectMemberResourc
2019-06-09 10:14:00,080 INFO [main] [ConsoleStatus] Starting [61/94]: ProjectResourceManag
2019-06-09 10:14:00,080 INFO [main] [ConsoleStatus] Starting [62/94]: PullTaskCreate
2019-06-09 10:14:00,080 INFO [main] [ConsoleStatus] Starting [63/94]: RestoreFromBackup
2019-06-09 10:14:00,080 INFO [main] [ConsoleStatus] Starting [64/94]: RevertToSnapshot
2019-06-09 10:14:00,081 INFO [main] [ConsoleStatus] Starting [65/94]: SampleDataStartupV10
2019-06-09 10:14:00,085 INFO [main] [ConsoleStatus] Starting [66/94]: SampleDataStartupV11
2019-06-09 10:14:00,086 INFO [main] [ConsoleStatus] Starting [67/94]: SampleDataStartupV12
2019-06-09 10:14:00,087 INFO [main] [ConsoleStatus] Starting [68/94]: SampleDataStartupV13
2019-06-09 10:14:00,088 INFO [main] [ConsoleStatus] Starting [69/94]: SampleDataStartupV14
2019-06-09 10:14:00,089 INFO [main] [ConsoleStatus] Starting [70/94]: SampleDataStartupV16
2019-06-09 10:14:00,090 INFO [main] [ConsoleStatus] Starting [71/94]: SampleDataStartupV17
2019-06-09 10:14:00,091 INFO [main] [ConsoleStatus] Starting [72/94]: SampleDataStartupV5
2019-06-09 10:14:00,092 INFO [main] [ConsoleStatus] Starting [73/94]: SampleDataStartupV6
2019-06-09 10:14:00,093 INFO [main] [ConsoleStatus] Starting [74/94]: SampleDataStartupV7
2019-06-09 10:14:00,094 INFO [main] [ConsoleStatus] Starting [75/94]: SampleDataStartupV8
2019-06-09 10:14:00,094 INFO [main] [ConsoleStatus] Starting [76/94]: SampleDataStartupV9
2019-06-09 10:14:00,095 INFO [main] [ConsoleStatus] Starting [77/94]: SecretManager
2019-06-09 10:14:00,096 INFO [main] [ConsoleStatus] Starting [78/94]: SecretsApiLauncher
2019-06-09 10:14:00,096 INFO [main] [ConsoleStatus] Starting [79/94]: ServiceManager
2019-06-09 10:14:00,096 INFO [main] [ConsoleStatus] Starting [80/94]: SettingManager
2019-06-09 10:14:00,096 INFO [main] [ConsoleStatus] Starting [81/94]: SnapshotCreate
2019-06-09 10:14:00,097 INFO [main] [ConsoleStatus] Starting [82/94]: SnapshotRemove
2019-06-09 10:14:00,097 INFO [main] [ConsoleStatus] Starting [83/94]: StackAgentHandler
2019-06-09 10:14:00,097 INFO [main] [ConsoleStatus] Starting [84/94]: StackAgentHandler
2019-06-09 10:14:00,098 INFO [main] [ConsoleStatus] Starting [85/94]: StackAgentHandler
2019-06-09 10:14:00,098 INFO [main] [ConsoleStatus] Starting [86/94]: StackAgentHandler
2019-06-09 10:14:00,098 INFO [main] [ConsoleStatus] Starting [87/94]: StackAgentHandler
2019-06-09 10:14:00,099 INFO [main] [ConsoleStatus] Starting [88/94]: TelemetryLauncher
2019-06-09 10:14:00,099 INFO [main] [ConsoleStatus] Starting [89/94]: VolumeManager
2019-06-09 10:14:00,099 INFO [main] [ConsoleStatus] Starting [90/94]: VolumeRemove
2019-06-09 10:14:00,100 INFO [main] [ConsoleStatus] Starting [91/94]: VolumeStoragePoolMap
2019-06-09 10:14:00,100 INFO [main] [ConsoleStatus] Starting [92/94]: VolumeStoragePoolMap
2019-06-09 10:14:00,100 INFO [main] [ConsoleStatus] Starting [93/94]: WebhookServiceLaunch
2019-06-09 10:14:00,101 INFO [main] [ConsoleStatus] Starting [94/94]: project.template.rel
2019-06-09 10:14:00,198 INFO [main] [ConsoleStatus] [DONE ] [40330ms] Startup Succeeded, L
time="2019-06-09T10:14:00Z" level=info msg="Starting rancher-compose-executor" version=v0.14.
time="2019-06-09T10:14:00Z" level=fatal msg="Unable to create event router" error="Get http:/al tcp 127.0.0.1:8080: getsockopt: connection refused"
time="2019-06-09T10:14:00Z" level=warning msg="Couldn't load install uuid: Get http://localho27.0.0.1:8080: getsockopt: connection refused. Sleep 250ms and retry"
time="2019-06-09T10:14:00Z" level=fatal msg="Failed to configure cattle client: Get http://lotcp 127.0.0.1:8080: connect: connection refused"
time="2019-06-09T10:14:00Z" level=warning msg="Couldn't load install uuid: Get http://localho27.0.0.1:8080: getsockopt: connection refused. Sleep 500ms and retry"
time="2019-06-09T10:14:01Z" level=warning msg="Couldn't load install uuid: Get http://localho27.0.0.1:8080: getsockopt: connection refused. Sleep 1s and retry"
time="2019-06-09T10:14:01Z" level=info msg="Downloading key from http://localhost:8081/v1/scr
time="2019-06-09T10:14:01Z" level=info msg="Starting websocket proxy. Listening on [:8080], Pocalhost:8081], Monitoring parent pid [10]."
time="2019-06-09T10:14:01Z" level=info msg="Configured http API filter"
time="2019-06-09T10:14:01Z" level=info msg="Configured authTokenValidator API filter"
time="2019-06-09T10:14:01Z" level=info msg="Master config file: master.conf"
time="2019-06-09T10:14:01Z" level=info msg="Downloading certificate from http://localhost:808icate"
time="2019-06-09T10:14:02Z" level=info msg="Starting go-machine-service..." gitcommit=v0.39.4
time="2019-06-09T10:14:02Z" level=info msg="Waiting for handler registration (1/2)" service=g
time="2019-06-09T10:14:02Z" level=info msg="Webhook service listening on 8085"
time="2019-06-09T10:14:02Z" level=info msg="Starting rancher-compose-executor" version=v0.14.
time="2019-06-09T10:14:02Z" level=info msg="Fetch uuid 30298836-8939-4754-986a-38c399eaf4f1 s
time="2019-06-09T10:14:02Z" level=info msg="Starting Catalog Service (port 8088, refresh inte
time="2019-06-09T10:14:02Z" level=info msg="Starting Rancher Auth service"
time="2019-06-09T10:14:03Z" level=info msg="No Auth provider configured"
time="2019-06-09T10:14:03Z" level=info msg="Initializing event router" workerCount=5
time="2019-06-09T10:14:04Z" level=info msg="Listening on :8090"
time="2019-06-09T10:14:04Z" level=info msg="Connection established"
time="2019-06-09T10:14:04Z" level=info msg="Starting websocket pings"
time="2019-06-09T10:14:04Z" level=info msg="Waiting for handler registration (2/2)" service=g
time="2019-06-09T10:14:04Z" level=info msg="Initializing event router" workerCount=250
time="2019-06-09T10:14:04Z" level=info msg="Connection established"
time="2019-06-09T10:14:04Z" level=info msg="Starting websocket pings"
time="2019-06-09T10:14:04Z" level=info msg="Installing builtin drivers" service=gms
time="2019-06-09T10:14:04Z" level=info msg="Initializing event router" workerCount=250
time="2019-06-09T10:14:04Z" level=info msg="Connection established"
time="2019-06-09T10:14:04Z" level=info msg="Starting websocket pings"
time="2019-06-09T10:14:07Z" level=info msg="Waiting for machinedriver.activate event" service
time="2019-06-09T10:14:10Z" level=info msg="Waiting for machinedriver.activate event" service
time="2019-06-09T10:14:10Z" level=info msg="Initializing event router" workerCount=250
time="2019-06-09T10:14:10Z" level=info msg="Connection established"
time="2019-06-09T10:14:10Z" level=info msg="Starting websocket pings"
time="2019-06-09T10:14:13Z" level=info msg="Waiting for machinedriver.activate event" service
time="2019-06-09T10:14:16Z" level=info msg="machinedriver.activate event detected" service=gm
time="2019-06-09T10:14:16Z" level=info msg="Downloading all drivers" service=gms
time="2019-06-09T10:14:16Z" level=info msg="Download https://github.com/packethost/docker-mac/download/v0.1.2/docker-machine-driver-packet_linux-amd64.zip" service=gms
time="2019-06-09T10:14:17Z" level=info msg="Found driver docker-machine-driver-packet" servic
time="2019-06-09T10:14:17Z" level=info msg="Copying /var/lib/cattle/machine-drivers/1f70583418e9ca5f57d5a650a049bcd5945e9-docker-machine-driver-packet => /usr/local/bin/docker-machine-drs
time="2019-06-09T10:14:17Z" level=info msg="Done downloading all drivers" service=gms
For an unknown reason,
CATTLE_DB_CATTLE_MYSQL_HOST=172.31.5.211
is different that the --db-host one you mention :
docker run --restart=unless-stopped -p 8080:8080 rancher/server --db-host 172.26.3.141 --db-port 3306 --db-user rancher --db-pass xxxx --db-name rancher

docker run tomcat:latest connection timeout

Got "ERR_CONNECTION_TIMED_OUT" when running docker for windows version: Docker version 18.06.1-ce, build e68fc7a. Using linux containers (default installation wizard settings).
Docker inspect containerID gives: "IPAddress": "172.17.0.2",
Network settings:
"NetworkSettings": {
"Bridge": "",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": {
"8080/tcp": null
State:
"State": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 2918,
"ExitCode": 0,
"Error": "",
Connecting to the docker tomcat with: http://172.17.0.2:8080
Error message: ERR_CONNECTION_TIMED_OUT
No proxies in the docker settings.
Docker Logs containerID:
30-Sep-2018 19:44:54.540 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.5.34
30-Sep-2018 19:44:54.541 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Sep 4 2018 22:28:22 UTC
30-Sep-2018 19:44:54.541 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.5.34.0
30-Sep-2018 19:44:54.542 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
30-Sep-2018 19:44:54.542 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 4.9.93-linuxkit-aufs
30-Sep-2018 19:44:54.542 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
30-Sep-2018 19:44:54.542 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/java-8-openjdk-amd64/jre
30-Sep-2018 19:44:54.542 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_181-8u181-b13-1~deb9u1-b13
30-Sep-2018 19:44:54.543 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
30-Sep-2018 19:44:54.543 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /usr/local/tomcat
30-Sep-2018 19:44:54.543 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /usr/local/tomcat
30-Sep-2018 19:44:54.543 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties
30-Sep-2018 19:44:54.543 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
30-Sep-2018 19:44:54.544 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
30-Sep-2018 19:44:54.544 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
30-Sep-2018 19:44:54.544 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
30-Sep-2018 19:44:54.544 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
30-Sep-2018 19:44:54.544 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/usr/local/tomcat
30-Sep-2018 19:44:54.545 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/local/tomcat
30-Sep-2018 19:44:54.545 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/usr/local/tomcat/temp
30-Sep-2018 19:44:54.545 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library [1.2.17] using APR version [1.5.2].
30-Sep-2018 19:44:54.545 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
30-Sep-2018 19:44:54.546 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
30-Sep-2018 19:44:54.548 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.1.0f 25 May 2017]
30-Sep-2018 19:44:54.609 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
30-Sep-2018 19:44:54.614 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
30-Sep-2018 19:44:54.618 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
30-Sep-2018 19:44:54.619 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
30-Sep-2018 19:44:54.619 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 320 ms
30-Sep-2018 19:44:54.630 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
30-Sep-2018 19:44:54.631 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.34
30-Sep-2018 19:44:54.652 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/host-manager]
30-Sep-2018 19:44:54.835 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/host-manager] has finished in [182] ms
30-Sep-2018 19:44:54.835 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/ROOT]
30-Sep-2018 19:44:54.843 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/ROOT] has finished in [8] ms
30-Sep-2018 19:44:54.844 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/manager]
30-Sep-2018 19:44:54.854 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/manager] has finished in [10] ms
30-Sep-2018 19:44:54.855 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/docs]
30-Sep-2018 19:44:54.862 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/docs] has finished in [8] ms
30-Sep-2018 19:44:54.862 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/examples]
30-Sep-2018 19:44:54.965 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/examples] has finished in [103] ms
30-Sep-2018 19:44:54.966 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]30-Sep-2018 19:44:54.973 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
30-Sep-2018 19:44:54.974 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 355 ms
It's clearly saying that port mapping not done properly :
"Ports": {
"8080/tcp": null
}
The null means the docker inside port 8080 has not mapped to it's corresponding in outside.
when port not mapped, there would not be any way you can access to it by url and you will get ERR_CONNECTION_TIMED_OUT
as it's not clear how did you run your container I can only suggest you a simple and proper way of port mapping would be :
docker run -it --rm -p 8080:8080 tomcat:latest
where 8080 outside port is mapped to inside docker tomcat 8080 port, then you can access it by localhost:8080

Hyperledger Fabric: Timeout Expired while starting chaincode on "Peer Chaincode Instantiate" command

I am trying to instantiate an installed chaincode using the "Peer Chaincode Instantiate" command (as below). On execution of the command, I am receiving the following error message:
Command to instantiate chaincode:
peer chaincode instantiate -o orderer.proofofownership.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/proofofownership.com/orderers/orderer.proofofownership.com/msp/tlscacerts/tlsca.proofofownership.com-cert.pem -C dmanddis -n CreateDiamond -v 1.0 -c '{"Args":[]}' -P "OR ('DiamondManufacturerMSP.peer','DistributorMSP.peer')"
Error Message received:
Error: Error endorsing chaincode: rpc error: code = Unknown desc = timeout expired while starting chaincode CreateDiamond:1.0(networkid:dev,peerid:peer0.dm.proofofownership.com,tx:1a96ecc8763e214ee543ecefe214df6025f8e98f2449f2b7877d04655ddadb49)
I tried rectifying this issue by adding the following attributes in "peer-base.yaml file"
- CORE_CHAINCODE_EXECUTETIMEOUT=300s
- CORE_CHAINCODE_DEPLOYTIMEOUT=300s
Although, I am still receiving this particular error.
Following are my docker container configurations:
peer-base.yaml File:
services:
peer-base:
image: hyperledger/fabric-peer:x86_64-1.1.0
environment:
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
# the following setting starts chaincode containers on the same
# bridge network as the peers
# https://docs.docker.com/compose/networking/
#- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=proof_of_ownership_pow
#- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=pow
#- CORE_LOGGING_LEVEL=INFO
- CORE_LOGGING_LEVEL=DEBUG
- CORE_PEER_TLS_ENABLED=true
- CORE_CHAINCODE_EXECUTETIMEOUT=300s
- CORE_CHAINCODE_DEPLOYTIMEOUT=300s
#- CORE_PEER_TLS_ENABLED=false
- CORE_PEER_GOSSIP_USELEADERELECTION=true
- CORE_PEER_GOSSIP_ORGLEADER=false
- CORE_PEER_PROFILE_ENABLED=true
- CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt
- CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key
- CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
command: peer node start
cli - container configuration in "docker-compose-cli.yaml" file:
cli:
container_name: cli
image: hyperledger/fabric-tools:x86_64-1.1.0
tty: true
stdin_open: true
environment:
- GOPATH=/opt/gopath
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
- CORE_LOGGING_LEVEL=DEBUG
#- CORE_LOGGING_LEVEL=INFO
- CORE_PEER_ID=cli
- CORE_PEER_ADDRESS=peer0.dm.proofofownership.com:7051
- CORE_PEER_LOCALMSPID=DiamondManufacturerMSP
- CORE_PEER_TLS_ENABLED=true
- CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/dm.proofofownership.com/peers/peer0.dm.proofofownership.com/tls/server.crt
- CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/dm.proofofownership.com/peers/peer0.dm.proofofownership.com/tls/server.key
- CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/dm.proofofownership.com/peers/peer0.dm.proofofownership.com/tls/ca.crt
- CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/dm.proofofownership.com/users/Admin#dm.proofofownership.com/msp
- CORE_PEER_CHAINCODELISTENADDRESS=peer0.dm.proofofownership.com:7052
#- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=host
#- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=pow
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
command: /bin/bash
volumes:
- /var/run/:/host/var/run/
#- ./../chaincode/:/opt/gopath/src/github.com/chaincode
#- ./chaincode/CreateDiamond/go:/opt/gopath/src/github.com/chaincode/
- ./chaincode/CreateDiamond:/opt/gopath/src/github.com/hyperledger/fabric/peer/chaincode/
- ./crypto-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/
- ./scripts:/opt/gopath/src/github.com/hyperledger/fabric/peer/scripts/
- ./channel-artifacts:/opt/gopath/src/github.com/hyperledger/fabric/peer/channel-artifacts
depends_on:
- orderer.proofofownership.com
- peer0.dm.proofofownership.com
- peer1.dm.proofofownership.com
- peer0.dist.proofofownership.com
- peer1.dist.proofofownership.com
#network_mode: host
networks:
- pow
peer configuration in "docker-compose-base.yaml" file:
peer0.dm.proofofownership.com:
container_name: peer0.dm.proofofownership.com
extends:
file: peer-base.yaml
service: peer-base
environment:
- CORE_PEER_ID=peer0.dm.proofofownership.com
#- CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/dm.proofofownership.com/users/Admin#dm.proofofownership.com/msp
#- CORE_PEER_MSPCONFIGPATH=/home/john/Proof-Of-Ownership/crypto-config/peerOrganizations/dm.proofofownership.com/users/Admin#dm.proofofownership.com/msp
- CORE_PEER_ADDRESS=peer0.dm.proofofownership.com:7051
- CORE_PEER_GOSSIP_BOOTSTRAP=peer0.dm.proofofownership.com:7051
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.dm.proofofownership.com:7051
- CORE_PEER_LOCALMSPID=DiamondManufacturerMSP
- CORE_PEER_CHAINCODELISTENADDRESS=peer0.dm.proofofownership.com:7052
#- CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/dm.proofofownership.com/peers/peer0.dm.proofofownership.com/tls/ca.crt
#- CORE_PEER_TLS_ROOTCERT_FILE=/home/john/Proof-Of-Ownership/crypto-config/peerOrganizations/dm.proofofownership.com/peers/peer0.dm.proofofownership.com/tls/ca.crt
volumes:
- /var/run/:/host/var/run/
- ../crypto-config/peerOrganizations/dm.proofofownership.com/peers/peer0.dm.proofofownership.com/msp:/etc/hyperledger/fabric/msp
- ../crypto-config/peerOrganizations/dm.proofofownership.com/peers/peer0.dm.proofofownership.com/tls:/etc/hyperledger/fabric/tls
- peer0.dm.proofofownership.com:/var/hyperledger/production
ports:
- 7051:7051
- 7053:7053
Orderer Configuration in "docker-compose-base.yaml" file:
orderer.proofofownership.com:
container_name: orderer.proofofownership.com
image: hyperledger/fabric-orderer:x86_64-1.1.0
environment:
# CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE Newly Added
#- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=proof_of_ownership_pow
#- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=pow
- ORDERER_GENERAL_LOGLEVEL=DEBUG
- ORDERER_GENERAL_LISTENADDRESS=0.0.0.0
- ORDERER_GENERAL_GENESISMETHOD=file
#- ORDERER_GENERAL_GENESISFILE=/var/hyperledger/orderer/orderer.genesis.block
- ORDERER_GENERAL_GENESISFILE=/var/hyperledger/orderer/genesis.block
- ORDERER_GENERAL_LOCALMSPID=OrdererMSP
- ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/orderer/msp
# enabled TLS
- ORDERER_GENERAL_TLS_ENABLED=true
#- ORDERER_GENERAL_TLS_ENABLED=false
- ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key
- ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/orderer/tls/server.crt
- ORDERER_GENERAL_TLS_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt]
# New Addition
- CONFIGTX_ORDERER_ORDERERTYPE=solo
- CONFIGTX_ORDERER_BATCHSIZE_MAXMESSAGECOUNT=10
- CONFIGTX_ORDERER_BATCHTIMEOUT=2s
- CONFIGTX_ORDERER_ADDRESSES=[127.0.0.1:7050]
#working_dir: /opt/gopath/src/github.com/hyperledger/fabric
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/orderer
command: orderer
volumes:
- ../channel-artifacts/genesis.block:/var/hyperledger/orderer/genesis.block
- ../crypto-config/ordererOrganizations/proofofownership.com/orderers/orderer.proofofownership.com/msp:/var/hyperledger/orderer/msp
- ../crypto-config/ordererOrganizations/proofofownership.com/orderers/orderer.proofofownership.com/tls/:/var/hyperledger/orderer/tls
- orderer.proofofownership.com:/var/hyperledger/production/orderer
ports:
- 7050:7050
I also reviewed the peer's docker container logs (using docker logs ) and received the following logs:
Launch -> ERRO 3eb launchAndWaitForRegister failed: timeout expired while starting chaincode CreateDiamond:1.0(networkid:dev,peerid:peer0.dm.proofofownership.com,tx:cc34a20176d7f09e1537b039f3340450e08f6447bf16965324655e72a2a58623)
2018-08-01 12:59:08.739 UTC [endorser] simulateProposal -> ERRO 3ed [dmanddis][cc34a201] failed to invoke chaincode name:"lscc" , error: timeout expired while starting chaincode CreateDiamond:1.0(networkid:dev,peerid:peer0.dm.proofofownership.com,tx:cc34a20176d7f09e1537b039f3340450e08f6447bf16965324655e72a2a58623)
Following logs were received on installing chaincode:
2018-08-03 09:44:55.822 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-08-03 09:44:55.822 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-08-03 09:44:55.822 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc
2018-08-03 09:44:55.822 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc
2018-08-03 09:44:55.822 UTC [chaincodeCmd] getChaincodeSpec -> DEBU 005 java chaincode disabled
2018-08-03 09:44:58.270 UTC [golang-platform] getCodeFromFS -> DEBU 006 getCodeFromFS github.com/hyperledger/fabric/peer/chaincode
2018-08-03 09:45:02.089 UTC [golang-platform] func1 -> DEBU 007 Discarding GOROOT package bytes
2018-08-03 09:45:02.089 UTC [golang-platform] func1 -> DEBU 008 Discarding GOROOT package encoding/json
2018-08-03 09:45:02.089 UTC [golang-platform] func1 -> DEBU 009 Discarding GOROOT package fmt
2018-08-03 09:45:02.090 UTC [golang-platform] func1 -> DEBU 00a Discarding provided package github.com/hyperledger/fabric/core/chaincode/shim
2018-08-03 09:45:02.090 UTC [golang-platform] func1 -> DEBU 00b Discarding provided package github.com/hyperledger/fabric/protos/peer
2018-08-03 09:45:02.090 UTC [golang-platform] func1 -> DEBU 00c Discarding GOROOT package strconv
2018-08-03 09:45:02.090 UTC [golang-platform] func1 -> DEBU 00d skipping dir: /opt/gopath/src/github.com/hyperledger/fabric/peer/chaincode/go
2018-08-03 09:45:02.090 UTC [golang-platform] GetDeploymentPayload -> DEBU 00e done
2018-08-03 09:45:02.090 UTC [container] WriteFileToPackage -> DEBU 00f Writing file to tarball: src/github.com/hyperledger/fabric/peer/chaincode/CreateDiamond.go
2018-08-03 09:45:02.122 UTC [msp/identity] Sign -> DEBU 010 Sign: plaintext: 0AE3070A5B08031A0B089EC890DB0510...EC7BFE1B0000FFFFEE433C37001C0000
2018-08-03 09:45:02.122 UTC [msp/identity] Sign -> DEBU 011 Sign: digest: E5160DE95DB096379967D959FA71E692F098983F443378600943EA5D7265A82C
2018-08-03 09:45:02.230 UTC [chaincodeCmd] install -> DEBU 012 Installed remotely response:<status:200 payload:"OK" >
2018-08-03 09:45:02.230 UTC [main] main -> INFO 013 Exiting.....
In the peer configuration, you specified a different port for the chaincode endpoint than the peer adress (chaincode endpoint port 7052, peer adress on port 7051):
CORE_PEER_CHAINCODELISTENADDRESS=peer0.dm.proofofownership.com:7052
But this port is not exposed. Please add this to your peer port configuration:
- 7052:7052
It is likely that your chaincode is failing on start-up. You might want to try using the development mode tutorial approach to debug your chaincode. It is possible that the chaincode process is failing. By executing from within the container, you can view the logs to see what might not be working for you.
The devmode tutorial is here . You will simply need to replace the tutorial's chaincode with your own.

Resources