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.conf
Error
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
Tostibrand
Tostibrand3y ago
I’ve had problems too. I use docker desktop now. Much easier. My node is stuck at 99% tho
iospore
iospore3y ago
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
Tostibrand
Tostibrand3y ago
its allocates 4gb of RAM to the node that flag
Glasgow
Glasgow3y ago
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
-mickzerofive
-mickzerofiveOP3y ago
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
Glasgow
Glasgow3y ago
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/
-mickzerofive
-mickzerofiveOP3y ago
@Glasgow rookie error i used the wrong file format for the ergo.conf file

Did you find this page helpful?