pierky / arouteserver

A tool to automatically build (and test) feature-rich configurations for BGP route servers.
https://arouteserver.readthedocs.org/
GNU General Public License v3.0
284 stars 46 forks source link

An error occurred while reading program configuration Unknown statement: cfg #84

Closed christheradioguy closed 2 years ago

christheradioguy commented 3 years ago

Hello,

Attempting to setup a brand new install of arouteserver and receiving the following error with the default configuration: "n error occurred while reading program configuration Unknown statement: cfg"

Basically, I have done the following after installing it:

At which point I receive the error. Anyone ever encountered this before?

pierky commented 3 years ago

Hello @christheradioguy,

I’ll try to reproduce the issue ASAP and see if I’m able to get your same situation and error.

Have you tried following the installation and setup instructions documented here? https://arouteserver.readthedocs.io/en/latest/INSTALLATION.html

christheradioguy commented 3 years ago

Thanks for the speedy reply. I had used the "install from github" instructions to build locally, except I had installed to /opt/arouteserver rather then ~/src/arouteserver

pierky commented 2 years ago

Not sure about your steps, it's not clear to me what you used for the setup command (did you use /opt/arouteserver/etc?), nor why you did mv general.distrib.yml general.yml after the configure (did you do the configure command? did you want to override the configuration generated by the configure command with the file which is distributed with the package?), anyway I've spotted an error. The --cfg argument wants the arouteserver.yml file path, and not the general.yml file. Maybe you can try again in that way?

christheradioguy commented 2 years ago

Thanks for the reply, I was originally trying to use an old configuration, then I started messing with just trying to get it to work without following the setup guide which is why I started poking around with the distrib file.

Now with blasting away the old config and rerunning with --cfg=arouteserver.yml I can confirm it is working as expected.

pierky commented 2 years ago

Hi, thanks for the feedback. I'm going to close this issue as it seems to me that is solved.