exakat / exakat-docker

Docker Container for Exakat
20 stars 9 forks source link

Error: Unable to open database file #16

Open jeremiahkjones opened 6 years ago

jeremiahkjones commented 6 years ago

I'm using the latest exakat image (currently 1.3.4 - Build 782). The project init command seems to work fine, but when running the project command it fails with the following error:

λ docker run -it -e JAVA_OPTIONS="-Xms32m -Xmx2g" -v $(pwd)/projects:/usr/src/exakat/projects --rm --name my-exakat exakat/exakat project -v -p web
Cleaning project
Cleaning project web
removing log
removing datastore.sqlite
Removed 1 files

Error : Unable to open database: unable to open database file
on file phar:///usr/src/exakat/exakat.phar/library/Exakat/Datastore.php
on line 54

Is there a work-around or a fix expected soon?

rajimenez12 commented 6 years ago

Same issue here.

ltribolet commented 4 years ago

Same issue here:

$ docker run -it -v $(pwd)/projects:/usr/src/exakat/projects --rm --name my-exakat exakat/exakat exakat init -p guzzle3 -R https://github.com/guzzle/guzzle3.git

$ docker run -it -v $(pwd)/projects:/usr/src/exakat/projects --rm --name my-exakat exakat/exakat exakat project -p guzzle3 -v
Cleaning project
Cleaning project guzzle3
removing datastore.sqlite
Removed 1 files

Error : Unable to open database: bad parameter or other API misuse
on file phar:///usr/src/exakat/exakat/library/Exakat/Datastore.php
on line 54

This is one Windows 10 within WSL, but I do have the same issue with PowerShell.

I've tried the same on a MacOS mojave machine and I don't have this issue. I think there are permissions issue with the file mounting. I think this is related to #17 .