openzipkin-attic / docker-zipkin

Docker images for OpenZipkin
Apache License 2.0
689 stars 330 forks source link

Unable to run the generated cassandra image #224

Closed drolando closed 5 years ago

drolando commented 5 years ago

I used to be able to run the cassandra docker image that you upload in my integration tests. However when I use openzipkin/zipkin-cassandra:2.16.2 I get this weird error:

cat: can't open '/etc/ld.so.conf': No such file or directory
cat: can't open '/etc/ld.so.conf.d/*.conf': No such file or directory
[0.000s][warning][gc] -Xloggc is deprecated. Will use -Xlog:gc:/cassandra/bin/../logs/gc.log instead.
[0.001s][warning][gc] -XX:+PrintGCDetails is deprecated. Will use -Xlog:gc* instead.
CompileCommand: dontinline org/apache/cassandra/db/Columns$Serializer.deserializeLargeSubset(Lorg/apache/cassandra/io/util/DataInputPlus;Lorg/apache/cassandra/db/Columns;I)Lorg/apache/cassandra/db/Columns;
CompileCommand: dontinline org/apache/cassandra/db/Columns$Serializer.serializeLargeSubset(Ljava/util/Collection;ILorg/apache/cassandra/db/Columns;ILorg/apache/cassandra/io/util/DataOutputPlus;)V
CompileCommand: dontinline org/apache/cassandra/db/Columns$Serializer.serializeLargeSubsetSize(Ljava/util/Collection;ILorg/apache/cassandra/db/Columns;I)I
CompileCommand: dontinline org/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager.advanceAllocatingFrom(Lorg/apache/cassandra/db/commitlog/CommitLogSegment;)V
CompileCommand: dontinline org/apache/cassandra/db/transform/BaseIterator.tryGetMoreContents()Z
CompileCommand: dontinline org/apache/cassandra/db/transform/StoppingTransformation.stop()V
CompileCommand: dontinline org/apache/cassandra/db/transform/StoppingTransformation.stopInPartition()V
CompileCommand: dontinline org/apache/cassandra/io/util/BufferedDataOutputStreamPlus.doFlush(I)V
CompileCommand: dontinline org/apache/cassandra/io/util/BufferedDataOutputStreamPlus.writeExcessSlow()V
CompileCommand: dontinline org/apache/cassandra/io/util/BufferedDataOutputStreamPlus.writeSlow(JI)V
CompileCommand: dontinline org/apache/cassandra/io/util/RebufferingInputStream.readPrimitiveSlowly(I)J
CompileCommand: inline org/apache/cassandra/db/rows/UnfilteredSerializer.serializeRowBody(Lorg/apache/cassandra/db/rows/Row;ILorg/apache/cassandra/db/SerializationHeader;Lorg/apache/cassandra/io/util/DataOutputPlus;)V
CompileCommand: inline org/apache/cassandra/io/util/Memory.checkBounds(JJ)V
CompileCommand: inline org/apache/cassandra/io/util/SafeMemory.checkBounds(JJ)V
CompileCommand: inline org/apache/cassandra/utils/AsymmetricOrdering.selectBoundary(Lorg/apache/cassandra/utils/AsymmetricOrdering/Op;II)I
CompileCommand: inline org/apache/cassandra/utils/AsymmetricOrdering.strictnessOfLessThan(Lorg/apache/cassandra/utils/AsymmetricOrdering/Op;)I
CompileCommand: inline org/apache/cassandra/utils/BloomFilter.indexes(Lorg/apache/cassandra/utils/IFilter/FilterKey;)[J
CompileCommand: inline org/apache/cassandra/utils/BloomFilter.setIndexes(JJIJ[J)V
CompileCommand: inline org/apache/cassandra/utils/ByteBufferUtil.compare(Ljava/nio/ByteBuffer;[B)I
CompileCommand: inline org/apache/cassandra/utils/ByteBufferUtil.compare([BLjava/nio/ByteBuffer;)I
CompileCommand: inline org/apache/cassandra/utils/ByteBufferUtil.compareUnsigned(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I
CompileCommand: inline org/apache/cassandra/utils/FastByteOperations$UnsafeOperations.compareTo(Ljava/lang/Object;JILjava/lang/Object;JI)I
CompileCommand: inline org/apache/cassandra/utils/FastByteOperations$UnsafeOperations.compareTo(Ljava/lang/Object;JILjava/nio/ByteBuffer;)I
CompileCommand: inline org/apache/cassandra/utils/FastByteOperations$UnsafeOperations.compareTo(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I
CompileCommand: inline org/apache/cassandra/utils/vint/VIntCoding.encodeVInt(JI)[B
Error: Could not find or load main class org.apache.cassandra.service.CassandraDaemon
Caused by: java.lang.ClassNotFoundException: org.apache.cassandra.service.CassandraDaemon
cat: can't open '/etc/ld.so.conf': No such file or directory
cat: can't open '/etc/ld.so.conf.d/*.conf': No such file or directory
[0.000s][warning][gc] -Xloggc is deprecated. Will use -Xlog:gc:/cassandra/bin/../logs/gc.log instead.
[0.001s][warning][gc] -XX:+PrintGCDetails is deprecated. Will use -Xlog:gc* instead.
CompileCommand: dontinline org/apache/cassandra/db/Columns$Serializer.deserializeLargeSubset(Lorg/apache/cassandra/io/util/DataInputPlus;Lorg/apache/cassandra/db/Columns;I)Lorg/apache/cassandra/db/Columns;
CompileCommand: dontinline org/apache/cassandra/db/Columns$Serializer.serializeLargeSubset(Ljava/util/Collection;ILorg/apache/cassandra/db/Columns;ILorg/apache/cassandra/io/util/DataOutputPlus;)V
CompileCommand: dontinline org/apache/cassandra/db/Columns$Serializer.serializeLargeSubsetSize(Ljava/util/Collection;ILorg/apache/cassandra/db/Columns;I)I
CompileCommand: dontinline org/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager.advanceAllocatingFrom(Lorg/apache/cassandra/db/commitlog/CommitLogSegment;)V
CompileCommand: dontinline org/apache/cassandra/db/transform/BaseIterator.tryGetMoreContents()Z
CompileCommand: dontinline org/apache/cassandra/db/transform/StoppingTransformation.stop()V
CompileCommand: dontinline org/apache/cassandra/db/transform/StoppingTransformation.stopInPartition()V
CompileCommand: dontinline org/apache/cassandra/io/util/BufferedDataOutputStreamPlus.doFlush(I)V
CompileCommand: dontinline org/apache/cassandra/io/util/BufferedDataOutputStreamPlus.writeExcessSlow()V
CompileCommand: dontinline org/apache/cassandra/io/util/BufferedDataOutputStreamPlus.writeSlow(JI)V
CompileCommand: dontinline org/apache/cassandra/io/util/RebufferingInputStream.readPrimitiveSlowly(I)J
CompileCommand: inline org/apache/cassandra/db/rows/UnfilteredSerializer.serializeRowBody(Lorg/apache/cassandra/db/rows/Row;ILorg/apache/cassandra/db/SerializationHeader;Lorg/apache/cassandra/io/util/DataOutputPlus;)V
CompileCommand: inline org/apache/cassandra/io/util/Memory.checkBounds(JJ)V
CompileCommand: inline org/apache/cassandra/io/util/SafeMemory.checkBounds(JJ)V
CompileCommand: inline org/apache/cassandra/utils/AsymmetricOrdering.selectBoundary(Lorg/apache/cassandra/utils/AsymmetricOrdering/Op;II)I
CompileCommand: inline org/apache/cassandra/utils/AsymmetricOrdering.strictnessOfLessThan(Lorg/apache/cassandra/utils/AsymmetricOrdering/Op;)I
CompileCommand: inline org/apache/cassandra/utils/BloomFilter.indexes(Lorg/apache/cassandra/utils/IFilter/FilterKey;)[J
CompileCommand: inline org/apache/cassandra/utils/BloomFilter.setIndexes(JJIJ[J)V
CompileCommand: inline org/apache/cassandra/utils/ByteBufferUtil.compare(Ljava/nio/ByteBuffer;[B)I
CompileCommand: inline org/apache/cassandra/utils/ByteBufferUtil.compare([BLjava/nio/ByteBuffer;)I
CompileCommand: inline org/apache/cassandra/utils/ByteBufferUtil.compareUnsigned(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I
CompileCommand: inline org/apache/cassandra/utils/FastByteOperations$UnsafeOperations.compareTo(Ljava/lang/Object;JILjava/lang/Object;JI)I
CompileCommand: inline org/apache/cassandra/utils/FastByteOperations$UnsafeOperations.compareTo(Ljava/lang/Object;JILjava/nio/ByteBuffer;)I
CompileCommand: inline org/apache/cassandra/utils/FastByteOperations$UnsafeOperations.compareTo(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I
CompileCommand: inline org/apache/cassandra/utils/vint/VIntCoding.encodeVInt(JI)[B
Error: Could not find or load main class org.apache.cassandra.service.CassandraDaemon
Caused by: java.lang.ClassNotFoundException: org.apache.cassandra.service.CassandraDaemon

My docker-compose is just copy-pasted from the example found here:

version: '2'

services:
    zipkin:
        image: openzipkin/zipkin:2.16.2
        environment:
            - STORAGE_TYPE=cassandra3
            - CASSANDRA_ENSURE_SCHEMA=false
            - CASSANDRA_CONTACT_POINTS=cassandra
            - SEARCH_ENABLED=false
        depends_on:
            - storage

    storage:
        image: openzipkin/zipkin-cassandra:2.16.2
        container_name: cassandra

    # plus extra services
    ....

Any idea on what's going on or what has changed lately? The confusing thing is that this doesn't happen all the time but I can't tell what causes it

codefromthecrypt commented 5 years ago

@openzipkin/cassandra anyone recognise this? I don't want to scapegoat java versions but possibly that we are using JRE 11 could contribute to oddness

drolando commented 5 years ago

Yeah that seems to be the issue. docker run openzipkin/zipkin-cassandra:2.12.3 works, using 2.12.4 fails with the same error

codefromthecrypt commented 5 years ago

ok I think we can switch Cassandra back to the JDK 1.8 image. we also use this image in docker-zipkin-dependencies

On Thu, Sep 12, 2019, 8:43 AM Daniele notifications@github.com wrote:

Yeah that seems to be the issue. docker run openzipkin/zipkin-cassandra:2.12.3 works, using 2.12.4 fails with the same error

— You are receiving this because you are on a team that was mentioned. Reply to this email directly, view it on GitHub https://github.com/openzipkin/docker-zipkin/issues/224?email_source=notifications&email_token=AAAPVV453URKSZV6DTRNZCLQJGGDHA5CNFSM4IV3C4JKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6QJRZQ#issuecomment-530618598, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAPVVYOQCVZXOKUKOP7R73QJGGDHANCNFSM4IV3C4JA .

codefromthecrypt commented 5 years ago

building latest JRE 8 as we haven't in a while https://travis-ci.org/openzipkin/docker-jre-full/builds/583927279

codefromthecrypt commented 5 years ago

https://github.com/openzipkin/docker-zipkin/pull/225

codefromthecrypt commented 5 years ago

daniele were you able to try the master tag?

On Thu, Sep 12, 2019, 8:49 AM Adrian Cole adrian.f.cole@gmail.com wrote:

ok I think we can switch Cassandra back to the JDK 1.8 image. we also use this image in docker-zipkin-dependencies

On Thu, Sep 12, 2019, 8:43 AM Daniele notifications@github.com wrote:

Yeah that seems to be the issue. docker run openzipkin/zipkin-cassandra:2.12.3 works, using 2.12.4 fails with the same error

— You are receiving this because you are on a team that was mentioned. Reply to this email directly, view it on GitHub https://github.com/openzipkin/docker-zipkin/issues/224?email_source=notifications&email_token=AAAPVV453URKSZV6DTRNZCLQJGGDHA5CNFSM4IV3C4JKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6QJRZQ#issuecomment-530618598, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAPVVYOQCVZXOKUKOP7R73QJGGDHANCNFSM4IV3C4JA .

drolando commented 5 years ago

@adriancole Now I get a different error:

~>  docker run openzipkin/zipkin-cassandra:master
/usr/local/bin/run.sh: exec: line 8: /busybox/sh: not found
codefromthecrypt commented 5 years ago

sorry.. next build of master tag should fix that.

codefromthecrypt commented 5 years ago

I tested on own. repushing tag 2.16.2

drolando commented 5 years ago

@adriancole yep, now it works. Thanks!