Unable to delete identity provider #266

Closed
opened 2026-04-05 17:04:02 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @buggystick on 2/9/2026

Describe the Bug

I'm wanting to delete an identity provider I no longer want. At first when I tried to delete it, I got "an error occured" message. Thinking this might because I had a user associated with the provider, I then tried to delete that user. However, I got the same "an error occured" message. Docker logs show the following:

pangolin | 2026-02-09T17:47:28+00:00 [error]: FOREIGN KEY constraint failed
pangolin | Stack: SqliteError: FOREIGN KEY constraint failed
pangolin | at PreparedQuery.run (file:///app/node_modules/drizzle-orm/better-sqlite3/session.js:72:22)
pangolin | at QueryPromise.resultCb (file:///app/node_modules/drizzle-orm/sqlite-core/session.js:119:64)
pangolin | at QueryPromise.execute (file:///app/node_modules/drizzle-orm/sqlite-core/session.js:13:17)
pangolin | at QueryPromise.then (file:///app/node_modules/drizzle-orm/query-promise.js:21:17)
pangolin | at process.processTicksAndRejections (node:internal/process/task_queues:103:5) {"code":"SQLITE_CONSTRAINT_FOREIGNKEY"}

Environment

  • OS Type & Version: Fedora 42
  • Pangolin Version: EE 1.15.2
  • Gerbil Version: 1.3.0
  • Traefik Version: 3.6.7
  • Newt Version: 1.8.1
  • Olm Version: (if applicable) N/A

To Reproduce

  1. Create an Identity provider (possibly also add user with said provider)
  2. Delete provider

Expected Behavior

Identity Provider and all associated users are deleted.

*Originally created by @buggystick on 2/9/2026* ### Describe the Bug I'm wanting to delete an identity provider I no longer want. At first when I tried to delete it, I got "an error occured" message. Thinking this might because I had a user associated with the provider, I then tried to delete that user. However, I got the same "an error occured" message. Docker logs show the following: pangolin | 2026-02-09T17:47:28+00:00 [error]: FOREIGN KEY constraint failed pangolin | Stack: SqliteError: FOREIGN KEY constraint failed pangolin | at PreparedQuery.run (file:///app/node_modules/drizzle-orm/better-sqlite3/session.js:72:22) pangolin | at QueryPromise.resultCb (file:///app/node_modules/drizzle-orm/sqlite-core/session.js:119:64) pangolin | at QueryPromise.execute (file:///app/node_modules/drizzle-orm/sqlite-core/session.js:13:17) pangolin | at QueryPromise.then (file:///app/node_modules/drizzle-orm/query-promise.js:21:17) pangolin | at process.processTicksAndRejections (node:internal/process/task_queues:103:5) {"code":"SQLITE_CONSTRAINT_FOREIGNKEY"} ### Environment - OS Type & Version: Fedora 42 - Pangolin Version: EE 1.15.2 - Gerbil Version: 1.3.0 - Traefik Version: 3.6.7 - Newt Version: 1.8.1 - Olm Version: (if applicable) N/A ### To Reproduce 1) Create an Identity provider (possibly also add user with said provider) 2) Delete provider ### Expected Behavior Identity Provider and all associated users are deleted.
MrUnknownDE added the stalestalestalestalestalestalestalestalestalestale labels 2026-04-05 17:04:03 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#266