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

Permission denied error on Ubuntu firefox #4424

Open
feefladder opened this issue Feb 4, 2025 · 0 comments
Open

Permission denied error on Ubuntu firefox #4424

feefladder opened this issue Feb 4, 2025 · 0 comments
Labels

Comments

@feefladder
Copy link

Describe the Bug

When finishing the test framework, a permission denied error is raised

Steps to Reproduce

  1. clone this repo
  2. wasm-pack test --firefox --headless
  3. error shows at the end of tests
git clone [email protected]:rustwasm/wasm-bindgen.git
Cloning into 'wasm-bindgen'...
remote: Enumerating objects: 58841, done.
remote: Counting objects: 100% (3151/3151), done.
remote: Compressing objects: 100% (2288/2288), done.
remote: Total 58841 (delta 2858), reused 863 (delta 863), pack-reused 55690 (from 4)
Receiving objects: 100% (58841/58841), 27.98 MiB | 5.89 MiB/s, done.
Resolving deltas: 100% (42947/42947), done.
user@laptop:~/git$ cd wasm-bindgen/
 127 user@laptop:~/git/wasm-bindgen$ wasm-pack test --firefox --headless
[INFO]: 🎯  Checking for the Wasm target...
   Compiling proc-macro2 v1.0.93
   Compiling unicode-ident v1.0.16
   Compiling wasm-bindgen-shared v0.2.100 (/home/user/git/wasm-bindgen/crates/shared)
   Compiling bumpalo v3.17.0
   Compiling log v0.4.25
   Compiling rustversion v1.0.19
   Compiling wasm-bindgen v0.2.100 (/home/user/git/wasm-bindgen)
   Compiling once_cell v1.20.2
   Compiling cfg-if v1.0.0
   Compiling paste v1.0.15
   Compiling quote v1.0.38
   Compiling syn v2.0.98
   Compiling wasm-bindgen-backend v0.2.100 (/home/user/git/wasm-bindgen/crates/backend)
   Compiling wasm-bindgen-macro-support v0.2.100 (/home/user/git/wasm-bindgen/crates/macro-support)
   Compiling wasm-bindgen-test-macro v0.3.50 (/home/user/git/wasm-bindgen/crates/test-macro)
   Compiling serde_derive v1.0.217
   Compiling wasm-bindgen-macro v0.2.100 (/home/user/git/wasm-bindgen/crates/macro)
   Compiling js-sys v0.3.77 (/home/user/git/wasm-bindgen/crates/js-sys)
   Compiling wasm-bindgen-test-crate-a v0.0.0 (/home/user/git/wasm-bindgen/tests/crates/a)
   Compiling wasm-bindgen-test-crate-b v0.0.0 (/home/user/git/wasm-bindgen/tests/crates/b)
   Compiling wasm-bindgen-futures v0.4.50 (/home/user/git/wasm-bindgen/crates/futures)
   Compiling wasm-bindgen-test v0.3.50 (/home/user/git/wasm-bindgen/crates/test)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 16s
[INFO]: ⬇️  Installing wasm-bindgen...
    Finished `test` profile [unoptimized + debuginfo] target(s) in 0.19s
     Running tests/headless/main.rs (target/wasm32-unknown-unknown/debug/deps/headless-9bc415b36c5915b9.wasm)
                                                  
Running headless tests in Firefox on `http://127.0.0.1:45113/`
Try find `webdriver.json` for configure browser's capabilities:
Not found
running 10 tests                                  
test externref_heap_live_count::test_externref_heap_live_count ... ok
test modules::test_get_five ... ok
test strings::string_roundtrip ... ok
test snippets::duplicate_inline_not_unified ... ok
test snippets::test_get_three ... ok
test snippets::stateful_deduplicated ... ok
test snippets::test_get_two ... ok
test closures_work ... ok
test can_log_html_strings ... ok
test works ... ok

test result: ok. 10 passed; 0 failed; 0 ignored; 0 filtered out; finished in 0.02s
thread 'main' panicked at crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs:698:27:
called `Result::unwrap()` on an `Err` value: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: test failed, to rerun pass `--test headless`
Error: Running Wasm tests with wasm-bindgen-test failed
Caused by: Running Wasm tests with wasm-bindgen-test failed
Caused by: failed to execute `cargo test`: exited with exit status: 101
  full command: cd "/home/user/git/wasm-bindgen" && CARGO_TARGET_WASM32_UNKNOWN_UNKNOWN_RUNNER="/home/user/.cache/.wasm-pack/wasm-bindgen-c59d5019a2b42393/wasm-bindgen-test-runner" GECKODRIVER="/snap/bin/geckodriver" WASM_BINDGEN_TEST_ONLY_WEB="1" "cargo" "test" "--target" "wasm32-unknown-unknown"
 1 user@laptop:~/git/wasm-bindgen$ 

Expected Behavior

graceful exit

Actual Behavior

thread 'main' panicked at crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs:698:27:
called `Result::unwrap()` on an `Err` value: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: test failed, to rerun pass `--test headless`
Error: Running Wasm tests with wasm-bindgen-test failed
Caused by: Running Wasm tests with wasm-bindgen-test failed
Caused by: failed to execute `cargo test`: exited with exit status: 101
  full command: cd "/home/user/git/wasm-bindgen" && CARGO_TARGET_WASM32_UNKNOWN_UNKNOWN_RUNNER="/home/user/.cache/.wasm-pack/wasm-bindgen-c59d5019a2b42393/wasm-bindgen-test-runner" GECKODRIVER="/snap/bin/geckodriver" WASM_BINDGEN_TEST_ONLY_WEB="1" "cargo" "test" "--target" "wasm32-unknown-unknown"
 1 user@laptop:~/git/wasm-bindgen$ 

Additional Context

Running on Xubuntu 24

``` neofetch `-/osyhddddhyso/-` .+yddddddddddddddddddy+. :yddddddddddddddddddddddddy: user@laptop -yddddddddddddddddddddhdddddddy- ----------- odddddddddddyshdddddddh`dddd+ydddo OS: Xubuntu 24.10 x86_64 `yddddddhshdd- ydddddd+`ddh.:dddddy` Host: HP ENVY x360 Convertible 15-bq0xx sddddddy /d. :dddddd-:dy`-ddddddds Kernel: 6.11.0-14-generic :ddddddds /+ .dddddd`yy`:ddddddddd: Uptime: 1 day, 1 hour, 53 mins sdddddddd` . .-:/+ssdyodddddddddds Packages: 2820 (dpkg), 9 (snap) ddddddddy `:ohddddddddd Shell: bash 5.2.32 dddddddd. +dddddddd Resolution: 1920x1080 sddddddy ydddddds DE: Xfce 4.18 :dddddd+ .oddddddd: WM: Xfwm4 sdddddo ./ydddddddds WM Theme: Default `yddddd. `:ohddddddddddy` Theme: Adwaita-dark [GTK2/3] oddddh/` `.:+shdddddddddddddo Icons: elementary-xfce-dark [GTK2/3] -ydddddhyssyhdddddddddddddddddy- Terminal: vscode :yddddddddddddddddddddddddy: CPU: AMD A12-9720P RADEON R7 4C+8G (4) @ 2.700GHz .+yddddddddddddddddddy+. GPU: AMD ATI Radeon R5/R6/R7 Graphics `-/osyhddddhyso/-` Memory: 13182MiB / 15456MiB ```
@feefladder feefladder added the bug label Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant