memsql/deployment-docker

memsql/cluster-in-a-box latest image failed to start container

Closed this issue · 1 comments

after pulling the latest image this issue occurs

    ~/workdir/js/master *16 !1 ▓▒░ docker-compose up  memsql                                                            ░▒▓ 2 ✘  15s   2.7.2   08:24:30 
    Recreating platform-js_memsql_1 ... done
    Attaching to platform-js_memsql_1
    memsql_1           | 2021-07-26 05:24:41.431505 Starting Cluster
    memsql_1           | Latest errors from MemSQL tracelog:
    memsql_1           | 13651863 2021-07-26 05:24:55.333  FATAL: Thread 115111: jumpToUpgradeStep: This node is not managed by a supported tool. Please use a toolbox version at least as new as 1.11.3.
    memsql_1           | : Failed to connect to MemSQL: process exited: exit status 1
    memsql_1           | Traceback (most recent call last):
    memsql_1           |   File "/startup", line 122, in <module>
    memsql_1           |     start_cluster()
    memsql_1           |   File "/startup", line 86, in start_cluster
    memsql_1           |     ctl("start-node", "--all")
    memsql_1           |   File "/startup", line 18, in ctl
    memsql_1           |     subprocess.check_output(["memsqlctl", "-yj"] + list(args)))
    memsql_1           |   File "/usr/lib64/python2.7/subprocess.py", line 575, in check_output
    memsql_1           |     raise CalledProcessError(retcode, cmd, output=output)
    memsql_1           | subprocess.CalledProcessError: Command '['memsqlctl', '-yj', 'start-node', '--all']' returned non-zero exit status 1

on this version everything works fine memsql/cluster-in-a-box:centos-7.3.12-2d93725f98-3.2.11-1.11.7

this is my docker-compose setup using memsql/cluster-in-a-box

  memsql:
    image: memsql/cluster-in-a-box
    volumes:
      - "./init.sql"
    ports:
      - "3307:3306"
      - "8080:8080"
    environment:
      START_AFTER_INIT: Y
      ROOT_PASSWORD: 'root'
      LICENSE_KEY:*************************

'Please use a toolbox version at least as new as 1.11.3.'

OS: macOs bigSur v11.4
Docker : v20.10.7

@ntedgi Thank you for filing the issue!
For upgrades from 7.0 and newer versions, the workaround is to update the toolbox_version variable. This can be done in two ways:

  1. Run sdb-admin update-config --key toolbox_version --value 1.11.7 --all from the running container, right before changing the image to 7.5.
  2. Manually update the memsql.cnf files for each node adding toolbox_version=1.11.7 line to the file content. The config file for a node is located under node's directory in ./init.sql.