A new message with 11.1-RC1 and now 11.1, 11.1-U1, 11.1-U2, too

Status
Not open for further replies.

Redcoat

MVP
Joined
Feb 18, 2014
Messages
2,925
I just rebooted in 11.1 release.. deleted 11.1-U1.. (with the applied fix).. re-updated to 11.1-U1
.. and the /var/db/system/consul folder is (still) not there..
(which was the main reason I performed these steps)

Yes, so did I a couple of nights ago - but even with myself it's "trust but verify"...
 
Last edited:

Redcoat

MVP
Joined
Feb 18, 2014
Messages
2,925
Joined
Jan 7, 2018
Messages
8
Try "ls" or "ls -l". "la" = "(ls -aF)" here.
Thanks... I tried all ways without success... /var/db/system/

Code:
root@freenas:/ # ls /var/db/system/																								 
ls: /var/db/system/: No such file or directory																					 
root@freenas:/ # la /var/db/system/																								 
ls: /var/db/system/: No such file or directory																					 
root@freenas:/ # ls -l /var/db/system/																							 
ls: /var/db/system/: No such file or directory																					 
root@freenas:/ # ls -aF /var/db/system/																							 
ls: /var/db/system/: No such file or directory																					 
root@freenas:/ # ls -aF /var/db/																									
./					  hyperv/				 nut/					samba4/				 syslog-ng.persist				   
../					 ipf/					pbi/					services.db			 zfsd/							   
collectd/			   locate.database		 pkg/					sss/					zoneinfo							
dhclient.leases.vmx0	netdata/				ports/				  sss_mc/													 
entropy/				ntp/					portsnap/			   sudo/													   
freebsd-update/		 ntpd.leap-seconds.list  samba/				  syslog-ng.ctl=											 
root@freenas:/ #																													
				 
 

NASbox

Guru
Joined
May 8, 2012
Messages
650
If you are getting the message, it is likely because /usr/local/bin/midclt call notifier.get_alerts is generating errors. Do something similar to this to capture the output and then open the shell and look at the output with something like this:
less /somepathonfreenas/temp-alert-health-debug
or this:
cat /somepathonfreenas/temp-alert-health-debug

Code:
/usr/local/bin/midclt call notifier.get_alerts > /somepathonfreenas/temp-alert-health-debug
/usr/local/bin/midclt call notifier.get_alerts > /tmp/.alert-health
if [ $? -ne 0 ] ; then
   exit 1
fi


If your error message is still coming, I'll bet there is an error similar to the one I was getting:
https://forums.freenas.org/index.php?threads/a-new-message-with-11-1-rc1.58844/page-4#post-434099
 

xxxsosxxx

Cadet
Joined
Aug 30, 2016
Messages
1
alternatively just
Code:
wget
the file and overwrite your old one

Code:
cd /usr/local/etc/consul-checks
mv freenas_health.sh freenas_health.sh.bak
wget https://raw.githubusercontent.com/davidsteinberger/freenas/8bf0718c1c3a09f8189c5150c0e22f3dbc4e77e9/src/freenas/usr/local/etc/consul-checks/freenas_health.sh
# grant execute to the file
chmod +x freenas_health.sh
After reboot log begins to be filled again, can it is necessary replace on other path ??
cd /conf/base/etc/local/consul-checks
 

toolchain

Cadet
Joined
Jul 13, 2016
Messages
8
Thanks to
Looks like a fix is in the works:

https://github.com/freenas/freenas/pull/711

Not sure when it'll get into a released update though.

I remembered you can always pull the merged commit from the freenas source repo on github and overwrite your freenas_health.sh with it without editing any code

Here is the merged commit
https://github.com/freenas/freenas/pull/723/files

Direct link to the fixed file
https://github.com/freenas/freenas/...usr/local/etc/consul-checks/freenas_health.sh

I edited the few lines that were changed inside freenas_health.sh in the merged commit that fixed the issue and the spam instantly stopped

so I tried downloading just that 1 file individually into /usr/local/etc/consul-checks/ and made it overwrite the existing freenas_health.sh file. The spam messages never returned and remained fixed.

This is the code I used after connecting through SSH as root, it will work if you open the shell from the freenas gui as well if you paste this command in there
Code:
wget https://raw.githubusercontent.com/freenas/freenas/8175ddd35c189c43c47a51e42a1353e96d9ac2cb/src/freenas/usr/local/etc/consul-checks/freenas_health.sh > /usr/local/etc/consul-checks/freenas_health.sh

 
Last edited:

willrun4fun

Dabbler
Joined
Jan 19, 2016
Messages
29
Thanks to


I remembered you can always pull the merged commit from the freenas source repo on github and overwrite your freenas_health.sh with it without editing any code

Here is the merged commit
https://github.com/freenas/freenas/pull/723/files

Direct link to the fixed file
https://github.com/freenas/freenas/...usr/local/etc/consul-checks/freenas_health.sh

I edited the few lines that were changed inside freenas_health.sh in the merged commit that fixed the issue and the spam instantly stopped

so I tried downloading just that 1 file individually into /usr/local/etc/consul-checks/ and made it overwrite the existing freenas_health.sh file. The spam messages never returned and remained fixed.

This is the code I used after connecting through SSH as root, it will work if you open the shell from the freenas gui as well if you paste this command in there
Code:
wget https://github.com/freenas/freenas/blob/8175ddd35c189c43c47a51e42a1353e96d9ac2cb/src/freenas/usr/local/etc/consul-checks/freenas_health.sh > /usr/local/etc/consul-checks/freenas_health.sh

After trying this on mine I get:
Code:
reenas_health.sh]': fork/exec /usr/local/etc/consul-checks/freenas_health.sh: exec format error


for some reason it came in blank. I used VI to paste in the code from github manually.
 

toolchain

Cadet
Joined
Jul 13, 2016
Messages
8
After trying this on mine I get:
Code:
reenas_health.sh]': fork/exec /usr/local/etc/consul-checks/freenas_health.sh: exec format error


for some reason it came in blank. I used VI to paste in the code from github manually.

sorry about that, it was downloading the whole page, obviously that's useless here since we just need the code from that 1 file, here's the magic

Code:
cd /usr/local/etc/consul-checks/
rm freenas*
wget https://raw.githubusercontent.com/freenas/freenas/8175ddd35c189c43c47a51e42a1353e96d9ac2cb/src/freenas/usr/local/etc/consul-checks/freenas_health.sh
chmod a+x freenas_health.sh
 
Last edited:

cygnus

Explorer
Joined
Mar 20, 2012
Messages
73
I think people are taking things a little to seriously, as much as anything the reason I suggested rolling back was to.
A. See if the messages stopped after rolling the code back.
B. Give people the option and an alternative if they wanted to roll back to avoid influx of the messages.

I have not rolled back and happy to live with them until a fix. But then my setup is not a Production or business critical NAS which could have different set of priorities.
 

cygnus

Explorer
Joined
Mar 20, 2012
Messages
73
I modified the shell script to allow empty lines in /tmp/.alert-health and that did stop the message flood for me. I updated the bug report with my findings.
Hi could you give details on how to accompish this please. Being a newbie would be good to have some details of possible. Would be greatly appreciated.
 

FreeNASBob

Patron
Joined
Aug 23, 2014
Messages
226
Tried procedure in post #91 on 11.1, and all proceeded without error. Still have the message. Did not reboot, just restarted consul service.

EDIT - I did manually confirm the file was updated with the new lines and execute bit is set. Also tried stopping consul service and deleting /var/db/system/consul. Still no luck ... spam every two minutes.
 
Last edited:

Srikanth K Kota

Dabbler
Joined
Jul 20, 2017
Messages
28
sorry about that, it was downloading the whole page, obviously that's useless here since we just need the code from that 1 file, here's the magic

Code:
cd /usr/local/etc/consul-checks/
rm freenas*
wget https://raw.githubusercontent.com/freenas/freenas/8175ddd35c189c43c47a51e42a1353e96d9ac2cb/src/freenas/usr/local/etc/consul-checks/freenas_health.sh
chmod a+x freenas_health.sh
Worked for me too... Thanks for the post.
 

Kuro Houou

Contributor
Joined
Jun 17, 2014
Messages
193

DiWa

Cadet
Joined
Oct 28, 2013
Messages
9
Code:
cd /usr/local/etc/consul-checks/
rm freenas*
wget https://raw.githubusercontent.com/freenas/freenas/8175ddd35c189c43c47a51e42a1353e96d9ac2cb/src/freenas/usr/local/etc/consul-checks/freenas_health.sh
chmod a+x freenas_health.sh

This didn't work for me at first try. Though running the script directly in the console showed I had a warning regarding my ZFS pool not being upgraded (I silenced the warning from the UI a long time ago).
Performing the upgrade fixed the issue.

Thanks
 
Status
Not open for further replies.
Top