Open Throbac-Labs opened 2 years ago
UPDATE:
Was able to solve by adding a "Working Directory" variable to the /lib/systemd/system/solana_mc.service
[Unit]
Description=Solana-mc
After=network-online.target
[Service]
User=$USER
Environment="SOLANA_BINARY_PATH=/home/sol/.local/share/solana/install/active_release/bin/solana"
WorkingDirectory=/home/$USER
ExecStart=/home/$USER/go/bin/solana-mc
Restart=always
RestartSec=3
LimitNOFILE=4096
[Install]
WantedBy=multi-user.target
Might be worth adding to the repo, def a little confusing trying to make sure the service can access the necessary config. I was not able to get 'export CONFIG_PATH="/home/$USER"' to work. I'm sure I'm missing something, but hopefully this helps others!
Having an issue with running the solana_mc.service
It looks like the service cannot locate my config.toml when the execution begins.
here's the error:
Apr 12 18:10:13 solana2 solana-mc[219813]: time="2022-04-12T18:10:13Z" level=fatal msg="error while reading config.toml: Config File \"config\" Not Found in \"[/ /home/$USER/.solana-mc/config]\""
here's the systemd file located in /lib/systemd/system/solana_mc.service:
Current solana-mc script was built using:
and my config.toml
The script works just fine when i type "solana-mc" into the command prompt, and I see metrics in grafana via prometheus.
I examined the config.go file within the repos config directory and see where the error is coming from, but I am still unsure where & exactly what i need to do to fix the config path error.
Things i tried:
Running Ubuntu 20.04 with a validator on Solana Devnet.
Any help is appreciated!