Skip to content

<repo>/root.json does not have enough signatures signed with the appropriate keys (cabal-install < 3.10.2) #11111

@marcosh

Description

@marcosh

Describe the bug

Since yesterday our CI started to fail with the following error message

<repo>/root.json does not have enough signatures signed with the appropriate keys

The CI is running on GitHub action inside a Docker Container.

Inside the container the main versions of relevant tools are:

  • GHC 9.2.8
  • cabal 3.8.1.0
  • stack 2.11.1

The project is managed by stack but it looks like this error is cabal specific since if I run cabal build --verbose I get the following output

bluemoon@34eb6b430ada:/opt/build$ cabal build --verbose
this build was affected by the following (project) config files:
/opt/ghc/9.2.8/bin/ghc --print-global-package-db
Trying to locate mirrors via DNS for initial bootstrap of secure repository
'http://hackage.haskell.org/' ...
located 2 mirrors for http://hackage.haskell.org/ :
- http://hackage.fpcomplete.com/
- http://objects-us-east-1.dream.io/hackage-mirror/
Selected mirror http://hackage.haskell.org/
Downloading root
/usr/bin/curl 'http://hackage.haskell.org/root.json' --output /tmp/transportAdapterGet382-1 --location --write-out '%{http_code}' --user-agent 'cabal-install/3.8.1.0 (linux; x86_64)' --silent --show-error --dump-header /tmp/curl-headers382-2.txt
Exception <repo>/root.json does not have enough signatures signed with the
appropriate keys when using mirror http://hackage.haskell.org/
Selected mirror http://hackage.fpcomplete.com/
Downloading root
/usr/bin/curl 'http://hackage.fpcomplete.com/root.json' --output /tmp/transportAdapterGet382-4 --location --write-out '%{http_code}' --user-agent 'cabal-install/3.8.1.0 (linux; x86_64)' --silent --show-error --dump-header /tmp/curl-headers382-5.txt
Exception <repo>/root.json does not have enough signatures signed with the
appropriate keys when using mirror http://hackage.fpcomplete.com/
Selected mirror http://objects-us-east-1.dream.io/hackage-mirror/
Downloading root
/usr/bin/curl 'http://objects-us-east-1.dream.io/hackage-mirror/root.json' --output /tmp/transportAdapterGet382-7 --location --write-out '%{http_code}' --user-agent 'cabal-install/3.8.1.0 (linux; x86_64)' --silent --show-error --dump-header /tmp/curl-headers382-8.txt
<repo>/root.json does not have enough signatures signed with the appropriate keys

The directory ~/.cabal/packages/hackage.haskell.org is empty, and also ~/.stack and .stack-work are empty.

We didn't touch anything related to our infrastructure or how we build code, so it really looks it's not a problem with how we run things.

Any hint on how to solve this would be very welcome

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions