I recently installed Netdata from the build software options in Custombuild2. All went fine and Netdata is running smooth. But every night I receive an error email from the daily cron tasks with a failed Netdata update. The error is caused by SSL issues in curl and according to the log is a path and/or permission issue. But I can not find the cause. The log I receive is:
But doing this from the command line (as root or any created user) is succesful.
Doing this didnt resolve it as well.
How can I troubleshoot this so Netdata daily update scripts runs fine?
Code:
/etc/cron.daily/netdata-updater:
curl: (77) Problem with the SSL CA cert (path? access rights?)
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib64/python2.7/json/__init__.py", line 290, in load
**kw)
File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
curl: (77) Problem with the SSL CA cert (path? access rights?)
No packages marked for update
You need to give some command
Usage: yum [options] COMMAND
List of Commands:
check Check for problems in the rpmdb
check-update Check for available package updates
clean Remove cached data
.......... list of commands which I removed .....
updates
--cves=CVES Include packages needed to fix the given CVE, in
updates
--sec-severity=SEVS, --secseverity=SEVS
Include security relevant packages matching the
severity, in updates
Plugin Options:
Sat Apr 16 04:15:14 CEST 2022 : INFO: netdata-updater: Checking if a newer version of the updater script is available.
Sat Apr 16 04:15:15 CEST 2022 : INFO: netdata-updater: Downloading newest version of updater script.
Sat Apr 16 04:15:15 CEST 2022 : ERROR: netdata-updater: Failed to download newest version of updater script, continuing with current version.
Sat Apr 16 04:15:31 CEST 2022 : FATAL: netdata-updater: FAILED TO UPDATE NETDATA: Failed to update repository metadata.
But doing this from the command line (as root or any created user) is succesful.
Code:
curl -v https://www.google.com
Doing this didnt resolve it as well.
Code:
yum reinstall ca-certificates
How can I troubleshoot this so Netdata daily update scripts runs fine?
Last edited: