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

Closed
nabware opened this issue Jun 28, 2022 · 5 comments
Closed

Comments

@nabware
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.

2022-06-27_22-51_1

2022-06-27_22-50

Reproduction

No response

Expected behavior

No response

Platform and versions

Environment
  › 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 

Packages
  › @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,

App
  › 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

@lucasfernog
Copy link
Member

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.

@lucasfernog
Copy link
Member

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

@lucasfernog
Copy link
Member

The error happens when we use rename.

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

@nabware
Copy link
Author

nabware commented Jun 28, 2022

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

@cosi-conda
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
Projects
None yet
Development

No branches or pull requests

3 participants