Can't upgrade from 9.1.2 to 9.1.7

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gomez
    Junior Member
    • Jul 2024
    • 24

    #1

    Can't upgrade from 9.1.2 to 9.1.7

    Me again with yet more upgrade woes.

    This time I'm trying to upgrade from 9.1.2 to 9.1.7

    I have a script install so I issue

    sudo /var/www/espocrm/command.sh upgrade

    This runs ok but does give me the normal skipped warning that I get every time:-

    esprocrm-websocket Skipped - Image is already being pulled by espocrm-daemon
    espocrm Skipped - Image is already being pulled by espocrm-daemon

    When I go back into Admin/about I'm still on 9.1.2

    Tried clearing cache, incognito tabs and different browser to no avail.

    Run

    sudo /var/www/espocrm/command.sh rebuild

    which has fixed the issue previously and it has no effect. Also tried 'restart' but that didn't work either.

    Checked the github page and it 'looks' like 9.1.7 is available.

    Even tried rebooting my server.

    I'm not sure why I always struggle to get this to upgrade, but any help would be really appreciated.
  • lazovic
    Super Moderator
    • Jan 2022
    • 1190

    #2
    Hi Gomez,

    Can you please show the logs of the espocrm container? Run the following command in CLI:
    Code:
    sudo docker logs espocrm

    Comment

    • Gomez
      Junior Member
      • Jul 2024
      • 24

      #3
      Hi lazovic Thanks for responding.

      I re-ran the upgrade command and then copied all the log entries for today from your command above.

      172.18.0.3 - 30/Jun/2025:08:36:45 +0000 "GET /index.php" 200
      172.18.0.3 - 30/Jun/2025:08:36:45 +0000 "GET /api/v1/index.php" 200
      172.18.0.3 - admin 30/Jun/2025:08:36:45 +0000 "GET /api/v1/index.php" 401
      172.18.0.3 - 30/Jun/2025:08:36:46 +0000 "GET /index.php" 200
      172.18.0.3 - admin 30/Jun/2025:08:37:03 +0000 "GET /api/v1/index.php" 200
      172.18.0.3 - admin 30/Jun/2025:08:37:03 +0000 "GET /api/v1/index.php" 200
      172.18.0.3 - 30/Jun/2025:08:37:03 +0000 "GET /index.php" 200
      172.18.0.3 - admin 30/Jun/2025:08:37:03 +0000 "GET /api/v1/index.php" 200
      172.18.0.3 - admin 30/Jun/2025:08:37:03 +0000 "GET /api/v1/index.php" 200
      172.18.0.3 - admin 30/Jun/2025:08:37:04 +0000 "GET /api/v1/index.php" 200
      172.18.0.3 - admin 30/Jun/2025:08:37:04 +0000 "GET /api/v1/index.php" 200
      172.18.0.3 - admin 30/Jun/2025:08:37:09 +0000 "GET /api/v1/index.php" 200
      172.18.0.3 - 30/Jun/2025:08:40:23 +0000 "GET /index.php" 200
      172.18.0.3 - 30/Jun/2025:08:40:23 +0000 "GET /api/v1/index.php" 200
      172.18.0.3 - admin 30/Jun/2025:08:40:23 +0000 "GET /api/v1/index.php" 200
      172.18.0.3 - admin 30/Jun/2025:08:40:23 +0000 "GET /api/v1/index.php" 200
      172.18.0.3 - admin 30/Jun/2025:08:40:24 +0000 "GET /api/v1/index.php" 200
      172.18.0.3 - admin 30/Jun/2025:08:40:24 +0000 "GET /api/v1/index.php" 200
      172.18.0.3 - admin 30/Jun/2025:08:40:24 +0000 "GET /api/v1/index.php" 200
      172.18.0.3 - 30/Jun/2025:08:40:26 +0000 "GET /index.php" 200
      172.18.0.3 - 30/Jun/2025:08:40:26 +0000 "GET /api/v1/index.php" 200
      172.18.0.3 - admin 30/Jun/2025:08:40:26 +0000 "GET /api/v1/index.php" 200
      172.18.0.3 - admin 30/Jun/2025:08:40:26 +0000 "GET /api/v1/index.php" 200
      172.18.0.3 - admin 30/Jun/2025:08:40:26 +0000 "GET /api/v1/index.php" 200
      172.18.0.3 - admin 30/Jun/2025:08:40:26 +0000 "GET /api/v1/index.php" 200
      172.18.0.3 - admin 30/Jun/2025:08:40:26 +0000 "GET /api/v1/index.php" 200
      gomez@lexx:~$

      Comment

      • Gomez
        Junior Member
        • Jul 2024
        • 24

        #4
        Hi lazovic sorry to bug you but I'm still unable to get past 9.1.2

        Comment

        • lazovic
          Super Moderator
          • Jan 2022
          • 1190

          #5
          Gomez,

          Maybe this issue is related to yours: https://github.com/espocrm/espocrm-docker/issues/58.

          Comment

          • Gomez
            Junior Member
            • Jul 2024
            • 24

            #6
            lazovic

            Thanks for responding.

            I have added the DB healthcheck to docker-compose.yml but I still cannot upgrade.

            This is the output from sudo /var/www/espocrm/command.sh upgrade

            Creating a backup...
            Backup is created: /var/www/espocrm-backup/2025-11-21_151328.tar.gz
            [+] Pulling 5/5
            ✔ espocrm-daemon Skipped - Image is already being pulled by espocrm 0.0s
            ✔ espocrm-websocket Skipped - Image is already being pulled by espocrm 0.0s
            ✔ espocrm-db Pulled 1.5s
            ✔ espocrm Pulled 1.5s
            ✔ espocrm-nginx Pulled 1.4s
            [+] Running 5/5
            ✔ Container espocrm-db Healthy 0.5s
            ✔ Container espocrm Running 0.0s
            ✔ Container espocrm-daemon Running 0.0s
            ✔ Container espocrm-websocket Running 0.0s
            ✔ Container espocrm-nginx Running

            sudo /var/www/espocrm.command.sh logs gives

            [21-Nov-2025 14:08:00] NOTICE: Finishing ...
            [21-Nov-2025 14:08:00] NOTICE: exiting, bye-bye!
            info: Run "upgrade" action.
            info: Start upgrading from version 9.1.2.
            error: Upgrade error, more details:
            Error: SQLSTATE[HY000] [2002] Connection refused
            [21-Nov-2025 14:08:04] NOTICE: fpm is running, pid 1
            [21-Nov-2025 14:08:04] NOTICE: ready to handle connections

            This is my current docker-compose.yml

            ​# MODE: http
            # VERSION: 2.5.1

            services:

            espocrm-db:
            image: mariadb:latest
            container_name: espocrm-db
            command: --max-allowed-packet=64MB
            restart: always
            environment:
            MARIADB_ROOT_PASSWORD: *******
            MARIADB_DATABASE: espocrm
            MARIADB_USER: espocrm
            MARIADB_PASSWORD: ********
            volumes:
            - ./data/mariadb/data:/var/lib/mysql
            networks:
            - espocrm-network
            healthcheck:
            test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
            interval: 20s
            start_period: 10s
            timeout: 10s
            retries: 3

            espocrm-nginx:
            image: nginx:latest
            container_name: espocrm-nginx
            environment:
            NGINX_HOST: 192.168.38.5
            volumes:
            - ./data/nginx/conf.d/:/etc/nginx/templates
            - ./data/espocrm:/var/www/html
            - ./data/nginx/espocrm.conf:/etc/nginx/espocrm.conf
            - ./data/nginx/logs:/var/log/nginx
            restart: always
            depends_on:
            - espocrm
            - espocrm-websocket
            ports:
            - "80:80"
            networks:
            - espocrm-network

            espocrm:
            image: espocrm/espocrm:fpm
            container_name: espocrm
            environment:
            ESPOCRM_DATABASE_HOST: espocrm-db
            ESPOCRM_DATABASE_USER: espocrm
            ESPOCRM_DATABASE_PASSWORD: ******
            ESPOCRM_ADMIN_USERNAME: admin
            ESPOCRM_ADMIN_PASSWORD: *********
            ESPOCRM_CONFIG_SITE_URL: "http://192.168.38.5"
            restart: always
            depends_on:
            espocrm-db:
            condition: service_healthy
            volumes:
            - ./data/espocrm:/var/www/html
            networks:
            - espocrm-network


            espocrm-daemon:
            image: espocrm/espocrm:fpm
            container_name: espocrm-daemon
            volumes:
            - ./data/espocrm:/var/www/html
            restart: always
            depends_on:
            - espocrm
            entrypoint: docker-daemon.sh
            networks:
            - espocrm-network

            espocrm-websocket:
            container_name: espocrm-websocket
            image: espocrm/espocrm:fpm
            environment:
            ESPOCRM_CONFIG_USE_WEB_SOCKET: "true"
            ESPOCRM_CONFIG_WEB_SOCKET_ZERO_M_Q_SUBSCRIBER_DSN: "tcp://*:7777"
            ESPOCRM_CONFIG_WEB_SOCKET_ZERO_M_Q_SUBMISSION_DSN: "tcp://espocrm-websocket:7777"
            volumes:
            - ./data/espocrm:/var/www/html
            restart: always
            depends_on:
            - espocrm
            entrypoint: docker-websocket.sh
            ports:
            - "8080:8080"
            networks:
            - espocrm-network

            networks:
            espocrm-network:
            driver: bridge

            ------------------------------

            I'm really a loss now with this, as I think I've done everything I've found on the forums, so any help you can give me to get this sorted once and for all would be very much appreciated.

            Comment

            Working...