Maintenance ended; however, it did not exit cleanly (256)

SG Websites

Registered
Oct 22, 2018
1
0
1
The Netherlands
cPanel Access Level
Root Administrator
Hello,

I have root access, cpanel version 11.74.0.9.
I recently received an email saying
Maintenance ended; however, it did not exit cleanly (256). The following events were logged: “bin/postgrescheck” and “scripts/check_unreliable_resolvers”.

Based on the other posts with this message, I ran the following commands with the following output:

/usr/local/cpanel/scripts/find_outdated_services

Code:
Looking for outdated services …

The system found 11 outdated services:
        atd
        systemd-logind
        dbus
        [email protected]
        ntpd
        lvm2-lvmetad
        systemd-journald
        tuned
        systemd-udevd
        polkit
        systemd-logind

awk '$4=="E"' /var/cpanel/updatelogs/update.1540191902.log
Code:
[2018-10-22 07:06:06 +0000] E    [/usr/local/cpanel/bin/postgrescheck] The “/usr/local/cpanel/bin/postgrescheck --check-auth --reset-pass-on-fail” command (process 3051) reported error number 2 when it ended.
[2018-10-22 07:06:07 +0000] E    [/usr/local/cpanel/scripts/check_unreliable_resolvers] The “/usr/local/cpanel/scripts/check_unreliable_resolvers --notify” command (process 3073) reported error number 1 when it ended.
[2018-10-22 07:06:40 +0000] E Pre Maintenance ended, however it did not exit cleanly (256). The following events were logged: "bin/postgrescheck", "scripts/check_unreliable_resolvers". Please check the logs for an indication of what happened

I'm not sure what to do next. Please advise.

Details on the cpanel:
Code:
/etc/redhat-release:CentOS Linux release 7.5.1804 (Core)
/usr/local/cpanel/version:11.74.0.9
/var/cpanel/envtype:kvm
CPANEL=release
 
Last edited by a moderator:

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
Hi @SG Websites


Actually I'd like to see what the output is when you run the two scripts noted in the orignal output:

Code:
bin/postgrescheck
Code:
/scripts/check_unreliable_resolvers
The errors encountered seem to be specific to errors on these two scripts.
 

David40

Registered
Nov 3, 2013
2
0
1
cPanel Access Level
Reseller Owner
Hi, I get the same message today and when I run your code in WHM terminal I get
Code:
[[email protected] ~]# bin/postgrescheck
bash: bin/postgrescheck: No such file or directory
[[email protected] ~]# /scripts/check_unreliable_resolvers
OK
Should I open new Thread or waiting here for the response.
Thank you
Sorry for to quick response but going thro other emails I get from the server I note also this:
Some of the server’s DNS resolvers fail to respond. ERROR
I have had Three IP resolvers entered from the data center and I see that the problem is in third one IPv6 and I don't use IPv6 so I delete this optional resolver I hope that now will be ok.
Is there anything that I should do now or Cpanel will try an update at a later time.
Please, I am pretty new to root level WHM if instructions could be also on my level thank you.
 
Last edited:

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
Hi @David40

Can you run this (just copy/paste)
Code:
/usr/local/cpanel/bin/postgrescheck
It sounds like the resolver check was successful this time but I'm concerned due to the output in the update that you might be having intermittent issues. You can check your resolvers at WHM>>Network Configuration>>Resolver Configuration, I might suggest removing one entry and using Google's.

Code:
8.8.8.8
8.8.4.4
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
Hi @David40

The postgrescheck completed fine. Yea go ahead and change the resolver to reflect google's DNS and re-run the update and let me know if you continue to have the same issue.
 

dannylank

Member
Jul 31, 2019
7
0
1
Colombia
cPanel Access Level
DataCenter Provider
[root @ panel ~] # / scripts / check_unreliable_resolvers --notify

perl: advertencia: la configuración regional falló.

- Removed Please Review This Thread -
 

dannylank

Member
Jul 31, 2019
7
0
1
Colombia
cPanel Access Level
DataCenter Provider
[[email protected] ~]# /scripts/check_unreliable_resolvers --notify

Code:
perl: warning: Setting locale failed.

perl: warning: Please check that your locale settings:

    LANGUAGE = (unset),

    LC_ALL = (unset),

    LC_CTYPE = "UTF-8",

    LANG = "es_CO.UTF-8"

    are supported and installed on your system.

perl: warning: Falling back to a fallback locale ("es_CO.UTF-8").

⚠ Partial DNS resolver failure

Resolver

State

200.75.xx.xxx

Normal

200.75.xx.xxx

Normal

8.8.4.4

Normal

8.8.8.8

Normal

fe80::1%enp0s17

Failed


Use the “Resolver Configuration” interface (https://panel.example.com:2087/scripts2/setupresolvconf) to investigate or update the system’s DNS resolvers.
 
Last edited by a moderator: