Hello team, I am trying to upgrade a local docker ...
# troubleshoot
c
Hello team, I am trying to upgrade a local docker installation to latest release, by following
No Code Upgrade guide
with this command:
Copy code
docker-compose down --remove-orphans && docker-compose pull && docker-compose -p datahub up --force-recreate
but are seeing gms errors on startup, and UI not working
e
Which version are you trying to upgrade from? If it is v0.8.X you do not need to follow the upgrade guide
c
thanks. it was old version from July, I think. so probably 0.8.x. how could I check version of installation quickly?
e
Currently there is no way to know which version within v0.8.x you have deployed (unless you deployed that specific tag). We input important settings in the /config endpoint. It returns a map of configs we need to check for backward incompatibility. If it says “noCode”: “true”, you don’t need to follow this upgrade process. Simple deploy of the latest release will work!
c
thanks for the info! let me grab that config data then
doesn't seem there is 'noCode' config,
Copy code
{
  "status": "ok",
  "config": {
    "appVersion": "1.0",
    "isInternal": false,
    "shouldShowDatasetLineage": true,
    "suggestionConfidenceThreshold": 50,
    "wikiLinks": {
      "appHelp": "<https://github.com/linkedin/datahub>",
      "gdprPii": "",
      "tmsSchema": "",
      "gdprTaxonomy": "",
      "staleSearchIndex": "",
      "dht": "",
      "purgePolicies": "",
      "jitAcl": "",
      "metadataCustomRegex": "",
      "exportPolicy": "",
      "metadataHealth": "",
      "purgeKey": "",
      "datasetDecommission": ""
    },
    "tracking": {
      "trackers": {
        "piwik": {
          "piwikSiteId": 0,
          "piwikUrl": ""
        }
      },
      "isEnabled": true
    },
    "isStagingBanner": false,
    "isLiveDataWarning": false,
    "showChangeManagement": false,
    "showPeople": true,
    "changeManagementLink": "",
    "isStaleSearch": true,
    "showAdvancedSearch": true,
    "useNewBrowseDataset": true,
    "showLineageGraph": true,
    "showInstitutionalMemory": true,
    "userEntityProps": {
      "aviUrlPrimary": "",
      "aviUrlFallback": ""
    }
  }
}
e
are you querying gms?
this doesn’t seem like the correct one
so for example, if your gms is deployed locally to port 8080. http://localhost:8080/config
c
ah yeah, let me try that.
yeah, I am getting {"noCode":"true"} for my previous deployment. so I don't need to follow that
no code upgrade guide
. which method should I use to upgrade to certain release or latest? I thought
docker-compose down --remove-orphans && docker-compose pull && docker-compose -p datahub up --force-recreate
should work to get latest anyway, no?
e
you can also just stop the datahub-gms and frontend containers and rerun docker-compose -p datahub up
c
thanks, will try that