plugins-workspace icon indicating copy to clipboard operation
plugins-workspace copied to clipboard

Failed to move the new app into place Error during downloadAndInstall method

Open mstfdmrsln opened this issue 8 months ago • 5 comments

I am encountering an issue when using the downloadAndInstall method from the tauri-plugin-updater in my Tauri application. The download part works fine, and the application updates are correctly downloaded to the specified path. However, when it attempts to install the update, I receive the following error:

Failed to move the new app into place

Steps to Reproduce: Trigger the update check using check() method.

If an update is found, call downloadAndInstall() to download and install the update.

The download progresses normally, and the new app file is downloaded.

Upon attempting to install the update, the error is thrown: "Failed to move the new app into place."

Expected Behavior: The application should successfully install the downloaded update and move the new app into the appropriate location, without errors.

Actual Behavior: The download completes successfully, but when the install() function is called, it fails with the "Failed to move the new app into place" error.

Additional Information: The issue occurs on macOS.

I have confirmed that the necessary permissions are granted, and the application has the correct rights to modify the files and execute them.

No specific file or directory permissions are reported as causing the issue.

Environment: Tauri version: v2.x

tauri-plugin-updater version: v2.x

Operating System: macOS

Any additional relevant details (like app config, permissions, etc.)

Potential Ideas: It seems that there might be an issue with moving or replacing the application binary during the install process. Maybe it is related to file locks, application permissions, or other system-specific restrictions on macOS.

I would appreciate any guidance on resolving this issue or if anyone has encountered a similar problem.

mstfdmrsln avatar Apr 06 '25 15:04 mstfdmrsln

Is the app and the temp folder on the same drive?

FabianLars avatar Apr 07 '25 09:04 FabianLars

Is the app and the temp folder on the same drive?

I am not making any configuration regarding the temp folder. Is there a document regarding the temp folder?

mstfdmrsln avatar Apr 07 '25 11:04 mstfdmrsln

let me ask it differently then, is the app running on your "main" disk where preinstalled macos apps etc are installed? There are/were issues for example with removable media (== app was installed on an usb storage device)

FabianLars avatar Apr 07 '25 13:04 FabianLars

let me ask it differently then, is the app running on your "main" disk where preinstalled macos apps etc are installed? There are/were issues for example with removable media (== app was installed on an usb storage device)

It is intalled and runs under the /Applications directory on my computer's main disk. I have never run it with an external device.

mstfdmrsln avatar Apr 07 '25 13:04 mstfdmrsln

I see the same issue appearing for some users.

espirin avatar May 01 '25 16:05 espirin

I also have this issue. Has anyone found any workarounds?

EricWiener avatar May 21 '25 16:05 EricWiener

I had to remove:

    <key>com.apple.security.app-sandbox</key>
    <true/>

from my Entitlements.plist

EricWiener avatar May 21 '25 16:05 EricWiener