Skip to content

fix: install.sh Text file busy error when upgrading#46

Merged
aptend merged 1 commit intomatrixorigin:mainfrom
aptend:fix/install-text-file-busy
Mar 18, 2026
Merged

fix: install.sh Text file busy error when upgrading#46
aptend merged 1 commit intomatrixorigin:mainfrom
aptend:fix/install-text-file-busy

Conversation

@aptend
Copy link
Copy Markdown
Collaborator

@aptend aptend commented Mar 18, 2026

What type of PR is this?

  • feat (new feature)
  • fix (bug fix)
  • docs (documentation)
  • style (formatting, no code change)
  • refactor (code change that neither fixes a bug nor adds a feature)
  • perf (performance improvement)
  • test (adding or updating tests)
  • chore (maintenance, tooling)
  • build / ci (build or CI changes)

Which issue(s) this PR fixes

N/A

What this PR does / why we need it

When upgrading memoria while an MCP server process is still running (e.g. started by Kiro/Cursor), cp fails with Text file busy (ETXTBSY) because Linux prevents writing to a running executable.

Fix: rm -f the old binary before cp. This unlinks the filename without affecting the running process (which keeps its open fd), allowing the new binary to be written.

Remove old binary before copying new one to avoid ETXTBSY when
the memoria process is still running (e.g. MCP server started by IDE).
@aptend aptend merged commit a79f971 into matrixorigin:main Mar 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant