usmannasir / cyberpanel

Cyber Panel - The hosting control panel for OpenLiteSpeed
GNU General Public License v3.0
1.49k stars 582 forks source link

[BUG] imunifyav does not run after upgrading CyberPanel everytime #1098

Closed TheMukeshPatel closed 11 months ago

TheMukeshPatel commented 11 months ago

Describe the bug Every time, after upgrading CyberPanel, imunifyav stops working. It shows below error code - sh: 1: /usr/local/CyberCP/public/imunifyav/classes/panels/…/…/bin/execute.py: Permission denied

Please solve it so we don't need to run the below code always.

Solution We have to run the below code every time after upgrading CyberPanel to fix it -

  1. Run this in SSH terminal cd /usr/local/CyberCP/public/imunifyav
  2. Run this to fix chmod +x ./bin/execute.py

CyberPanel version: CyberPanel v2.3.4

usmannasir commented 11 months ago

checking

shbs9 commented 11 months ago

i tried to reproduce this using ubuntu 22 os and i cant reproduce this @TheMukeshPatel can you tell me the OS of our server

TheMukeshPatel commented 11 months ago

On Ubuntu 22.04 LTS. Just run CyberPanel upgrade command and after upgrading, try to open imunifyav. You will get my point.

shbs9 commented 11 months ago

Yes did the same i can share login with you as well that i tested come in platform open a ticket

TheMukeshPatel commented 11 months ago

Run below upgrade script in the SSH terminal and after that reboot the server. After this, login to CyberPanel, go to Security > ImunifyAV and Click on the Access button. Now, try to log in with your username and password. You will get my point. sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh)

TheMukeshPatel commented 11 months ago

See this (I ran upgrade script on just fresh new cyberpanel setup) - image

shbs9 commented 11 months ago

Tesest with a new installation, old installation after upgrade all seems fine but as per imunifyav is a free product of imunify team so warnings from imunify can be happen other then that from CyberPanel side all is good now @usmannasir @TheMukeshPatel

usmannasir commented 11 months ago

I am closing our internal ticket and this issue as resolved now.

irockbot commented 5 months ago

@usmannasir @TheMukeshPatel This issue is not solved yet. Ran upgrade to latest 2.3.5 and imunify360 throws the same permission denied error.