Co-authored-by: sup39 <dev@sup39.dev>
7.8 KiB
Notice for server administrators
You can skip intermediate versions when upgrading from an old version, but please read the notices and follow the instructions for each intermediate version before upgrading.
Unreleased
The full-text search engine used in Firefish has been changed to PGroonga. This is no longer an optional feature, so please enable PGroonga on your system. If you are using Sonic, Meilisearch, or Elasticsearch, you can also uninstall it from your system and remove the settings from .config/default.yml
.
For systemd/pm2 users
- Required Node.js version has been bumped from v18.16.0 to v18.17.0.
- You need to install PGroonga on your system. Please follow the instructions below.
1. Install PGroonga
Please execute psql --version
to check your PostgreSQL major version. This will print a message like this:
psql (PostgreSQL) 16.1
In this case, your PostgreSQL major version is 16
.
There are official installation instructions for many operating systems on https://pgroonga.github.io/install, so please follow the instructions on this page. However, since many users are using Ubuntu, and there are no instructions for Arch Linux, we explicitly list the instructions for Ubuntu and Arch Linux here. Please keep in mind that this is not official information and the procedures may change.
Ubuntu
- Add apt repository
sudo apt install -y software-properties-common sudo add-apt-repository -y universe sudo add-apt-repository -y ppa:groonga/ppa sudo apt install -y wget lsb-release wget https://packages.groonga.org/ubuntu/groonga-apt-source-latest-$(lsb_release --codename --short).deb sudo apt install -y -V ./groonga-apt-source-latest-$(lsb_release --codename --short).deb echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release --codename --short)-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - sudo apt update
- Install PGroonga
# Please replace "16" with your PostgreSQL major version sudo apt install postgresql-16-pgdg-pgroonga
Arch Linux
You can install PGroonga from the Arch User Repository.
git clone https://aur.archlinux.org/pgroonga.git && cd pgroonga && makepkg -si
# or paru -S pgroonga
# or yay -S pgroonga
2. Enable PGroonga
After the instllation, please execute this command to enable PGroonga:
sudo --user=postgres psql --dbname=your_database_name --command='CREATE EXTENSION pgroonga;'
The database name can be found in .config/default.yml
.
db:
port: 5432
db: database_name # substitute your_database_name with this
user: firefish
pass: password
For Docker/Podman users
Please edit your docker-compose.yml
to replace the database container image from docker.io/postgres
to docker.io/groonga/pgroonga
.
Please make sure to use the same PostgreSQL version. If you are using docker.io/postgres:16-alpine
(PostgreSQL v16), the corresponding image tag is docker.io/groonga/pgroonga:latest-alpine-16
(or docker.io/groonga/pgroonga:latest-alpine-16-slim
).
The list of tags can be found on https://hub.docker.com/r/groonga/pgroonga/tags.
db:
restart: unless-stopped
image: docker.io/groonga/pgroonga:latest-alpine-16-slim # change here
container_name: firefish_db
After that, execute this command to enable PGroonga:
docker-compose up db --detach && docker-compose exec db sh -c 'psql --user="${POSTGRES_USER}" --dbname="${POSTGRES_DB}" --command="CREATE EXTENSION pgroonga;"'
# or podman-compose up db --detach && podman-compose exec db sh -c 'psql --user="${POSTGRES_USER}" --dbname="${POSTGRES_DB}" --command="CREATE EXTENSION pgroonga;"'
Once this is done, you can start Firefish as usual.
docker pull registry.firefish.dev/firefish/firefish && docker-compose up --detach
# or podman pull registry.firefish.dev/firefish/firefish && podman-compose up --detach
v20240301
For all users
A new setting item has been added to control the log levels, so please consider updating your .config/default.yml
. (example settings)
v20240225
For Docker/Podman users
- The bug where
custom
directory was not working has (finally) been fixed. Please add thecustom
directory tovolumes
in yourdocker-compose.yml
:services: web: image: registry.firefish.dev/firefish/firefish:latest # and so on ... volumes: - ./custom:/firefish/custom:ro # <- Please add this line - ./files:/firefish/files - ./.config:/firefish/.config:ro
v20240222
For Docker/Podman users
- You only need to pull the new container image (
docker/podman pull
) to upgrade your server, so we assume that many of you don't update the code (git pull --ff
), but it's still worth noting here that we have renameddocker-compose.yml
todocker-compose.example.yml
in the repository, anddocker-compose.yml
is now set to be untracked by git.- Since
docker-compose.yml
may be edited by users (e.g., change port number, add reverse proxy), it shouldn't have been tracked by git in the first place. - If you want to update the repository (
git pull --ff
), please take the following steps to keep yourdocker-compose.yml
:- Backup (make a copy) your
docker-compose.yml
cp docker-compose.yml /tmp/my-docker-compose.yml # or somewhere else
- Restore the original
docker-compose.yml
so it doesn't conflict with the upstream changesgit checkout -- docker-compose.yml
- Pull the new code
git switch main git pull --ff
- Bring back your
docker-compose.yml
mv /tmp/my-docker-compose.yml docker-compose.yml
- Backup (make a copy) your
- If any modifications are needed to
docker-compose.yml
in the future, we will provide a notice. - Also, PostgreSQL v12.2 (
docker.io/postgres:12.2-alpine
) has been used in this compose file, but we highly recommend that you upgrade it to a newer version (e.g.,docker.io/postgres:16-alpine
).- Note: some manual (painful) operations are needed to upgrade the PostgreSQL major version, so please be careful when performing upgrades: https://github.com/docker-library/postgres/issues/37
- Since
v20240214
For systemd/pm2 users
- Required Rust version has been bumped from v1.70 to v1.74.
cargo --version # check version rustup update # update version
v20240213
For systemd/pm2 users
-
packages/backend/native-utils
can be removed.- This directory was removed in the repository, but it's not completely removed from your system by
git pull --ff
, because some folders likepackages/backend/native-utils/built
are not tracked by git.
rm --recursive --force packages/backend/native-utils
- This directory was removed in the repository, but it's not completely removed from your system by
v20240206
For all users
- The git repository has been moved, so please update the
git remote
url.git remote set-url origin https://firefish.dev/firefish/firefish.git
For systemd/pm2 users
- Required Rust version has been bumped from v1.68 to v1.70.
libvips
is no longer required (unless your server os is *BSD), so you may uninstall it from your system. Make sure to execute the following commands after that:pnpm clean-npm pnpm install
For Docker/Podman users
- The image tag has been changed to
registry.firefish.dev/firefish/firefish:latest
, so please updatedocker-compose.yml
.