Lukas-Heiligenbrunner / AURCache

A cache build server for Archlinux AUR packages and serving them
https://lukas-heiligenbrunner.github.io/AURCache/
MIT License
58 stars 0 forks source link

"code 404: No such image" when adding or updating AUR package #115

Open ralphocdol opened 3 weeks ago

ralphocdol commented 3 weeks ago

I tried adding or even updating a package but the build fails with log:

Pulling image: ghcr.io/lukas-heiligenbrunner/aurcache-builder:latest
Digest: sha256:a5aa452bb86f928efee5aa84f67e91044787f1695be0ce634c03683bd37dd1c2
Status: Image is up to date for ghcr.io/lukas-heiligenbrunner/aurcache-builder:latest
Docker responded with status code 404: No such image: latest:latest

The package in question is mystiq but its not limited to it, I think all package does this, I even tried adding hyprgui-bin and updating firefox-pwa-bin with the same error.

This is my compose file:

version: "3"
services:
  aur-cache:
    container_name: aur-cache
    image: ghcr.io/lukas-heiligenbrunner/aurcache:latest
    network_mode: bridge
    ports:
      - 8180:8080
      - 8181:8081
    restart: always
    volumes:
      - ${VOL1}/extra/a:/home/podman/.local/share/containers
      - ${VOL2}/db:/app/db
      - ${VOL1}/extra/b:/var/lib/containers
      - ${VOL1}/repo:/app/repo
      - /var/run/docker.sock:/var/run/docker.sock
      - ${VOL1}/builds:/app/builds
    environment:
      - BUILD_ARTIFACT_DIR=${VOL1}/builds

this came from version v0.1.5 to now v0.2.0, was there a breaking change? I also tried using version v0.1.5 to git before with same issue except I tried starting over (deleting ${VOL1} and ${VOL2} contents)

No helpful logs in the container

Lukas-Heiligenbrunner commented 3 weeks ago

Thanks for your report! There are only the two breaking changes as described in the release infos here: https://github.com/Lukas-Heiligenbrunner/AURCache/releases/tag/v0.2.0

I'll have a look why this is happening for you. I've changed the builder base-image to a self built one ghcr.io/lukas-heiligenbrunner/aurcache-builder:latest bc. the other AUR helper image I used didn't accept PRs. It seems the right image gets downloaded but then it tries to build the container with latest:latest which is weird. Lets see. :)

Which container runtime are you using and what version?

ralphocdol commented 3 weeks ago

Yeah, I did notice that which was confusing, here it is

~# docker -v 
Docker version 27.3.1, build ce12230
Lukas-Heiligenbrunner commented 3 weeks ago

Thanks. Can you send the relevant output of docker images and docker ps -a maybe? So I can see if the build image was fetched correctly and the build container created. If it got created but not started it should still be there...

Edit: And a docker inspect of the image (and container if it is there) might also be helpful. Thanks!

Edit 2: You can also set LOG_LEVEL=trace env var to trace or debug to get more logs. But I doubt that in this code area are much more logs. Also a point I have to improve.

ralphocdol commented 3 weeks ago

Here:

~# docker ps -a | grep aur
c0cab56e23f8   ghcr.io/lukas-heiligenbrunner/aurcache:latest                        "/bin/sh -c /entrypo…"   4 hours ago   Up 4 hours                 0.0.0.0:8180->8080/tcp, [::]:8180->8080/tcp, 0.0.0.0:8181->8081/tcp, [::]:8181->8081/tcp   aur-cache
~# docker images | grep lukas
ghcr.io/lukas-heiligenbrunner/aurcache-builder                latest           0467bb985a1b   27 hours ago    1.05GB
ghcr.io/lukas-heiligenbrunner/aurcache                        latest           e38617d3c2cf   3 days ago      585MB
ghcr.io/lukas-heiligenbrunner/aurcache-builder                <none>           492a7cf882f0   9 days ago      1.05GB

aurcache-inspect.json