diff --git a/Dockerfile b/Dockerfile index 5e53932..e9ea112 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,6 +23,11 @@ RUN apt update && apt install -y --no-install-recommends \ && chmod a+rx /usr/local/bin/yt-dlp && \ apt clean && rm -rf /var/lib/apt/lists/* +# PHP's JIT segfaults every worker on aarch64 once an app update replaces +# compiled files. See https://github.com/nextcloud/docker/issues/2576 +RUN printf 'opcache.jit=0\nopcache.jit_buffer_size=0\n' \ + > "$PHP_INI_DIR/conf.d/startos-opcache-jit.ini" + # # Set environment variables ENV POSTGRES_DB=nextcloud ENV POSTGRES_USER=nextcloud diff --git a/manifest.yaml b/manifest.yaml index 398c971..e0ba1a7 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -1,7 +1,8 @@ id: nextcloud title: Nextcloud -version: 33.0.8 +version: 33.0.8.1 release-notes: | + * Fixes a crash after installing or updating an app on aarch64 servers that left Nextcloud unreachable until it was restarted. * Update to v33.0.8 - See [full changelog](https://nextcloud.com/changelog/) * After updating, start Nextcloud and wait for all health checks to pass. The database upgrade only completes while the service is running, so let it finish before updating StartOS to 0.4.0. license: AGPL-3.0 diff --git a/scripts/services/migrations.ts b/scripts/services/migrations.ts index 14d921e..bcd2971 100644 --- a/scripts/services/migrations.ts +++ b/scripts/services/migrations.ts @@ -1,7 +1,7 @@ import { EmVer } from "https://deno.land/x/embassyd_sdk@v0.3.3.0.9/emver-lite/mod.ts"; import { compat, matches, util, types as T } from "../deps.ts"; -const current = "33.0.8"; +const current = "33.0.8.1"; const currentMajor = EmVer.parse(current).values[0]; const minMajor = currentMajor - 1; @@ -233,6 +233,20 @@ export const migration: T.ExpectedExports.migration = async ( ); }, }, + "33.0.8.1": { + up: compat.migrations.updateConfig( + (config) => { + return config; + }, + true, + { version: "33.0.8.1", type: "up" } + ), + down: () => { + throw new Error( + "Downgrades are prohibited per Nextcloud development team recommendations" + ); + }, + }, }, current )(effects, version, ...args);