Skip to content

application panicked (crashed) with Couldn't call __pgx_marker #21

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

Open
viki00 opened this issue May 23, 2024 · 0 comments
Open

application panicked (crashed) with Couldn't call __pgx_marker #21

viki00 opened this issue May 23, 2024 · 0 comments

Comments

@viki00
Copy link

viki00 commented May 23, 2024

Hello, i am trying to use your prometheus_fdw but running into this.. These are the steps in followed

a) I am on Ubuntu 20.04

I am running it as a Postgres user, i tried root too with same error.

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
. "$HOME/.cargo/env"

cargo install --locked cargo-pgrx --force

cargo pgrx init

git clone https://github.com/tembo-io/prometheus_fdw.git
cd prometheus_fdw

cargo pgx run pg15

Finished `dev` profile [unoptimized + debuginfo] target(s) in 3m 38s

Installing extension
Copying control file to /var/lib/postgresql/.pgx/15.7/pgx-install/share/extension/prometheus_fdw.control
Copying shared library to /var/lib/postgresql/.pgx/15.7/pgx-install/lib/prometheus_fdw.so
Discovering SQL entities
Discovered 0 SQL entities: 0 schemas (0 unique), 0 functions, 0 types, 0 enums, 0 sqls, 0 ords, 0 hashes, 0 aggregates, 0 triggers
The application panicked (crashed).
Message: Couldn't call __pgx_marker: DlSym { desc: "/var/lib/postgresql/prometheus_fdw/target/debug/libprometheus_fdw.so: undefined symbol: __pgx_marker" }
Location: /var/lib/postgresql/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-pgx-0.7.4/src/command/schema.rs:415

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

0: cargo_pgx::command::schema::generate_schema with pg_version=15.7 profile=Dev test=false path=/var/lib/postgresql/.pgx/15.7/pgx-install/share/extension/prometheus_fdw--0.1.5.sql features=["pg15"]
at /var/lib/postgresql/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-pgx-0.7.4/src/command/schema.rs:172
1: cargo_pgx::command::install::install_extension with pg_version=15.7 profile=Dev test=false features=["pg15"]
at /var/lib/postgresql/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-pgx-0.7.4/src/command/install.rs:94
2: cargo_pgx::command::run::run with pg_version=15.7 profile=Dev
at /var/lib/postgresql/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-pgx-0.7.4/src/command/run.rs:94
3: cargo_pgx::command::run::execute
at /var/lib/postgresql/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-pgx-0.7.4/src/command/run.rs:55

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

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