Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-21767

Docker-compose upgrade from Artifactory 6.17/PostgreSQl 9.6.11 to Artifactory7.3.2

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Compose, Docker, Upgrade
    • Labels:
      None
    • Environment:

      Current:

      Os: Centos7
      Docker-compose: 1.25.4
      Docker: 19.03.8
      Dockerized Artifactory: 6.17.0
      Dockerized PostgreSQL: 9.6.11

    • Severity:
      Critical
    • Requirement Status:

      UNCOVERED

      Description

      Having issues upgrading from a docker-compose ArtifactoryPro 6.17.0/Postgres9.6.11 to a dokcer-compose ArtifactoryPro7.3.2/Postgres9.6.11 based on instructions posted on 

      https://www.jfrog.com/confluence/display/JFROG/Upgrading+Artifactory#UpgradingArtifactory-DockerUpgrade

      My current setup:

      Artifactory 6.17.0
      Postgresql 9.6.11

       

       

      version: '3'
      services:
        postgresql:
          image: docker.bintray.io/postgres:9.6.11
          container_name: postgresql
          ports:
           - 5432:5432
          environment:
           - POSTGRES_DB=artifactory
           - POSTGRES_USER=xxx
           - POSTGRES_PASSWORD=xxxxxx
          volumes:
           - postgresql_data:/var/lib/postgresql/data
          restart: always
          ulimits:
            nproc: 65535
            nofile:
              soft: 32000
              hard: 40000
        artifactory:
          image: docker.bintray.io/jfrog/artifactory-pro:6.17.0
          container_name: artifactory
          ports:
           - 80:8081
          depends_on:
           - postgresql
          links:
           - postgresql
          volumes:
           - artifactory_data:/var/opt/jfrog/artifactory
          environment:
           - DB_TYPE=postgresql
           - DB_USER=xxx
           - DB_PASSWORD=xxxxxx
          restart: always
          ulimits:
            nproc: 65535
            nofile:
              soft: 32000
              hard: 40000
      volumes:    
          postgres_data:
              external: true   
          artifactory_data:   
              external: true

      I've made several attempts at upgrading to 7.3.2 and following the instructions int he upgrade process with no success. 

      Not sure what I should be modifying my ROOT_DATA_DIR in .env file with my current set up since the data resides in separate docker volumes for the the postgresql and artifactory data. These were based off the now deprecated docker-compose instructions on https://github.com/jfrog/artifactory-docker-examples with a slight tweak to use docker named volumes versus localhost bind mounts, but none the less its working fine.

      But the shift to using 7.3.2 has a config.sh process that's hard to follow. how am I supposed to migrate my content from the docker volumes in /var/lib/docker/volumes into this new process.

      I've tried combinations of changing the ROOT_DATA_DIR in the .env file and modifying the docker-compose-postgres.yaml file in template to match my previous set up, that didn't work. Looks as if the config file is making one directory /var at whatever you set as the ROOT_DATA_DIR and dumping everything in there. I'm not even sure if I should be selecting 'Y' when I'm asked if I want Postgresql installed? The previous steps told me to stop and remove the existing containers and when I docker-compose up with the new stuff, nothing works. depnding on the atrtempt of the moment I'll get 'timeout for missing master.key" or timeout waitin for join.key" or "cant initailaize database sql exception trying to use BYTEA". I even tried to see if I could use a full system export form 6.17.0 and create an empty 7.3.2 with psotgresql and restore from that but I couldn't get taht to work either, cant get the frontend to launch before something timesout.

       

        Attachments

          Forms

            Activity

                People

                Assignee:
                Unassigned
                Reporter:
                vern1977 Kevin Brizida
                Votes:
                2 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:

                    PagerDuty