HI guys! I have an M1 Mac and tried to quickstart ...
# getting-started
a
HI guys! I have an M1 Mac and tried to quickstart the application with the following config file: docker-compose -f docker-compose-without-neo4j-m1.quickstart.yml up -d But unfortunately the gms service stops after a few seconds. Can you help me please resolve the issue? Thanks in advance! The docker log is this:
Copy code
+ echo
+ grep -q ://
+ NEO4J_HOST=http://
+ [[ ! -z '' ]]
+ [[ -z '' ]]
+ ELASTICSEARCH_AUTH_HEADER='Accept: */*'
+ [[ '' == true ]]
+ ELASTICSEARCH_PROTOCOL=http
+ WAIT_FOR_EBEAN=
+ [[ '' != true ]]
+ [[ '' == ebean ]]
+ [[ -z '' ]]
+ WAIT_FOR_EBEAN=' -wait <tcp://mysql:3306> '
+ WAIT_FOR_CASSANDRA=
+ [[ '' == cassandra ]]
+ WAIT_FOR_KAFKA=
+ [[ '' != true ]]
++ echo broker:29092
++ sed 's/,/ -wait tcp:\/\//g'
+ WAIT_FOR_KAFKA=' -wait <tcp://broker:29092> '
+ WAIT_FOR_NEO4J=
+ [[ elasticsearch != elasticsearch ]]
+ OTEL_AGENT=
+ [[ '' == true ]]
+ PROMETHEUS_AGENT=
+ [[ '' == true ]]
+ auth_resource_dir=/etc/datahub/plugins/auth/resources
+ COMMON='
     -wait <tcp://mysql:3306>            -wait <tcp://broker:29092>           -timeout 240s     java -Xms1g -Xmx1g                -jar /jetty-runner.jar     --jar jetty-util.jar     --jar jetty-jmx.jar --classes /etc/datahub/plugins/auth/resources     --config /datahub/datahub-gms/scripts/jetty.xml     /datahub/datahub-gms/bin/war.war'
+ [[ '' != true ]]
+ exec dockerize -wait <http://elasticsearch:9200> -wait-http-header 'Accept: */*' -wait <tcp://mysql:3306> -wait <tcp://broker:29092> -timeout 240s java -Xms1g -Xmx1g -jar /jetty-runner.jar --jar jetty-util.jar --jar jetty-jmx.jar --classes /etc/datahub/plugins/auth/resources --config /datahub/datahub-gms/scripts/jetty.xml /datahub/datahub-gms/bin/war.war
2022/08/09 10:00:12 Waiting for: <http://elasticsearch:9200>
2022/08/09 10:00:12 Waiting for: <tcp://mysql:3306>
2022/08/09 10:00:12 Waiting for: <tcp://broker:29092>
2022/08/09 10:00:12 Connected to <tcp://mysql:3306>
2022/08/09 10:00:12 Problem with dial: dial tcp 172.21.0.8:29092: connect: connection refused. Sleeping 1s
2022/08/09 10:00:12 Problem with request: Get "<http://elasticsearch:9200>": dial tcp 172.21.0.3:9200: connect: connection refused. Sleeping 1s
2022/08/09 10:00:13 Problem with request: Get "<http://elasticsearch:9200>": dial tcp 172.21.0.3:9200: connect: connection refused. Sleeping 1s
2022/08/09 10:00:13 Problem with dial: dial tcp 172.21.0.8:29092: connect: connection refused. Sleeping 1s
2022/08/09 10:00:14 Problem with request: Get "<http://elasticsearch:9200>": dial tcp 172.21.0.3:9200: connect: connection refused. Sleeping 1s
2022/08/09 10:00:14 Problem with dial: dial tcp 172.21.0.8:29092: connect: connection refused. Sleeping 1s
2022/08/09 10:00:15 Problem with dial: dial tcp 172.21.0.8:29092: connect: connection refused. Sleeping 1s
2022/08/09 10:00:15 Problem with request: Get "<http://elasticsearch:9200>": dial tcp 172.21.0.3:9200: connect: connection refused. Sleeping 1s
2022/08/09 10:00:16 Problem with dial: dial tcp 172.21.0.8:29092: connect: connection refused. Sleeping 1s
2022/08/09 10:00:16 Problem with request: Get "<http://elasticsearch:9200>": dial tcp 172.21.0.3:9200: connect: connection refused. Sleeping 1s
2022/08/09 10:00:17 Problem with dial: dial tcp 172.21.0.8:29092: connect: connection refused. Sleeping 1s
2022/08/09 10:00:17 Problem with request: Get "<http://elasticsearch:9200>": dial tcp 172.21.0.3:9200: connect: connection refused. Sleeping 1s
2022/08/09 10:00:18 Problem with dial: dial tcp 172.21.0.8:29092: connect: connection refused. Sleeping 1s
2022/08/09 10:00:18 Problem with request: Get "<http://elasticsearch:9200>": dial tcp 172.21.0.3:9200: connect: connection refused. Sleeping 1s
2022/08/09 10:00:19 Problem with request: Get "<http://elasticsearch:9200>": dial tcp 172.21.0.3:9200: connect: connection refused. Sleeping 1s
2022/08/09 10:00:19 Problem with dial: dial tcp 172.21.0.8:29092: connect: connection refused. Sleeping 1s
2022/08/09 10:00:20 Problem with dial: dial tcp 172.21.0.8:29092: connect: connection refused. Sleeping 1s
2022/08/09 10:00:20 Problem with request: Get "<http://elasticsearch:9200>": dial tcp 172.21.0.3:9200: connect: connection refused. Sleeping 1s
2022/08/09 10:00:21 Problem with dial: dial tcp 172.21.0.8:29092: connect: connection refused. Sleeping 1s
2022/08/09 10:00:21 Problem with request: Get "<http://elasticsearch:9200>": dial tcp 172.21.0.3:9200: connect: connection refused. Sleeping 1s
2022/08/09 10:00:22 Problem with request: Get "<http://elasticsearch:9200>": dial tcp 172.21.0.3:9200: connect: connection refused. Sleeping 1s
2022/08/09 10:00:22 Problem with dial: dial tcp 172.21.0.8:29092: connect: connection refused. Sleeping 1s
2022/08/09 10:00:23 Problem with dial: dial tcp 172.21.0.8:29092: connect: connection refused. Sleeping 1s
2022/08/09 10:00:23 Problem with request: Get "<http://elasticsearch:9200>": dial tcp 172.21.0.3:9200: connect: connection refused. Sleeping 1s
2022/08/09 10:00:24 Problem with dial: dial tcp 172.21.0.8:29092: connect: connection refused. Sleeping 1s
2022/08/09 10:00:24 Problem with request: Get "<http://elasticsearch:9200>": dial tcp 172.21.0.3:9200: connect: connection refused. Sleeping 1s
2022/08/09 10:00:25 Problem with request: Get "<http://elasticsearch:9200>": dial tcp 172.21.0.3:9200: connect: connection refused. Sleeping 1s
2022/08/09 10:00:25 Problem with dial: dial tcp 172.21.0.8:29092: connect: connection refused. Sleeping 1s
2022/08/09 10:00:26 Problem with request: Get "<http://elasticsearch:9200>": dial tcp 172.21.0.3:9200: connect: connection refused. Sleeping 1s
2022/08/09 10:00:26 Connected to <tcp://broker:29092>
2022/08/09 10:00:27 Problem with request: Get "<http://elasticsearch:9200>": dial tcp 172.21.0.3:9200: connect: connection refused. Sleeping 1s
2022/08/09 10:00:28 Problem with request: Get "<http://elasticsearch:9200>": dial tcp 172.21.0.3:9200: connect: connection refused. Sleeping 1s
2022/08/09 10:00:29 Problem with request: Get "<http://elasticsearch:9200>": dial tcp 172.21.0.3:9200: connect: connection refused. Sleeping 1s
2022/08/09 10:00:30 Problem with request: Get "<http://elasticsearch:9200>": dial tcp 172.21.0.3:9200: connect: connection refused. Sleeping 1s
2022/08/09 10:00:31 Problem with request: Get "<http://elasticsearch:9200>": dial tcp 172.21.0.3:9200: connect: connection refused. Sleeping 1s
2022/08/09 10:00:32 Problem with request: Get "<http://elasticsearch:9200>": dial tcp 172.21.0.3:9200: connect: connection refused. Sleeping 1s
2022/08/09 10:00:33 Problem with request: Get "<http://elasticsearch:9200>": dial tcp 172.21.0.3:9200: connect: connection refused. Sleeping 1s
2022/08/09 10:00:34 Problem with request: Get "<http://elasticsearch:9200>": dial tcp 172.21.0.3:9200: connect: connection refused. Sleeping 1s
2022/08/09 10:00:35 Problem with request: Get "<http://elasticsearch:9200>": dial tcp 172.21.0.3:9200: connect: connection refused. Sleeping 1s
2022/08/09 10:00:36 Problem with request: Get "<http://elasticsearch:9200>": dial tcp 172.21.0.3:9200: connect: connection refused. Sleeping 1s
2022/08/09 10:00:37 Problem with request: Get "<http://elasticsearch:9200>": dial tcp 172.21.0.3:9200: connect: connection refused. Sleeping 1s
2022/08/09 10:00:38 Received 200 from <http://elasticsearch:9200>
2022-08-09 10:00:38.917:INFO::main: Logging initialized @546ms to org.eclipse.jetty.util.log.StdErrLog
WARNING: jetty-runner is deprecated.
         See Jetty Documentation for startup options
         <https://www.eclipse.org/jetty/documentation/>
ERROR: No such classes directory file:///etc/datahub/plugins/auth/resources
Usage: java [-Djetty.home=dir] -jar jetty-runner.jar [--help|--version] [ server opts] [[ context opts] context ...] 
Server opts:
 --version                           - display version and exit
 --log file                          - request log filename (with optional 'yyyy_mm_dd' wildcard
 --out file                          - info/warn/debug log filename (with optional 'yyyy_mm_dd' wildcard
 --host name|ip                      - interface to listen on (default is all interfaces)
 --port n                            - port to listen on (default 8080)
 --stop-port n                       - port to listen for stop command (or -DSTOP.PORT=n)
 --stop-key n                        - security string for stop command (required if --stop-port is present) (or -DSTOP.KEY=n)
 [--jar file]*n                      - each tuple specifies an extra jar to be added to the classloader
 [--lib dir]*n                       - each tuple specifies an extra directory of jars to be added to the classloader
 [--classes dir]*n                   - each tuple specifies an extra directory of classes to be added to the classloader
 --stats [unsecure|realm.properties] - enable stats gathering servlet context
 [--config file]*n                   - each tuple specifies the name of a jetty xml config file to apply (in the order defined)
Context opts:
 [[--path /path] context]*n          - WAR file, web app dir or context xml file, optionally with a context path
2022/08/09 10:00:38 Command exited with error: exit status 1
i
Hello Marcell, This is a known bug with v0.8.42, a folder is missing:
Copy code
ERROR: No such classes directory file:///etc/datahub/plugins/auth/resources
To fix this please change datahub images to
4f35a6c
or later.
a
Thanks @incalculable-ocean-74010! What do you think, what is the quickest way to achieve this? (should I rewrite the compose file)?
i
Just specify the version in the quickstart: “datahub docker quickstart - - version=4f35a6c”
a
Is it going to work with my M1 Mac?
i
It should, I use an m1 too
a
this is what I am getting:
Copy code
Pulling mysql (mysql:5.7)...
5.7: Pulling from library/mysql
ERROR: no matching manifest for linux/arm64/v8 in the manifest list entries
Should I pull an m1 image of mysql beforehand? @incalculable-ocean-74010?
i
Why not deploy datahub using the cli?
It has a quickstart method that uses docker-compose under the hood
a
This is what I did, ran the command you gave me
i
Datahub cli version?
a
this is what I get: acryl-datahub, version unavailable (installed in develop mode)
I tampered with it in the past
can I force reinstall it somehow?
i
Please remove that and use an oficial version
a
ohh okay!!
i
It's a pip package so the normal methods should work
a
yepp, trying! Hope it will work
now its: acryl-datahub, version 0.8.42
@incalculable-ocean-74010 the error remains the same 😞
It is resolved, I have installed the m1 version, then quickstart-install with specific version and it works
Thanks again!
i
awesome 🙂