-
Notifications
You must be signed in to change notification settings - Fork 7
Error: Failed to create directory "//.duckdb"! #11
Comments
Thanks for the report. I've been able to reproduce the issue. (Apologies, I haven't done much testing with the docker version). I think it is due to the user id mapping so that when pq runs it doesn't have the right permissions to write a .duckdb file (I didn't know it did that because I thought we were creating only an in-memory db). I'll need to look into this in more detail. In the meantime a temporary workaround for you to do some testing might be changing the alias command to the following: alias pq="docker run --rm -it -v $(pwd):/data -w /data ghcr.io/prql/prql-query:v0.0.11" I will try to do more investigation tonight. |
That new I think you're right - it was caused by user mapping. The original command did something with my current userid on the host. Of course, there's no such user in the container. The new command probably works because everything runs as I'm still learning the fine points of Docker, but I don't think there's any problem running as |
I know people disagree about this, some vehemently, but this does seem like the standard. And the security context is very different from, say, running a public-facing web app in a container. |
Thanks for the feedback @richb-hanover . I have no problem with creating a I realised why DuckDB is trying to create that .duckdb directory - it's because because we have to install extensions at runtime. I'm working with the |
Another limitation that I am aware of with the docker version of Another option for the .duckdb error would be to map |
Good ideas @snth ! FYI if you find the docker command getting quite long with various volumes and env vars, |
That's an excellent idea @max-sixty . I've opened a separate issue #16 for that in order not to block this one. |
Fixed by #8 . |
I cloned the
prql-query
repo locally, then used the Dockerfile image from ghcr.io.From the top-level
prql-query
directory, I issued this command from the SQLite part of the README.md. My Google-fu doesn't find many hints for solving this.What other debugging information could I provide? Thanks.
The text was updated successfully, but these errors were encountered: