a year ago
I have the volume attached at /var/npmrocksdb/
But when my application tries to access it, it got permissions denies
LOGS:
Creating npm rocks db at /var/npm_rocks_db/data/
thread 'main' panicked at src/npm_replicator/registry.rs:24:44:
called `Result::unwrap()` on an `Err` value: Error { message: "Failed to create RocksDB directory: `Os { code: 13, kind: PermissionDenied, message: \"Permission denied\" }`." }
stack backtrace:
0: 0x55d3510dd9ba - ::fmt::he089f96442833f67
1: 0x55d351102ed3 - core::fmt::write::h2f210ed4c94745cb
2: 0x55d3510da383 - std::io::Write::write_fmt::h7de08171ab770fb2
3: 0x55d3510dd802 - std::sys::backtrace::BacktraceLock::print::h810fbd31421329e6
4: 0x55d3510de870 - std::panicking::default_hook::{{closure}}::hbaad47ed9dc6356d
5: 0x55d3510de650 - std::panicking::default_hook::h24e207139139d40a
6: 0x55d3510defd2 - std::panicking::rust_panic_with_hook::ha9131beeb2ddc506
7: 0x55d3510ded7a - std::panicking::begin_panic_handler::{{closure}}::h1bba0eaeb6da506f
8: 0x55d3510ddeb9 - std::sys::backtrace::__rust_end_short_backtrace::h1d1ca3eade483f4c
9: 0x55d3510dea0d - rust_begin_unwind
10: 0x55d350656940 - core::panicking::panic_fmt::h896a0727a1a943f9
11: 0x55d350656d16 - core::result::unwrap_failed::h1b5ed8541c7bebd6
12: 0x55d3506f53d3 - sandpack_cdn::npm_replicator::registry::NpmRocksDB::new::h33e6438822555304
13: 0x55d3507b318a - tokio::runtime::park::CachedParkThread::block_on::hc318c94d8c9efe70
14: 0x55d35071eb60 - tokio::runtime::runtime::Runtime::block_on::h9a6a792be33a6fc0
15: 0x55d3506a3b96 - sandpack_cdn::main::h68fbb7ba22de042f
16: 0x55d3507aa1a3 - std::sys::backtrace::__rust_begin_short_backtrace::hc917678e303e831b
17: 0x55d3506eef89 - std::rt::lang_start::{{closure}}::ha6b638a8385a2cdd
18: 0x55d3510d5917 - std::rt::lang_start_internal::hbb268f70c879621d
19: 0x55d3506a3c75 - main
20: 0x7fd1ffdf21ca -
21: 0x7fd1ffdf228b - __libc_start_main
22: 0x55d3506850b1 - _start
23: 0x0 - > ⓘ Deployment information is only viewable by project members and Railway employees.
2 Replies
brody
Hello,Try adding a RAILWAY_RUN_UID service variable set to 1
a year ago
Now I have in logs for https://railway.com/project/8cd63368-d445-4a90-b685-a6ec2091c896/service/e6be8dd3-9ab9-426f-ba39-6927cbb101f7?environmentId=5d7b2070-a04c-4387-bbc4-b5e10050d4f7&id=c40f3ed5-3052-4278-9e37-43409b9bded7#deploy
```
Starting Container
[dumb-init] /home/appuser/sandpack-cdn: Permission denied
Mounting volume on: /var/lib/containers/railwayapp/bind-mounts/uuid/vol_...
Mounting volume on: /var/lib/containers/railwayapp/bind-mounts/uuid/vol_...
[dumb-init] /home/appuser/sandpack-cdn: Permission denied
[dumb-init] /home/appuser/sandpack-cdn: Permission denied
Mounting volume on: /var/lib/containers/railwayapp/bind-mounts/uuid/vol_...
[dumb-init] /home/appuser/sandpack-cdn: Permission denied
Mounting volume on: /var/lib/containers/railwayapp/bind-mounts/uuid/vol_...
[dumb-init] /home/appuser/sandpack-cdn: Permission denied
Mounting volume on: /var/lib/containers/railwayapp/bind-mounts/uuid/vol_...
```