Hello
I set up a Jfrog Artifactory container, using traefik, but when I try to open the application in browse, I get the following error:
Error Bad Gateway and
"GET /artifactory HTTP/2.0" 502 11 "-" "-" 6680 "artifactory-web-https@docker" "http://10.0.2.226:8080" 0ms
My Artifactory configuration:
[root@master-node01 ~]# cat artifactory.yml
version: "3.7"
services:
artifactory:
image: docker.bintray.io/jfrog/artifactory-oss:latest
ports:
- 8081:8081
volumes:
# Ensure Jenkins content persist between restarts.
- /opt/data/jfrog/artifactory:/var/opt/jfrog/artifactory # << The Folder need 1000:1000 permission
# remove the '#' if you want to run blueocean docker agents (advanced only)
- /var/run/docker.sock:/var/run/docker.sock
networks:
- traefik-public
deploy:
mode: replicated
replicas: 1
placement:
constraints:
- node.role == manager
labels:
- traefik.enable=true
- traefik.docker.network=traefik-public
- traefik.constraint-label=traefik-public
- traefik.http.routers.artifactory-web-http.rule=Host(artifactory.${DOMAIN?Variable not set}
)
- traefik.http.routers.artifactory-web-http.entrypoints=http
- traefik.http.routers.artifactory-web-http.middlewares=https-redirect
- traefik.http.routers.artifactory-web-https.rule=Host(artifactory.${DOMAIN?Variable not set}
)
- traefik.http.routers.artifactory-web-https.entrypoints=https
- traefik.http.routers.artifactory-web-https.tls=true
- traefik.http.routers.artifactory-web-https.tls.certresolver=le
- traefik.http.services.artifactory-web.loadbalancer.server.port=8080
networks:
traefik-public:
external: true
Logs Artifactory:
artifactory_artifactory.1.aj1g9nuhzvb7@master-node01 | JF Environment variables
artifactory_artifactory.1.aj1g9nuhzvb7@master-node01 | ========================
artifactory_artifactory.1.aj1g9nuhzvb7@master-node01 |
artifactory_artifactory.1.aj1g9nuhzvb7@master-node01 | JF_SHARED_NODE_NAME : 34d86db6c886
artifactory_artifactory.1.aj1g9nuhzvb7@master-node01 | JF_SYSTEM_YAML : /opt/jfrog/artifactory/var/etc/system.yaml
artifactory_artifactory.1.aj1g9nuhzvb7@master-node01 | JF_ARTIFACTORY_PID : /opt/jfrog/artifactory/app/run/artifactory.pid
artifactory_artifactory.1.aj1g9nuhzvb7@master-node01 | JF_PRODUCT_DATA_INTERNAL : /var/opt/jfrog/artifactory
artifactory_artifactory.1.aj1g9nuhzvb7@master-node01 | JF_PRODUCT_HOME : /opt/jfrog/artifactory
artifactory_artifactory.1.aj1g9nuhzvb7@master-node01 | JF_ROUTER_TOPOLOGY_LOCAL_REQUIREDSERVICETYPES : jfrt,jfac,jfmd,jffe
artifactory_artifactory.1.aj1g9nuhzvb7@master-node01 | JF_SHARED_NODE_IP : 10.0.2.226
artifactory_artifactory.1.aj1g9nuhzvb7@master-node01 | JF_SHARED_NODE_ID : 34d86db6c886
artifactory_artifactory.1.aj1g9nuhzvb7@master-node01 | JF_ARTIFACTORY_USER : artifactory
artifactory_artifactory.1.aj1g9nuhzvb7@master-node01 | Starting router...
artifactory_artifactory.1.aj1g9nuhzvb7@master-node01 | router not running. Proceed to start it up.
artifactory_artifactory.1.aj1g9nuhzvb7@master-node01 | router started. PID: 2757
artifactory_artifactory.1.aj1g9nuhzvb7@master-node01 | Starting frontend...
artifactory_artifactory.1.aj1g9nuhzvb7@master-node01 | frontend not running. Proceed to start it up.
artifactory_artifactory.1.aj1g9nuhzvb7@master-node01 | frontend started. PID: 2886
artifactory_artifactory.1.aj1g9nuhzvb7@master-node01 | 2020-06-09T03:15:40.859Z [jfrou] [INFO ] [7210ce4bcc57341b] [bootstrap.go:71 ] [main ] - Router (jfrou) service initialization started. Version: 1.4.0 Revision: c5afa81f01bce3632fbd8313e78b8cfe066fad67 PID: 2757 Home: /opt/jfrog/artifactory
artifactory_artifactory.1.aj1g9nuhzvb7@master-node01 | 2020-06-09T03:15:40.860Z [jfrou] [INFO ] [7210ce4bcc57341b] [bootstrap.go:74 ] [main ] - JFrog Router IP: 10.0.2.226
artifactory_artifactory.1.aj1g9nuhzvb7@master-node01 | Starting metadata...
artifactory_artifactory.1.aj1g9nuhzvb7@master-node01 | JF_METADATA_ACCESSCLIENT_URL: http://localhost:8081/access
artifactory_artifactory.1.aj1g9nuhzvb7@master-node01 | metadata started. PID: 3081
artifactory_artifactory.1.aj1g9nuhzvb7@master-node01 | 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
artifactory_artifactory.1.aj1g9nuhzvb7@master-node01 | [DEBUG] Resolved system configuration file path: /opt/jfrog/artifactory/var/etc/system.yaml
artifactory_artifactory.1.aj1g9nuhzvb7@master-node01 | 2020-06-09T03:15:42.342Z [jffe ] [INFO ] [ ] [ ] [main ] - frontend (jffe) service initialization started. Version: 1.5.0 Revision: 0.0.0 PID: 2886 Home: /opt/jfrog/artifactory