Cannot access cyberpanel - ERR_CONNECTION_REFUSED

hi. right now i am not able to access my cyberpanel previously i am able to do everything.
i change my port and still working then
i install owasp security still working then
i click on modsecurity and it stuck on installing and after click on refresh from that time i am not able to access cyberpanel

i tried to -
systemctl restart lscpd
but not works

but still my ssh mac terminal works.
how can i check log through terminal so share and also see the issue myself

and if you know any troubleshoot step please share.

right now it is showing - ERR_CONNECTION_REFUSED

Welcome @cronos Happy you are here

Run in SSH terminal nano /home/cyberpanel/error-logs.txt and copy all contents and post them here

Run command touch /usr/local/CyberCP/debug, this will generate more logs. Rebbot the server after this and post the contents of /home/cyberpanel/error-logs.txt after it is done restarting and you have visited:

from log i got this.

[11.03.2022_01-00-07] [Errno 2] No such file or directory: 'postmap'. [> [11.03.2022_05-43-58] 'utf-8' codec can't decode byte 0x8d in position > [11.03.2022_05-44-01] 'utf-8' codec can't decode byte 0xa7 in position > [11.03.2022_05-44-16] 'list' object has no attribute 'find' [11.03.2022_05-44-34] 'list' object has no attribute 'find' [11.03.2022_05-44-52] 'list' object has no attribute 'find' [11.03.2022_05-45-25] 'list' object has no attribute 'find' [11.03.2022_05-45-43] 'list' object has no attribute 'find' [11.03.2022_06-26-45] 'list' object has no attribute 'find' [11.03.2022_07-02-10] 'list' object has no attribute 'find' [11.03.2022_07-02-41] 'utf-8' codec can't decode byte 0x8d in position > [11.03.2022_07-03-09] 'utf-8' codec can't decode byte 0x8d in position > [11.03.2022_07-03-57] 'utf-8' codec can't decode byte 0x8d in position > [11.03.2022_07-04-42] 'utf-8' codec can't decode byte 0x8d in position > [11.03.2022_07-05-06] This database or user is already taken. [11.03.2022_07-09-47] Record already exists.. [createDNSRecordCloudFlar> [11.03.2022_07-09-48] Record already exists.. [createDNSRecordCloudFlar> [11.03.2022_07-09-49] DNS Validation Error. [createDNSRecordCloudFlare] [11.03.2022_07-09-50] Record already exists.. [createDNSRecordCloudFlar> [11.03.2022_07-09-51] An A, AAAA, or CNAME record with that host alread> [11.03.2022_07-09-52] An A, AAAA, or CNAME record with that host alread> [11.03.2022_07-09-53] Record already exists.. [createDNSRecordCloudFlar> [11.03.2022_07-09-53] Record already exists.. [createDNSRecordCloudFlar> [11.03.2022_07-09-54] Record already exists.. [createDNSRecordCloudFlar> [11.03.2022_07-09-55] Record already exists.. [createDNSRecordCloudFlar> [11.03.2022_07-09-56] Record already exists.. [createDNSRecordCloudFlar> [11.03.2022_07-10-03] Status Code: 200 for: http://www.highcard.fun/.we> [11.03.2022_07-10-03] Status Code: 200 for: http://highcard.fun/.well-k> [11.03.2022_07-10-13] /root/.acme.sh/acme.sh --issue -d highcard.fun -d> [11.03.2022_07-10-19] Successfully obtained SSL for: highcard.fun and: > [11.03.2022_07-10-24] Record already exists.. [createDNSRecordCloudFlar> [11.03.2022_07-12-10] 'utf-8' codec can't decode byte 0x8d in position > [11.03.2022_07-12-56] 'utf-8' codec can't decode byte 0x8d in position > [11.03.2022_07-16-34] 'list' object has no attribute 'find' [11.03.2022_07-16-52] 'list' object has no attribute 'find' [11.03.2022_07-17-31] 'list' object has no attribute 'find' [11.03.2022_07-17-39] 'list' object has no attribute 'find' [11.03.2022_07-17-39] 'list' object has no attribute 'find' [11.03.2022_07-20-12] 'list' object has no attribute 'find' [11.03.2022_11-29-35] Status Code: Unknown for: http://www.hosting.cron> [11.03.2022_11-29-36] Status Code: 200 for: http://hosting.cronosasia.c> [11.03.2022_11-29-48] /root/.acme.sh/acme.sh --issue -d hosting.cronosa> [11.03.2022_11-29-56] Failed to obtain SSL for: hosting.cronosasia.com > [11.03.2022_11-29-56] Trying to obtain SSL for: hosting.cronosasia.com [11.03.2022_11-30-02] Successfully obtained SSL for: hosting.cronosasia> [11.03.2022_23-00-24] [Errno 2] No such file or directory: '/home/cyber> [11.04.2022_01-00-07] Running SSL Renew Utility [11.04.2022_01-00-07] Checking SSL for hosting.cronosasia.com. [11.04.2022_01-00-07] SSL exists for hosting.cronosasia.com. Checking i> [11.04.2022_01-00-07] SSL exists for hosting.cronosasia.com and is not > [11.04.2022_01-00-07] Checking SSL for highcard.fun. [11.04.2022_01-00-07] SSL exists for highcard.fun. Checking if SSL will> [11.04.2022_01-00-07] SSL exists for highcard.fun and is not ready to r> [11.04.2022_01-00-07] Checking SSL for mail.hosting.cronosasia.com. [11.04.2022_01-00-07] SSL exists for mail.hosting.cronosasia.com. Check> [11.04.2022_01-00-07] SSL exists for mail.hosting.cronosasia.com and is> [11.04.2022_01-00-07] Restarting mail services for them to see new SSL. [11.04.2022_01-00-07] [Errno 2] No such file or directory: 'postmap'. [>

The logs are no good. Let’s start by you upgrading your installtion.

sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh)

If using a sudo user rather than root, try this:

sudo su - -c "sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh)"

Reboot and post the contents of https://SERVER_URL:8090/serverstatus/cyberCPMainLogFile and systemctl status lscpd