https://www.ory.sh/ logo
#talk-kratos
Title
# talk-kratos
f

faint-energy-48611

10/26/2021, 11:17 AM
Hi, I am receiving the following error after submitting a registration flow:
Copy code
ERROR: null value in column "internal_context" violates not-null constraint (SQLSTATE 23502)
Errors from postgresd container:
Copy code
DETAIL:  Failing row contains (50779730-3761-401a-9379-8981d05c1b36, <http://localhost:4433/self-service/registration/browser>, 2021-10-26 11:56:51.50795, 2021-10-26 12:27:51.50795, , Kg+iGddKODZ0wXiifNdECxFyHzg5S/yjclf+cydMFMBsuFhiL+VwJm/keTzqd9u0..., 2021-10-26 11:56:51.509476, 2021-10-26 11:56:51.509476, browser, {"nodes": [{"meta": {}, "type": "input", "group": "default", "me..., e39800dd-dc2f-4cfe-ab3f-bd9708556ac6, null).
Copy code
STATEMENT:  INSERT INTO "selfservice_registration_flows" ("active_method", "created_at", "csrf_token", "expires_at", "id", "issued_at", "nid", "request_url", "type", "ui", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11)
Both Kratos (0.7.6-alpha-1) and postgresd (9.6) are running in docker, any ideas what's causing the issue? I've tried re-creating all containers and images, trying different PG & kratos versions but nothing has changed. I've tried searching for this error on google and here in slack, but found nothing related. Also, when I try to use the latest Kratos (v0.8.0-alpha.1.pre.3), migrations fail and kratos exits:
Copy code
warning msg=Migrator: unable to dump schema audience=application error=map[message:open schema.sql: permission denied]
e

enough-bear-53057

10/28/2021, 2:25 PM
Hello, did you solve the
permission denied
migration issue?
f

faint-energy-48611

12/09/2021, 1:20 PM
I didn't :<
e

enough-bear-53057

12/09/2021, 2:11 PM
Ok, I still haven’t been able to upgrade Kratos either 😛
f

faint-energy-48611

12/09/2021, 2:12 PM
In fact, I have upgraded it just now and it works, but I have no idea what I did to fix it 😧
e

enough-bear-53057

12/09/2021, 2:13 PM
Ok. glad to hear you managed to solve it! 😄
f

faint-energy-48611

12/09/2021, 2:14 PM
you had the same error?
Make sure you did run migrations after the upgrade to 0.8.0
e

enough-bear-53057

12/09/2021, 2:16 PM
Yeah the migrations fail and I had to clear the Kratos DB to fix it in my stage environment, therefore I haven’t deployed the upgrade to prod yet.
f

faint-energy-48611

12/09/2021, 2:16 PM
oh
e

enough-bear-53057

12/09/2021, 2:17 PM
So I just reverted everything and haven’t looked into it yet. However I’d like to upgrade Kratos eventually
f

faint-energy-48611

12/09/2021, 2:18 PM
What was the error when your migrations failed? Do you use postgres?
e

enough-bear-53057

12/09/2021, 2:24 PM
Yeah I use postgres, failed at
warning msg=Migrator: unable to dump schema audience=application error=map[message:open schema.sql: permission denied]
f

faint-energy-48611

12/09/2021, 2:27 PM
what kratos version was it?
I think you should try with 0.8.0-alpha.3
e

enough-bear-53057

12/09/2021, 2:33 PM
I don’t remember but I can try again with the latest version!
2 Views