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] re-run tauri dev get permission denied #3201

Closed
kaichaosun opened this issue Jan 12, 2022 · 4 comments
Closed

[bug] re-run tauri dev get permission denied #3201

kaichaosun opened this issue Jan 12, 2022 · 4 comments
Labels
status: needs more info Issue needs more information, discussion or reproducible example type: bug

Comments

@kaichaosun
Copy link

Describe the bug

When run npm run tauri dev at second time, got error,

> launcher@0.3.7 tauri /Users/kaichaosun/github/holo/launcher
> tauri "dev"

 app:spawn Running "/Users/kaichaosun/github/holo/launcher/node_modules/@tauri-apps/cli/bin/tauri-cli tauri dev" +0ms

Error: `Permission denied (os error 13)`

Caused by:
    Permission denied (os error 13)

 app:spawn Command "/Users/kaichaosun/github/holo/launcher/node_modules/@tauri-apps/cli/bin/tauri-cli" failed with exit code: 1 +0ms

The command works again if I remove target folder in src-tauri. It seems rebuild didn't work.

On mac m1 pro, with rust version,

rustc 1.56.1 (59eed8a2a 2021-11-01)
binary: rustc
commit-hash: 59eed8a2aac0230a8b53e89d4e99d55912ba6b35
commit-date: 2021-11-01
host: aarch64-apple-darwin
release: 1.56.1
LLVM version: 13.0.0

Reproduction

  1. Go to https://github.com/holochain/launcher/blob/main/dev-setup.md
  2. npm run dev for 2 times, not sure if depends on machine.

Expected behavior

No response

Platform and versions

> launcher@0.3.7 tauri /Users/kaichaosun/github/holo/launcher
> tauri "info"

 app:spawn Running "/Users/kaichaosun/github/holo/launcher/node_modules/@tauri-apps/cli/bin/tauri-cli tauri info" +0ms


Operating System - Mac OS, version 12.0.1 X64

Node.js environment
  Node.js - 14.16.1
  @tauri-apps/cli - 1.0.0-beta.10
  @tauri-apps/api - 1.0.0-beta.8

Global packages
  npm - 6.14.12
  yarn - 1.22.17

Rust environment
  rustc - 1.56.1
  cargo - 1.56.0

App directory structure
/node_modules
/tests
/.cargo
/public
/scripts
/.github
/src-tauri
/.git
/src

App
  tauri.rs - 1.0.0-beta.8
  build-type - bundle
  CSP - default-src blob: data: filesystem: ws: http: https: tauri: 'unsafe-eval' 'unsafe-inline' 'self' img-src: 'self'
  distDir - target/webpack_dist
  devPath - target/webpack_dist
  framework - Vue.js (Vue CLI)
  bundler - Webpack

Stack trace

No response

Additional context

No response

@amrbashir
Copy link
Member

you have your webpack output inside the target, can you change that to be outside of it and try again ?

@kaichaosun
Copy link
Author

kaichaosun commented Jan 13, 2022

@amrbashir just tried move it outside, still no luck.
and the permission of target folder,

drwxr-xr-x   4 kaichaosun  staff     128 Jan 13 10:20 target

@amrbashir amrbashir added the status: needs more info Issue needs more information, discussion or reproducible example label Jan 13, 2022
@amrbashir
Copy link
Member

Can you try making a minimal repro ? the repo you linked is huge which will make it harder to spot the bug.

@kaichaosun
Copy link
Author

It's resolved in latest release, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs more info Issue needs more information, discussion or reproducible example type: bug
Projects
None yet
Development

No branches or pull requests

2 participants