My configuration. Probably nothing to look for here.
Motiejus Jakštys
9427ac5f5c
``` Nov 20 16:17:38 fwminex systemd[1]: Started Immich backend server (Self-hosted photo and video backup solution). Nov 20 16:17:38 fwminex immich[3803141]: + mkdir /data/M-Camera Nov 20 16:17:38 fwminex immich[3803141]: + bindfs -u immich -g immich /var/run/immich/bind-paths/M-Camera /data/M-Camera Nov 20 16:17:38 fwminex immich[3803141]: + mkdir /data/Pictures Nov 20 16:17:38 fwminex immich[3803141]: + bindfs -u immich -g immich /var/run/immich/bind-paths/Pictures /data/Pictures Nov 20 16:17:38 fwminex immich[3803141]: + exec setpriv --ruid immich --inh-caps -all /nix/store/vf72vvry2bjlrq8mdhgvx6f93v9i2gir-immich-1.120.1/bin/server Nov 20 16:17:39 fwminex immich[3803141]: Starting api worker Nov 20 16:17:39 fwminex immich[3803141]: Starting microservices worker Nov 20 16:17:40 fwminex immich[3803141]: [Nest] 3803141 - 11/20/2024, 4:17:40 PM LOG [Microservices:EventRepository] Initialized websocket server Nov 20 16:17:40 fwminex immich[3803141]: [Nest] 3803141 - 11/20/2024, 4:17:40 PM WARN [Microservices:DatabaseService] Could not run vector reindexing checks. If the extension was updated, please restart the Postgres instance. Nov 20 16:17:40 fwminex immich[3803141]: QueryFailedError: pgvecto.rs: The extension is upgraded so all index files are outdated. Nov 20 16:17:40 fwminex immich[3803141]: ADVICE: Delete all index files. Please read `https://docs.pgvecto.rs/admin/upgrading.html` Nov 20 16:17:40 fwminex immich[3803141]: at PostgresQueryRunner.query (/nix/store/vf72vvry2bjlrq8mdhgvx6f93v9i2gir-immich-1.120.1/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:219:19) Nov 20 16:17:40 fwminex immich[3803141]: at process.processTicksAndRejections (node:internal/process/task_queues:95:5) Nov 20 16:17:40 fwminex immich[3803141]: at async DataSource.query (/nix/store/vf72vvry2bjlrq8mdhgvx6f93v9i2gir-immich-1.120.1/node_modules/typeorm/data-source/DataSource.js:350:20) Nov 20 16:17:40 fwminex immich[3803141]: at async DatabaseRepository.shouldReindex (/nix/store/vf72vvry2bjlrq8mdhgvx6f93v9i2gir-immich-1.120.1/dist/repositories/database.repository.js:136:25) Nov 20 16:17:40 fwminex immich[3803141]: at async DatabaseService.checkReindexing (/nix/store/vf72vvry2bjlrq8mdhgvx6f93v9i2gir-immich-1.120.1/dist/services/database.service.js:144:17) Nov 20 16:17:40 fwminex immich[3803141]: at async /nix/store/vf72vvry2bjlrq8mdhgvx6f93v9i2gir-immich-1.120.1/dist/services/database.service.js:93:13 Nov 20 16:17:40 fwminex immich[3803141]: at async /nix/store/vf72vvry2bjlrq8mdhgvx6f93v9i2gir-immich-1.120.1/dist/repositories/database.repository.js:197:23 { Nov 20 16:17:40 fwminex immich[3803141]: query: 'SELECT idx_status FROM pg_vector_index_stat WHERE indexname = $1', Nov 20 16:17:40 fwminex immich[3803141]: parameters: [ 'clip_index' ], Nov 20 16:17:40 fwminex immich[3803141]: driverError: error: pgvecto.rs: The extension is upgraded so all index files are outdated. Nov 20 16:17:40 fwminex immich[3803141]: ADVICE: Delete all index files. Please read `https://docs.pgvecto.rs/admin/upgrading.html` Nov 20 16:17:40 fwminex immich[3803141]: at /nix/store/vf72vvry2bjlrq8mdhgvx6f93v9i2gir-immich-1.120.1/node_modules/pg/lib/client.js:535:17 Nov 20 16:17:40 fwminex immich[3803141]: at process.processTicksAndRejections (node:internal/process/task_queues:95:5) Nov 20 16:17:40 fwminex immich[3803141]: at async PostgresQueryRunner.query (/nix/store/vf72vvry2bjlrq8mdhgvx6f93v9i2gir-immich-1.120.1/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:184:25) Nov 20 16:17:40 fwminex immich[3803141]: at async DataSource.query (/nix/store/vf72vvry2bjlrq8mdhgvx6f93v9i2gir-immich-1.120.1/node_modules/typeorm/data-source/DataSource.js:350:20) Nov 20 16:17:40 fwminex immich[3803141]: at async DatabaseRepository.shouldReindex (/nix/store/vf72vvry2bjlrq8mdhgvx6f93v9i2gir-immich-1.120.1/dist/repositories/database.repository.js:136:25) Nov 20 16:17:40 fwminex immich[3803141]: at async DatabaseService.checkReindexing (/nix/store/vf72vvry2bjlrq8mdhgvx6f93v9i2gir-immich-1.120.1/dist/services/database.service.js:144:17) Nov 20 16:17:40 fwminex immich[3803141]: at async /nix/store/vf72vvry2bjlrq8mdhgvx6f93v9i2gir-immich-1.120.1/dist/services/database.service.js:93:13 Nov 20 16:17:40 fwminex immich[3803141]: at async /nix/store/vf72vvry2bjlrq8mdhgvx6f93v9i2gir-immich-1.120.1/dist/repositories/database.repository.js:197:23 { Nov 20 16:17:40 fwminex immich[3803141]: length: 234, Nov 20 16:17:40 fwminex immich[3803141]: severity: 'ERROR', Nov 20 16:17:40 fwminex immich[3803141]: code: 'XX000', Nov 20 16:17:40 fwminex immich[3803141]: detail: undefined, Nov 20 16:17:40 fwminex immich[3803141]: hint: undefined, Nov 20 16:17:40 fwminex immich[3803141]: position: undefined, Nov 20 16:17:40 fwminex immich[3803141]: internalPosition: undefined, Nov 20 16:17:40 fwminex immich[3803141]: internalQuery: undefined, Nov 20 16:17:40 fwminex immich[3803141]: where: undefined, Nov 20 16:17:40 fwminex immich[3803141]: schema: undefined, Nov 20 16:17:40 fwminex immich[3803141]: table: undefined, Nov 20 16:17:40 fwminex immich[3803141]: column: undefined, Nov 20 16:17:40 fwminex immich[3803141]: dataType: undefined, Nov 20 16:17:40 fwminex immich[3803141]: constraint: undefined, Nov 20 16:17:40 fwminex immich[3803141]: file: 'error.rs', Nov 20 16:17:40 fwminex immich[3803141]: line: '125', Nov 20 16:17:40 fwminex immich[3803141]: routine: 'vectors::error::check_client' Nov 20 16:17:40 fwminex immich[3803141]: }, Nov 20 16:17:40 fwminex immich[3803141]: length: 234, Nov 20 16:17:40 fwminex immich[3803141]: severity: 'ERROR', Nov 20 16:17:40 fwminex immich[3803141]: code: 'XX000', Nov 20 16:17:40 fwminex immich[3803141]: detail: undefined, Nov 20 16:17:40 fwminex immich[3803141]: hint: undefined, Nov 20 16:17:40 fwminex immich[3803141]: position: undefined, Nov 20 16:17:40 fwminex immich[3803141]: internalPosition: undefined, Nov 20 16:17:40 fwminex immich[3803141]: internalQuery: undefined, Nov 20 16:17:40 fwminex immich[3803141]: where: undefined, Nov 20 16:17:40 fwminex immich[3803141]: schema: undefined, Nov 20 16:17:40 fwminex immich[3803141]: table: undefined, Nov 20 16:17:40 fwminex immich[3803141]: column: undefined, Nov 20 16:17:40 fwminex immich[3803141]: dataType: undefined, Nov 20 16:17:40 fwminex immich[3803141]: constraint: undefined, Nov 20 16:17:40 fwminex immich[3803141]: file: 'error.rs', Nov 20 16:17:40 fwminex immich[3803141]: line: '125', Nov 20 16:17:40 fwminex immich[3803141]: routine: 'vectors::error::check_client' Nov 20 16:17:40 fwminex immich[3803141]: } Nov 20 16:17:40 fwminex immich[3803141]: microservices worker error: QueryFailedError: pgvecto.rs: The extension is upgraded so all index files are outdated. Nov 20 16:17:40 fwminex immich[3803141]: ADVICE: Delete all index files. Please read `https://docs.pgvecto.rs/admin/upgrading.html` Nov 20 16:17:40 fwminex immich[3803141]: microservices worker exited with code 1 Nov 20 16:17:40 fwminex immich[3803141]: Killing api process ``` |
||
---|---|---|
hosts | ||
modules | ||
pkgs | ||
secrets | ||
shared | ||
.envrc | ||
.gitattributes | ||
.gitignore | ||
data.nix | ||
flake.lock | ||
flake.nix | ||
LICENSE | ||
README.md | ||
secrets.nix |
Config
Flakes:
$ deploy --interactive '#fwminex'
$ nix build .#deploy.nodes.fra1-b.profiles.system.path
Other:
$ nix build .#nixosConfigurations.vno3-rp3b.config.system.build.toplevel
$ nix eval .#nixosConfigurations.fwminex.config.services.nsd
Encoding host-only secrets
Encode a secret on host:
rage -e -r "$(cat /etc/ssh/ssh_host_ed25519_key.pub)" -o secret.age /path/to/plaintext
Decode a secret on host (to test things out):
rage -d -i /etc/ssh/ssh_host_ed25519_key secret.age
Borg
BORG_PASSCOMMAND="cat /run/agenix/borgbackup-fwminex" borg --remote-path=borg1 list zh2769@zh2769.rsync.net:fwminex.servers.jakst-home-motiejus-annex2