markruys / gw2pvo

GoodWe to PVOutput
MIT License
45 stars 29 forks source link

gw2pvo[850]: Bad config file, missing Defaults section #57

Closed pappajj closed 3 years ago

pappajj commented 3 years ago

Hi

I'm pretty average at this but attempting to get working on a raspberry pi running raspbian

I have followed the directions in the readme and can get it to upload using the manual command

"gw2pvo --config gw2pvo.cfg --log debug"

It even works if I use the command located in the service file "gw2pvo --config /etc/gw2pvo.cfg --pvo-interval 5 --skip-offline"

But when I go to automate it in the next section I get the error:

-- Logs begin at Wed 2021-08-25 20:07:45 AEST. -- Aug 25 20:28:39 raspberrypihole gw2pvo[850]: Bad config file, missing Defaults section Aug 25 20:28:39 raspberrypihole systemd[1]: gw2pvo.service: Main process exited, code=exited, status=1/FAILURE Aug 25 20:28:39 raspberrypihole systemd[1]: gw2pvo.service: Failed with result 'exit-code'. Aug 25 20:33:40 raspberrypihole systemd[1]: gw2pvo.service: Service RestartSec=5min expired, scheduling restart. Aug 25 20:33:40 raspberrypihole systemd[1]: gw2pvo.service: Scheduled restart job, restart counter is at 5. Aug 25 20:33:40 raspberrypihole systemd[1]: Stopped Read GoodWe inverter and upload data to PVOutput.org. Aug 25 20:33:40 raspberrypihole systemd[1]: Started Read GoodWe inverter and upload data to PVOutput.org. Aug 25 20:33:42 raspberrypihole gw2pvo[915]: Bad config file, missing Defaults section Aug 25 20:33:43 raspberrypihole systemd[1]: gw2pvo.service: Main process exited, code=exited, status=1/FAILURE Aug 25 20:33:43 raspberrypihole systemd[1]: gw2pvo.service: Failed with result 'exit-code'. Aug 25 20:28:39 raspberrypihole gw2pvo[850]: Bad config file, missing Defaults section

Any ideas? I have the gw2pvo.cfg file with the correct data located in /etc/gw2pvo.cfg but it appears like it cannot find it..

Thanks!

pappajj commented 3 years ago

All good, I did a fresh install of raspberry pi os and followed the instructions and all working now!