[Gelöst] Affine funktioniert nicht mehr

Guten Morgen,

seit heute nacht, etwa 3 Uhr, geht Affine nicht mehr. Aufgefallen ist mir dies, weil ich einmal in der Stunde eine E-Mail bekomme, in welcher steht. dass die Domain nicht erreichbar ist. Ich habe LW erst einmal neu gestartet, da ich vermutet hatte, dass vielleicht Nachts bei Backup sich Affine aufgehängt hat. Backups liefen allerdings erfolgreich durch. Auch ein inzwischen zweimaliges deinstallieren mit Neustart dazwischen, hat nichts gebracht…Zwischen deinstallieren und Neuinstallation habe ich immer mind 5 Minuten gewartet.

Hat noch jemand Probleme? Alle anderen Anwendungen wie Paperless, Nextcloud, Vaultwarden, Portainer, etc funktionieren ohne Probleme!

https://docs.libre-workspace.org/modules/general_administration.html#ssh-access

Dann einmal

sudo -i
cd /root/affine
docker compose logs

Was sagen uns denn die Logs?

1 Like

Mir leider gar nichts…

root@la:~# cd /root/affine
root@la:~/affine# docker compose logs
affine_redis | Starting Redis Server
affine_redis | 1:C 07 Feb 2026 07:20:05.295 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, see vm.max_map_count growing steadily when vm.overcommit_memory is 2 · Issue #1328 · jemalloc/jemalloc · GitHub. To fix this issue add ‘vm.overcommit_memory = 1’ to /etc/sysctl.conf and then reboot or run the command ‘sysctl vm.overcommit_memory=1’ for this to take effect.
affine_redis | 1:C 07 Feb 2026 07:20:05.295 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
affine_redis | 1:C 07 Feb 2026 07:20:05.295 * Redis version=8.4.0, bits=64, commit=00000000, modified=1, pid=1, just started
affine_redis | 1:C 07 Feb 2026 07:20:05.296 * Configuration loaded
affine_redis | 1:M 07 Feb 2026 07:20:05.296 * monotonic clock: POSIX clock_gettime
affine_redis | 1:M 07 Feb 2026 07:20:05.298 * Running mode=standalone, port=6379.
affine_redis | 1:M 07 Feb 2026 07:20:05.301 * RedisBloom version 8.4.0 (Git=unknown)
affine_redis | 1:M 07 Feb 2026 07:20:05.301 * Registering configuration options: [
affine_redis | 1:M 07 Feb 2026 07:20:05.301 * { bf-error-rate : 0.01 }
affine_redis | 1:M 07 Feb 2026 07:20:05.301 * { bf-initial-size : 100 }
affine_redis | 1:M 07 Feb 2026 07:20:05.301 * { bf-expansion-factor : 2 }
affine_redis | 1:M 07 Feb 2026 07:20:05.301 * { cf-bucket-size : 2 }
affine_redis | 1:M 07 Feb 2026 07:20:05.301 * { cf-initial-size : 1024 }
affine_redis | 1:M 07 Feb 2026 07:20:05.301 * { cf-max-iterations : 20 }
affine_redis | 1:M 07 Feb 2026 07:20:05.301 * { cf-expansion-factor : 1 }
affine_redis | 1:M 07 Feb 2026 07:20:05.301 * { cf-max-expansions : 32 }
affine_redis | 1:M 07 Feb 2026 07:20:05.301 * ]
affine_redis | 1:M 07 Feb 2026 07:20:05.301 * Module ‘bf’ loaded from /usr/local/lib/redis/modules//redisbloom.so
affine_redis | 1:M 07 Feb 2026 07:20:05.371 * Redis version found by RedisSearch : 8.4.0 - oss
affine_redis | 1:M 07 Feb 2026 07:20:05.371 * RediSearch version 8.4.2 (Git=9e2b676)
affine_postgres | ********************************************************************************
affine_postgres | WARNING: POSTGRES_HOST_AUTH_METHOD has been set to “trust”. This will allow
affine_postgres | anyone with access to the Postgres port to access your database without
affine_postgres | a password, even if POSTGRES_PASSWORD is set. See PostgreSQL
affine_redis | 1:M 07 Feb 2026 07:20:05.372 * Low level api version 1 initialized successfully
affine_redis | 1:M 07 Feb 2026 07:20:05.381 * gc: ON, prefix min length: 2, min word length to stem: 4, prefix max expansions: 200, query timeout (ms): 500, timeout policy: return, oom policy: return, cursor read size: 1000, cursor max idle (ms): 300000, max doctable size: 1000000, max number of search results: 1000000, default scorer: BM25STD,
affine_redis | 1:M 07 Feb 2026 07:20:05.382 * Initialized thread pools!
affine_redis | 1:M 07 Feb 2026 07:20:05.382 * Disabled workers threadpool of size 0
affine_redis | 1:M 07 Feb 2026 07:20:05.383 * Subscribe to config changes
affine_redis | 1:M 07 Feb 2026 07:20:05.383 * Subscribe to cluster slot migration events
affine_redis | 1:M 07 Feb 2026 07:20:05.383 * Enabled role change notification
affine_postgres | documentation about “trust”:
affine_postgres | PostgreSQL: Documentation: 18: 20.4. Trust Authentication
affine_postgres | In Docker’s default configuration, this is effectively any other
affine_postgres | container on the same system.
affine_postgres |
affine_postgres | It is not recommended to use POSTGRES_HOST_AUTH_METHOD=trust. Replace
affine_postgres | it with “-e POSTGRES_PASSWORD=password” instead to set a password in
affine_postgres | “docker run”.
affine_postgres | ********************************************************************************
affine_migration_job | node:internal/modules/cjs/loader:1386
affine_postgres | The files belonging to this database system will be owned by user “postgres”.
affine_migration_job | throw err;
affine_postgres | This user must also own the server process.
affine_postgres |
affine_postgres | The database cluster will be initialized with locale “en_US.utf8”.
affine_postgres | The default database encoding has accordingly been set to “UTF8”.
affine_postgres | The default text search configuration will be set to “english”.
affine_redis | 1:M 07 Feb 2026 07:20:05.383 * Cluster configuration: AUTO partitions, type: 0, coordinator timeout: 0ms
affine_redis | 1:M 07 Feb 2026 07:20:05.383 * Register write commands
affine_redis | 1:M 07 Feb 2026 07:20:05.383 * Module ‘search’ loaded from /usr/local/lib/redis/modules//redisearch.so
affine_redis | 1:M 07 Feb 2026 07:20:05.389 * RedisTimeSeries version 80400, git_sha=3520a1568ad69076d60885c70711fbdc9b448749
affine_redis | 1:M 07 Feb 2026 07:20:05.389 * Redis version found by RedisTimeSeries : 8.4.0 - oss
affine_redis | 1:M 07 Feb 2026 07:20:05.389 * Registering configuration options: [
affine_redis | 1:M 07 Feb 2026 07:20:05.389 * { ts-compaction-policy : }
affine_redis | 1:M 07 Feb 2026 07:20:05.389 * { ts-num-threads : 3 }
affine_migration_job | ^
affine_migration_job |
affine_migration_job | Error: Cannot find module ‘/app/scripts/self-host-predeploy.js’
affine_redis | 1:M 07 Feb 2026 07:20:05.389 * { ts-retention-policy : 0 }
affine_redis | 1:M 07 Feb 2026 07:20:05.389 * { ts-duplicate-policy : block }
affine_redis | 1:M 07 Feb 2026 07:20:05.389 * { ts-chunk-size-bytes : 4096 }
affine_postgres |
affine_redis | 1:M 07 Feb 2026 07:20:05.389 * { ts-encoding : compressed }
affine_redis | 1:M 07 Feb 2026 07:20:05.389 * { ts-ignore-max-time-diff: 0 }
affine_redis | 1:M 07 Feb 2026 07:20:05.389 * { ts-ignore-max-val-diff : 0.000000 }
affine_redis | 1:M 07 Feb 2026 07:20:05.389 * ]
affine_postgres | Data page checksums are enabled.
affine_postgres |
affine_postgres | fixing permissions on existing directory /var/lib/postgresql/data … ok
affine_postgres | creating subdirectories … ok
affine_migration_job | at Function._resolveFilename (node:internal/modules/cjs/loader:1383:15)
affine_migration_job | at defaultResolveImpl (node:internal/modules/cjs/loader:1025:19)
affine_postgres | selecting dynamic shared memory implementation … posix
affine_migration_job | at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1030:22)
affine_migration_job | at Function._load (node:internal/modules/cjs/loader:1192:37)
affine_postgres | selecting default max_connections … 100
affine_postgres | selecting default shared_buffers … 128MB
affine_migration_job | at TracingChannel.traceSync (node:diagnostics_channel:328:14)
affine_migration_job | at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
affine_redis | 1:M 07 Feb 2026 07:20:05.390 * Detected redis oss
affine_redis | 1:M 07 Feb 2026 07:20:05.390 * Subscribe to ASM events
affine_migration_job | at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:171:5)
affine_migration_job | at node:internal/main/run_main_module:36:49 {
affine_migration_job | code: ‘MODULE_NOT_FOUND’,
affine_migration_job | requireStack:
affine_migration_job | }
affine_migration_job |
affine_postgres | selecting default time zone … Etc/UTC
affine_postgres | creating configuration files … ok
affine_redis | 1:M 07 Feb 2026 07:20:05.390 * Enabled diskless replication
affine_redis | 1:M 07 Feb 2026 07:20:05.390 * Module ‘timeseries’ loaded from /usr/local/lib/redis/modules//redistimeseries.so
affine_redis | 1:M 07 Feb 2026 07:20:05.412 * Created new data type ‘ReJSON-RL’
affine_redis | 1:M 07 Feb 2026 07:20:05.416 * version: 80400 git sha: unknown branch: unknown
affine_redis | 1:M 07 Feb 2026 07:20:05.416 * Exported RedisJSON_V1 API
affine_postgres | running bootstrap script … ok
affine_postgres | performing post-bootstrap initialization … ok
affine_postgres | syncing data to disk … ok
affine_postgres |
affine_postgres |
affine_postgres | Success. You can now start the database server using:
affine_postgres |
affine_postgres | pg_ctl -D /var/lib/postgresql/data -l logfile start
affine_migration_job | Node.js v22.22.0
affine_redis | 1:M 07 Feb 2026 07:20:05.416 * Exported RedisJSON_V2 API
affine_redis | 1:M 07 Feb 2026 07:20:05.416 * Exported RedisJSON_V3 API
affine_redis | 1:M 07 Feb 2026 07:20:05.416 * Exported RedisJSON_V4 API
affine_redis | 1:M 07 Feb 2026 07:20:05.416 * Exported RedisJSON_V5 API
affine_postgres |
affine_postgres | initdb: warning: enabling “trust” authentication for local connections
affine_postgres | initdb: hint: You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb.
affine_postgres | waiting for server to start…2026-02-07 07:20:06.869 UTC [50] LOG: starting PostgreSQL 16.11 (Debian 16.11-1.pgdg12+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14+deb12u1) 12.2.0, 64-bit
affine_postgres | 2026-02-07 07:20:06.877 UTC [50] LOG: listening on Unix socket “/var/run/postgresql/.s.PGSQL.5432”
affine_postgres | 2026-02-07 07:20:06.904 UTC [53] LOG: database system was shut down at 2026-02-07 07:20:06 UTC
affine_postgres | 2026-02-07 07:20:06.922 UTC [50] LOG: database system is ready to accept connections
affine_postgres | done
affine_postgres | server started
affine_redis | 1:M 07 Feb 2026 07:20:05.416 * Exported RedisJSON_V6 API
affine_postgres | CREATE DATABASE
affine_redis | 1:M 07 Feb 2026 07:20:05.416 * Enabled diskless replication
affine_postgres |
affine_postgres |
affine_postgres | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
affine_postgres |
affine_postgres | waiting for server to shut down…2026-02-07 07:20:07.320 UTC [50] LOG: received fast shutdown request
affine_postgres | 2026-02-07 07:20:07.327 UTC [50] LOG: aborting any active transactions
affine_postgres | 2026-02-07 07:20:07.330 UTC [50] LOG: background worker “logical replication launcher” (PID 56) exited with exit code 1
affine_postgres | 2026-02-07 07:20:07.330 UTC [51] LOG: shutting down
affine_redis | 1:M 07 Feb 2026 07:20:05.416 * Initialized shared string cache, thread safe: true.
affine_redis | 1:M 07 Feb 2026 07:20:05.416 * Module ‘ReJSON’ loaded from /usr/local/lib/redis/modules//rejson.so
affine_redis | 1:M 07 Feb 2026 07:20:05.416 * Acquired RedisJSON_V6 API
affine_redis | 1:M 07 Feb 2026 07:20:05.417 * Server initialized
affine_redis | 1:M 07 Feb 2026 07:20:05.417 * Ready to accept connections tcp
affine_redis | 1:M 07 Feb 2026 07:36:58.907 * 100 changes in 300 seconds. Saving…
affine_postgres | 2026-02-07 07:20:07.338 UTC [51] LOG: checkpoint starting: shutdown immediate
affine_redis | 1:M 07 Feb 2026 07:36:58.908 * Background saving started by pid 623
affine_postgres | 2026-02-07 07:20:07.450 UTC [51] LOG: checkpoint complete: wrote 922 buffers (5.6%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.022 s, sync=0.064 s, total=0.120 s; sync files=301, longest=0.033 s, average=0.001 s; distance=4255 kB, estimate=4255 kB; lsn=0/1B54BC0, redo lsn=0/1B54BC0
affine_redis | 623:C 07 Feb 2026 07:36:58.910 * BGSAVE done, 1 keys saved, 0 keys skipped, 101 bytes written.
affine_postgres | 2026-02-07 07:20:07.454 UTC [50] LOG: database system is shut down
affine_postgres | done
affine_postgres | server stopped
affine_postgres |
affine_redis | 623:C 07 Feb 2026 07:36:58.928 * DB saved on disk
affine_redis | 623:C 07 Feb 2026 07:36:58.929 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
affine_redis | 1:M 07 Feb 2026 07:36:59.008 * Background saving terminated with success
affine_redis | 1:M 07 Feb 2026 07:53:49.176 * 100 changes in 300 seconds. Saving…
affine_redis | 1:M 07 Feb 2026 07:53:49.176 * Background saving started by pid 1220
affine_redis | 1220:C 07 Feb 2026 07:53:49.177 * BGSAVE done, 1 keys saved, 0 keys skipped, 102 bytes written.
affine_redis | 1220:C 07 Feb 2026 07:53:49.190 * DB saved on disk
affine_redis | 1220:C 07 Feb 2026 07:53:49.191 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
affine_redis | 1:M 07 Feb 2026 07:53:49.277 * Background saving terminated with success
affine_postgres | PostgreSQL init process complete; ready for start up.
affine_postgres |
affine_postgres | 2026-02-07 07:20:07.583 UTC [1] LOG: starting PostgreSQL 16.11 (Debian 16.11-1.pgdg12+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14+deb12u1) 12.2.0, 64-bit
affine_postgres | 2026-02-07 07:20:07.586 UTC [1] LOG: listening on IPv4 address “0.0.0.0”, port 5432
affine_postgres | 2026-02-07 07:20:07.586 UTC [1] LOG: listening on IPv6 address “::”, port 5432
affine_postgres | 2026-02-07 07:20:07.604 UTC [1] LOG: listening on Unix socket “/var/run/postgresql/.s.PGSQL.5432”
affine_postgres | 2026-02-07 07:20:07.625 UTC [66] LOG: database system was shut down at 2026-02-07 07:20:07 UTC
affine_postgres | 2026-02-07 07:20:07.637 UTC [1] LOG: database system is ready to accept connections
affine_postgres | 2026-02-07 07:25:07.695 UTC [64] LOG: checkpoint starting: time
affine_postgres | 2026-02-07 07:25:12.003 UTC [64] LOG: checkpoint complete: wrote 45 buffers (0.3%); 0 WAL file(s) added, 0 removed, 0 recycled; write=4.235 s, sync=0.032 s, total=4.308 s; sync files=12, longest=0.021 s, average=0.003 s; distance=310 kB, estimate=310 kB; lsn=0/1BA2558, redo lsn=0/1BA2520
affine_redis | 1:M 07 Feb 2026 08:10:39.204 * 100 changes in 300 seconds. Saving…
affine_redis | 1:M 07 Feb 2026 08:10:39.204 * Background saving started by pid 1813
affine_redis | 1813:C 07 Feb 2026 08:10:39.206 * BGSAVE done, 1 keys saved, 0 keys skipped, 102 bytes written.
affine_redis | 1813:C 07 Feb 2026 08:10:39.219 * DB saved on disk
affine_redis | 1813:C 07 Feb 2026 08:10:39.220 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
affine_redis | 1:M 07 Feb 2026 08:10:39.305 * Background saving terminated with success
affine_redis | 1:M 07 Feb 2026 08:27:30.560 * 100 changes in 300 seconds. Saving…
affine_redis | 1:M 07 Feb 2026 08:27:30.561 * Background saving started by pid 2411
affine_redis | 2411:C 07 Feb 2026 08:27:30.562 * BGSAVE done, 1 keys saved, 0 keys skipped, 102 bytes written.
affine_redis | 2411:C 07 Feb 2026 08:27:30.580 * DB saved on disk
affine_redis | 2411:C 07 Feb 2026 08:27:30.580 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
affine_redis | 1:M 07 Feb 2026 08:27:30.664 * Background saving terminated with success
affine_redis | 1:M 07 Feb 2026 08:44:23.926 * 100 changes in 300 seconds. Saving…
affine_redis | 1:M 07 Feb 2026 08:44:23.927 * Background saving started by pid 3005
affine_redis | 3005:C 07 Feb 2026 08:44:23.929 * BGSAVE done, 1 keys saved, 0 keys skipped, 102 bytes written.
affine_redis | 3005:C 07 Feb 2026 08:44:23.942 * DB saved on disk
affine_redis | 3005:C 07 Feb 2026 08:44:23.943 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
affine_redis | 1:M 07 Feb 2026 08:44:24.028 * Background saving terminated with success
root@la:~/affine#

Sieht so aus dass da ein migration job fehlschlägt:

affine_migration_job | Error: Cannot find module ‘/app/scripts/self-host-predeploy.js’
affine_migration_job | at Function._resolveFilename (node:internal/modules/cjs/loader:1383:15)
...
affine_migration_job | code: ‘MODULE_NOT_FOUND’,

Sieht so aus als ob eine neue Version veröffentlich wurde: Releases · toeverything/AFFiNE · GitHub

Evtl. ansonsten erstmal in der docker-compose yml das latest bei affine in 0.25.7 ändern und dann:

docker compose down
docker compose up -d

Evtl. sehen wir bald auch was bei den issues: GitHub · Where software is built

1 Like

Ich bekomme es leider nicht ganz hin… Vielleicht kann von den Profis einer drauf schauen, was ich falsch gemacht habe… So fit bin ich darin leider nicht.

So hat die docker-compose.yaml ursprümglich ausgeschaut.

So schaut sie jetzt aus…

Und ich dachte erst, es funktioniert, aber kurz vor Schluss, bekam ich folgenden Fehler…

Wo liegt der Fehler?

Hi, Kurze Zwischenmeldung… Es geht wieder! Keine Ahnung warum. Ich habe nach gestern nichts mehr gemacht…

1 Like