[GH-ISSUE #4071] [Issue]: Auto-update wipes characters and personas/Add Automatic Backups #2197

Closed
opened 2026-10-21 05:46:11 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Jul 25, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4071

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Running start.sh triggered an auto-update and rebuild, after which all user-created characters and personas disappeared. The local data directory was recreated with fresh files, and no backup or encryption key remained. The workaround is to have optional automatic backups.

Expected behavior

Updating and restarting Marinara Engine should preserve all user-created characters, personas, encryption keys, and other data under packages/server/data/. An optional toggle where you can do backups in Settings, where you specify how often (every day, every week, every month) when they happen; a newly created backup replaces the old one.

Actual behavior

After the auto-update and restart, all user-created characters and personas were gone. Only the built-in professor_mari character remained, and packages/server/data/ contained newly created files.

Steps to reproduce

  1. Clone the main branch from Pasta-Devs/Marinara-Engine and create characters or personas.
  2. Run ./start.sh; in the reported case, it failed because Node.js was not detected.
  3. Install Node.js v24.18.0 using nvm.
  4. Run ./start.sh again.
  5. Allow the automatic git merge, rebuild, and server restart to complete.
  6. Check the characters, personas, packages/server/data/ directory, and .encryption-key file.

Environment

  • Marinara Engine version: Not provided
  • Install type: source
  • OS + version: Bazzite 44 (Kinoite), Fedora atomic variant; kernel 6.19.14-ogc5.1.fc44.x86_64
  • Browser or app shell: Not provided

Logs, screenshots, or video

The first ./start.sh run reported "[ERROR] Node.js is not installed." After Node.js v24.18.0 was installed, the next run performed "git merge origin/main --ff-only," rebuilt, and started successfully. Inspection found packages/server/data/ files timestamped 2026-07-23 11:26–11:31, with no old data, backup, trash copy, or .encryption-key.

Additional context

The repository was originally cloned on 2026-07-21, and user data existed before the update. packages/server/data/ is listed in .gitignore, so git operations were not expected to modify it. It is unclear whether the auto-update stash/reset path or another process caused the deletion. A second user reported that Marinara suddenly shut down and all data disappeared. Recovery was unsuccessful; automatic optional backups were suggested as a safeguard. An issue was previously referenced at https://github.com/Pasta-Devs/Marinara-Engine/issues/3976.

Discord thread: Data lost in update
Discord thread link: https://discord.com/channels/1417099416812392641/1529787421468921966
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (20 messages)
[2026-07-23T09:49:03.354Z] Eirvargr || Arrax: This sucks. i updated the ME and it cleared everything. i had opencode search my entire machine for the files

` ` `
Bad news — your old characters and personas are gone from this machine. Here's what happened:
The repo was cloned on July 21 and you ran Marinara then (data stored in packages/server/data/). Today at 11:23, start.sh ran an auto-update (git merge + rebuild). All current data files in packages/server/data/ were freshly created at 11:26-11:31, and there's no trace of your old data anywhere on 
the system — no backup, no trash, no .encryption-key, nothing.
This means the old packages/server/data/ directory was lost — likely when the repo was cleaned/re-cloned, or the update process somehow cleared it.
` ` `

Marinara Engine Bug Report
OS: Bazzite 44 (Kinoite) — Fedora atomic variant
Kernel: 6.19.14-ogc5.1.fc44.x86_64
CPU: AMD Ryzen 5 7500F 6-Core
RAM: 30 GiB
Node.js: v24.18.0 (freshly installed via nvm)

Install method: git clone from Pasta-Devs/Marinara-Engine (main branch)

Steps:
1. ./start.sh — failed with [ERROR] Node.js is not installed (no node was found)
2. Installed Node.js v24.18.0 via nvm
3. Ran ./start.sh again — auto-update ran (git merge origin/main --ff-only), rebuilt, server started successfully

Data loss:
After the update + restart, all user-created characters and personas are gone. The packages/server/data/ directory was recreated fresh (all files timestamped 2026-07-23 11:26–11:31). Only the built-in __professor_mari__ character survives. The previous install (cloned 2026-07-21) had user data that was present before the update.

The .gitignore includes packages/server/data/, so data shouldn't be touched by git operations. Unclear if the stash‑push + reset‑hard in the auto-update path or something else caused the wipe. No backup was available. No .encryption-key file remains.
[Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1529787421468921966]

[2026-07-23T09:53:55.383Z] Marinara: @Professor Mari GitHub Issue
[Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1529788646327193661]

[2026-07-23T09:54:30.665Z] Professor Mari [bot]: Skill issue. Made a GitHub issue here: https://github.com/Pasta-Devs/Marinara-Engine/issues/3976
[Issue]: Auto-update deletes characters and personas · Issue #3976...
Summary Running start.sh after installing Node.js triggered an auto-update and rebuild, after which all user-created characters and personas were missing. The packages/server/data/ directory appear...
[Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1529788794310754506]

[2026-07-23T10:00:28.449Z] Eirvargr || Arrax: Its weird that it was running earlier today and now all of a sudden Marinara complain about NodeJS missing
[Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1529790294965358612]

[2026-07-23T13:30:07.419Z] Marinara: Staging.
[Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1529843054989672538]

[2026-07-23T23:28:31.765Z] Halcion: Any chance to regain what was lost? I think it just happened to me. Suddenly Marinara shut down and everything was gone. (Hope it's okay for me to post this here.)
[Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1529993648731590809]

[2026-07-24T16:50:01.297Z] Eirvargr || Arrax: I did not get to recover what i lost. but might be able with a recovering tool. but that might mess up more than its worth i think. even if you permanently delete a file from your computer it can still be recovered with the right tool
[Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1530255748825743511]

[2026-07-24T16:56:46.080Z] Halcion: Eh. No worries, I will use the back up feature then! Please, have a wonderful and much less data-erased future ahead! May this never destroy our day ever again! 

Good luck to you!
[Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1530257446608699523]

[2026-07-24T20:53:44.676Z] Marinara: Oh pookies, I am so sorry. :Cry:
[Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1530317083722776636]

[2026-07-24T22:11:35.524Z] Halcion: Nah nah (I apologize if I shouldn't ping). It's okay.
[Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1530336674679361698]

[2026-07-24T22:12:30.594Z] Halcion: I will use the Back up tool you provided form here on. I should've used it before, it happens! This is still the best thing for Ai yet.

And AI Professor Mari helped a lot to get the characters *Back* as I remember them, and I make the necessary adjustments to get it about as good enough as I can.
[Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1530336905659551766]

[2026-07-24T22:12:54.315Z] Halcion: You provided plenty of tools so that I didn't have to start *all over*, so I want to thank you!
[Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1530337005152501811]

[2026-07-24T22:45:47.261Z] Marinara: That is so sweet, thank you. :34_Cat_Cry:
[Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1530345280287932436]

[2026-07-24T22:46:26.811Z] Marinara: I will continue working and tightening up the code to ensure no one gets their data wiped.
[Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1530345446172528823]

[2026-07-24T22:58:21.436Z] Eirvargr || Arrax: May i suggest an idea. Have a way for user to connect it to a github system
[Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1530348443527024702]

[2026-07-24T22:58:47.094Z] Eirvargr || Arrax: wether its a local git or the github itself
[Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1530348551144734760]

[2026-07-25T05:19:28.160Z] Marinara: Or I can just add automatic backups.
[Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1530444353518964868]

[2026-07-25T05:19:37.506Z] Marinara: Safer and don’t require any accounts.
[Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1530444392719057027]

[2026-07-25T05:33:13.285Z] Eirvargr || Arrax: yea that's a better option
[Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1530447814344183908]

[2026-07-25T05:40:37.297Z] Marinara: They will be an optional toggle where you can do backups, can specify how often (every day, every week, every month), and a newly created backup replaces the old one.
[Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1530449676665356368]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Jul 25, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4071 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Running start.sh triggered an auto-update and rebuild, after which all user-created characters and personas disappeared. The local data directory was recreated with fresh files, and no backup or encryption key remained. The workaround is to have optional automatic backups. ## Expected behavior Updating and restarting Marinara Engine should preserve all user-created characters, personas, encryption keys, and other data under packages/server/data/. An optional toggle where you can do backups in Settings, where you specify how often (every day, every week, every month) when they happen; a newly created backup replaces the old one. ## Actual behavior After the auto-update and restart, all user-created characters and personas were gone. Only the built-in __professor_mari__ character remained, and packages/server/data/ contained newly created files. ## Steps to reproduce 1. Clone the main branch from Pasta-Devs/Marinara-Engine and create characters or personas. 2. Run ./start.sh; in the reported case, it failed because Node.js was not detected. 3. Install Node.js v24.18.0 using nvm. 4. Run ./start.sh again. 5. Allow the automatic git merge, rebuild, and server restart to complete. 6. Check the characters, personas, packages/server/data/ directory, and .encryption-key file. ## Environment - Marinara Engine version: Not provided - Install type: source - OS + version: Bazzite 44 (Kinoite), Fedora atomic variant; kernel 6.19.14-ogc5.1.fc44.x86_64 - Browser or app shell: Not provided ## Logs, screenshots, or video The first ./start.sh run reported "[ERROR] Node.js is not installed." After Node.js v24.18.0 was installed, the next run performed "git merge origin/main --ff-only," rebuilt, and started successfully. Inspection found packages/server/data/ files timestamped 2026-07-23 11:26–11:31, with no old data, backup, trash copy, or .encryption-key. ## Additional context The repository was originally cloned on 2026-07-21, and user data existed before the update. packages/server/data/ is listed in .gitignore, so git operations were not expected to modify it. It is unclear whether the auto-update stash/reset path or another process caused the deletion. A second user reported that Marinara suddenly shut down and all data disappeared. Recovery was unsuccessful; automatic optional backups were suggested as a safeguard. An issue was previously referenced at https://github.com/Pasta-Devs/Marinara-Engine/issues/3976. Discord thread: Data lost in update Discord thread link: https://discord.com/channels/1417099416812392641/1529787421468921966 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (20 messages)</summary> ```text [2026-07-23T09:49:03.354Z] Eirvargr || Arrax: This sucks. i updated the ME and it cleared everything. i had opencode search my entire machine for the files ` ` ` Bad news — your old characters and personas are gone from this machine. Here's what happened: The repo was cloned on July 21 and you ran Marinara then (data stored in packages/server/data/). Today at 11:23, start.sh ran an auto-update (git merge + rebuild). All current data files in packages/server/data/ were freshly created at 11:26-11:31, and there's no trace of your old data anywhere on the system — no backup, no trash, no .encryption-key, nothing. This means the old packages/server/data/ directory was lost — likely when the repo was cleaned/re-cloned, or the update process somehow cleared it. ` ` ` Marinara Engine Bug Report OS: Bazzite 44 (Kinoite) — Fedora atomic variant Kernel: 6.19.14-ogc5.1.fc44.x86_64 CPU: AMD Ryzen 5 7500F 6-Core RAM: 30 GiB Node.js: v24.18.0 (freshly installed via nvm) Install method: git clone from Pasta-Devs/Marinara-Engine (main branch) Steps: 1. ./start.sh — failed with [ERROR] Node.js is not installed (no node was found) 2. Installed Node.js v24.18.0 via nvm 3. Ran ./start.sh again — auto-update ran (git merge origin/main --ff-only), rebuilt, server started successfully Data loss: After the update + restart, all user-created characters and personas are gone. The packages/server/data/ directory was recreated fresh (all files timestamped 2026-07-23 11:26–11:31). Only the built-in __professor_mari__ character survives. The previous install (cloned 2026-07-21) had user data that was present before the update. The .gitignore includes packages/server/data/, so data shouldn't be touched by git operations. Unclear if the stash‑push + reset‑hard in the auto-update path or something else caused the wipe. No backup was available. No .encryption-key file remains. [Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1529787421468921966] [2026-07-23T09:53:55.383Z] Marinara: @Professor Mari GitHub Issue [Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1529788646327193661] [2026-07-23T09:54:30.665Z] Professor Mari [bot]: Skill issue. Made a GitHub issue here: https://github.com/Pasta-Devs/Marinara-Engine/issues/3976 [Issue]: Auto-update deletes characters and personas · Issue #3976... Summary Running start.sh after installing Node.js triggered an auto-update and rebuild, after which all user-created characters and personas were missing. The packages/server/data/ directory appear... [Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1529788794310754506] [2026-07-23T10:00:28.449Z] Eirvargr || Arrax: Its weird that it was running earlier today and now all of a sudden Marinara complain about NodeJS missing [Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1529790294965358612] [2026-07-23T13:30:07.419Z] Marinara: Staging. [Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1529843054989672538] [2026-07-23T23:28:31.765Z] Halcion: Any chance to regain what was lost? I think it just happened to me. Suddenly Marinara shut down and everything was gone. (Hope it's okay for me to post this here.) [Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1529993648731590809] [2026-07-24T16:50:01.297Z] Eirvargr || Arrax: I did not get to recover what i lost. but might be able with a recovering tool. but that might mess up more than its worth i think. even if you permanently delete a file from your computer it can still be recovered with the right tool [Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1530255748825743511] [2026-07-24T16:56:46.080Z] Halcion: Eh. No worries, I will use the back up feature then! Please, have a wonderful and much less data-erased future ahead! May this never destroy our day ever again! Good luck to you! [Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1530257446608699523] [2026-07-24T20:53:44.676Z] Marinara: Oh pookies, I am so sorry. :Cry: [Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1530317083722776636] [2026-07-24T22:11:35.524Z] Halcion: Nah nah (I apologize if I shouldn't ping). It's okay. [Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1530336674679361698] [2026-07-24T22:12:30.594Z] Halcion: I will use the Back up tool you provided form here on. I should've used it before, it happens! This is still the best thing for Ai yet. And AI Professor Mari helped a lot to get the characters *Back* as I remember them, and I make the necessary adjustments to get it about as good enough as I can. [Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1530336905659551766] [2026-07-24T22:12:54.315Z] Halcion: You provided plenty of tools so that I didn't have to start *all over*, so I want to thank you! [Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1530337005152501811] [2026-07-24T22:45:47.261Z] Marinara: That is so sweet, thank you. :34_Cat_Cry: [Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1530345280287932436] [2026-07-24T22:46:26.811Z] Marinara: I will continue working and tightening up the code to ensure no one gets their data wiped. [Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1530345446172528823] [2026-07-24T22:58:21.436Z] Eirvargr || Arrax: May i suggest an idea. Have a way for user to connect it to a github system [Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1530348443527024702] [2026-07-24T22:58:47.094Z] Eirvargr || Arrax: wether its a local git or the github itself [Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1530348551144734760] [2026-07-25T05:19:28.160Z] Marinara: Or I can just add automatic backups. [Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1530444353518964868] [2026-07-25T05:19:37.506Z] Marinara: Safer and don’t require any accounts. [Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1530444392719057027] [2026-07-25T05:33:13.285Z] Eirvargr || Arrax: yea that's a better option [Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1530447814344183908] [2026-07-25T05:40:37.297Z] Marinara: They will be an optional toggle where you can do backups, can specify how often (every day, every week, every month), and a newly created backup replaces the old one. [Discord message: https://discord.com/channels/1417099416812392641/1529787421468921966/1530449676665356368] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:46:11 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Jul 25, 2026):

🔧 Ownership note: @SpicyMarinara is handling this in draft PR #4077 as part of the current open-issue sweep.

<!-- gh-comment-id:5077419654 --> @SpicyMarinara commented on GitHub (Jul 25, 2026): 🔧 Ownership note: @SpicyMarinara is handling this in draft PR #4077 as part of the current open-issue sweep.
Sign in to join this conversation.
No milestone
No project
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
Pasta-Devs/Marinara-Engine#2197
No description provided.