Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Updater - Tauri API error: Invalid cross-device link (os error 18) #4500

nabware opened this issue Jun 28, 2022 · 5 comments


Copy link

nabware commented Jun 28, 2022

Describe the bug

During the installUpdate() call, I receive the error "Tauri API error: Invalid cross-device link (os error 18)". I'm using a statically hosted update file following the Update File JSON Format. I have the updater dialog set to false. I'm trying to update an AppImage.

I found another "Invalid cross-device link" error in an unrelated python project.




No response

Expected behavior

No response

Platform and versions

  › OS: Manjaro 21.3.1 X64
  › Node.js: 16.15.1
  › npm: 8.5.5
  › pnpm: Not installed!
  › yarn: Not installed!
  › rustup: 1.24.3
  › rustc: 1.61.0
  › cargo: 1.61.0
  › Rust toolchain: stable-x86_64-unknown-linux-gnu 

  › @tauri-apps/cli [NPM]: 1.0.0
  › @tauri-apps/api [NPM]: 1.0.1
  › tauri [RUST]: 1.0.0,
  › tauri-build [RUST]: 1.0.0,
  › tao [RUST]: 0.11.2,
  › wry [RUST]: 0.18.3,

  › build-type: bundle
  › CSP: unset
  › distDir: ../public
  › devPath: http://localhost:8080/
  › framework: Svelte
  › bundler: Rollup

App directory structure
  ├─ .git
  ├─ src-tauri
  ├─ public
  ├─ scripts
  ├─ .github
  ├─ .aws-sam
  ├─ src
  └─ node_modules

Stack trace

No response

Additional context

No response

Copy link

Arch Linux uses tmpfs for the default tmp dir (/tmp). Currently you need to check this manually and set the TMPDIR environment variable to /var/tmp.

Copy link

@lemarier I reported this a couple months ago, do you think we can catch this error and change the temp dir?

Copy link

The error happens when we use rename.

This will not work if the new name is on a different mount point.

Copy link

nabware commented Jun 28, 2022

Thanks @lucasfernog. Looking forward to seeing this reflected in the npm package.

Copy link

cosi-conda commented Jun 7, 2023

This is occurring for macos with tauri v1.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

3 participants