Running the Node - Error with Conf
Following guide here for Windows https://docs.ergoplatform.com/node/install/#running-the-node
Command executing
java -jar -Xmx4G ergo-4.0.103.jar --mainnet -c ergo.confError
08:12:51.085 INFO [main] org.ergoplatform.ErgoApp - Running with args: Args(Some(ergo.conf),Some(MainNet)) 08:12:51.106 INFO [main] o.e.settings.ErgoSettings$ - Running in mainnet network mode 08:12:51.106 WARN [main] o.e.settings.ErgoSettings$ - NO CONFIGURATION FILE WAS PROVIDED. STARTING WITH DEFAULT SETTINGS! Exception in thread "main" com.typesafe.config.ConfigException$Missing: C:\Users\User\AppData\Local\Temp\mainnet.conf: 1: No configuration setting found for key 'ergo.directory'I presume it's not taking the input -c ergo.conf as there is a local file in the folder i'm excuting the .jar from
7 Replies
I’ve had problems too. I use docker desktop now. Much easier. My node is stuck at 99% tho
you should check out satergo for running a node on windows, simplifies the setup process.
But I think the issue is with the -Xmx4G flag. I don't know what that does, but it seems out of place. I just use -jar ergo-4.0.103.jar
its allocates 4gb of RAM to the node
that flag
This is strange, not familar with windows but command shouldn't differ there. Can't see anyone else who's had the same issue either (unless via docker). Permissions maybe?
It sets the maximum heap size, can cause issues without it depending on OS
hey ye not sure mate i don't know a lot about the command prompt but it looks like it wasn't taking the conf command kinda gave up for now no stress i'm still finishing off going through the deco NA layman classes and then i've got some ergoscript to read through... i just wanted to play around. if i try again later ill reach back out
Maybe you need this directory field in your conf? If not you might have more luck with WSL
https://docs.ergoplatform.com/node/install/windows/
@Glasgow rookie error i used the wrong file format for the ergo.conf file