Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-13238

community.lsst.org Discourse 1.9 to 2.0 upgrade

    Details

      Description

      This covers the regular maintenance of community.lsst.org to upgrade it from Discourse v1.9 to v2.0.

        Attachments

          Activity

          Hide
          jsick Jonathan Sick added a comment -

          This upgrade was tricky because it required a Docker upgrade:

          ERROR: Docker version 1.9.1 not supported, please upgrade to at least 17.03.1, or recommended 17.06.2
          

          Followed the recommendations at https://github.com/moby/moby/wiki/Engine-v1.10.0-content-addressability-migration

          docker run --rm -v /var/lib/docker:/var/lib/docker docker/v1.10-migrator
          

          Then I upgraded Docker itself:

          wget -qO- https://get.docker.com/ | sh
           
          Client:
           Version:       18.01.0-ce
           API version:   1.35
           Go version:    go1.9.2
           Git commit:    03596f5
           Built: Wed Jan 10 20:09:59 2018
           OS/Arch:       linux/amd64
           Experimental:  false
           Orchestrator:  swarm
           
          Server:
           Engine:
            Version:      18.01.0-ce
            API version:  1.35 (minimum version 1.12)
            Go version:   go1.9.2
            Git commit:   03596f5
            Built:        Wed Jan 10 20:08:31 2018
            OS/Arch:      linux/amd64
            Experimental: false
          If you would like to use Docker as a non-root user, you should now consider
          adding your user to the "docker" group with something like:
           
            sudo usermod -aG docker your-user
           
          Remember that you will have to log out and back in for this to take effect!
           
          WARNING: Adding a user to the "docker" group will grant the ability to run
                   containers which can be used to obtain root privileges on the
                   docker host.
                   Refer to https://docs.docker.com/engine/security/security/#docker-daemon-attack-surface
                   for more information.
          

          Then I logged into the community.lsst.org server and manually ran the upgrade:

          cd /var/discourse
          git pull
          ./launcher rebuild app
          

          Show
          jsick Jonathan Sick added a comment - This upgrade was tricky because it required a Docker upgrade: ERROR: Docker version 1.9.1 not supported, please upgrade to at least 17.03.1, or recommended 17.06.2 Followed the recommendations at https://github.com/moby/moby/wiki/Engine-v1.10.0-content-addressability-migration docker run --rm -v /var/lib/docker:/var/lib/docker docker/v1.10-migrator Then I upgraded Docker itself: wget -qO- https://get.docker.com/ | sh   Client: Version: 18.01.0-ce API version: 1.35 Go version: go1.9.2 Git commit: 03596f5 Built: Wed Jan 10 20:09:59 2018 OS/Arch: linux/amd64 Experimental: false Orchestrator: swarm   Server: Engine: Version: 18.01.0-ce API version: 1.35 (minimum version 1.12) Go version: go1.9.2 Git commit: 03596f5 Built: Wed Jan 10 20:08:31 2018 OS/Arch: linux/amd64 Experimental: false If you would like to use Docker as a non-root user, you should now consider adding your user to the "docker" group with something like:   sudo usermod -aG docker your-user   Remember that you will have to log out and back in for this to take effect!   WARNING: Adding a user to the "docker" group will grant the ability to run containers which can be used to obtain root privileges on the docker host. Refer to https://docs.docker.com/engine/security/security/#docker-daemon-attack-surface for more information. Then I logged into the community.lsst.org server and manually ran the upgrade: cd /var/discourse git pull ./launcher rebuild app

            People

            • Assignee:
              jsick Jonathan Sick
              Reporter:
              jsick Jonathan Sick
              Watchers:
              Jonathan Sick
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel