training icon indicating copy to clipboard operation
training copied to clipboard

Docker Issues

Open cajun-code opened this issue 2 years ago • 11 comments

Trying to deploy the course docker image on my M1 Mac. The install fails with the follow message:

[+] Building 149.3s (11/11) FINISHED                                            
 => [internal] load build definition from Dockerfile                       0.0s
 => => transferring dockerfile: 32B                                        0.0s
 => [internal] load .dockerignore                                          0.0s
 => => transferring context: 2B                                            0.0s
 => [internal] load metadata for jfrog-docker-reg2.bintray.io/jfrog/artif  0.8s
 => [internal] load build context                                          0.0s
 => => transferring context: 191B                                          0.0s
 => [1/7] FROM jfrog-docker-reg2.bintray.io/jfrog/artifactory-cpp-ce:7.11  0.0s
 => CACHED [2/7] COPY scripts/* /scripts/                                  0.0s
 => CACHED [3/7] RUN chmod +x /scripts/*                                   0.0s
 => CACHED [4/7] RUN sed -i "s/\r//g" /scripts/*                           0.0s
 => CACHED [5/7] RUN chown -hR artifactory:artifactory /scripts            0.0s
 => CACHED [6/7] RUN rm /opt/jfrog/artifactory/var                         0.0s
 => ERROR [7/7] RUN /scripts/bootstrap-artifactory-config.sh             148.4s
------                                                                          
 > [7/7] RUN /scripts/bootstrap-artifactory-config.sh:                          
#11 0.344   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current                                                                       
#11 0.344                                  Dload  Upload   Total   Spent    Left  Speed                                                                         
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
#11 0.366 curl: (7) Failed to connect to localhost port 8082: Connection refused
#11 0.483 Preparing to run Artifactory in Docker
#11 0.534 Running as uid=1030(artifactory) gid=1030(artifactory)
#11 0.566 Dockerfile for this image can found inside the container.
#11 0.598 To view the Dockerfile: 'cat /docker/artifactory-pro/Dockerfile.artifactory'.
#11 1.522 Copying Artifactory bootstrap files
#11 5.414   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#11 5.417                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
#11 5.436 curl: (7) Failed to connect to localhost port 8082: Connection refused
#11 9.100 2022-02-02T04:06:16.000Z [shell] [INFO ] [] [installerCommon.sh:1432       ] [main] - Checking open files and processes limits
#11 9.214 2022-02-02T04:06:16.000Z [shell] [INFO ] [] [installerCommon.sh:1435       ] [main] - Current max open files is 1048576
#11 9.331 2022-02-02T04:06:17.000Z [shell] [INFO ] [] [installerCommon.sh:1446       ] [main] - Current max open processes is unlimited
#11 9.649 
#11 9.649 Database connection check failed Could not determine database type
#11 9.794 2022-02-02T04:06:17.000Z [shell] [INFO ] [] [installerCommon.sh:1513       ] [main] - Testing directory /opt/jfrog/artifactory/var has read/write permissions for user id 1030
#11 9.932 2022-02-02T04:06:17.000Z [shell] [INFO ] [] [installerCommon.sh:1528       ] [main] - Permissions for /opt/jfrog/artifactory/var are good
#11 10.48   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#11 10.49                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
#11 10.51 curl: (7) Failed to connect to localhost port 8082: Connection refused
#11 13.97 2022-02-02T04:06:21.000Z [shell] [INFO ] [] [installerCommon.sh:3281       ] [main] - Setting JF_SHARED_NODE_ID to buildkitsandbox
#11 14.50 2022-02-02T04:06:22.000Z [shell] [INFO ] [] [installerCommon.sh:3281       ] [main] - Setting JF_SHARED_NODE_IP to 127.0.0.1
#11 14.99 2022-02-02T04:06:22.000Z [shell] [INFO ] [] [installerCommon.sh:3281       ] [main] - Setting JF_SHARED_NODE_NAME to buildkitsandbox
#11 15.55   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#11 15.55                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
#11 15.57 curl: (7) Failed to connect to localhost port 8082: Connection refused
#11 16.78 2022-02-02T04:06:24.000Z [shell] [INFO ] [] [artifactoryCommon.sh:112      ] [main] - Final command: -server -Xms512m -Xmx2g -Xss256k -XX:+UseG1GC -XX:OnOutOfMemoryError="kill -9 %p" --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.lang.invoke=ALL-UNNAMED --add-opens java.base/java.text=ALL-UNNAMED --add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.desktop/java.awt.font=ALL-UNNAMED -Dfile.encoding=UTF8 -Djruby.compile.invokedynamic=false -Djruby.bytecode.version=1.8 -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true -Djava.security.egd=file:/dev/./urandom -Dartdist=docker -Djf.product.home=/opt/jfrog/artifactory
#11 20.62   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#11 20.63                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
#11 20.65 curl: (7) Failed to connect to localhost port 8082: Connection refused
#11 21.77 crontab: must be suid to work properly
#11 21.83 crontab: must be suid to work properly
#11 21.95 2022-02-02T04:06:29.000Z [shell] [WARN ] [] [installerCommon.sh:706        ] [main] - Could not configure logrotate. Please configure log rotation of the file: [/opt/jfrog/artifactory/var/log/console.log] manually
#11 25.03 2022-02-02T04:06:32.000Z [shell] [INFO ] [] [artifactoryCommon.sh:149      ] [main] - Saving /opt/jfrog/artifactory/app/artifactory/tomcat/conf/server.xml as /opt/jfrog/artifactory/app/artifactory/tomcat/conf/server.xml.orig
#11 25.16 2022-02-02T04:06:32.000Z [shell] [INFO ] [] [artifactoryCommon.sh:157      ] [main] - Using Tomcat template to generate : /opt/jfrog/artifactory/app/artifactory/tomcat/conf/server.xml
#11 25.67 2022-02-02T04:06:33.000Z [shell] [INFO ] [] [artifactoryCommon.sh:797      ] [main] - Resolved ${artifactory.port||8081} to default value : 8081
#11 25.69   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#11 25.69                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
#11 25.72 curl: (7) Failed to connect to localhost port 8082: Connection refused
#11 26.17 2022-02-02T04:06:33.000Z [shell] [INFO ] [] [artifactoryCommon.sh:797      ] [main] - Resolved ${artifactory.tomcat.connector.maxThreads||200} to default value : 200
#11 27.04 2022-02-02T04:06:34.000Z [shell] [INFO ] [] [artifactoryCommon.sh:797      ] [main] - Resolved ${artifactory.tomcat.maintenanceConnector.port||8091} to default value : 8091
#11 27.53 2022-02-02T04:06:35.000Z [shell] [INFO ] [] [artifactoryCommon.sh:797      ] [main] - Resolved ${artifactory.tomcat.maintenanceConnector.maxThreads||5} to default value : 5
#11 28.02 2022-02-02T04:06:35.000Z [shell] [INFO ] [] [artifactoryCommon.sh:797      ] [main] - Resolved ${artifactory.tomcat.maintenanceConnector.acceptCount||5} to default value : 5
#11 28.89 2022-02-02T04:06:36.000Z [shell] [INFO ] [] [artifactoryCommon.sh:797      ] [main] - Resolved ${access.http.port||8040} to default value : 8040
#11 29.38 2022-02-02T04:06:37.000Z [shell] [INFO ] [] [artifactoryCommon.sh:797      ] [main] - Resolved ${access.tomcat.connector.maxThreads||50} to default value : 50
#11 30.41 2022-02-02T04:06:38.000Z [shell] [INFO ] [] [systemYamlHelper.sh:512       ] [main] - Resolved JF_PRODUCT_HOME (/opt/jfrog/artifactory) from environment variable
#11 30.76   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#11 30.77                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
#11 30.79 curl: (7) Failed to connect to localhost port 8082: Connection refused
#11 31.01 2022-02-02T04:06:38.000Z [shell] [INFO ] [] [artifactoryCommon.sh:797      ] [main] - Resolved ${shared.tomcat.workDir||/opt/jfrog/artifactory/var/work/artifactory/tomcat} to default value : /opt/jfrog/artifactory/var/work/artifactory/tomcat
#11 32.73 
#11 32.73 ========================
#11 32.73 JF Environment variables
#11 32.73 ========================
#11 32.79 
#11 32.79 JF_ARTIFACTORY_USER                 : artifactory
#11 32.85 JF_SHARED_NODE_ID                   : buildkitsandbox
#11 32.91 JF_SHARED_NODE_IP                   : 127.0.0.1
#11 32.97 JF_ROUTER_TOPOLOGY_LOCAL_REQUIREDSERVICETYPES : jfrt,jfac,jfmd,jffe
#11 33.03 JF_PRODUCT_HOME                     : /opt/jfrog/artifactory
#11 33.09 JF_PRODUCT_DATA_INTERNAL            : /var/opt/jfrog/artifactory
#11 33.15 JF_ARTIFACTORY_PID                  : /opt/jfrog/artifactory/app/run/artifactory.pid
#11 33.20 JF_SYSTEM_YAML                      : /opt/jfrog/artifactory/var/etc/system.yaml
#11 33.27 JF_SHARED_NODE_NAME                 : buildkitsandbox
#11 33.48 Starting router...
#11 33.54 router not running. Proceed to start it up.
#11 34.19 router started. PID: 8196
#11 34.43 Starting metadata...
#11 35.60 JF_METADATA_ACCESSCLIENT_URL: http://localhost:8081/access
#11 35.60 metadata started. PID: 8490
#11 35.84   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#11 35.85                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
#11 35.86 curl: (7) Failed to connect to localhost port 8082: Connection refused
#11 36.22 Starting frontend...
#11 36.29 frontend not running. Proceed to start it up.
#11 36.94 frontend started. PID: 8767
#11 37.85 NOTE: Picked up JDK_JAVA_OPTIONS:  --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
#11 40.91   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#11 40.92                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
#11 40.96 curl: (7) Failed to connect to localhost port 8082: Connection refused
#11 42.81 2022-02-02T04:06:50.545L [tomct] [INFO ] [                ] [org.apache.coyote.http11.Http11NioProtocol] [org.apache.coyote.AbstractProtocol init] - Initializing ProtocolHandler ["http-nio-8081"] 
#11 42.91 2022-02-02T04:06:50.680L [tomct] [INFO ] [                ] [org.apache.tomcat.util.net.NioSelectorPool] [org.apache.tomcat.util.net.NioSelectorPool getSharedSelector] - Using a shared selector for servlet write/read 
#11 43.03 2022-02-02T04:06:50.793L [tomct] [INFO ] [                ] [org.apache.coyote.http11.Http11NioProtocol] [org.apache.coyote.AbstractProtocol init] - Initializing ProtocolHandler ["http-nio-127.0.0.1-8091"] 
#11 43.03 2022-02-02T04:06:50.798L [tomct] [INFO ] [                ] [org.apache.tomcat.util.net.NioSelectorPool] [org.apache.tomcat.util.net.NioSelectorPool getSharedSelector] - Using a shared selector for servlet write/read 
#11 43.11 2022-02-02T04:06:50.804L [tomct] [INFO ] [                ] [org.apache.coyote.http11.Http11NioProtocol] [org.apache.coyote.AbstractProtocol init] - Initializing ProtocolHandler ["http-nio-127.0.0.1-8040"] 
#11 43.12 2022-02-02T04:06:50.886L [tomct] [INFO ] [                ] [org.apache.tomcat.util.net.NioSelectorPool] [org.apache.tomcat.util.net.NioSelectorPool getSharedSelector] - Using a shared selector for servlet write/read 
#11 43.20 2022-02-02T04:06:50.963L [tomct] [INFO ] [                ] [org.apache.catalina.core.StandardService] [org.apache.catalina.core.StandardService startInternal] - Starting service [Catalina] 
#11 43.20 2022-02-02T04:06:50.966L [tomct] [INFO ] [                ] [org.apache.catalina.core.StandardEngine] [org.apache.catalina.core.StandardEngine startInternal] - Starting Servlet Engine: Apache Tomcat/8.5.57 
#11 43.35 2022-02-02T04:06:51.109L [tomct] [INFO ] [                ] [org.apache.catalina.startup.HostConfig] [org.apache.catalina.startup.HostConfig deployDescriptor] - Deploying deployment descriptor [/opt/jfrog/artifactory/app/artifactory/tomcat/conf/Catalina/localhost/access.xml] 
#11 43.35 2022-02-02T04:06:51.109L [tomct] [INFO ] [                ] [org.apache.catalina.startup.HostConfig] [org.apache.catalina.startup.HostConfig deployDescriptor] - Deploying deployment descriptor [/opt/jfrog/artifactory/app/artifactory/tomcat/conf/Catalina/localhost/artifactory.xml] 
#11 43.64 2022-02-02T04:06:51.398L [tomct] [WARNING] [                ] [org.apache.catalina.startup.HostConfig] [org.apache.catalina.startup.HostConfig deployDescriptor] - A docBase [/opt/jfrog/artifactory/app/artifactory/tomcat/webapps/artifactory.war] inside the host appBase has been specified, and will be ignored 
#11 43.64 2022-02-02T04:06:51.398L [tomct] [WARNING] [                ] [org.apache.catalina.startup.HostConfig] [org.apache.catalina.startup.HostConfig deployDescriptor] - A docBase [/opt/jfrog/artifactory/app/artifactory/tomcat/webapps/access.war] inside the host appBase has been specified, and will be ignored 
#11 44.19 [thread 9084 also had an error]
#11 44.19 #
#11 44.19 # A fatal error has been detected by the Java Runtime Environment:
#11 44.19 #
#11 44.19 #  SIGSEGV (0xb) at pc=0x000000401d601180, pid=8980, tid=9085
#11 44.19 #
#11 44.19 # JRE version: OpenJDK Runtime Environment AdoptOpenJDK (11.0.8+10) (build 11.0.8+10)
#11 44.19 # Java VM: OpenJDK 64-Bit Server VM AdoptOpenJDK (11.0.8+10, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
#11 44.19 # Problematic frame:
#11 44.19 # J 1653 c1 java.io.BufferedOutputStream.write([BII)V [email protected] (67 bytes) @ 0x000000401d601180 [0x000000401d6011a0+0xffffffffffffffe0]
#11 44.19 #
#11 44.19 # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#11 44.19 #
#11 44.19 # An error report file with more information is saved as:
#11 44.19 # /opt/jfrog/artifactory/var/hs_err_pid8980.log
#11 44.20 Compiled method (c1)    6297 1653  s    3       java.io.BufferedOutputStream::write (67 bytes)
#11 44.20  total in heap  [0x000000401d600f90,0x000000401d601b58] = 3016
#11 44.20  relocation     [0x000000401d601108,0x000000401d601198] = 144
#11 44.20  main code      [0x000000401d6011a0,0x000000401d601900] = 1888
#11 44.20  stub code      [0x000000401d601900,0x000000401d601970] = 112
#11 44.20  metadata       [0x000000401d601970,0x000000401d601988] = 24
#11 44.20  scopes data    [0x000000401d601988,0x000000401d601a48] = 192
#11 44.20  scopes pcs     [0x000000401d601a48,0x000000401d601b28] = 224
#11 44.20  dependencies   [0x000000401d601b28,0x000000401d601b30] = 8
#11 44.20  nul chk table  [0x000000401d601b30,0x000000401d601b58] = 40
#11 44.20 Could not load hsdis-amd64.so; library not loadable; PrintAssembly is disabled
#11 44.23 #
#11 44.23 # If you would like to submit a bug report, please visit:
#11 44.23 #   https://github.com/AdoptOpenJDK/openjdk-support/issues
#11 44.23 #
#11 44.23 qemu: uncaught target signal 6 (Aborted) - core dumped
#11 44.26 /opt/jfrog/artifactory/app/bin/artifactory.sh: line 347:  8980 Aborted                 $TOMCAT_HOME/bin/catalina.sh run > >(tee >(redirectServiceLogsToFile)) 2>&1
#11 46.01   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#11 46.01                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
#11 46.03 curl: (7) Failed to connect to localhost port 8082: Connection refused
#11 51.12   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#11 51.13                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
#11 51.15 curl: (7) Failed to connect to localhost port 8082: Connection refused
#11 56.24   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#11 56.24                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
#11 56.26 curl: (7) Failed to connect to localhost port 8082: Connection refused
#11 61.34   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#11 61.34                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
#11 61.37 curl: (7) Failed to connect to localhost port 8082: Connection refused
#11 66.44   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#11 66.44                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
#11 66.47 curl: (7) Failed to connect to localhost port 8082: Connection refused
#11 71.54   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#11 71.54                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
#11 71.57 curl: (7) Failed to connect to localhost port 8082: Connection refused
#11 76.66   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#11 76.66                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
#11 76.69 curl: (7) Failed to connect to localhost port 8082: Connection refused
#11 81.78   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#11 81.78                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
#11 81.80 curl: (7) Failed to connect to localhost port 8082: Connection refused
#11 86.90   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#11 86.90                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
#11 86.92 curl: (7) Failed to connect to localhost port 8082: Connection refused
#11 92.01   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#11 92.02                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
#11 92.04 curl: (7) Failed to connect to localhost port 8082: Connection refused
#11 97.13   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#11 97.13                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
#11 97.15 curl: (7) Failed to connect to localhost port 8082: Connection refused
#11 102.2   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#11 102.2                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
#11 102.3 curl: (7) Failed to connect to localhost port 8082: Connection refused
#11 107.4   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#11 107.4                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
#11 107.4 curl: (7) Failed to connect to localhost port 8082: Connection refused
#11 112.5   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#11 112.5                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
#11 112.5 curl: (7) Failed to connect to localhost port 8082: Connection refused
#11 117.6   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#11 117.6                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
#11 117.6 curl: (7) Failed to connect to localhost port 8082: Connection refused
#11 122.7   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#11 122.7                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
#11 122.7 curl: (7) Failed to connect to localhost port 8082: Connection refused
#11 127.8   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#11 127.8                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
#11 127.8 curl: (7) Failed to connect to localhost port 8082: Connection refused
#11 132.9   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#11 132.9                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
#11 132.9 curl: (7) Failed to connect to localhost port 8082: Connection refused
#11 138.0   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#11 138.0                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
#11 138.1 curl: (7) Failed to connect to localhost port 8082: Connection refused
#11 143.1   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#11 143.2                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
#11 143.2 curl: (7) Failed to connect to localhost port 8082: Connection refused
#11 148.3   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#11 148.3                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
#11 148.3 curl: (7) Failed to connect to localhost port 8082: Connection refused
#11 148.3 Timed out waiting for Artifactory
------
failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c /scripts/bootstrap-artifactory-config.sh]: exit code: 152

cajun-code avatar Feb 02 '22 04:02 cajun-code

This is unexpected indeed. Do you have any kind of IT tools in your laptop that could be limiting docker connections or something?

As the one that is failing is the Artifactory one, you might also try to skip it and use the Artifactory Cloud Free Tier for the training, it should be more than enough

memsharded avatar Feb 02 '22 08:02 memsharded

I don't have a Mac to reproduce it, but I suggest you adding --network=host or --network=bridge to your docker run command line.

uilianries avatar Feb 02 '22 09:02 uilianries

same here. The issue is most likely that the provided images are x86. Usually you can emulate x86 with docker on arm by providing the --platform linux/amd64 option to the docker run command. However, I haven't found out how to pass it docker compose.

wAuner avatar Feb 04 '22 08:02 wAuner

same here

vinogradoff avatar May 09 '22 21:05 vinogradoff

I'll take a look on this, as I have access to Mac M1.

uilianries avatar May 10 '22 08:05 uilianries

Well, I can reach the same error, however, it seems be related to Docker Desktop on Mac M1, not that image.

I tried to build using Docker build command, including --platform, and still, it can not access any port.

I saw more people complaining about same thing. I guess Docker Desktop is not stable enough on M1.

Anyway, I opened an issue for docker-for-mac, with my diagnosis, which shows a failure when testing the network: https://github.com/docker/for-mac/issues/6312

I suggest you doing the same, you can run the command /Applications/Docker.app/Contents/MacOS/com.docker.diagnose check and check the result. Also, you can post your full diagnosis to Docker team, by the Docker Desktop GUI, in the troubleshooting field (don't share those files in public repositories, they may contain sensitive data).

uilianries avatar May 10 '22 15:05 uilianries

One month later here, just to update that I still didn't receive an answer from Docker staff.

I already updated to Docker desktop 4.9.0, but still same error. More people commented about the same symptom in my issue.

uilianries avatar Jun 10 '22 08:06 uilianries

Hello. Actually it is not possible to finish any of your practical part of training. I am trying to follow essential training . It is a mess. Just the first one step - set up the environment - no chance successfully finish it: Links do not working. How to proceed with "Artifactory SE in docker". What does it mean what should I do? except of surfing the whole web trying to solve issue by issue.

Why do I have this error: => CANCELED [7/7] RUN /scripts/bootstrap-artifactory-config.sh 48.7s failed to solve: executor failed running [/bin/sh -c sudo apt-get -qq update && sudo apt-get -qq install -y --no-install-recommends vim nano less g++-arm-linux-gnueabihf cmake]: exit code: 100

What does mean this local host and credentials which link is broken ?

Default Artifactory URL: http://localhost:8082/

Default Artifactory Credentials: https://www.jfrog.com/confluence/display/RT12/FAQs#:~:text=Artifactory%20comes%20with%20a%20pre-configured%20default%20%22admin%22%20account

I think the instructions has to have much more steps for new users of your tool.

P/S: Sorry for this msg here I even can not leave a feedback regarding this training anywhere.

smileNika avatar Jul 30 '23 10:07 smileNika

Hi @smileNika

Yes, sorry about that, this training is deprecated and no longer maintained. Conan 2.0 has been out for 6 months, the recommendation would be to follow what is said in the Academy course note:

NOTE: This course is for Conan 1.0, which is not the latest major Conan version. You might still do it and learn from it, if strictly necessary to keep using Conan 1, but the recommended major version is Conan 2. Go to the docs for more information.

And learn conan by following the new tutorial in:

The new documentation for Conan 2 features a new interactive tutorial integrated in the docs

I will update the notes accordingly

memsharded avatar Jul 30 '23 11:07 memsharded

@memsharded So If I will install conan 1.0 all of the commands will work? Ok I will try thank you. But if not - I will come back here ))))

smileNika avatar Aug 07 '23 14:08 smileNika

Hi @smileNika

I am afraid not. It is unlikely that things can keep working, because also packages in ConanCenter can require to use latest Conan. At the moment they should keep working with Conan 1.60, but that can stop working anytime. The training itself is no longer maintained, the docker images might fail, the setup might fail.

But what is most important is that the training contents are legacy and outdated. This training is no longer supported. We have just marked them as deprecated in the JFrog Academy, as the step before completely removing them. This repository has been marked as deprecated too in the Readme.

I am really sorry for the inconvenience, and I know this was a great learning resource that we put tons of time and love to produce. But unfortunately, this training is outdated, and it is more harming than beneficial, so we need to deprecate it and discourage its usage.

memsharded avatar Aug 07 '23 15:08 memsharded