cardano-node: FatalError
{fatalErrorMessage = "Cardano.Node.Run.handleSimpleNode.readTopologyFile: Is your topology file formatted correctly?
The port and valency fields should be numerical. Error in $: empty"}
I tried but I couldn’t fix the HsOpenSSL <= 0.11.7.2 in the cabal.project file when I was compiling it. The only version that I could fetch without that issue was the cardano node 1.29.0
btw I was able to run the 1.29.0 node but during sync (at about 85%) I I got cardano.node.DnsSubscription:Error:9421 testnet 1.29.0
:cardano.node.ErrorPolicy:Notice
But I was playing around and I messed out everything so I launched another instance again Cardano node 1.29.0 but I got stuck
ec2 Amazon Linux 2 Kernel 5.10 AMI 2.0.20221210.1 x86_64 HVM gp2
Cardano node 1.35.4 from source. Following official documentation
The Glorious Glasgow Haskell Compilation System, version 8.10.7
cabal-install version 3.6.2.0
compiled using version 3.6.2.0 of the Cabal library
Before running
cabal configure --with-compiler=ghc-8.10.7
I ran cabal update
changed in cabal.project HSOpenSSL >= 0.11.7.2 to HsOpenSSL == 0.11.7.2
reboot the instance
created an AMI
Then I ran cabal build cardano-node cardano-cli
I got:
Failed to build HsOpenSSL-0.11.7.2. The failure occurred during the conf igure
step.
Build log (
/home/ec2-user/.cabal/logs/ghc-8.10.7/HsOpenSSL-0.11.7.2-7440df4a687faaf 09a9f33afa2ee178c78db20243d373c92c719b2ba30bf5741.log
):
[1 of 1] Compiling Main ( /home/ec2-user/cardano-src/cardano -node/dist-newstyle/tmp/src-2843/HsOpenSSL-0.11.7.2/dist/setup/setup.hs, /home/ec2-user/cardano-src/cardano-node/dist-newstyle/tmp/src-2843/HsOp enSSL-0.11.7.2/dist/setup/Main.o )
Linking /home/ec2-user/cardano-src/cardano-node/dist-newstyle/tmp/src-28 43/HsOpenSSL-0.11.7.2/dist/setup/setup …
Configuring HsOpenSSL-0.11.7.2…
setup: Missing dependencies on foreign libraries:
Missing (or bad) header file: openssl/asn1.h
Missing (or bad) C libraries: ssl, crypto
This problem can usually be solved by installing the system packages tha t
provide these libraries (you may need the “-dev” versions). If the libra ries
are already installed but in a non-standard location then you can use th e
flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.If
the library files do exist, it may contain errors that are caught by the C
compiler at the preprocessing stage. In this case you can re-run configu re
with the verbosity flag -v3 to see the error messages.
If the header file does exist, it may contain errors that are caught by the C
compiler at the preprocessing stage. In this case you can re-run configu re
with the verbosity flag -v3 to see the error messages.
cabal: Failed to build HsOpenSSL-0.11.7.2 (which is required by
test:cardano-node-test from cardano-node-1.35.4, exe:cardano-node from
cardano-node-1.35.4 and others). See the build log above for details.