Skip to content

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

Open
@mstfdmrsln

Description

@mstfdmrsln

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions