Page MenuHomeVyOS Platform

Cannot configure syslog on 1.2.0-rolling+201904260337
Closed, ResolvedPublicBUG


Attempting to configure anything related to syslog results in an error and commit failure:

vyos@v-node0-router0:~$ conf
vyos@v-node0-router0# set system sys
sysctl  syslog
vyos@v-node0-router0# set system syslog host facility all level
Possible completions:
   emerg        Emergency messages
   alert        Urgent messages
   crit         Critical messages
   err          Error messages
   warning      Warning messages
   notice       Messages for further investigation
   info         Informational messages
   debug        Debug messages
   all          Log everything

vyos@v-node0-router0# set system syslog host facility all level info
vyos@v-node0-router0# show system syslog
+host {
+    facility all {
+        level info
+    }
vyos@v-node0-router0# commit
[ system syslog ]
Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/", line 293, in <module>
  File "/usr/libexec/vyos/conf_mode/", line 282, in apply
    if not os.path.exits('/var/run/'):
AttributeError: 'module' object has no attribute 'exits'

[[system syslog]] failed
Commit failed


Difficulty level
Easy (less than an hour)
Why the issue appeared?
Implementation mistake

Event Timeline

Already fixed by @hagbard and deployed into current rolling release.

Please update.

Problem does not exist on crux branch.

c-po assigned this task to hagbard.
c-po triaged this task as High priority.
c-po changed Why the issue appeared? from Will be filled on close to Implementation mistake.
c-po edited projects, added VyOS 1.3 Equuleus; removed VyOS 1.2 Crux.