r2modmanPlus icon indicating copy to clipboard operation
r2modmanPlus copied to clipboard

[BUG] - "EBUSY: resource busy or locked" when importing code

Open Dullstar opened this issue 1 year ago • 6 comments

Attempting to import a code (regardless of new profile/update existing profile) can sometimes cause an EBUSY error. The path appears to be a temporary file that is only used for importing codes and is deleted by the time the user sees the error message. There is some, but not full consistency to which mod will cause the issue; my current working hypothesis is that the mods aren't always processed in the same order so the mod shown in the error will be whichever one gets processed first. The following code is an example of a code for Lethal Company that was affected: 01930992-3fb0-9787-bcd4-3d09cdbe4839

It doesn't seem to affect all players, but I believe some of the players may be using Thunderstore and since the issue affects importing codes, the person generating the code is not affected, so I don't know 100% if anyone else tried to import it using r2modman specifically (at least I am told the codes are compatible with both).

I did not notice any obvious evidence of another program attempting to access the file and the issue persisted after a restart. Clearing r2modman-related files from AppData does not seem to fix the issue.

It only happens when importing a code, but I don't know what predicts if a code will be affected (though a mod that fails in one code appears to have an increased likelihood of failing in another code -- I do not know if it will occur on all codes that contain an affected mod). If a new code that has had the offending mods removed is obtained, the affected mods can successfully be downloaded after the import is complete.

Because the mods can be manually downloaded, it would probably at least help if there was the option to import as much of the code as possible and then manually fix the mods that fail due to this error.

Best guess: is there some sort of data race happening during the import process?

Screenshots image

Dullstar avatar Nov 08 '24 04:11 Dullstar

Hey, having the same issue! Trying to import a code (or file) that was generated from Thundestore will result in this EBUSY error. Looking it over, mods that cause this error seem to be mods that are disabled, but not deleted... Removing the disabled mod from the profile entirely, and re-importing it from code should work? I had a friend remove 1 mod, which caused it to break on the next mod... But due to the giant list of disabled mods in the affect pack meant that it was easier to download Thunderstore at that point :( (which did work)

Yuki-iso avatar Nov 11 '24 18:11 Yuki-iso

Me and my friend get the exact same issue with our old profile, we tried several times in different ways and no luck. Only manually downloading mods worked unfortunately :(

Inkiai avatar Nov 16 '24 19:11 Inkiai

Hi, Same issue here, at least for Lethal Company A workaround that seems to work is to use r2modman version 3.1.49 (For Windows, take "r2modman-3.1.49.exe", not the setup one, or else it will automatically upgrade to the latest r2modman version)

Since version 3.1.50, I can't get the mods to import correctly from a code (also generated from Thunderstore). A friend had to downgrade to r2modman 3.1.49 as well to import the code correctly.

Copper-Bot avatar Nov 19 '24 19:11 Copper-Bot

I'd have to test more codes to be confident 3.1.49 is unaffected, but so far it does appear that the issue was introduced in 3.1.50.

Dullstar avatar Nov 21 '24 21:11 Dullstar

Hi, Same issue here, at least for Lethal Company A workaround that seems to work is to use r2modman version 3.1.49 (For Windows, take "r2modman-3.1.49.exe", not the setup one, or else it will automatically upgrade to the latest r2modman version)

Since version 3.1.50, I can't get the mods to import correctly from a code (also generated from Thunderstore). A friend had to downgrade to r2modman 3.1.49 as well to import the code correctly.

Just wanted to say that I had this same issue with the latest version 3.1.55 and downloading the older 3.1.49 fixed it. The modpack I was trying to install had a disabled mod in it as well.

VertyyBird avatar Jan 15 '25 17:01 VertyyBird

Able to repro with code 01952f48-d63f-66aa-0f49-119e1ffd9fa1

OoLunar avatar Feb 22 '25 20:02 OoLunar

Does this issue still occur? It hasn't been reported for a long time.

ebkr avatar Jul 24 '25 12:07 ebkr

I got around to retesting today with two different codes (one of which was the one I originally reported this with) and didn't replicate the issue in 3.2.3. (I haven't been using it much recently, so that's why it's taken me a while to get around to retesting). If no one else has reported the issue recently it's probably safe to assume it's fixed.

Dullstar avatar Aug 21 '25 07:08 Dullstar