Paper Lantern for cPanel accounts is being retired this year. Find out more »
cPanel & WHM Version 102 has been released, and brings a slew of great updates. Take a look at what is included, and then upgrade today!

Implement Fallback for cpsources.conf

PH-Quentin shared this idea 5 years ago
Open Discussion

By default, cPanel & WHM servers retrieve updates directly from Public FastUpdate "" but sometime hosting company to reduce the update time, latency, bandwidth create Private FastUpdate Mirror.

The hoster do something like this:

  1. grep -q '' /etc/cpsources.conf || echo "" > /etc/cpsources.conf

However for any reason if this internal server is down, the upcp process wait 3600 seconds and after stop...:

  1. [2016-10-03 14:39:16 -0400] Detected version '' from version file.

    [2016-10-03 14:39:16 -0400] Running version '' of updatenow.

    [2016-10-03 14:39:16 -0400] Using mirror '' for host ''.

    [2016-10-03 15:39:30 -0400] ***** FATAL: Unable to retrieve tier version info: Failed to download URL ''.

    [2016-10-03 15:39:30 -0400] The Administrator will be notified to review this output when this script completes

    => Log closed Mon Oct 3 15:39:30 2016

    [2016-10-03 15:39:30 -0400] 17% complete

    [2016-10-03 15:39:30 -0400] E Running

    `/usr/local/cpanel/scripts/updatenow --upcp

    --log=/var/cpanel/updatelogs/update.1475519956.log` failed, exited with

    code 255 (signal = 0)

    => Log closed Mon Oct 3 15:39:31 2016

As a cPanel & WHM server administrator and webhosting provider I would like cPanel to offer a fallback option that I can enable: if the defined server is not available, move on to the next one listed.

  1. If HTTPUPDATE is down
  2. --> not kill upcp; instead use

Replies (1)


Yes this as been a real problem for us when a configuration error occured on our fast update server. There should be a falback option.

Leave a Comment
Attach a file