Upgrading .54 to .55 failing

Hi - I’ve been running email and dns on MIAB for about 3 years. Never have had ANY problems but I’m finding that I cannot upgrade from .54 to .55.

I’ve run all the Something Went Wrong steps and rerun the installer. No change. Everything is green except for the upgrade. 40GB remaining. 80% free memory.

This is the upgrade session:

root@box:~# curl -s https://mailinabox.email/setup.sh | sudo bash

Updating Mail-in-a-Box to v55 . . .
remote: Enumerating objects: 1, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 1 (delta 0), reused 1 (delta 0), pack-reused 0
Unpacking objects: 100% (1/1), done.
error: Your local changes to the following files would be overwritten by checkout:
Please commit your changes or stash them before you switch branches.
Update failed. Did you modify something in /root/mailinabox?

I have not made any changes to any files but in all my digging the only thing that I’m considering may have had an effect is that I resized the VPS where MIAB is hosted.

Could that be the issue? If so, can that be resolved? What else should I be investigating?

Thanks for a great project.

For some reason git is reporting changes to dns_update.py.

I am weak with git and might be wrong:

If I read that correctly, you can use git stash with the appropriate permissions from the mailinabox/ directory to “stash” the changes, whatever that does.

Also, I think if you are in the mailinabox/ directory you can run git status and it will show what it thinks the changes are.

ROCK n ROLL! Git fixed it. Thanks openletter.

root@box:~# git status
root@box:~# cd mailinabox
root@box:~/mailinabox# git status
HEAD detached at v0.54
Changes not staged for commit:

(use “git add …” to update what will be committed)
(use “git checkout – …” to discard changes in working directory)

modified: management/dns_update.py
no changes added to commit (use “git add” and/or “git commit -a”)
root@box:~/mailinabox# cd management
root@box:~/mailinabox/management# git checkout dns_update.py
root@box:~/mailinabox/management# cd
root@box:~# sudo curl -s https://mailinabox.email/setup.sh | sudo bash
Updating Mail-in-a-Box to v55 . . .

(The update completed successfully.)

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.