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

Build fails for timescaldb extension community version #1040

Open
Ajaiswal2610 opened this issue Oct 17, 2024 · 4 comments
Open

Build fails for timescaldb extension community version #1040

Ajaiswal2610 opened this issue Oct 17, 2024 · 4 comments

Comments

@Ajaiswal2610
Copy link

Ajaiswal2610 commented Oct 17, 2024

i am trying to build spilo with timescaledb community edition by setting build arg TIMESCALEDB_APACHE_ONLY=false , but build fails throws

`
614.8 creating symlink /usr/share/postgresql/15/contrib/oldgrants_pgq.sql -> ../../16/contrib/oldgrants_pgq.sql
614.8 creating symlink /usr/share/postgresql/15/contrib/oldgrants_pgq_node.sql -> ../../16/contrib/oldgrants_pgq_node.sql
614.8 creating symlink /usr/share/postgresql/15/contrib/pgq.sql -> ../../16/contrib/pgq.sql
614.8 creating symlink /usr/share/postgresql/15/contrib/pgq.upgrade.sql -> ../../16/contrib/pgq.upgrade.sql
614.8 creating symlink /usr/share/postgresql/15/contrib/pgq_lowlevel.sql -> ../../16/contrib/pgq_lowlevel.sql
614.8 creating symlink /usr/share/postgresql/15/contrib/pgq_node.sql -> ../../16/contrib/pgq_node.sql
614.8 creating symlink /usr/share/postgresql/15/contrib/pgq_node.upgrade.sql -> ../../16/contrib/pgq_node.upgrade.sql
614.8 creating symlink /usr/share/postgresql/15/contrib/pgq_pl_only.sql -> ../../16/contrib/pgq_pl_only.sql
614.8 creating symlink /usr/share/postgresql/15/contrib/pgq_pl_only.upgrade.sql -> ../../16/contrib/pgq_pl_only.upgrade.sql
614.8 creating symlink /usr/share/postgresql/15/contrib/pgq_triggers.sql -> ../../16/contrib/pgq_triggers.sql
614.8 creating symlink /usr/share/postgresql/15/contrib/sepgsql.sql -> ../../16/contrib/sepgsql.sql
614.9 creating symlink /usr/share/postgresql/15/contrib/uninstall_pgq.sql -> ../../16/contrib/uninstall_pgq.sql
614.9 base.sh: line 265: cd: /usr/share/postgresql/16/contrib/postgis-3.4: No such file or directory

Dockerfile:68

66 |
67 | WORKDIR /builddeps
68 | >>> RUN bash base.sh
69 |
70 | # Install wal-g

ERROR: failed to solve: process "/bin/sh -c bash base.sh" did not complete successfully: exit code: 1
`

@ghost
Copy link

ghost commented Oct 18, 2024

I've had the same issue.

@Ajaiswal2610
Copy link
Author

i figured out how to fix this , you need to pass build arg PGOLDVERSION as empty string ""

@annielzy
Copy link
Contributor

annielzy commented Oct 18, 2024

I am encountering the same error, and TIMESCALEDB_APACHE_ONLY is set to true so this argument is not related to the issue. It is likely that something external to the script has changed. I got around this by bumping POSTGIS_VERSION to 3.5

@ktalo
Copy link

ktalo commented Nov 4, 2024

Yes, the base.sh seems to install postgresql-<PGVERSION>-postgis-3 using apt and currently that installs 3.5 instead of 3.4. Got things working just like @annielzy by bumping the POSTGIS_VERSION variable.

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

3 participants