Page MenuHomeVyOS Platform

sh version failed
Closed, ResolvedPublicBUG

Description

vyos@VyOS-AMI:~$ sh version 
Traceback (most recent call last):
 File "/usr/libexec/vyos/op_mode/version.py", line 72, in <module>
   version_data = vyos.version.get_version_data()
 File "/usr/lib/python3/dist-packages/vyos/version.py", line 23, in get_version_data
   with open(file, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/opt/vyatta/etc/version.json'

There is missing file version.json, only version as in 1.1.8 version.

Details

Difficulty level
Unknown (require assessment)
Version
1.2.0-rolling-201806090337
Why the issue appeared?
Will be filled on close

Event Timeline

I just tested on VyOS 1.2.0-rolling+201806220337 and 'show version' works here. Can you maybe update?

There was a bug in show version some rolling releases back. Please update.

cpo@LR1:~$ show version
Version:          VyOS 1.2.0-rolling+201806220337
Built by:         autobuild@vyos.net
Built on:         Fri 22 Jun 2018 03:37 UTC
Build ID:         02d18d8e-5aa4-4d62-b424-10092ea446de
dmbaturin claimed this task.
dmbaturin moved this task from Need Triage to Finished on the VyOS 1.2 Crux board.
dmbaturin added a subscriber: dmbaturin.

Yes, it's been fixed a while ago.