Project

General

Profile

Bug #26387

Fix SMART service not sending emails

Added by Haggis Haggis 12 months ago. Updated 11 months ago.

Status:
Resolved
Priority:
No priority
Assignee:
Vladimir Vinogradenko
Category:
OS
Target version:
Seen in:
Sprint:
Severity:
New
Backlog Priority:
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

I have enabled the smart service and asked it to send me emails. The disks are in the Informational area and I have set a 0 degree (tried 1 as well) difference.

The main email I get from the system is

  • freenas.local weekly security run output
  • env: python: No such file or directory
  • -- End of security output -- *

The debug file is attached

Associated revisions

Revision fbb804cb (diff)
Added by Vladimir Vinogradenko 12 months ago

fix(crontab): Add /usr/local/{bin,sbin} to crontab PATH so python would be available through "env python"

Ticket: #26387

History

#1 Updated by Dru Lavigne 12 months ago

  • Private changed from No to Yes

#2 Updated by Dru Lavigne 12 months ago

  • Status changed from Unscreened to 15

Haggis: are you using the old UI or the new one?

#3 Updated by Haggis Haggis 12 months ago

I set it up with the old UI.

#4 Updated by Dru Lavigne 12 months ago

  • Status changed from 15 to Unscreened
  • Assignee changed from Release Council to William Grzybowski

William: please load balance.

#5 Updated by Haggis Haggis 12 months ago

This reminds me of the bug that was fixed in Corral i.e. my nvd / nvme SSD drive not being handled by the python smart library

In SMART the /dev/nvd0 needs to become /dev/nvme0 in order to work
The Temperature is found with a different label in nvd drives to da drives

Regards,
Haggis

#6 Updated by William Grzybowski 12 months ago

  • Assignee changed from William Grzybowski to Vladimir Vinogradenko
  • Target version set to 11.1

The NVMe issue we will be handled in another ticket (there is one but I dont have the number handy)

#7 Updated by Vladimir Vinogradenko 12 months ago

  • Status changed from Unscreened to 15

What is the scope of this task now? Is there another issue except NVMe or should I handle only this:

env: python: No such file or directory

That happens because crontab has PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin and our new 800.loginfail-freenas has #!/usr/bin/env python while python is /usr/local/bin/python.

I wonder what should we do: fix 800.loginfail-freenas (but after sometime someone other may make the very same error) or add /usr/local/bin (and sbin) to crontab's PATH?

I've also noticed DDNS password decryption failure in debug.log.

#8 Updated by Vladimir Vinogradenko 12 months ago

  • Assignee changed from Vladimir Vinogradenko to William Grzybowski

#9 Updated by William Grzybowski 12 months ago

Vladimir Vinogradenko wrote:

What is the scope of this task now? Is there another issue except NVMe or should I handle only this:

env: python: No such file or directory

Only this

That happens because crontab has PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin and our new 800.loginfail-freenas has #!/usr/bin/env python while python is /usr/local/bin/python.

I wonder what should we do: fix 800.loginfail-freenas (but after sometime someone other may make the very same error) or add /usr/local/bin (and sbin) to crontab's PATH?

I am fine with either. I think adding these to crontab PATH is fine since we control what is installed.

#10 Updated by William Grzybowski 12 months ago

  • Assignee changed from William Grzybowski to Vladimir Vinogradenko

#11 Updated by Vladimir Vinogradenko 12 months ago

  • Status changed from 15 to Needs Developer Review
  • Assignee changed from Vladimir Vinogradenko to William Grzybowski

#12 Updated by William Grzybowski 12 months ago

  • Status changed from Needs Developer Review to Reviewed by Developer
  • Assignee changed from William Grzybowski to Vladimir Vinogradenko

#13 Updated by Dru Lavigne 12 months ago

  • File deleted (debug-freenas-20171028144736.tgz)

#14 Updated by Dru Lavigne 12 months ago

  • Subject changed from SMART Service not sending emails to Fix SMART service not sending emails
  • Private changed from Yes to No

#15 Updated by Vladimir Vinogradenko 12 months ago

  • Status changed from Reviewed by Developer to Ready For Release

#16 Updated by Dru Lavigne 12 months ago

  • Target version changed from 11.1 to 11.1-RC1

#17 Updated by Dru Lavigne 12 months ago

  • Status changed from Ready For Release to Resolved

#18 Updated by Nick Wolff 11 months ago

  • QA Status Test Passes FreeNAS added
  • QA Status deleted (Not Tested)

#19 Updated by Joe Maloney 11 months ago

  • Needs QA changed from Yes to No

Also available in: Atom PDF