I’m trying to install a new MemSQL dockerized version with the following command:
docker run -i --init --name memsql
-e LICENSE_KEY="…"
-p 3308:3306
-p 8080:8080
-v /app/database/memsql:/var/lib/memsql
memsql/cluster-in-a-box
The /app/database/memsql is totally empty before run.
I got the following error message:
memsqlctl cannot find lock file /var/lib/memsql/nodes.hcl.lock. To fix this, please run
· touch /var/lib/memsql/nodes.hcl.lock
· chmod 640 /var/lib/memsql/nodes.hcl.lock
· chown memsql:memsql /var/lib/memsql/nodes.hcl.lock
(memsql:memsql are the owner and group of the node metadata file at /var/lib/memsql/nodes.hcl)
Traceback (most recent call last):
File “/startup”, line 95, in
initialize_cluster = len(ctl(“list-nodes”)[“nodes”]) == 0
File “/startup”, line 18, in ctl
subprocess.check_output([“memsqlctl”, “-yj”] + list(args)))
File “/usr/lib64/python2.7/subprocess.py”, line 575, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command ‘[‘memsqlctl’, ‘-yj’, ‘list-nodes’]’ returned non-zero exit status 1
I’ve not idea what’s wrong…Could anybody help?