-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
File system access fails on read-only file systems #198
Comments
v0.3.0 tries to create files on the file system, which fails in our read-only containers. v0.2.3 does not appear to exhibit the same pattern. Follow paradedb/pg_analytics#198 for potential fixes.
v0.3.0 tries to create files on the file system, which fails in our read-only containers. v0.2.3 does not appear to exhibit the same pattern. Follow paradedb/pg_analytics#198 for potential fixes.
For anyone who runs into permission issues rather than a read-only file system, you can grant the appropriate permissions like so: RUN mkdir .duckdb/ && chmod -R a+rwX .duckdb/ && \
mkdir /var/lib/postgresql/.duckdb/ && \
chmod -R a+rwX /var/lib/postgresql/.duckdb/ |
Thank you for reporting. Issue found, we'll push |
@philippemnoel Thanks for pushing the v0.3.1 release! However, I am not sure whether it has actually fixed the issue:
I've also tried to
|
That's surprising. I will investigate further. In the meantime, you can get around this issue by doing:
using this syntax https://docs.paradedb.com/integrations/configuration/settings and setting extension_directory to the PGDATA directory |
Hi Konstantin. Could you please share a full reproduction step-by-step with every command executed that I can follow? We have integrated |
Sure! Here is my Dockerfile: # See https://cloudnative-pg.io/blog/creating-container-images/ for building the image
# See https://github.com/cloudnative-pg/postgres-containers/pkgs/container/postgresql for the available versions
ARG CNPG_VERSION="17.2-33-bookworm"
FROM "ghcr.io/cloudnative-pg/postgresql:${CNPG_VERSION}"
ARG POSTGRESQL_VERSION="17"
ARG TARGETARCH
# To install any package we need to be root
USER root
# We do this to avoid installing curl into the image
ARG DEBIAN_VERSION_CODENAME="bookworm"
RUN <<EOF
set -xe
VERSION_CODENAME=$(cat /etc/*release | grep VERSION_CODENAME | awk -F"=" '{print $2}')
if [ ! "${DEBIAN_VERSION_CODENAME}" = "${VERSION_CODENAME}" ]; then
echo "This container uses ${VERSION_CODENAME}, not ${DEBIAN_VERSION_CODENAME}"
exit 1
fi
EOF
ARG PG_SEARCH_VERSION="0.14.1"
ARG PG_ANALYTICS_VERSION="0.3.1"
ADD "https://github.com/paradedb/paradedb/releases/download/v${PG_SEARCH_VERSION}/postgresql-${POSTGRESQL_VERSION}-pg-search_${PG_SEARCH_VERSION}-1PARADEDB-${DEBIAN_VERSION_CODENAME}_${TARGETARCH}.deb" /tmp/
ADD "https://github.com/paradedb/pg_analytics/releases/download/v${PG_ANALYTICS_VERSION}/postgresql-${POSTGRESQL_VERSION}-pg-analytics_${PG_ANALYTICS_VERSION}-1PARADEDB-${DEBIAN_VERSION_CODENAME}_${TARGETARCH}.deb" /tmp/
# See https://docs.paradedb.com/deploy/third-party-extensions
# We install a subset: pg_search, pg_analytics, pgvector
RUN <<EOF
set -xe
apt-get update
apt-get install --yes --no-install-recommends \
/tmp/postgresql-${POSTGRESQL_VERSION}-pg-search_${PG_SEARCH_VERSION}-1PARADEDB-${DEBIAN_VERSION_CODENAME}_${TARGETARCH}.deb \
/tmp/postgresql-${POSTGRESQL_VERSION}-pg-analytics_${PG_ANALYTICS_VERSION}-1PARADEDB-${DEBIAN_VERSION_CODENAME}_${TARGETARCH}.deb \
"postgresql-${POSTGRESQL_VERSION}-pgvector"
rm -rf /tmp/*
rm -rf /var/lib/apt/lists/*
EOF
# Change to the uid of postgres (26)
USER 26 Then I launch this container via CNPG operator and execute the following commands as a root:
And this gives back the
After running your suggestion everything seems to work
|
You did not create a FOREIGN TABLE, as per our tutorial: https://docs.paradedb.com/integrations/overview. Is there a specific reason behind that? |
Yes, to provide the minimal example. Using
Setting
|
What happens?
I attempted to create a foreign table following the Tembo tutorial, using v0.3.0, and was surprised by this error:
Tembo runs its containers with read-only file systems. The issue does not occur with v0.2.3. I wonder if it'd be possible to either:
To Reproduce
psql
OS:
Linux
ParadeDB Version:
pg_anaytics 0.3.0
Are you using ParadeDB Docker, Helm, or the extension(s) standalone?
ParadeDB pg_analytics Extension
Full Name:
David Wheeler
Affiliation:
Tembo
Did you include all relevant data sets for reproducing the issue?
Yes
Did you include the code required to reproduce the issue?
Did you include all relevant configurations (e.g., CPU architecture, PostgreSQL version, Linux distribution) to reproduce the issue?
The text was updated successfully, but these errors were encountered: