mirror of
https://github.com/documenso/documenso.git
synced 2026-04-25 13:55:59 +03:00
Open
opened 2026-02-26 18:47:32 +03:00 by kerem
·
31 comments
No Branch/Tag specified
main
chore/translations
feat/signing-required-field-colors
feat/add-field-overflow-settings
chore/extract-translations
release
feat/public-completed-document-access
feat/bulk-download
docs/signing-reminders
feat/document-file-conversion
feat/prefetch-intent-navigation-links
fix/lint-project
fix/replace-linter-with-biome
fix/security-improvements
perf/dynamic-import-posthog
deps/vite-8
chore/migrate-eslint-prettier-to-oxlint-oxfmt
chore/migrate-to-pnpm
feat/add-pdf-image-renderer
feat/add-embed-v2
fix/extract-emails
feat/table-toolbar-filters
copilot/sub-pr-2478
fix/recipients-send-500
feat/external-2fa-codes
feat/protect-signing-urls
fix/checkbox-checked-values
duncan/legacy-api-endpoints
chore/block-po-files-locally
fix/default-embed-v2-document-rejection-to-false
fix/fields-dialog-title-description
copilot/sub-pr-2323
copilot/sub-pr-2267
exp/autoplace-fields
chore/server-hostname-config
fix/template-add-signers
fix/add-field-drag-drop-colors
fix/envelope-updates
feat/allow-formdata
archive/1.13.2
copilot/add-billing-section-account-page
fix/field-coordinate-bounds
feat/update-user-via-admin-dashboard
feat/expiry-links
feat/team-dashboard
feat/change-radio-direction
feat/admin-create-user-with-org
archive/v1.12.11
feat/envelopes-polish
feat/add-attachments-reworked
fix/font-size-fields
feat/improve-resend-dialog
fix/download-certificate-audit-log-safari
fix/duplicate-document-by-id
feat/document-table-filters
fix/template-migration
exp/effect
fix/migrate-template-metadata
exp/keyboard-signature
feat/document-2fa-redo
feat/add-attachments
feat/billing-redirect-flow
fix/add-api-logging
fix/duplicate-document-template-review
feat/handle-redirectto-param
feat/document-processing-status-indicator
feat/customize-doc-audit-log-certificate
feat/document-2fa
feat/organisations-backup-pls
feat/audit-logs-on-completed-document
chore/webhook-trigger-multiselect
exp/bg
chore/single-signer-wording
fix/template-uploading
feat/bin-tab
fix/staging-test
feat/rr7
squish/rr7
archive/nextjs
power-signer
fix/field-placements
fix/team-member-invites
fix/checkbox-field-bugs
fix/leaderboard-query
fix/zapier-list-documents-endpoint
feat/dictate-signers
feat/allow-same-signer-email-multiple-times
wip/rr7-next
experiment/self-sign
fix/oidc-login-error
feat/document-qrcode
feat/mau
feat/copy-links-audit-logs
chore/december-dep-upgrades
wip/rr7
wip/rr7-auth-package
wip/rr7-better-auth-demo
experiment/what-if-user-ids-were-strings-instead-of-numbers
fix/refactor-api-routes
feat/add-owner-completed-email-setting
fix/embed-whitelabel-colors
feat/delete-archive
fun/sign-with-nose
expiry-links
chore/openpage-viral-metrics
fix/sitemap
feat/signing-reminder
feat/automated-fields-signature
feat/add-polish-translations
staging
fix/open-page
openpage-api-deploy
feat/pulumi
chore/angular-embed-docs
exp/next-15
chore/select-signer
feat/save-data-on-blur
feat/save-recipients-on-blur
feat/signature-color
feat/team-email-template
chore/documenso-url
chore/add-ctas
fix/docker-setup-and-documentation
fix/document-creation-timezone
feat/telemetry
feat/integration-animation
fix/render-deployment
feat/publicProfile
feat/redirect-templates
feat/passkey-dialog
fix/refactor-use-template
chore/resend-onUpdate
chore/subject-onBlur
fix/demo-trpc-duration
fix/self-signer-custom-email-message
fix/benchmark
feat/add-myself-as-signer-temp
feat/checkbox-type
feat/update-marketing-header
experiment/queue
feat/error-demo
feat/add-document-auth-options
feat/document-2fa-test
chore/status-widget
open-page-restructure
feat/document-passkey-test
chore/form-reset
fix/neon-db-migration-test
feat/public-profile
feat/launch-week-content
webhooks_plus_api
exp/custom-field-labels
feat/accept-text-signature
feat/document-version-history
fix/delete-recipient-owners
fix/whitespace-title
feat/refresh
exp/million
feat/doc-comments
ElTimuro-patch-1
feat/teams-slugify
pr/537
date-format-setting
exp/millionjs
feat/runtime-env
chore/next-14
feat/chat-with-documents
feat/plan-limits
fix/467-bugsafari-only-unable-to-copy-document-sharing-link
feat/admin-ui-manage-instance
feat/stripe-free-tier
fix/cascade-delete-share-links
feat/marketing-share-document
feat/single-player-mode-polish
feat/next-13-5-3
chore/github-templates
docs/render-deploy
chore/code-of-conduct
chore/team
feat/add-e2e-testing
docs/minor-readme-updatess
docs/dx
feat-early-adopters
feat/open-early-adopters
fix/432-signee-doc-version-doesnt-have-sticky-signing-area
fix/446-cancel-cta-does-nothing-when-a-signer-opens-the-document
fix/445-signer-name-not-persisting
feat/resend-transport
fix/incorrect-completed-stats
feat/update-email-templates
feat/mania
feat/copy-or-tweet
feat/add-design-system-page
feat/single-player-mode
feat/completed-share-link
feat/designsystem
feat/send-email
feat/custom-emails
blog/upcoming-blog-post
feat/single-player-mode-test
feat/reset-password
blog/selfhosting-blog-post
feat/redirect-signed-document
fix/og-description
feat/universal-upload
chore/readme
chore/blogposts
fix/building-documenso-description
feat/admin-ui-metrics
feat/avatar-fallback
feat/templates
feat/blog-post-next
fix/hide-user-selection
feat/disable-sign
feat/marketing-mobile-nav
chore/remove-console-log-warn
feat/add-email-field
fix/redirect-signin-to-dashboard
feat/blog-og-image
feat/redirect-on-send
feat/billing-page
feat/profile-password-form
fix/signature-color-dark-mode
feat/inbox
feat/promise-safety
readme
chore/reduce-refetch-time
feat/update-document-flow
feat/refactor-shared-components
feat/feature-flag
feat/document-authoring
feat/pie-chart-legend
feat/open-page
docs/add-gitpod-setup
docs/add-render-deploy
docs-coventional-commits
feat/table-actions
minor/updates-google-auth-refresh
feat/add-document-animation
feat/new-email-template
feat/password-reset
fix/send-error-double-send
fix/improve-stripe-webhook-endpoint
feat/support-custom-cert-paths
feat/DOC-170-add-name-field
fix/improve-general-styling
feat/DOC-210-sign-dialog-broken-on-second-opening
bugfix-#71/invalid-email-hint
chore/optimise-deps
test-pr
v2.9.1
v2.9.0
v2.8.1
v2.8.0
v2.7.1
v2.7.0
v2.6.1
v2.6.0
v2.5.1
v2.5.0
v2.4.0
v2.3.2
v2.3.1
v2.3.0
v2.2.8
v2.2.7
v2.2.6
v2.2.5
v2.2.4
v2.2.3
v2.2.2
v2.2.1
v2.2.0
v2.1.0
v2.0.14
v2.0.13
v2.0.12
v2.0.11
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7.2-rc.0
v1.7.1-rc.3
v1.7.1
v1.7.1-rc.2
v1.7.1-rc.1
v1.7.1-rc.0
v1.7.0
v1.7.0-rc.5
v1.7.0-rc.4
v1.7.0-rc.3
v1.7.0-rc.2
v1.7.0-rc.1
v1.7.0-rc.0
v1.6.1
v1.6.1-rc.1
v1.6.1-rc.0
v1.6.0
v1.6.0-rc.3
v1.6.0-rc.2
v1.6.0-rc.1
v1.6.0-rc.0
v1.5.6
v1.5.6-rc.4
v1.5.6-rc.3
v1.5.6-rc.2
v1.5.6-rc.1
v1.5.6-rc.0
v1.5.5-rc.8
v1.5.5
v1.5.5-rc.7
v1.5.5-rc.6
v1.5.5-rc.5
v1.5.5-rc.4
v1.5.5-rc.3
v1.5.5-rc.2
v1.5.5-rc.1
v1.5.5-rc.0
v1.5.4-rc.5
v1.5.4
v1.5.4-rc.4
v1.5.4-rc.3
v1.5.4-rc.2
v1.5.4-rc.1
v1.5.4-rc.0
v1.5.3-rc.1
v1.5.3
v1.5.3-rc.0
v1.5.2-rc.8
v1.5.2
v1.5.2-rc.7
v1.5.2-rc.6
v1.5.2-rc.5
v1.5.2-rc.4
v1.5.2-rc.3
v1.5.2-rc.2
v1.5.2-rc.1
v1.5.2-rc.0
v1.5.1
v1.5.1-rc.0
v1.5.0-rc.6
v1.5.0
v1.5.0-rc.5
v1.5.0-rc.4
v1.5.0-rc.3
v1.5.0-rc.2
v1.5.0-rc.1
v1.5.0-rc.0
v1.4.0-rc.0
v1.4.0
v1.3.2-rc.0
v1.3.1-rc.2
v1.3.1
v1.3.1-rc.1
v1.3.1-rc.0
v1.3.0-rc.2
v1.3.0
v1.3.0-rc.1
v1.3.0-rc.0
v1.2.3
v1.2.2
v1.2.1
v1.2.0
v1.1
v1.0
v0.9
before-prettier
0.9-developer-preview
Labels
Clear labels
Mirrored from GitHub Pull Request
Compliance
Stale
apps: marketing
apps: web
community
component: api
component: integrations
component: ui
duplicate
effort: low
effort: medium
good first issue
hacktoberfest
help wanted
needs triage
needs-replication
needs-testing
on-hold
osshack
priority: high
priority: low
priority: medium
pull-request
Mirrored from GitHub Pull Request
question
roadmap
status: assigned
status: blocked
status: in progress
status: triage
type: bug
type: bug
type: bug
type: documentation
type: enhancement
type: feature
wontfix
💎 Bounty
💰 Rewarded
💰 Rewarded
No labels
Compliance
Stale
apps: marketing
apps: web
community
component: api
component: integrations
component: ui
duplicate
effort: low
effort: medium
good first issue
hacktoberfest
help wanted
needs triage
needs-replication
needs-testing
on-hold
osshack
priority: high
priority: low
priority: medium
pull-request
question
roadmap
status: assigned
status: blocked
status: in progress
status: triage
type: bug
type: bug
type: bug
type: documentation
type: enhancement
type: feature
wontfix
💎 Bounty
💰 Rewarded
💰 Rewarded
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set.
Reference
starred/documenso#547
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ArbiterGR on GitHub (Jul 4, 2025).
Original GitHub issue: https://github.com/documenso/documenso/issues/1880
Issue Description
I'm getting the following error upon applying migration on the new version:
`A migration failed to apply. New migrations cannot be applied before the error is recovered from. Read more about how to resolve migration issues in a production database: https://pris.ly/d/migrate-resolve
Migration name: 20250522054050_add_organisations
Database error code: 23502
Database error:
ERROR: null value in column "organisationId" of relation "OrganisationGroup" violates not-null constraint
DETAIL: Failing row contains (org_group_xirhimhddwenzbbf, null, INTERNAL_TEAM, MEMBER, null, 2, ADMIN).
DbError { severity: "ERROR", parsed_severity: Some(Error), code: SqlState(E23502), message: "null value in column "organisationId" of relation "OrganisationGroup" violates not-null constraint", detail: Some("Failing row contains (org_group_xirhimhddwenzbbf, null, INTERNAL_TEAM, MEMBER, null, 2, ADMIN)."), hint: None, position: None, where_: None, schema: Some("public"), table: Some("OrganisationGroup"), column: Some("organisationId"), datatype: None, constraint: None, file: Some("execMain.c"), line: Some(1972), routine: Some("ExecConstraints") }`
By rolling back the failed migration using "npx prisma migrate resolve --rolled-back "20250522054050_add_organisations" --schema ../../packages/prisma/schema.prisma" i'm able to downgrade to version 1.11 which works.
Steps to Reproduce
No response
Expected Behavior
No response
Current Behavior
No response
Screenshots (optional)
No response
Operating System [e.g., Windows 10]
No response
Browser [e.g., Chrome, Firefox]
No response
Version [e.g., 2.0.1]
No response
Please check the boxes that apply to this issue report.
@Sarmingsteiner commented on GitHub (Jul 4, 2025):
Same here :-(
@seamon67 commented on GitHub (Jul 4, 2025):
same
@seamon67 commented on GitHub (Jul 4, 2025):
Reverting back to v1.11.1 fixes it but I did a DB backup restore anyway.
@ad1217 commented on GitHub (Jul 4, 2025):
This seems to caused by a lack of handling for teams with no subscription. As a workaround, I added an active
Subscriptionand setcustomerIdto a random uuid for eachTeam. This created an organization for those teams during the migration. For example (one team with id=1):@seamon67 commented on GitHub (Jul 4, 2025):
Should we wait for a proper fix?
@ArbiterGR commented on GitHub (Jul 5, 2025):
Let's hope they see this soon.
@Sarmingsteiner commented on GitHub (Jul 5, 2025):
Thanks for the suggested workaround! Unfortunately, it did not resolve the issue - the migration still fails.
@MinecollYT commented on GitHub (Jul 5, 2025):
I though it was a issue on my side, which I tried to fix and well.. bricked my whole db
@seamon67 commented on GitHub (Jul 5, 2025):
That's why you backup :D
@MinecollYT commented on GitHub (Jul 5, 2025):
Your 100% right! I do create backups of documenso... at least I do now xD thank god it wasn't a productive system
@seamon67 commented on GitHub (Jul 11, 2025):
Will this be fixed or nah?
@x-stp commented on GitHub (Jul 12, 2025):
same 😭
@abuintel commented on GitHub (Jul 13, 2025):
Hopefully this gets fixed soon
@seamon67 commented on GitHub (Jul 18, 2025):
Alright, I couldn't wait any longer.
In v1.11.1, you have to do these in your postgres container
UPDATE "Team" SET "customerId"=gen_random_uuid() WHERE "customerId" is NULL;
INSERT INTO "Subscription" ("status", "planId", "priceId", "teamId", "updatedAt") VALUES ('ACTIVE', 'temp', 'temp', 1, current_timestamp);
Thanks to @ad1217
Then you can upgrade to v1.12.1
There seems to be a lot of changes.
@ArbiterGR commented on GitHub (Jul 23, 2025):
Thanks for the fix. It sucks that the developers do not seem read the reported issues.
@x-stp commented on GitHub (Jul 23, 2025):
@ElTimuro thoughts? cc @ephraimduncan
@pepicrft commented on GitHub (Jul 30, 2025):
This solved my issue, but now I'm seeing the following:
@seamon67 commented on GitHub (Jul 30, 2025):
@pepicrft That's because you didn't do this.
@John-H-Smith commented on GitHub (Aug 16, 2025):
Same here. Any updates on that?
@ephraimduncan commented on GitHub (Aug 23, 2025):
The migration fails because some teams don't have subscriptions, and the migration logic doesn't properly handle these "orphaned" teams. When the migration tries to create OrganisationGroup records for ALL teams, those without an assigned
organisationIdcause the constraint violation.Backup your database before proceeding!
First, identify which teams don't have subscriptions:
Run this SQL to create subscriptions for teams that don't have them:
Confirm all teams now have subscriptions:
Now you can safely upgrade to Documenso v1.12+. The migration should complete successfully.
This is temporary as we look at a better solution to migrate without loosing data.
@crazyyzarc commented on GitHub (Sep 10, 2025):
Also…
2025-09-10 11:02:29.502 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 54322025-09-10 11:02:29.502 UTC [1] LOG: listening on IPv6 address "::", port 54322025-09-10 11:02:29.503 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"2025-09-10 11:02:29.506 UTC [30] LOG: database system was shut down at 2025-09-10 11:02:29 UTC2025-09-10 11:02:29.510 UTC [1] LOG: database system is ready to accept connections2025-09-10 11:03:40.465 UTC [98] ERROR: column Team.organisationId does not exist at character 1392025-09-10 11:03:40.465 UTC [98] STATEMENT: SELECT "public"."Team"."id", "public"."Team"."name", "public"."Team"."url", "public"."Team"."createdAt", "public"."Team"."avatarImageId", "public"."Team"."organisationId", "public"."Team"."teamGlobalSettingsId" FROM "public"."Team" WHERE EXISTS(SELECT "t0"."teamId" FROM "public"."TeamGroup" AS "t0" LEFT JOIN "public"."OrganisationGroup" AS "j1" ON ("j1"."id") = ("t0"."organisationGroupId") WHERE (EXISTS(SELECT "t2"."groupId" FROM "public"."OrganisationGroupMember" AS "t2" LEFT JOIN "public"."OrganisationMember" AS "j3" ON ("j3"."id") = ("t2"."organisationMemberId") WHERE ("j3"."userId" = $1 AND ("j3"."id" IS NOT NULL) AND ("j1"."id") = ("t2"."groupId") AND "t2"."groupId" IS NOT NULL)) AND ("j1"."id" IS NOT NULL) AND ("public"."Team"."id") = ("t0"."teamId") AND "t0"."teamId" IS NOT NULL)) OFFSET $2@KarloDerEchte commented on GitHub (Sep 18, 2025):
Having the same issue, we need a proper guide on how to do updates
@david-loe commented on GitHub (Sep 24, 2025):
@ephraimduncan thanks for your instructions, there are 2 pitfalls:
customerIddoesn't exist onSubscriptiononv1.11freeasplanIdfails, bc it has to be uniqueI did it this way:
and dont forget to mark the failed migration as
rolled-backif not already done (in documenso container):@lesofl commented on GitHub (Oct 7, 2025):
I've followed all the steps in this thread and rolled back the migration but absolutely cannot get it to work. I have confirmed that all the teams have subscriptions but get the exact same error.
very confused as to what is happening here - a proper guide on how to fix this issue would be ideal. for now I've gone back to v1.11.1 but wasted about 3 hours just trying to figure out why the error never resolves.
-- This returns 0 SELECT COUNT(*) as teams_without_subscription FROM "Team" t WHERE t.id NOT IN ( SELECT "teamId" FROM "Subscription" WHERE "teamId" IS NOT NULL );-- Output of Teams SELECT * FROM "TEAM";--Output of Subscriptions@rachekalmir commented on GitHub (Nov 21, 2025):
I also got stuck with this one, but here is how I resolved it (this may or may not help you based on your exact data in the database):
I restored the documenso database onto a separate postgresql instance and ran through the organisations migration step by step to see where it was failing (after following above instructions to add the subscriptions for each team): https://github.com/documenso/documenso/blob/main/packages/prisma/migrations/20250522054050_add_organisations/migration.sql
Mine was failing on lines 601-634, where by I only had subscriptions attached to teams and no user subscriptions.
Thus I ran the following SQL to add a user subscription for the first user you create in the database (user 3) so that it could proceed past this point:
INSERT INTO "Subscription" ("status", "planId", "priceId", "userId", "updatedAt") SELECT 'ACTIVE', gen_random_uuid()::text, 'free', 3, current_timestamp;@mx4k commented on GitHub (Dec 18, 2025):
I would really appreciate if someone could provide a step by step guide for users with no furhter knowledge with SQL.
@saschafoerster commented on GitHub (Dec 29, 2025):
I played around with the commands here and used AI and in the end it somehow worked. 😅
@crazyyzarc commented on GitHub (Jan 5, 2026):
Delete Team-Accounts w/o subscription and it works
@mx4k commented on GitHub (Jan 14, 2026):
Can you please show how you did it?
@giniwproductions-88 commented on GitHub (Feb 22, 2026):
I reproduced and fully resolved this — migrated a self-hosted instance from v1.8.1 → v2.6.0 with all 17 pending migrations applied and data intact.
Note: the workaround floating around (inserting a fake Subscription) does not work. The root cause is deeper than a missing Subscription record.
If you're stuck on this and need help upgrading, reach out: giniwproductions@gmail.com
@bigbeka commented on GitHub (Feb 23, 2026):
@giniwproductions-88 could you please describe the solution here?