craigerl / aprsd

Amateur radio APRS daemon which listens for messages and responds. By KM6LYW.
Apache License 2.0
120 stars 19 forks source link

No config file found #141

Closed alexvotofuture closed 7 months ago

alexvotofuture commented 7 months ago

Using release 3.2.1 (installed with Pip on my RasPi per install instructions), when I try to run aprsd sample-config > ~/.aprs/config.yml or aprsd sample-config > ~/.config/aprsd/config.yml the sample config file is generated and copied to the folder, but when I attempt to run aprsd server I keep receiving an error stating:

"No config file found!! run aprsd sample-config"

and the server fails to initialize.

On release 3.2.2 (also installed via Pip) the sample config file will not copy at all, and I receive an error beginning with "WARNING". I also tried following along with KM6LYW's video using a much earlier version and virtualenv, but had a similar issue related to the config file not being found.

How do I correctly copy the sample-config file to a folder where it can be found and get the server to locate it in 3.2.1 or 3.2.2?

Please forgive me if I've made an obvious error - I'm not a coder by profession, just a HAM and hobbyist who's played with RasPi and Arduinos a bit before. I've been trying for months to build something like this, and just came upon your solution, so I'm excited to get this working to play with it. Thanks!

hemna commented 7 months ago

First off, running aprsd sample-config dumps the config to standard out, so you can see the config. You can simply redirect that to a file.

aprsd sample-config > aprsd.conf aprsd server -c ./aprsd.conf

The standard place where aprsd looks for it's config is in ~/.config/aprsd/aprsd.conf

So you can simply do this:

mkdir ~/.config/aprsd aprsd sample-config > ~/.config/aprsd/aprsd.conf aprsd server

alexvotofuture commented 7 months ago

Thank you so much for the detailed instructions, @hemna! Followed them and finally got the server up and running. These could definitely be useful in the readme/docs. Closing the issue.