Hi everyone! I just upgrade the datahub version to...
# troubleshoot
f
Hi everyone! I just upgrade the datahub version to v0.9.2 using docker-compose.yml
Copy code
version: '3.8'
services:
...  
  neo4j:
    image: neo4j:4.4.9-community
    env_file: neo4j/env/docker.env
    hostname: neo4j
    container_name: neo4j
    ports:
      - ${DATAHUB_MAPPED_NEO4J_HTTP_PORT:-7474}:7474
      - ${DATAHUB_MAPPED_NEO4J_BOLT_PORT:-7687}:7687
    volumes:
      - neo4jdata:/data
...
networks:
  default:
    name: datahub_network

volumes:
  esdata:
  neo4jdata:
  zkdata:
  broker:
neo4j/env/docker.env
Copy code
NEO4J_AUTH=neo4j/datahub
NEO4J_dbms_default__database=graph.db
NEO4J_dbms_allow__upgrade=true
But the neo4j container could not start due to the message:
Copy code
Changed password for user 'neo4j'. IMPORTANT: this change will only take effect if performed before the database is started for the first time.
Could anyone help? Thank you so much in advance!
i
Hello Hue, Are you using a custom docker-compose.yaml file?
f
Hi Silva, I used the default one which is included in the github of version v0.9.2 https://github.com/datahub-project/datahub/blob/master/docker/docker-compose.yml
i
If using docker-compose to run datahub, please use the
datahub
cli, specifically:
datahub docker quickstart
, this will generate a docker-compose file and save it locally on your machine that is tailored to your system.
You should be able to see the docker-compose files under
~/.datahub/quickstart/
f
Does datahub docker quickstart support upgrade? what commands I should run?
i
What do you mean with upgrade?
f
I did the version upgrade from v0.8.24 to v0.9.2 using
Copy code
docker-compose down --remove-orphans && docker-compose pull && docker-compose -p datahub up --force-recreate
after upgrade, I restarted neo4j one or 2 times, and it could not be restarted due to
Copy code
Changed password for user 'neo4j'. IMPORTANT: this change will only take effect if performed before the database is started for the first time.
So, you advice me to use quickstart. I don't know if using quickstart can help me upgrade as I'm gonna do the upgrade on production.