ytti / oxidized

Oxidized is a network device configuration backup tool. It's a RANCID replacement!
Apache License 2.0
2.78k stars 919 forks source link

Git versioning isn't working #3260

Open ChiefBerky opened 1 month ago

ChiefBerky commented 1 month ago

Hi,

I am currently struggling with getting versioning up and running in Oxidized on an Ubuntu 22.04 LTS LXC.

The installation has been done by the book.

Changing the output from “file” to “git” automatically created a git repo, but still, the last drawn switch config always gets overwritten.

Oxidized is running under the user “Oxidized”. The user “Oxidized” has the rights for the git repository. The paths seem correct.

Most likely, I am missing something obvious.

Any help on this matter is much appreciated and I am looking forward to learning.

Also, I am new to GitHub, so please be gentle :) Oxidized_conf_01 Oxidized_conf_02 Oxidized_git Oxidized_router db Oxidized_systemctl status oxidized Oxidized_WebUI_01 Oxidized_WebUI_02

systeembeheerder commented 4 weeks ago

Looks like your directory /var/lib/oxidized/switch-configs.git is both a bare- and a normal git repo.

edit: please use code blocks instead of images.

robertcheramy commented 4 weeks ago

@ChiefBerky you should not to git init the oxidized-git-directory. Jut leave it empty (remove the actual git), and start oxidized. As it is a bare repository, you will have to git clone it somewhere else to see its content.