/etc/version doesn't match UI for Build number in System -> Information

Status
Not open for further replies.

johnedstone

Dabbler
Joined
Oct 22, 2018
Messages
11
/etc/version does not match Build number in System - > Information
The effect of this inconsistencies is that there is an amber alert showing these two messages
Code:
OK: Oct. 22, 2018, 2:58 p.m. - There is a new update available! Apply it in System -> Update tab.
WARNING: Oct. 22, 2018, 3:39 p.m. - Update: FreeNAS-11.1-U6 has already been applied. Please activate 11.1-U6 via the Boot Environment Tab and Reboot to use this updated version.


And the Update tab also shows that the latest updated needs to be activated, even though the Boot tab show the lastest update is active (see attached image)

Multiple reboots do not change this behavior

Hardware (since dmidecode does not seem to work, showing top lines of dmesg)

Code:
export PS1="shell> "
shell> id
uid=0(root) gid=0(wheel) groups=0(wheel)
shell> dmidecode
# dmidecode 3.1
Scanning /dev/mem for entry point.
# No SMBIOS nor DMI entry point found, sorry.
shell> dmesg |head -40
Copyright (c) 1992-2017 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 11.1-STABLE #0 r321665+9902d126c39(freenas/11.1-stable): Tue Aug 21 12:24:37 EDT 2018
	root@nemesis.tn.ixsystems.com:/freenas-11-releng/freenas/_BE/objs/freenas-11-releng/freenas/_BE/os/sys/FreeNAS.amd64 amd64
FreeBSD clang version 5.0.0 (tags/RELEASE_500/final 312559) (based on LLVM 5.0.0svn)
VT(vga): resolution 640x480
CPU: Intel(R) Atom(TM) CPU C3558 @ 2.20GHz (2200.07-MHz K8-class CPU)
  Origin="GenuineIntel"  Id=0x506f1  Family=0x6  Model=0x5f  Stepping=1
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0x4ff8ebbf<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,SDBG,CX16,xTPR,PDCM,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,TSCDLT,AESNI,XSAVE,OSXSAVE,RDRAND>
  AMD Features=0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM>
  AMD Features2=0x101<LAHF,Prefetch>
  Structured Extended Features=0x2294e283<FSGSBASE,TSCADJ,SMEP,ERMS,NFPUSG,MPX,PQE,RDSEED,SMAP,CLFLUSHOPT,PROCTRACE,SHA>
  XSAVE Features=0xf<XSAVEOPT,XSAVEC,XINUSE,XSAVES>
  VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID,VID,PostIntr
  TSC: P-state invariant, performance statistics
real memory  = 10737418240 (10240 MB)
avail memory = 8198586368 (7818 MB)
Event timer "LAPIC" quality 600
ACPI APIC Table: <INTEL  TIANO   >
WARNING: L1 data cache covers less APIC IDs than a core
0 < 1
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
FreeBSD/SMP: 1 package(s) x 4 core(s)
WARNING: VIMAGE (virtualized network stack) is a highly experimental feature.
ioapic0 <Version 2.0> irqs 0-23 on motherboard
SMP: AP CPU #3 Launched!
SMP: AP CPU #1 Launched!
SMP: AP CPU #2 Launched!
Timecounter "TSC-low" frequency 1100034983 Hz quality 1000
random: entropy device external interface
kbd0 at kbdmux0
module_register_init: MOD_LOAD (vesa, 0xffffffff80fc84c0, 0) error 19
random: registering fast source Intel Secure Key RNG
random: fast provider: "Intel Secure Key RNG"
nexus0
vtvga0: <VT VGA driver> on motherboard
cryptosoft0: <software crypto> on motherboard
shell>
shell> cat /etc/version
FreeNAS-11.1-U6 (caffd76fa)
shell>
shell> dmesg |egrep U6
Trying to mount root from zfs:freenas-boot/ROOT/11.1-U6 []...
shell>
shell> df -h
Filesystem												  Size	Used   Avail Capacity  Mounted on
freenas-boot/ROOT/11.1-U6									29G	831M	 28G	 3%	/
devfs													   1.0K	1.0K	  0B   100%	/dev
tmpfs														32M	 10M	 22M	33%	/etc
tmpfs													   4.0M	8.0K	4.0M	 0%	/mnt
tmpfs													   2.6G	 23M	2.6G	 1%	/var
freenas-boot/grub											28G	7.0M	 28G	 0%	/boot/grub
fdescfs													 1.0K	1.0K	  0B   100%	/dev/fd
storage													 888G	118K	888G	 0%	/mnt/storage
storage/ejstone54										   888G	144K	888G	 0%	/mnt/storage/ejstone54
storage/samba_share										 892G	4.4G	888G	 0%	/mnt/storage/samba_share
storage/.system											 889G	509M	888G	 0%	/var/db/system
storage/.system/cores									   888G	608K	888G	 0%	/var/db/system/cores
storage/.system/samba4									  888G	325K	888G	 0%	/var/db/system/samba4
storage/.system/syslog-b3147af497d748f98f845f65b942be53	 888G	118K	888G	 0%	/var/db/system/syslog-b3147af497d748f98f845f65b942be53
storage/.system/rrd-b3147af497d748f98f845f65b942be53		888G	118K	888G	 0%	/var/db/system/rrd-b3147af497d748f98f845f65b942be53
storage/.system/configs-b3147af497d748f98f845f65b942be53	888G	1.0M	888G	 0%	/var/db/system/configs-b3147af497d748f98f845f65b942be53
tmpfs													   1.0G	 50M	974M	 5%	/var/db/collectd/rrd
shell>
 

Attachments

  • etc_version_inconsistencies.png
    etc_version_inconsistencies.png
    160.8 KB · Views: 331
  • sys_info_build.png
    sys_info_build.png
    24.2 KB · Views: 307
D

dlavigne

Guest
Really? that's the whole output? If so, that is weird and brings up some questions: Which version did you initally install and how many upgrades have you done since then?
 

johnedstone

Dabbler
Joined
Oct 22, 2018
Messages
11
I believe that is the expected output (see the image name above etc_version_inconsistencies.png
Note that before I created this thread, there were multiple versions listed in the UI (system -> boot). I believe they were called initial install, 11.1-U5, maybe 11.1-U5.1 and 11.1-U6. I don't exactly remember. But in trying to resolve this I did unkeep and delete these, in order to see if this would resolve the problem, which it didn't.
 

johnedstone

Dabbler
Joined
Oct 22, 2018
Messages
11
I am looking through the code trying to figure out where this value is pulled from. I have familiarity with django, but not dojango. At first glance, I see that the template is using the variable local.version, but it's not clear to me what 'view' is providing this. I see the file common/system.py has the function get_sw_version, which could read /etc/version but calling this function with the command python manage.py shell it returns with sys_mani = conf.SystemManifest()
So any suggestions helping me figure out where this is pulled from and why it's not accurate?
 

johnedstone

Dabbler
Joined
Oct 22, 2018
Messages
11
Code:
 python manage.py shell
Python 3.6.3 (default, May 30 2018, 18:43:33)
[GCC 4.2.1 Compatible FreeBSD Clang 5.0.0 (tags/RELEASE_500/final 312559)] on freebsd11
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from freenasUI.middleware.client import client
>>> with client as c:
...	 local = c.call('system.info')
...
>>> local
{'version': 'FreeNAS-11.1-U4', 'hostname': 'potter54.johnedstone.net', 'physmem': 8523214848, 'model': 'Intel(R) Atom(TM) CPU C3558 @ 2.20GHz', 'cores': 4, 'loadavg': [0.15087890625, 0.2001953125, 0.1708984375], 'uptime': '9:48PM  up 7 days,  6:52, 1 user', 'uptime_seconds': 629541.255357351, 'system_serial': None, 'system_product': None, 'license': None, 'boottime': datetime.datetime(2018, 10, 22, 18, 55, 45, tzinfo=datetime.timezone.utc), 'datetime': datetime.datetime(2018, 10, 30, 1, 48, 7, 824000, tzinfo=datetime.timezone.utc), 'timezone': 'America/New_York', 'system_manufacturer': None}
 

johnedstone

Dabbler
Joined
Oct 22, 2018
Messages
11
Code:
egrep 'Version.*FreeNAS-11.1-U4' /data/manifest
	"Version": "FreeNAS-11.1-U4"


So is the UI reading /data/manifest ? Is the value of Build on the System->Info page incorrect, or simply meant to list what is in /data/manifest ?
 
Status
Not open for further replies.
Top