-
Notifications
You must be signed in to change notification settings - Fork 575
Latest release is not working #521
Comments
+1 seeing the same issue
this is using for the DB : |
Hi |
Ya but at leased new setups should not be broken - currently a brand new setup is not working either |
@adatamonk & @Holt59 - If you're using a brand new setup, you'll have to edit the file FROM postgres:13.2-alpine
ENV DEFAULT_TIMEZONE UTC
# Install some packages to use WAL
RUN echo "azure<5.0.0" > pip-constraints.txt
RUN apk add --no-cache \
build-base \
curl \
libc6-compat \
libffi-dev \
linux-headers \
python3-dev \
py-pip \
py-cryptography \
pv \
libressl-dev \
&& pip install --upgrade pip \
&& pip --no-cache-dir install -c pip-constraints.txt 'wal-e<1.0.0' envdir \
&& rm -rf /var/cache/apk/* /tmp/* /var/tmp/*
# Add wale script
COPY setup-wale.sh /docker-entrypoint-initdb.d/
#Healthcheck to make sure container is ready
HEALTHCHECK CMD pg_isready -U $POSTGRES_USER -d $POSTGRES_DB || exit 1
# Add and configure entrypoint and command
COPY entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]
CMD ["postgres"]
VOLUME ["/var/run/postgresql", "/usr/share/postgresql/", "/var/lib/postgresql/data", "/tmp", "/etc/wal-e.d/env"] This will not work directly for existing installs as you'll have to migrate your database to a new version |
thanks @coltoneshaw - this is helpful. But do we know if the offical docker hub images are being fixed? it's easier to deploy those directly |
@adatamonk - if you're using an existing install you can check out my comment here. For a fresh install, I would think the version in the docker hub images will be updated soon but I'm not sure of an ETA for that. I think it's a bit more complex than just swapping the versions since it could break quite a few existing installs if not careful. |
gets more and more outdated |
Ran into the same problem today when upgrading from 5.31 to 5.33. PostgreSQL Dockerfile was easily fixed to use PostgreSQL 13 - kudos to @coltoneshaw! Here's how I did the cluster upgrade using the image from tianon/postgres-upgrade. This is all done inside the directory used for the First thing, prepare the directory layout expected by the upgrade scripts: move the existing
Then run the upgrade script:
Note the use of the If all goes well, you should see:
The
Then it's time to move the new
Now start the Mattermost db and app containers. If everything is working, you can remove the This worked for me - use at your own risk, and remember to make backups! |
I simply used the script of @coltoneshaw and it worked like a charm! |
i hope they can fix up the docker hub version though so we don't have to deploy this way.... |
Do not try to upgrade minor 5.31 to 5.33, it will brake your MTM service |
Release 5.32.x is not working.
app
fails to start because postgres 10+ is required but the Dockerfile fordb
specifies9.4-alpine
.The text was updated successfully, but these errors were encountered: