RocketChat / Rocket.Chat

The communications platform that puts data protection first.
https://rocket.chat/
Other
40.39k stars 10.51k forks source link

upgrade has failed from 5.3.5 to 5.4.0/1 #27727

Open ValheruPL opened 1 year ago

ValheruPL commented 1 year ago

Description:

Wizard steps instead login page after upgrade from 5.3.5 to 5.4.0/1

Server has upgraded successfully several times on 5.3.* family.

Steps to reproduce:

docker pull registry.rocket.chat/rocketchat/rocket.chat:5.4.0 docker-compose stop rocketchat docker-compose rm rocketchat docker-compose up -d rocketchat

Expected behavior:

I should see Login Page :))

Actual behavior:

image

Server Setup Information:

Docker Compose:

  rocketchat:
    image: registry.rocket.chat/rocketchat/rocket.chat:5.4.0
    restart: on-failure
    labels:
      - "traefik.backend=rocketchat"
      - "traefik.frontend.rule=Host: rocket.domain.tld"
    networks:
     iservices:
       aliases:
        - rocket.domain.tld
    environment:
      - PORT=3000
      - ROOT_URL=http://localhost:3000
      - MONGO_URL=mongodb://mongo:27017/rocketchat
      - MONGO_OPLOG_URL=mongodb://mongo:27017/local
      - REG_TOKEN=${REG_TOKEN}
    volumes:
      - ./uploads:/app/uploads
    depends_on:
      - mongodb
    ports:
      - 3000:3000

  mongodb:
    image: docker.io/bitnami/mongodb:${MONGODB_VERSION:-4.4}
    restart: on-failure
    container_name: mongo
    volumes:
     - ./data/db:/data/db
    environment:
      MONGODB_REPLICA_SET_MODE: primary
      MONGODB_REPLICA_SET_NAME: ${MONGODB_REPLICA_SET_NAME:-rs0}
      MONGODB_PORT_NUMBER: ${MONGODB_PORT_NUMBER:-27017}
      MONGODB_INITIAL_PRIMARY_HOST: ${MONGODB_INITIAL_PRIMARY_HOST:-mongodb}
      MONGODB_INITIAL_PRIMARY_PORT_NUMBER: ${MONGODB_INITIAL_PRIMARY_PORT_NUMBER:-27017}
      MONGODB_ADVERTISED_HOSTNAME: ${MONGODB_ADVERTISED_HOSTNAME:-mongodb}
      MONGODB_ENABLE_JOURNAL: ${MONGODB_ENABLE_JOURNAL:-true}
      ALLOW_EMPTY_PASSWORD: ${ALLOW_EMPTY_PASSWORD:-yes}

Client Setup Information

Additional context

image

dudanogueira commented 1 year ago

Hi!

Are you locked in the Wizard or were you able to skip it? Also, were you able to reproduce this by installing 5.3.5 and migrating to 5.4.1 using a clean fresh docker install?

let me know so if I can try reproducing it on my end and debugging it further.

Thanks!

ValheruPL commented 1 year ago

Hi

Are you locked in the Wizard or were you able to skip it? Nope. any skip button, only "next".

Also, were you able to reproduce this by installing 5.3.5 and migrating to 5.4.1 using a clean fresh docker install? I didn't try. I focused on updating the production.

let me know so if I can try reproducing it on my end and debugging it further. Unfortunately, this is not possible. The database contains company data. :(

ValheruPL commented 1 year ago

Success!

  1. Database dumped in version 5.3.5.
  2. Upgraded Rocket to 5.4.1
  3. Database imported from version 5.3.5
  4. User administrator login works with password from v5.3.5.
  5. Reconfigured all settings. SMTP, LDAP, etc.

It seems to be working. :|