Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot use any map field with the directus docker image #9296

Closed
3 tasks done
torstenhoegel opened this issue Nov 1, 2021 · 1 comment
Closed
3 tasks done

cannot use any map field with the directus docker image #9296

torstenhoegel opened this issue Nov 1, 2021 · 1 comment

Comments

@torstenhoegel
Copy link

Preflight Checklist

Describe the Bug

I'm hosting directus instances with docker images. I'm passing an mapbox apikey to every instance, but I just discovered this error after adding a map field to a model.

{
  "errors": [
    {
      "message": "select `ok`.`ll`, st_astext(`ok`.`map`) as `map`, `ok`.`status`, `ok`.`id` from `ok` where not `ok`.`status` = 'archived' order by `ok`.`id` asc limit 25 - SQLITE_ERROR: no such function: st_astext",
      "extensions": {
        "code": "INTERNAL_SERVER_ERROR"
      }
    }
  ]
}

This happens. on all docker based instances I created with v98-100. (haven't tested it with prior versions, though I guess its the same thing)

As found in the Docker Image it uses a SQLite 3 DB which may need some additional config?

ENV DB_CLIENT=sqlite3 DB_FILENAME=/directus/database/database.sqlite EXTENSIONS_PATH=/directus/extensions STORAGE_LOCAL_ROOT=/directus/uploads

To Reproduce

pull directus docker image and run it

Errors Shown

No response

What version of Directus are you using?

v9.0.0-rc.100

What version of Node.js are you using?

NODE_VERSION=16.13.0

What database are you using?

DB_CLIENT=sqlite3

What browser are you using?

chrome/safari/brave

What operating system are you using?

macOS IOS / error is directus related not client side

How are you deploying Directus?

Docker

@azrikahar
Copy link
Contributor

Duplicate of directus/docs#21. This comment should shed some light on this: https://github.com/directus/docs/issues/21

Alternatively since you are using docker, you can opt to use postgis/postgis Docker image which is a PostgreSQL db with PostGIS extensions installed so you can get up and running without any manual modifications 👍

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants