Page MenuHomePhabricator

Error when updating to v0.29.2: open /usr/local/bin/mw: text file busy
Open, Needs TriagePublic

Description

Running sudo mw update on version v0.29.1 produces the following error:

ERROR could not move new binary to location: open /usr/local/bin/mw: text file busy

@Addshore suspects that https://gitlab.wikimedia.org/repos/releng/cli/-/commit/c76ec8ecc708b48e44393dff50c5e166f5a7be61 is to blame.


A workaround to resolve the issue is to run mw update -vv (without sudo!) and then copy the new binary by hand from the location that appears above the line showing the permission error.

Event Timeline

Yep, this one is very easy to reproduce.

@hoo do you have thoughts on this as I believe it was your commit?

I can confirm this is still happening with updates from 0.29.2 to 0.30.0

I can confirm this is still happening with updates from 0.29.2 to 0.30.0

Looking back at the commit, I believe it should be fixed with updates from v0.30.0 onwards

I can confirm this is still happening with updates from 0.29.2 to 0.30.0

Looking back at the commit, I believe it should be fixed with updates from v0.30.0 onwards

If it was fixed, it no longer is. Did a clean install of 0.31.0 today and sudo mw update outputs the same error.

I just did sudo mw update --version v0.31.0 followed by sudo mw update --version v0.32.0 and it seemed to work fine for me?
On what setup were you trying this?

I just did sudo mw update --version v0.31.0 followed by sudo mw update --version v0.32.0 and it seemed to work fine for me?
On what setup were you trying this?

So in the mean time, I've updated another device. - Ubuntu 24.04 laptop, 0.30.0->0.32.0 worked perfectly fine. Ubuntu 26.04 desktop, 0.31.0->0.32.0 failed with the error.

Both using just "sudo mw update"