general
How to fix 'Permission denied' error when running cargo run?
I am getting the following error when running cargo run --features cuda serve --model TabbyML/StarCoder-1B --device cuda
:
thread 'main' panicked at crates/tabby-common/src/registry.rs:73:51:
called `Result::unwrap()` on an `Err` value: Error(TrackableError { kind: Other, cause: Some(Cause(Os { code: 13, kind: PermissionDenied, message: "Permission denied" }))
What should I do next?
th
thanh tung
Asked on Jan 18, 2024
This error is likely caused by the user not having access to write to the ~/.tabby
folder. To fix this, you can try the following steps:
-
Verify if you can write to
~/.tabby
by running the commandtouch ~/.tabby/test.txt
. If you get a permission denied error, then you don't have write access. -
If you don't have write access, you can try changing the ownership of the
.tabby
folder to your user. Run the commandsudo chown -R $USER ~/.tabby
to change the ownership recursively. -
After changing the ownership, try running
cargo run
again and see if the error is resolved.
Jan 18, 2024Edited by