Huginn: Cannot start latest docker image

Created on 5 Apr 2018  Â·  6Comments  Â·  Source: huginn/huginn

Getting a permission issue?? when starting docker with

sudo docker run -it -p 3000:3000 -v /home/test/mysql-data:/var/lib/mysql --restart always huginn/huginn

Results in:

bootstrap stderr | mv:  bootstrap stderr | cannot create directory ‘/var/lib/mysql/mysql’ bootstrap stderr | : Permission denied bootstrap stderr |
bootstrap stderr | mv:  bootstrap stderr | cannot create directory ‘/var/lib/mysql/performance_schema’ bootstrap stderr | : Permission denied bootstrap stderr |

Any ideas?

Most helpful comment

Got around the issue using docker volume. Maybe helpful for some.
docker volume create huginn-data
docker run -it -p 3000:3000 -v huginn-data:/var/lib/mysql huginn/huginn

All 6 comments

Tried some of the older dcoker images and found it stopped working for me at this tag:

80549455938ef32a043e986529c50b6245154b81

looking into further, that tag date kinda matches this merge and looks like it could be related:
https://github.com/huginn/huginn/pull/2112

I managed to get it working by changing /home/test/mysql-data to permission 777 ???

Any ideas why?

Hi @johnnyzen,

I was afraid that the change you mention could cause problems upgrading, but I guess the permission issue does not happen on macOS.

To improve security, newer versions of the docker image do not run the processes as root that is why mysql could not be started.

An alternative solution would be to chown the mysql-data directory to 1001:1001.

I will try to find some time to document the upgrade process in the next days.

many thanks @dsander

Got around the issue using docker volume. Maybe helpful for some.
docker volume create huginn-data
docker run -it -p 3000:3000 -v huginn-data:/var/lib/mysql huginn/huginn

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GlassedSilver picture GlassedSilver  Â·  8Comments

ameicler picture ameicler  Â·  4Comments

scumola picture scumola  Â·  4Comments

TheReal1604 picture TheReal1604  Â·  4Comments

hillerliao picture hillerliao  Â·  3Comments