Failed to build th-utilities-0.2.5.0

I get this error on one of my relay when I want to compile cardano-node. I only have the problem on this server. On 4 other it runs without problems. The compile process always aborts at the same point. So I can reproduce it. Anyone have a hint?

Failed to build th-utilities-0.2.5.0. The failure occurred during the
configure step.
Build log (
/home/setup/.cabal/logs/ghc-8.10.7/th-utilities-0.2.5.0-d3de57d56ef2921d34bb6684d1482f0586f8b3c3ee08bd95ef132e5944e41929.log
):
Configuring library for th-utilities-0.2.5.0..
cabal-3.6.2.0: The following package dependencies were requested
--dependency='th-orphans=th-orphans-0.13.14-aa5be8dee15c0a4a3ffe6e0c45b6683b0399fe47442d7f3cede30c64d26b8a7c'
however the given installed package instance does not exist.

cabal: Failed to build th-utilities-0.2.5.0 (which is required by
exe:cardano-submit-api from cardano-submit-api-3.1.2, exe:cardano-node from
cardano-node-1.35.5 and others). See the build log above for details.

cabal: Cannot build the package cardano-ping, it is not in this project
(either directly or indirectly). If you want to add it to the project then
edit the cabal.project file.

Inside the log:
cat /home/hamster/.cabal/logs/ghc-8.10.7/th-utilities-0.2.5.0-d3de57d56ef2921d34bb6684d1482f0586f8b3c3ee08bd95ef132e5944e41929.log

Configuring library for th-utilities-0.2.5.0..
cabal-3.6.2.0: The following package dependencies were requested
--dependency='th-orphans=th-orphans-0.13.14-aa5be8dee15c0a4a3ffe6e0c45b6683b0399fe47442d7f3cede30c64d26b8a7c'
however the given installed package instance does not exist.

ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.10.7

cabal --version
cabal-install version 3.6.2.0
compiled using version 3.6.2.0 of the Cabal library

check/compare if the cabal path si different for this server

which cabal

No, I use a script to install/update my nodes. So everything “should” be equal, which probably wasn’t the same after all :slight_smile:

The problem was, that the libraries were not loaded. The ~/.cabal/packages/hackage.haskell.org directory was almost empty. On the other server, the directory was filled with the missing libraries. I tried cabal clean and cabal update. But didn’t help.

I have now reinstalled the server without finding out what the real problem was. Now it’s working.

yeah, this is the “hard” way :smiley: