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

When init with exisiting instance, report permission error #1964

Open
wangyjx opened this issue Dec 30, 2024 · 0 comments
Open

When init with exisiting instance, report permission error #1964

wangyjx opened this issue Dec 30, 2024 · 0 comments

Comments

@wangyjx
Copy link

wangyjx commented Dec 30, 2024

execute cargo pgrx init --pg16=/etc/postgresql/16/main/postgresql.conf
environment:Ubuntu 24.04 in WSL
output

Validating /etc/postgresql/16/main/postgresql.conf
Error:
0: Permission denied (os error 13)

Location:
/root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pgrx-pg-config-0.12.9/src/lib.rs:446

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ SPANTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

0: cargo_pgrx::command::init::init_pgrx
at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-pgrx-0.12.9/src/command/init.rs:163
1: cargo_pgrx::command::init::execute
at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-pgrx-0.12.9/src/command/init.rs:88

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⋮ 3 frames hidden ⋮
4: pgrx_pg_config::PgConfig::run::he0e8c2e0fc453420
at :
5: pgrx_pg_config::PgConfig::includedir_server::he5f2c222240c97db
at :
6: cargo_pgrx::command::init::init_pgrx::h61f98f7e6248cb06
at :
7: cargo_pgrx::main::h290723821aea2751
at :
8: std::sys::backtrace::__rust_begin_short_backtrace::h59e0e7e1a0d492dc
at :
9: std::rt::lang_start::{{closure}}::h76e69049fc1f26b3
at :
10: std::rt::lang_start_internal::h1c66660c99c8424c
at :
11: main
at :
12: __libc_start_main
at :
13: _start
at :

Did I do something wrong there?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant