cPanel & WHM update failure in upcp script

Operating System & Version
Linux
cPanel & WHM Version
110.0 (build 8)
Jul 14, 2023
4
1
1
Fort Pierce, FL
cPanel Access Level
Website Owner
Hello, receiving the following email from cpanel:

Maintenance ended; however, it did not exit cleanly (256). The following events were logged: “scripts/rdate”. Review the update logs to determine why the update failed.
...
...
[2023-07-14 02:38:32 -0500] E [/usr/local/cpanel/scripts/rdate] Can't connect to rdate.cpanel.net:37 Connection refused
[2023-07-14 02:38:32 -0500] E [/usr/local/cpanel/scripts/rdate] The “/usr/local/cpanel/scripts/rdate” command (process 68453) reported error number 111 when it ended.
...
[2023-07-14 02:38:34 -0500] - Processing command `/usr/local/cpanel/scripts/update-packages`
[2023-07-14 02:38:35 -0500] [/usr/local/cpanel/scripts/update-packages] checkyum version 22.3 (excludes: bind-chroot)
[2023-07-14 02:38:42 -0500] [/usr/local/cpanel/scripts/update-packages] Loaded plugins: fastestmirror, universal-hooks
[2023-07-14 02:38:42 -0500] [/usr/local/cpanel/scripts/update-packages] Loading mirror speeds from cached hostfile
[2023-07-14 02:38:42 -0500] [/usr/local/cpanel/scripts/update-packages] * EA4: 63.247.64.58
[2023-07-14 02:38:42 -0500] [/usr/local/cpanel/scripts/update-packages] * cpanel-addons-production-feed: 63.247.64.58
[2023-07-14 02:38:42 -0500] [/usr/local/cpanel/scripts/update-packages] * cpanel-plugins: 63.247.64.58
[2023-07-14 02:38:42 -0500] [/usr/local/cpanel/scripts/update-packages] * base: coresite.mm.fcix.net
[2023-07-14 02:38:42 -0500] [/usr/local/cpanel/scripts/update-packages] * extras: mirror.atl.genesisadaptive.com
[2023-07-14 02:38:42 -0500] [/usr/local/cpanel/scripts/update-packages] * updates: nc-centos-mirror.iwebfusion.net
[2023-07-14 02:38:42 -0500] [/usr/local/cpanel/scripts/update-packages] No packages marked for update
[2023-07-14 02:38:42 -0500] - Finished command `/usr/local/cpanel/scripts/update-packages` in 7.165 seconds
[2023-07-14 02:38:42 -0500] 30% complete
[2023-07-14 02:38:42 -0500] - Finished in 7.165 seconds
[2023-07-14 02:38:42 -0500] - Finished in 0.205 seconds
[2023-07-14 02:38:42 -0500] Processing:
[2023-07-14 02:38:42 -0500] Maintenance complete. [state=pre]
=> Log closed Fri Jul 14 02:38:42 2023
----------------------------------------------------------------------------------------------------
=> Log opened from cPanel Update (upcp) - Slave (68225) at Fri Jul 14 02:38:42 2023
please advise
 

cPanelWilliam

Administrator
Staff member
Mar 13, 2018
221
41
153
Houston
cPanel Access Level
Root Administrator
Hello! Can you confirm whether port 37 outbound is open on the server? It appears that your server is unable to connect outbound on port 37 to reach rdate.cpanel.net:

[2023-07-14 02:38:32 -0500] E [/usr/local/cpanel/scripts/rdate] Can't connect to rdate.cpanel.net:37 Connection refused

Usually, this error would be caused by port 37 outbound being blocked. I'd recommend ensuring that port 37 outbound is open in your server's firewall, then please let me know if you continue to see errors with the next cPanel update.
 
Jul 14, 2023
4
1
1
Fort Pierce, FL
cPanel Access Level
Website Owner
Hello! Can you confirm whether port 37 outbound is open on the server? It appears that your server is unable to connect outbound on port 37 to reach rdate.cpanel.net:

[2023-07-14 02:38:32 -0500] E [/usr/local/cpanel/scripts/rdate] Can't connect to rdate.cpanel.net:37 Connection refused

Usually, this error would be caused by port 37 outbound being blocked. I'd recommend ensuring that port 37 outbound is open in your server's firewall, then please let me know if you continue to see errors with the next cPanel update.
Thank you for your response! I'm very new to this. how would I check to see if port 37 is open?
 

cPanelWilliam

Administrator
Staff member
Mar 13, 2018
221
41
153
Houston
cPanel Access Level
Root Administrator
You could run a command such as the following from your server's terminal to see if your server can connect outbound on port 37:

Code:
# curl portquiz.net:37
Port test successful!
Your IP: 1.1.1.1

If you received a "connection refused" error or something similar from the command, it would indicate that port 37 is blocked. If you are unsure how to open port 37, you can install CSF to help manage your firewall. CSF provides an interface in WHM to help manage the firewall and open/close ports. Although CSF is a third-party product that we do not support, we do have installation instructions you can find below:

CSF Installations
 
Jul 14, 2023
4
1
1
Fort Pierce, FL
cPanel Access Level
Website Owner
You could run a command such as the following from your server's terminal to see if your server can connect outbound on port 37:

Code:
# curl portquiz.net:37
Port test successful!
Your IP: 1.1.1.1

If you received a "connection refused" error or something similar from the command, it would indicate that port 37 is blocked. If you are unsure how to open port 37, you can install CSF to help manage your firewall. CSF provides an interface in WHM to help manage the firewall and open/close ports. Although CSF is a third-party product that we do not support, we do have installation instructions you can find below:

CSF Installations

It was initially blocked, but I was able to speak with our representatives at knownhost and they were able to open it for me. the last test of port 37 said "port test successful!". This would indicate that it is open now right?
 

cPanelWilliam

Administrator
Staff member
Mar 13, 2018
221
41
153
Houston
cPanel Access Level
Root Administrator
Hello,

the last test of port 37 said "port test successful!". This would indicate that it is open now right?

Yes, that's correct. I'd recommend either waiting until the next nightly update, or you can run the upcp script manually now to see whether cPanel can update successfully.