Couldn't open /opt/vyatta/etc/config/archive/commits - Permission denied at /opt/vyatta/share/perl5/Vyatta/ConfigMgmt.pm line 108.
run-parts: /etc/commit/post-hooks.d/01vyatta-commit-revs.pl exited with return code 13
Had to do the following to fix it:
sudo chown vyos:vyattacfg /opt/vyatta/etc/config/archive/*
The user before the chown was 1000 so that could not be resolved