Daily.sh errors and I received in email

Content in the email sent to me (admin)

[LibreNMS] Auto update has failed for ...

We just attempted to update your install but failed. The information below
should help you fix this.

fatal: unable to access 'https://github.com/librenms/librenms.git/':

Encountered end of file

Please allow access to https://github.com/librenms/librenms.git/ if you want updates to work.

gave sudo to librenms user and resolved.

still gotten email that state:

We just attempted to update your install but failed. The information below
should help you fix this.

fatal: unable to access ‘…github.com/librenms/librenms.git/’:
Encountered end of file

Could it be because my site does not have https ?

Please run and post the output of ./validate.php and ./daily.sh

-bash-4.2$ ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS  | 1.36-84-gfca10c6
DB Schema | 237
PHP       | 7.1.11
MySQL     | 5.5.56-MariaDB
RRDTool   | 1.4.8
SNMP      | NET-SNMP 5.7.2
====================================

[OK]    Database connection successful
[OK]    Database schema correct
[WARN]  Your install is over 24 hours out of date, last update: Thu, 22 Feb 2018 12:22:42 +0000
        [FIX] Make sure your daily.sh cron is running and run ./daily.sh by hand to see if there are any errors.
-bash-4.2$ ./daily.sh
Updating to latest codebase                        OK
Updating Composer packages                         OK
Updated from fca10c6 to 6dcdd89                    OK
Updating SQL-Schema                                OK
Updating submodules                                OK
Cleaning up DB                                     OK
Fetching notifications                             OK
Caching PeeringDB data                             OK
-bash-4.2$
[root@lnms1 user]# ls -l /etc/cron.d/librenms
-rw-r--r--. 1 root root 738 Jan 15 16:51 /etc/cron.d/librenms
[root@nms swteam]# cat /etc/cron.d/librenms
# Using this cron file requires an additional user on your system, please see install docs.

33   */6  * * *   librenms    /opt/librenms/cronic /opt/librenms/discovery-wrapper.py 1
*/5  *    * * *   librenms    /opt/librenms/discovery.php -h new >> /dev/null 2>&1
*/5  *    * * *   librenms    /opt/librenms/cronic /opt/librenms/poller-wrapper.py 16
15   0    * * *   librenms    /opt/librenms/daily.sh >> /dev/null 2>&1
*    *    * * *   librenms    /opt/librenms/alerts.php >> /dev/null 2>&1
*/5  *    * * *   librenms    /opt/librenms/poll-billing.php >> /dev/null 2>&1
01   *    * * *   librenms    /opt/librenms/billing-calculate.php >> /dev/null 2>&1
*/5  *    * * *   librenms    /opt/librenms/check-services.php >> /dev/null 2>&1
[root@lnms1 user]#

Prior to manual run daily.sh, the cron output and send this email received at time 0:17 /opt/librenms/daily.sh

We just attempted to update your install but failed. The information below
should help you fix this.

fatal: unable to access 'https://github.com/librenms/librenms.git/':

Encountered end of file

That means you have a firewall or proxy blocking access to github, please fix that.

@laf, but it works when i ran it manually.

-bash-4.2$ /opt/librenms/daily.sh
Updating to latest codebase                        FAIL
error: RPC failed; result=6, HTTP code = 0
fatal: The remote end hung up unexpectedly
Updating Composer packages                         OK
Updating SQL-Schema                                OK
Updating submodules                                OK
Cleaning up DB                                     OK
Fetching notifications                             OK
Caching PeeringDB data                             OK
-bash-4.2$ /opt/librenms/daily.sh
Updating to latest codebase                        FAIL
fatal: unable to access 'https://github.com/librenms/librenms.git/': Could not resolve host: github.com; Name or service not known
Updating Composer packages                         OK
Updating SQL-Schema                                OK
Updating submodules                                OK
Cleaning up DB                                     OK
Fetching notifications                             OK
Caching PeeringDB data                             OK
-bash-4.2$

Added google DNS
and push up google DNS as #1 to take effect.

Command line worked so far.