SOLVED queueprocd isn't running? at ... Manager.pm line 214 [case CPANEL-17413]

Kent Brockman

Well-Known Member
PartnerNOC
Jan 20, 2008
1,335
75
178
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
Hello guys, I'm seeing this error right after login to WHM: the entire screen is blank and only show this line:

Code:
undef error - queueprocd isn't running? at /usr/local/cpanel/Cpanel/TaskQueue/Manager.pm line 214.
This happens nearly 2 times a week on only one of the servers.
I just hit F5 in the browser and everything reloads ok.
It happens since upgrade to cPanel 66. Running under CENTOS 7.4 on kvm mode.

Based on what I've readed in other threads, I've run the recommended commands and this is the output:

Code:
[root ~]# /scripts/restartsrv_queueprocd
Waiting for “queueprocd” to restart ………waiting for “queueprocd” to initialize ………finished.

Service Status
        queueprocd (queueprocd - waiting up to 30s to process a task) running as root with PID 32363 (process table check method)

Startup Log
        Oct 07 20:34:35 s001.mydomain.com systemd[1]: Starting cPanel Queue services...
        Oct 07 20:34:36 s001.mydomain.com startqueueprocd[32356]: ==> cPanel TaskQueue Processing Daemon version 1.0
        Oct 07 20:34:36 s001.mydomain.com systemd[1]: PID file /var/run/queueprocd.pid not readable (yet?) after start.
        Oct 07 20:34:36 s001.mydomain.com systemd[1]: Started cPanel Queue services.

queueprocd restarted successfully.

[root ~]# /usr/local/cpanel/libexec/queueprocd
==> cPanel TaskQueue Processing Daemon version 1.0

[root ~]# /usr/local/cpanel/libexec/queueprocd
cPanel TaskQueue Processing Daemon already running, exiting.
warn [queueprocd] cPanel TaskQueue Processing Daemon already running, exiting.

[root ~]# ls -alh /usr/bin/perl
-rwxr-xr-x 2 root root 12K Aug  2 14:46 /usr/bin/perl
[root ~]# ls -alh /usr/local/bin/perl
ls: cannot access /usr/local/bin/perl: No such file or directory
[root ~]# ln -s /usr/bin/perl /usr/local/bin/perl
[root ~]# ls -alh /usr/local/bin/perl
lrwxrwxrwx 1 root root 13 Oct  7 20:25 /usr/local/bin/perl -> /usr/bin/perl
Now, while writing all this, I've run upcp with force update via WHM UI. I'll follow up here to let you know if this have solved or still an issue.

Best regards
Marcelo
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello,

Could you open a support ticket using the link in my signature so we can take a closer look and determine what's leading to queueprocd failing to start?

Thank you.
 

warmwhisky

Member
Nov 13, 2017
9
0
1
Swaziland
cPanel Access Level
Root Administrator
Hi Guys,

CENTOS 7.4 hyper-v
v68.0.12

I have the same error as above, but my output is slightly different...

Code:
[[email protected] ~]# /scripts/restartsrv_queueprocd
Waiting for “queueprocd” to restart ………waiting for “queueprocd” to initialize ………finished.

Service Status
        queueprocd (queueprocd - waiting up to 30s to process a task) is running as root with PID 877 (systemd+/proc check method).
        queueprocd (queueprocd - waiting up to 30s to process a task) running as root with PID 877 (process table check method)

Startup Log
        Nov 14 07:13:36 USER.HOST.co.za systemd[1]: Starting cPanel Queue services...
        Nov 14 07:13:36 USER.HOST.co.za startqueueprocd[30297]: ==> cPanel TaskQueue Processing Daemon version 1.0
        Nov 14 07:13:36 USER.HOST.co.za systemd[1]: queueprocd.service: Supervising process 30301 which is not our child. We'll most likely not notice when it exits.
        Nov 14 07:13:36 USER.HOST.co.za systemd[1]: Started cPanel Queue services.
I am also getting upcp errors since the last few weeks... here is the last email I recieved from the server...

Code:
The cPanel & WHM update process failed for the following reason:

Maintenance ended; however, it did not exit cleanly (512). Review the update logs to determine why the update failed.

Update log preview:

[2017-11-14 00:39:06 +0200] [/usr/local/cpanel/scripts/sysup] * base: mirror.bitco.co.za
[2017-11-14 00:39:06 +0200] [/usr/local/cpanel/scripts/sysup] * extras: mirror.bitco.co.za
[2017-11-14 00:39:06 +0200] [/usr/local/cpanel/scripts/sysup] No packages marked for update
[2017-11-14 00:39:06 +0200] - Finished command `/usr/local/cpanel/scripts/sysup` in 34.134 seconds
[2017-11-14 00:39:06 +0200] 26% complete
[2017-11-14 00:39:06 +0200] - Finished in 34.135 seconds
[2017-11-14 00:39:06 +0200] Processing: Restarting any outdated services
[2017-11-14 00:39:06 +0200] - Processing command `/usr/local/cpanel/scripts/find_outdated_services --always-restart`
[2017-11-14 00:39:08 +0200] [/usr/local/cpanel/scripts/find_outdated_services] Looking for outdated services …
[2017-11-14 00:39:08 +0200] [/usr/local/cpanel/scripts/find_outdated_services] The system did not find any outdated services.
[2017-11-14 00:39:08 +0200] - Finished command `/usr/local/cpanel/scripts/find_outdated_services --always-restart` in 2.612 seconds
[2017-11-14 00:39:08 +0200] Processing: Running platform specific optimizations
[2017-11-14 00:39:08 +0200] - Processing command `/usr/local/cpanel/scripts/vps_optimizer`
[2017-11-14 00:39:08 +0200] - Finished command `/usr/local/cpanel/scripts/vps_optimizer` in 0.092 seconds
[2017-11-14 00:39:08 +0200] 27% complete
[2017-11-14 00:39:08 +0200] Processing: Checking for a valid C Compiler.
[2017-11-14 00:39:08 +0200] - Processing command `/usr/local/cpanel/scripts/checkccompiler`
[2017-11-14 00:39:09 +0200] [/usr/local/cpanel/scripts/checkccompiler] C compiler (/usr/bin/gcc) OK
[2017-11-14 00:39:09 +0200] [/usr/local/cpanel/scripts/checkccompiler] Tuned C compiler not available because it is not enabled
[2017-11-14 00:39:09 +0200] - Finished command `/usr/local/cpanel/scripts/checkccompiler` in 0.948 seconds
[2017-11-14 00:39:09 +0200] 28% complete
=> Log closed Tue Nov 14 00:39:09 2017
----------------------------------------------------------------------------------------------------
=> Log opened from cPanel Update (upcp) - Slave (228137) at Tue Nov 14 00:39:09 2017
[2017-11-14 00:39:09 +0200] E Pre Maintenance ended, however it did not exit cleanly (512). Please check the logs for an indication of what happened


The system generated this notice on 2017-11-13 at 22:39:10 UTC.
Any ideas??
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
undef error - queueprocd isn't running? at /usr/local/cpanel/Cpanel/TaskQueue/Manager.pm line 214.
Hello,

It looks like this could be related to internal case CPANEL-16593. I'll monitor that case and update this thread with more information on it's status as it becomes available. In the meantime, the following commands should act as a temporary workaround:

Code:
mkdir -p /root/taskqueuebackup/taskqueue
mv -v /var/cpanel/taskqueue/* /root/taskqueuebackup/taskqueue/
/scripts/restartsrv_queueprocd
@warmwhisky, could you open a separate thread for the cPanel update issue so we can take a closer look if that issue persists?

Thank you.
 

warmwhisky

Member
Nov 13, 2017
9
0
1
Swaziland
cPanel Access Level
Root Administrator
Hello,

@warmwhisky, could you open a separate thread for the cPanel update issue so we can take a closer look if that issue persists?

Thank you.
Hi. Yes will do. but just to clarify the error that I have reported today. It is the forth time it's happened. According to my emails and unless I have not deleted any of them, it started on the 9th November. Then on the 12th, 13th and today.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hi. Yes will do. but just to clarify the error that I have reported today. It is the forth time it's happened. According to my emails and unless I have not deleted any of them, it started on the 9th November. Then on the 12th, 13th and today.
Hi,

I moved this issue into a separate thread at:

New Thread - upcp failing in cPanel 68

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello,

To update, an additional case (CPANEL-17413) addresses an issue that can lead to scenarios where the "queueprocd isn't running" error message appears. I'll update this thread once the resolution is published.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello,

To update, the resolution associated with CPANEL-17413 is included with cPanel version 68.0.23:

Fixed case CPANEL-17413: Accomodate race condition in queueprocd where the pidfile is empty.

The full cPanel version 68 change log is available at the following URL:

68 Change Log - Change Logs - cPanel Documentation

Thank you.