mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1124] [Issue]: Profile import fails on Docker/file storage when app_settings.ui already exists #557
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#557
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 @Xelvanis on GitHub (May 23, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1124
Originally assigned to: @cha1latte on GitHub.
Summary
A user migrating from a local Windows install to a Docker container on Unraid reports that full profile import fails with a duplicate primary key error for synced UI settings.
The same exported file also produces a confusing secondary error if selected through the generic Marinara File importer instead of Import Profile.
Expected behavior
A full
marinara_profileexport from one Marinara install should import into a fresh Docker/file-storage install without failing because the target instance has already seeded default synced UI settings.If a full profile export is selected in the generic Marinara File importer, the UI should direct the user to Import Profile instead of surfacing a low-level unknown export type message.
Actual behavior
Import Profile fails with:
Trying the same export through the Marinara File importer fails with:
Steps to reproduce
app_settings.key: ui.Unknown export type: marinara_profile.Environment
Logs, screenshots, or video
Reporter-provided error text:
Screenshot was provided in the support report, but no uploadable attachment/URL is available for this issue.
Additional context
Code trace suggests the full profile snapshot importer only enables conflict handling for tables with an
idcolumn:packages/server/src/routes/backup.routes.tsuses(table as Record<string, unknown>).idas the upsert target during profile snapshot import.packages/server/src/db/schema/app-settings.tsdefinesapp_settings.keyas the primary key.packages/client/src/hooks/use-settings-sync.tsuses the synced settings keyuiand seeds it on first run when the server has no settings value yet.So the likely failure path is:
app_settingswithkey = "ui".app_settingstable indata.fileStorage.tables.idproperty.app_settings.key: ui.Possible fix direction: resolve the real primary key/conflict target for profile snapshot tables instead of assuming
id, at minimum covering key-based tables such asapp_settingsandprompt_overrides.Template check
@cha1latte commented on GitHub (May 24, 2026):
Fixed in refactor via #1177.