Lukas-Heiligenbrunner / AURCache

A cache build server for Archlinux AUR packages and serving them
MIT License
13 stars 0 forks source link

Bug: Unable to build packages - sync repos first #14

Open CommanderRedYT opened 2 weeks ago

CommanderRedYT commented 2 weeks ago

Hi, I just installed this software and I got this error for every package:

==> Making package: python-smart-prom-next 0.0.8-1 (Tue Jun 25 07:31:37 2024)
warning: database file for 'repo' does not exist (use '-Sy' to download)
==> Checking runtime dependencies...
warning: database file for 'repo' does not exist (use '-Sy' to download)
==> Installing missing dependencies...
warning: database file for 'repo' does not exist (use '-Sy' to download)
error: failed to prepare transaction (could not find database)
==> ERROR: 'pacman' failed to install missing dependencies.
  -> smartmontools
==> Checking buildtime dependencies...
warning: database file for 'repo' does not exist (use '-Sy' to download)
==> Installing missing dependencies...
warning: database file for 'repo' does not exist (use '-Sy' to download)
error: failed to prepare transaction (could not find database)
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
  -> python-setuptools
warning: database file for 'repo' does not exist (use '-Sy' to download)
==> ERROR: Could not resolve all dependencies.
CommanderRedYT commented 2 weeks ago

My workaround for now is to comment out "localhost:8080" inside the pacman.conf inside the docker container.

CommanderRedYT commented 2 weeks ago

It seems that pacman -Sy fails until the first package was build successfully. After that, adding the localhost:8080 repo again works.

Lukas-Heiligenbrunner commented 2 weeks ago

Hey, thanks for your contribution! Actually on first init I create a empty database file here https://github.com/Lukas-Heiligenbrunner/AURCache/blob/master/backend/src/main.rs#L71 so it should work, but I'll have a look why not!