Skip to content

Build failure: immich #433024

Closed
Closed

Description

@svistoi

Nixpkgs version

  • Unstable (25.11)

Steps to reproduce

nix build github:nixos/nixpkgs?ref=e989c235225cf5a17f9142ec9fab4ec6fcc8c2b6#legacyPackages.x86_64-linux.immich

Can Hydra reproduce this build failure?

Yes, Hydra can reproduce this build failure.

Link to Hydra build job

https://hydra.nixos.org/build/305006431

Relevant log output

error: hash mismatch in fixed-output derivation '/nix/store/6j570h5ilff9kmwm17y1dmyll621nf53-immich-geodata.drv':
         specified: sha256-jfC/FgfeSz1tdtYc1EqQ/HJw5LlYQSyGntPuXv24JVY=
            got:    sha256-1ZvFkaNdG5s25YwP5CsblvIFT4rlvNrCBiPNR+lAPTQ=
error: 1 dependencies of derivation '/nix/store/jpaair6wgj9d3kj4ywwq5ricla9mjd5d-immich-1.137.3.drv' failed to build

Additional context

The dependency hash changed, I'm not sure how http://archive.org/wayback/available?url=http://download.geonames.org/export/dump/cities500.zip gets released.

I do plan to put up a PR fix of updating the SHA and timestamp of geodata. I don't have enough context to offer longer term solution.

System metadata

 - system: `"x86_64-linux"`
 - host os: `Linux 6.16.0, NixOS, 25.11 (Xantusia), 25.11.20250811.59ca61e`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.28.4`
 - nixpkgs: `/nix/store/qdpngwc9f0rr4ph265nwwz4hmfq8xjz9-source`

Notify maintainers

@dotlambda
@jvanbruegge
@Scrumplex
@Titaniumtown


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Activity

  1. added
    0.kind: build failure
    on Aug 12, 2025
  2. ldare373 commented on Aug 13, 2025

    @ldare373

    I'm now getting the following build error with nixos-unstable 005433b

    warning: Git tree '/home/lda/.config/nixos' is dirty
    error: hash mismatch in fixed-output derivation '/nix/store/hi399b25qd4vi0ggdll705bwwn5gh7kh-immich-geodata.drv':
             specified: sha256-1ZvFkaNdG5s25YwP5CsblvIFT4rlvNrCBiPNR+lAPTQ=
                got:    sha256-02ADfg5wHT1R3vu6imPP22BbT5Y5315eRGmI0mEryGc=
    error: 1 dependencies of derivation '/nix/store/sc198yrhachm26w7x3x57lwdghjd8m88-immich-1.137.3.drv' failed to build
    

    Curl shows that some of the wayback machine URLs 301 redirect to different snapshots (maybe the latest one it can find), which might explain why the hash keeps changing.

    > GET /web/20250812073904/http://download.geonames.org/export/dump HTTP/2
    > Host: web.archive.org
    ...
    < HTTP/2 302
    ...
    < location: https://web.archive.org/web/20250702125711/http://download.geonames.org/export/dump
    
    > GET /web/20250812073904/http://download.geonames.org/export/dump/cities500.zip HTTP/2
    > Host: web.archive.org
    ...
    < HTTP/2 200
    
    > GET /web/20250812073904/http://download.geonames.org/export/dump/admin1CodesASCII.txt HTTP/2
    > Host: web.archive.org
    ...
    < HTTP/2 302
    ...
    < x-archive-redirect-reason: found capture at 20250812073925
    < location: https://web.archive.org/web/20250812073925/http://download.geonames.org/export/dump/admin1CodesASCII.txt
    
    > GET /web/20250812073904/http://download.geonames.org/export/dump/admin2Codes.txt HTTP/2
    > Host: web.archive.org
    ...
    < HTTP/2 302
    ...
    < location: https://web.archive.org/web/20250524125325/https://download.geonames.org/export/dump/admin2Codes.txt
    
  3. xanderio commented on Aug 13, 2025

    @xanderio
    Contributor

    Maybe we should switch to fetching this data one service startup?

  4. ldare373 commented on Aug 13, 2025

    @ldare373

    That would work. I was also thinking we could add a timestamp per-url to sources.json.
    Fetching at startup could fail at runtime, but would also make maintaining the package easier and wouldn't need to use archive.org.

  5. dotlambda commented on Aug 13, 2025

    @dotlambda
    Member

    fixed by #433127

  6. dotlambda commented on Aug 13, 2025

    @dotlambda
    Member

    Feel free to open a general issue about the unreliability of immich.geodata.
    It would be good to first figure out why this fails but I do indeed think that one timestamp per url should make this more reproducible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: build failure

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions