Unable to run docker image
Opened this issue · 5 comments
I tried running the following command to get the docker image
docker run -d -p 8181:8181 -p 8282:8282 -p 8383:8383 -p 4242:4242 -v /tmp/akumuli:/Akumuli -e nvolumes='16' -e volume_size='1GB' akumuli/akumuli:skylake
docker logs show the following error.
/Akumuli
WARNING: DB is not exist. creating
FAILURE conversion of data to type "i" failed
ERROR: Can't create database
Hi,
I can't reproduce the issue. Can you attach akumuli log? It should be located at /tmp/akumuli/logs
.
I reproduced running akumuli/akumuli:0.7.54-generic
on CentOS 7.5 host.
Entirety of /tmp/akumuli/akumuli.log
:
2018-10-30 17:03:50,829 main [INFO]
Started v0.7.54
Command line: /usr/bin/akumulid --create
Entirety of docker container log:
/Akumuli
WARNING: DB is not exist. creating
2018-10-30 17:03:50,829 main [INFO]
Started v0.7.54
Command line: /usr/bin/akumulid --create
FAILURE conversion of data to type "i" failed
ERROR: Can't create database
I tried to reproduce it on CentOS 7.5 without any luck. The error message says that the configuration file is ill-formed. Can you retreive it and publish here please? I believe, it could be done using the docer cp
command. The file name in the container is /root/.akumulid
.
Renamed to allow attachment
akumulid.txt
Additional environment info:
CPU: Intel(R) Xeon(R) CPU E5-2650 v4 @ 2.20GHz
Running under a Microsoft Hypervisor
It looks like the problem is simple. The line like this:
docker run -d -p 8181:8181 -p 8282:8282 -p 8383:8383 -p 4242:4242 -v /tmp/akumuli:/Akumuli -e nvolumes='16' -e volume_size='1GB' akumuli/akumuli:skylake
is supposed to be copied and pasted into the bash shell. In this case, the single quotes around '16' and '1GB' would be removed. For some reason, they weren't removed. To fix this you just need to use the same command without the quotes:
docker run -d -p 8181:8181 -p 8282:8282 -p 8383:8383 -p 4242:4242 -v /tmp/akumuli:/Akumuli -e nvolumes=16 -e volume_size=1GB akumuli/akumuli:skylake