Network.socket.connection NFT cardano-cli install

Hello everybody. I started to install all the Cardano Environment because I wat to mint NFTs, so I have not created a pool or stake pool. I already have cardano-cli installed version 1.27.0 and all the steps from Cardano docs. From Mainnet , I need the tip, slot/block. When I try to do

cardano-cli query tip --mainnet

it responds

cardano-cli: Network.Socket.connect: <socket: 11>: does not exist (No such file or directory)

I saw in different forums that it can be because I dont have a node running. So I run my node and I see how I get “Chain Extended:…” and I get block and slot number increasing… Until I get this error -image attached-.

Then, based on that error, I read that it was because I dont have my cardano block running. So I run it, but it keeps telling me that I dont have my node.cert.

And when I see how to create my node.cert, I found that it depends to generate it AGAIN the data I should receive from “cardano-cli query tip --mainnet” to calculate it.

What can I do to solve that error and retrieve the data I need?
So what can I do about it? Thank you in advance!!

Did u used coin cashew guide right?

U will need to download the files again

wget https://hydra.iohk.io/build/6198010/download/1/mainnet-byron-genesis.json

wget https://hydra.iohk.io/build/6198010/download/1/mainnet-shelley-genesis.json

wget https://hydra.iohk.io/build/6198010/download/1/mainnet-config.json

restart the node

Alex Thank you very much, indeed im using that guide the cardano documentation, and im using these youtube video
As you can see he just type:
cardano-cli query tip --mainnet
and get all the information, but Im not sure if it is necessary to create a pool in order to create the NFTs

I already have those files in : cardano-node/configuration/cardano

Don I need to put them in another place? To restart the node is killing the cardano process an then open it again with the comand cardano-node run?

I follow this forum as well Cardano-cli: Network.Socket.connect: <socket: 11>: does not exist (No such file or directory) - #7 by Tuan_Lam
And Im pretty sure I have the PATHs already well defined.

Is there another possible thing to do? Thank you again @Alexd1985

U have an issue with the epoch/era transition (if u look at ur picture)
And it’s related with

PS: the node should be synced with the blockchain in order to create NFTs

1 Like

Hi @Alexd1985 I tried to replace the files but is still not working.

Im new in cardano dev, BTW now that you mencioned the coincashew guide…

Do I need two servers? One for the relay node and another one for the producer node?

Or this is only for the stake pools? o for NFTs is only one server?

Thanks a lot Alex

Producer and relays are only for pools; if u will want only a cardano node, then it’s enough a single node

What error do u see now?

I`ve tried all day (and night) to replace the files you suggest, but i still get this error

Im thinking in get a new VPS and restart all the proccess, wich tutorial do you recomend to me?
The coin cashew guide Guide: How to build a Cardano Stake Pool - CoinCashew
For the node creation should I follow until which point in the guide?
@Alexd1985 Thank you again for your great community support

Nope, wait still same error?

@Alexd1985 TY !! Yes, I’ve seen how you suggest different users to use this hash “1a3be38bcbb7911969283716ad7aa550250226b76a61fc51cc9a9a35d9276d81”


I did it. But when I run :

cardano-node run
–topology ~/src/cardano-node/configuration/cardano/mainnet-topology.json
–database-path ~/cnode/db
–socket-path ~/cnode/db/node.socket \
–host-addr myhostaddress
–port 3001
–config ~/src/mainnet-config.json

When I run this command with your suggested hash, the console ask me for the previous genesis hash “67f10d861ce22c2afcdc48cb20dc1014e7b2ca97319ac945326ccf3425a5a2e7”.
For me only works it is the one I can find here
https://docs.cardano.org/projects/cardano-node/en/latest/stake-pool-operations/getConfigFiles_AND_Connect.html

I do have all the programs and versions up to date for cardano-cli 1.27.0. The thing is that followed different tutorials and I know that I have several copies of different directories and repos so finally I dont get what files to erase or clean.
Any idea?

Ok, go to the folders where u have the files and

wget https://hydra.iohk.io/build/6198010/download/1/mainnet-config.json
wget https://hydra.iohk.io/build/6198010/download/1/mainnet-byron-genesis.json
wget https://hydra.iohk.io/build/6198010/download/1/mainnet-shelley-genesis.json

Restar the node and check again

Ok I will do it. I was reading so I decided to use

cardano-node run --validate-db

In this moment is sync (I think until epoch 207). Do I need to wait this process to finish before do any change?

Yes, let me know when the issue ocurre

1 Like

Ok it finished to sync and started to show again this error. But I can say that this time it got “further” and sync more slots before it stopped working. This is my very first installation btw.



and when I run
cardano-node run
–topology ~/src/cardano-node/configuration/cardano/mainnet-topology.json
–database-path ~/cnode/db
–socket-path ~/cnode/db/node.socket
–host-addr myhostaddress
–port 3001
–config ~/src/mainnet-config.json

I did change the files as you suggested and I get this message

wget https://hydra.iohk.io/build/6198010/download/1/mainnet-config.json

Restart the node

nano mainnet-config.json and show me the ShelleyGenesisHash

Exactly, I have the screenshots:


I got the paths, the hash, the file from the link, but it continues saying that the actual hash is different from the updated file as shown in the image

try this one, perhaps they fixed

wget https://hydra.iohk.io/job/Cardano/cardano-node/cardano-deployment/latest-finished/download/1/mainnet-shelley-genesis.json

It changes the error message as seen the whole process in the image below

InvalidYaml (Just (YamlException “Yaml file not found: /root/src/mainnet-config.json”))

cardano-node: YAML exception:
Yaml file not found:

but I see differents path for files in your script

for example topology file and configuration files have different path; aren’t them located in the same folder?

also start the script with host-addr 0.0.0.0

No they aren’t for some reason:

When I use the config file from the dir where the topology and genesis files are, it get me an error.

When I use the path of the config file from my $HOME it works!

I will try put them all in the same directory and let you know. They must be together?

no, but check the path from script (if the files are located there)