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

[featureflag] UI fails to load on M1 Mac - (Postgrex.Error) ERROR 42P01 (undefined_table) relation "featureflags" does not exist #294

Closed
mviitane opened this issue Aug 12, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@mviitane
Copy link
Member

Bug Report

Which version of the demo you are using?

main/latest
commit 1a4698f

Environment:

Kernel Version 21.6.0
RELEASE_ARM64_T6000 arm64
Docker Desktop 4.8.1

Symptom

Feature flag UI doesn't load: "Internal Server Error"
http://localhost:8081/

Each reload produces the following log:

10:13:08.686 request_id=FwqRUMKG7L0YbksAAARB [info] GET /
10:13:08.693 request_id=FwqRUMKG7L0YbksAAARB [info] Sent 500 in 7ms
10:13:08.693 [error] #PID<0.2009.0> running FeatureflagserviceWeb.Endpoint (connection #PID<0.2008.0>, stream id 1) terminated
Server: localhost:8081 (http)
Request: GET /
** (exit) an exception was raised:
    ** (Postgrex.Error) ERROR 42P01 (undefined_table) relation "featureflags" does not exist

    query: SELECT f0."id", f0."description", f0."enabled", f0."name", f0."inserted_at", f0."updated_at" FROM "featureflags" AS f0
        (ecto_sql 3.8.2) lib/ecto/adapters/sql.ex:932: Ecto.Adapters.SQL.raise_sql_call_error/1
        (ecto_sql 3.8.2) lib/ecto/adapters/sql.ex:847: Ecto.Adapters.SQL.execute/6
        (ecto 3.8.3) lib/ecto/repo/queryable.ex:221: Ecto.Repo.Queryable.execute/4
        (ecto 3.8.3) lib/ecto/repo/queryable.ex:19: Ecto.Repo.Queryable.all/3
        (featureflagservice 0.1.0) lib/featureflagservice_web/controllers/page_controller.ex:7: FeatureflagserviceWeb.PageController.index/2
        (featureflagservice 0.1.0) lib/featureflagservice_web/controllers/page_controller.ex:1: FeatureflagserviceWeb.PageController.action/2
        (featureflagservice 0.1.0) lib/featureflagservice_web/controllers/page_controller.ex:1: FeatureflagserviceWeb.PageController.phoenix_controller_pipeline/2
        (phoenix 1.6.9) lib/phoenix/router.ex:354: Phoenix.Router.__call__/2
10:13:08.711 request_id=FwqRUMQIP1HPNQQAAASB [info] GET /null
10:13:08.711 request_id=FwqRUMQIP1HPNQQAAASB [info] Sent 404 in 314µs

Reproduce

$ docker compose up
http://localhost:8081/

Additional Context

Fails only on M1 Mac. Seems to be working fine on Ubuntu 22.04 LTS, x86_64.

@mviitane mviitane added the bug Something isn't working label Aug 12, 2022
@puckpuck
Copy link
Contributor

This was fixed by #315

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants