Closed esatterwhite closed 5 years ago
Hmm getmissingattr is a static postgres function, did you modify the source code cause i dont see any references to it in our code
No, nothing like that
FROM postgres:11
ENV POSTGRES_VERSION=11
ENV TIMESCALEDB_VERSION 1.2.1
RUN set -ex \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8 \
&& apt-get update \
&& apt-get -y install postgresql-common \
ca-certificates \
build-essential libpq-dev locales wget unzip tree libkrb5-dev git \
openssl \
libssl-dev \
curl \
python3 \
python3-pip \
tar \
make \
cmake \
postgresql-server-dev-${POSTGRES_VERSION} \
&& mkdir -p /build/timescaledb \
&& wget -O /timescaledb.tar.gz https://github.com/timescale/timescaledb/archive/$TIMESCALEDB_VERSION.tar.gz \
&& tar -C /build/timescaledb --strip-components 1 -zxf /timescaledb.tar.gz \
&& rm -f /timescaledb.tar.gz \
&& cd /build/timescaledb \
&& ./bootstrap \
&& cd build && make install \
&& cd ~ \
&& rm -rf /build \
&& rm -rf /var/lib/apt/lists/* \
&& sed -r -i "s/[#]*\s*(shared_preload_libraries)\s*=\s*'(.*)'/\1 = 'timescaledb,pg_stat_statements\2'/;s/,'/'/" /usr/share/postgresql/postgresql.conf.sample \
&& echo "wal_level = logical" >> /usr/share/postgresql/postgresql.conf.sample \
&& echo "max_replication_slots = 10" >> /usr/share/postgresql/postgresql.conf.sample \
&& echo "timescaledb.telemetry_level = off" >> /usr/share/postgresql/postgresql.conf.sample \
&& echo "max_worker_processes = 96" >> /usr/share/postgresql/postgresql.conf.sample
RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG en_US.utf8
do you need more information than this? what would you need?
@esatterwhite Hmm i used your Dockerfile to build an image and I could install timescaledb in a database inside the container
root@2b85fdb124af:/# psql -U postgres
psql (11.2 (Debian 11.2-1.pgdg90+1))
Type "help" for help.
postgres=# create extension timescaledb;
WARNING:
WELCOME TO
_____ _ _ ____________
|_ _(_) | | | _ \ ___ \
| | _ _ __ ___ ___ ___ ___ __ _| | ___| | | | |_/ /
| | | | _ ` _ \ / _ \/ __|/ __/ _` | |/ _ \ | | | ___ \
| | | | | | | | | __/\__ \ (_| (_| | | __/ |/ /| |_/ /
|_| |_|_| |_| |_|\___||___/\___\__,_|_|\___|___/ \____/
Running version 1.2.1
For more information on TimescaleDB, please visit the following links:
1. Getting started: https://docs.timescale.com/getting-started
2. API reference documentation: https://docs.timescale.com/api
3. How TimescaleDB is designed: https://docs.timescale.com/introduction/architecture
Note: TimescaleDB collects anonymous reports to better understand and assist our users.
For more information and how to disable, please see our docs https://docs.timescaledb.com/using-timescaledb/telemetry.
CREATE EXTENSION
ah. I must have had some bad cached layers from previous builds. Cleared things out and it seems fine.
User Error. Sorry to waste your time on this one.
hi @esatterwhite , how the steps to clear cached from previous builds? because i had problem when install wal2json plugin
pg_recvlogical: could not send replication command "CREATE_REPLICATION_SLOT "striim_slot" LOGICAL "wal2json" NOEXPORT_SNAPSHOT": ERROR: could not load library "/usr/lib/postgresql/11/lib/wal2json.so": /usr/lib/postgresql/11/lib/wal2json.so: undefined symbol: getmissingattr
$ docker rmi $(docker images -f dangling=true -q)
$ docker build --no-cache ...
Relevant system information:
Linux 82af5244d4a2 4.20.1-arch1-1-ARCH #1 SMP PREEMPT Wed Jan 9 20:25:43 UTC 2019 x86_64 GNU/Linux
postgres --version
): 11\dx
inpsql
): 1.2.1Describe the bug following the install instructions. It seems to start fine, but when starting the container + postgres, I get
It seemed to install fine
To Reproduce I'm using the postgres:11 container and pretty much just cloning the project and building the
1.2.1
tag