• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved creation subscrpition hangs panel

Any details from logs? Results of troubleshooting?
 
/var/log/plesk/sw-cp-server/sw-engine.log
/var/log/plesk/sw-cp-server/error_log

Possibly also check
# plesk db
> select * from longtasks;
to find a recent task that might still reside in the process list.

A hanging button as described is likely caused by another instance of the same process that was previously started and not terminated correctly. You can try this sequence to solve it:

1) # /etc/init.d/psa stopall
2) ps aux | grep plesk
Identify remaining Plesk processes (the FPM processes are o.k., push_worker.php is o.k.); kill them by # kill -p PID (do not kill the FPM processes, neither the push process(es))
3) # /etc/init.d/psa start
 
problem persist.

# plesk db
> select * from longtasks;

all status are done, what i have to check in the result?

nothing here in this date.
/var/log/plesk/sw-cp-server/sw-engine.log
/var/log/plesk/sw-cp-server/error_log

about:

1) # /etc/init.d/psa stopall
2) ps aux | grep plesk
Identify remaining Plesk processes (the FPM processes are o.k., push_worker.php is o.k.); kill them by # kill -p PID (do not kill the FPM processes, neither the push process(es))
3) # /etc/init.d/psa start

some processs killed.
start again psa
same problem happens. endles loading "wainting" when create a subscription.

the subscription was created, but the screen never finished....
 
Also now i can not change any parameter in any host of php configuration. always endlesss loading. please help!!!
 
plesk DB show this.... status process done what really means? i have to kiill them?

Code:
+---------------------+-----+------------------------------------------+--------+-----------------+----------------------------------+----------------+----------------+-------------+---------------+---------------------+-------+------------+
| startTime           | id  | type                                     | status | statusProcessed | context                          | progressStatus | progressParams | progressMax | progressValue | finishTime          | pid   | externalId |
+---------------------+-----+------------------------------------------+--------+-----------------+----------------------------------+----------------+----------------+-------------+---------------+---------------------+-------+------------+
| 2016-11-29 20:15:48 |   7 | ext-wp-toolkit-task\manage               | done   |               0 | 89fa4f6fa52824b6740eac3a8ebef95f | done           | NULL           |         100 |           100 | 2016-11-29 20:15:49 | 27730 | NULL       |
| 2016-11-30 21:24:40 |  22 | backup-encrypt-task                      | done   |               0 | NULL                             | done           | NULL           |         100 |           100 | 2016-11-30 21:24:40 | 17379 | NULL       |
| 2017-01-10 16:21:13 | 230 | sync-service-plan                        | done   |               1 | 6fee5a00d00cc8a433fc709e77e2e209 | done           | NULL           |           0 |             0 | 2017-01-10 16:21:13 | 13790 | NULL       |
| 2017-02-11 03:44:02 | 390 | panel-update                             | done   |               1 | NULL                             | done           | NULL           |         100 |           100 | 2017-02-11 03:44:36 |   529 | NULL       |
| 2017-02-11 03:44:25 | 391 | service-node-environment-synchronization | done   |               0 | NULL                             | done           | NULL           |         100 |           100 | 2017-02-11 03:44:29 |   767 | NULL       |
| 2017-02-11 03:44:36 | 392 | service-node-environment-synchronization | done   |               0 | NULL                             | done           | NULL           |         100 |           100 | 2017-02-11 03:44:39 |  2730 | NULL       |
| 2017-02-11 04:36:47 | 393 | aps-cache                                | done   |               0 | NULL                             | done           | NULL           |         100 |           100 | 2017-02-11 04:36:50 |  1302 | NULL       |
| 2017-02-11 08:39:49 | 394 | service-node-environment-synchronization | done   |               0 | NULL                             | done           | NULL           |         100 |           100 | 2017-02-11 08:39:54 | 17538 | NULL       |
| 2017-02-11 08:39:50 | 395 | service-node-environment-synchronization | done   |               0 | NULL                             | done           | NULL           |         100 |           100 | 2017-02-11 08:39:54 | 17563 | NULL       |
| 2017-02-12 03:21:02 | 396 | panel-update                             | done   |               1 | NULL                             | done           | NULL           |         100 |           100 | 2017-02-12 03:21:28 | 20976 | NULL       |
| 2017-02-12 03:21:27 | 397 | service-node-environment-synchronization | done   |               0 | NULL                             | done           | NULL           |         100 |           100 | 2017-02-12 03:21:32 | 21107 | NULL       |
| 2017-02-12 04:14:10 | 398 | aps-cache                                | done   |               0 | NULL                             | done           | NULL           |         100 |           100 | 2017-02-12 04:14:13 | 20070 | NULL       |
| 2017-02-13 03:15:02 | 399 | panel-update                             | done   |               1 | NULL                             | done           | NULL           |         100 |           100 | 2017-02-13 03:15:28 | 18490 | NULL       |
| 2017-02-13 03:15:28 | 400 | service-node-environment-synchronization | done   |               0 | NULL                             | done           | NULL           |         100 |           100 | 2017-02-13 03:15:31 | 18641 | NULL       |
| 2017-02-13 04:04:28 | 401 | aps-cache                                | done   |               0 | NULL                             | done           | NULL           |         100 |           100 | 2017-02-13 04:04:33 | 14243 | NULL       |
| 2017-02-15 10:28:31 | 402 | dns-synchronize                          | done   |               0 | NULL                             | done           | NULL           |         100 |           100 | 2017-02-15 10:29:37 | 11905 | NULL       |
| 2017-02-15 10:28:31 | 403 | dns-synchronize-real                     | done   |               0 | NULL                             | done           | NULL           |          50 |            50 | 2017-02-15 10:29:09 | 11908 | NULL       |
| 2017-02-15 10:29:18 | 404 | dns-synchronize-real                     | done   |               0 | NULL                             | done           | NULL           |          25 |            25 | 2017-02-15 10:29:33 | 14864 | NULL       |
| 2017-02-15 21:59:32 | 406 | scheduler-sync-email                     | done   |               0 | NULL                             | done           | NULL           |         100 |           100 | 2017-02-15 21:59:32 |  2601 | NULL       |
+---------------------+-----+------------------------------------------+--------+-----------------+----------------------------------+----------------+----------------+-------------+---------------+---------------------+-------+------------+
19 rows in set (0.01 sec)
 
also i check i a hope a long time, the button is always in "wating" and never redirect, but after a long time if i click in other menu "domains" for example i can see the "Información: la configuración...."

upload_2017-2-15_22-50-30.png
 
OK, I understand that after stopping Plesk, there were some hanging Plesk processes in the process list. Then you have restarted Plesk. Everything looks fine, the subscription button was no longer hanging. But when you tried to create a new subscription, the same problem appeared again. Have I understood that correctly?

I think you can backup the psa database (just in case something goes wrong you can recover from that backup) and then in SQL
> TRUNCATE TABLE `longtasks`;

Is the button still in that hanging state afterwards?
 
Exactly.

but the problem is not only creating a subscription. Also happen changin any parameter of php for example. (see image attached)

truncate longtask, not solve the problem.

VcAAAAASUVORK5CYII=.png
 
I cannot tell why this is happening without more details. I suggest to enable panel debug logging, then reproduce the error and then check the log to find out more.

Edit /usr/local/psa/admin/conf/panel.ini add [debug] and [log] sections like this:
Code:
[debug]
enabled = on

[log]
filter.priority=7
show.sql_query = on
show.util_exec = on
show.util_exec_io = on

# service sw-engine restart
# service sw-cp-server restart

This can create many log entries. Remove the debug section from panel.ini once you have logged the event that you want to analyze.

Then analyze /var/log/sw-cp-server/error_log and /var/log/sw-cp-server/sw-engine.log for any suspicious activity (e.g. error messages of utilities).
 
Hello.

I don´t have this file /usr/local/psa/admin/conf/panel.ini I have /usr/local/psa/admin/conf/panel.ini.sample.

OK i am going to create this file with this lines and try to log the error.

i am going to try this night because its an production server and i cant restart services.
 
Hello,

After doing
# service sw-engine restart
# service sw-cp-server restart

semms that this solve the problem. what service are this?

Thanks for help.
 
They are two services that are responsible for Plesk operation.
 
Back
Top