stefanpejcic / OpenPanel

A highly customizable web hosting control panel built with Docker 🐳
https://openpanel.com
216 stars 33 forks source link

update command has no timeout #197

Closed stefanpejcic closed 1 month ago

stefanpejcic commented 1 month ago

OpenPanel version(s) affected

0.3.1

What OS are you using?

Ubuntu

Description

root     1371905  0.0  0.0  14676  7120 ?        S    Sep10   0:00 wget -q -O - https://update.openpanel.co/versions/0.1.32555885
root     1798661  0.0  0.0   2892   956 ?        Ss   Jul22   0:00 /bin/sh -c opencli update
root     1798669  0.0  0.0   7372  3308 ?        S    Jul22   0:00 /bin/bash /usr/local/bin/opencli update
root     1798670  0.7  0.0   7504  3352 ?        S    Jul22 805:02 /bin/bash /usr/local/admin/scripts/update
root     2316869  0.0  0.0   2892   984 ?        Ss   Sep27   0:00 /bin/sh -c /usr/local/bin/opencli update && echo "$(date) System update executed" >> /var/log/openpanel/admin/cron.log
root     2316871  0.0  0.0   7372  3392 ?        S    Sep27   0:00 /bin/bash /usr/local/bin/opencli update
root     2316876  1.8  0.0   7504  3580 ?        S    Sep27 179:55 /bin/bash /usr/local/admin/scripts/update
root     2373595  0.0  0.0   2892   940 ?        Ss   Jul21   0:00 /bin/sh -c opencli update
root     2373599  0.0  0.0   7372  3396 ?        S    Jul21   0:00 /bin/bash /usr/local/bin/opencli update
root     2373604  1.1  0.0   7504  3456 ?        S    Jul21 1207:55 /bin/bash /usr/local/admin/scripts/update
root     2493494  0.0  0.0   2892   972 ?        Ss   Oct01   0:00 /bin/sh -c /usr/local/bin/opencli update && echo "$(date) System update executed" >> /var/log/openpanel/admin/cron.log
root     2493499  0.0  0.0   7372  3372 ?        S    Oct01   0:00 /bin/bash /usr/local/bin/opencli update
root     2493506  1.8  0.0   7504  3568 ?        S    Oct01  69:46 /bin/bash /usr/local/admin/scripts/update
root     2556307  0.0  0.0   2892   996 ?        Ss   Oct02   0:00 /bin/sh -c /usr/local/bin/opencli update && echo "$(date) System update executed" >> /var/log/openpanel/admin/cron.log
root     2556308  0.0  0.0   7372  3416 ?        S    Oct02   0:00 /bin/bash /usr/local/bin/opencli update
root     2556312  1.7  0.0   7504  3572 ?        S    Oct02  43:08 /bin/bash /usr/local/admin/scripts/update
root     2903020  0.0  0.0   2892   980 ?        Ss   Sep30   0:00 /bin/sh -c /usr/local/bin/opencli update && echo "$(date) System update executed" >> /var/log/openpanel/admin/cron.log
root     2903032  0.0  0.0   7372  3404 ?        S    Sep30   0:00 /bin/bash /usr/local/bin/opencli update
root     2903045  1.8  0.0   7504  3548 ?        S    Sep30  96:43 /bin/bash /usr/local/admin/scripts/update
root     2961421  0.0  0.0   2892   988 ?        Ss   Jul17   0:00 /bin/sh -c opencli update
root     2961422  0.0  0.0   7372  3388 ?        S    Jul17   0:00 /bin/bash /usr/local/bin/opencli update
root     2961424  1.1  0.0   7504  3492 ?        S    Jul17 1331:25 /bin/bash /usr/local/admin/scripts/update
root     3042269  0.0  0.0   2892   964 ?        Ss   00:15   0:00 /bin/sh -c /usr/local/bin/opencli update && echo "$(date) System update executed" >> /var/log/openpanel/admin/cron.log
root     3042283  0.0  0.0   7372  3396 ?        S    00:15   0:00 /bin/bash /usr/local/bin/opencli update
root     3042299  1.7  0.0   7504  3492 ?        S    00:15  17:31 /bin/bash /usr/local/admin/scripts/update
root     3296095  0.0  0.0   2892   960 ?        Ss   Jul25   0:00 /bin/sh -c opencli update
root     3296096  0.0  0.0   7372  3372 ?        S    Jul25   0:00 /bin/bash /usr/local/bin/opencli update
root     3296098  1.1  0.0   7504  3348 ?        S    Jul25 1124:26 /bin/bash /usr/local/admin/scripts/update
root     3762328  0.0  0.0   2892   956 ?        Ss   Jul23   0:00 /bin/sh -c opencli update
root     3762332  0.0  0.0   7372  3332 ?        S    Jul23   0:00 /bin/bash /usr/local/bin/opencli update
root     3762333  1.0  0.0   7504  3456 ?        S    Jul23 1146:37 /bin/bash /usr/local/admin/scripts/update
root     3807531  0.0  0.0  14960  8212 ?        S    16:44   0:00 wget -q -O - https://update.openpanel.co/versions/0.1.45527544
root     3807538  0.0  0.0  14676  7252 ?        S    16:44   0:00 wget -q -O - https://update.openpanel.co/versions/0.2.4862765
root     3807548  0.0  0.0  14676  7236 ?        S    16:44   0:00 wget -q -O - https://update.openpanel.co/versions/0.1.52983820
root     3807552  0.0  0.0  14676  7124 ?        S    16:44   0:00 wget -q -O - https://update.openpanel.co/versions/0.1.50489734
root     3807560  0.0  0.0  14676  7140 ?        S    16:44   0:00 wget -q -O - https://update.openpanel.co/versions/0.2.2929612
root     3807569  0.0  0.0  14676  7140 ?        S    16:44   0:00 wget -q -O - https://update.openpanel.co/versions/0.1.46230332
root     3807572  0.0  0.0  14676  7132 ?        S    16:44   0:00 wget -q -O - https://update.openpanel.co/versions/0.1.51774302
root     3807575  0.0  0.0  14676  7244 ?        S    16:44   0:00 wget -q -O - https://update.openpanel.co/versions/0.1.44829603
root     3807595  0.0  0.0  14676  7284 ?        S    16:44   0:00 wget -q -O - https://update.openpanel.co/versions/0.2.1048758
root     3807597  0.0  0.0  14676  7188 ?        S    16:44   0:00 wget -q -O - https://update.openpanel.co/versions/0.2.427135
root     3807599  0.0  0.0  14676  7176 ?        S    16:44   0:00 wget -q -O - https://update.openpanel.co/versions/0.2.2304244
root     3807602  0.0  0.0   7008  2020 pts/0    S+   16:44   0:00 grep --color=auto update

How to reproduce

/

Possible Solution

add timeout

Additional Context

No response

stefanpejcic commented 1 month ago

5min timeout added https://github.com/stefanpejcic/openpanel-docker-cli/commit/d15cc0d0294f9aa5f26502d8598abbd6d5db63cf

neeeds testing