• 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

Issue Plesk dashboard cannot be accessed

Izlan

New Pleskian
Hello, I'm new to Plesk and I was trying to clear up some file storage because it's beginning to pile up.

I deleted the logs directory and then received the following error when I go to the login page

ERROR: Uncaught exception 'Zend_Log_Exception' with message '"/var/log/plesk/panel.log" cannot be opened with mode "a"' in /usr/local/psa/admin/externals/Zend/Log/Writer/Stream.php:81 Stack trace: #0 /usr/local/psa/admin/plib/Plesk/Log.php(69): Zend_Log_Writer_Stream->__construct('/var/log/plesk/...') #1 /usr/local/psa/admin/plib/Plesk/Log.php(370): Plesk_Log::init() #2 /usr/local/psa/admin/plib/Plesk/Log.php(262): Plesk_Log::get() #3 /usr/local/psa/admin/plib/Plesk/Log.php(168): Plesk_Log::log('panel', 3, '"/var/log/plesk...') #4 /usr/local/psa/admin/plib/PleskException.php(26): Plesk_Log::err('"/var/log/plesk...') #5 /usr/local/psa/admin/plib/PleskException.php(13): report_crash('"/var/log/plesk...', Array, 'Zend_Log_Except...', 500, Object(Zend_Log_Exception)) #6 [internal function]: plesk_exception_handler(Object(Zend_Log_Exception)) #7 {main} thrown (Stream.php:81)

After some mingling with SSH (I can't exactly remember what I did), when I want to go to the login page it says "Server Error 502 Bad Gateway".

Any and all help is welcome. Thanks.
 
I tried the plesk repair all function but it returned this

Reconfigure the Plesk installation? [Y/n] y

Reconfiguring the Plesk installation
Reconfiguring the Plesk installation ............................ [FAILED]
- /opt/psa/bootstrapper/pp17.8.11-bootstrapper/bootstrapper.sh:
line 4453: echo: write error: No space left on device
- Cannot write installation log
/var/log/plesk/install/plesk_17.8.11_repair.log

Checking the Plesk database using the native database server tools .. [OK]

Checking the structure of the Plesk database
DB query failed: SQLSTATE[HY000]: General error: 1030 Got error 28 from storage engine, query was: DESC accounts
The database structure is corrupted. You can try to repair it with "plesk repair installation" and "plesk repair db".

Running the FTP service checking tool ............................... [ERROR]
DB query failed: SQLSTATE[HY000]: General error: 1030 Got error 28 from storage engine, query was: DESCRIBE `ServiceNodes`
The database structure is corrupted. You can try to repair it with "plesk repair installation" and "plesk repair db".

Checking Linux system files
DB query failed: SQLSTATE[HY000]: General error: 1030 Got error 28 from storage engine, query was: DESCRIBE `ServiceNodes`
The database structure is corrupted. You can try to repair it with "plesk repair installation" and "plesk repair db".

Repairing web server configuration .................................. [ERROR]
DB query failed: SQLSTATE[HY000]: General error: 1030 Got error 28 from storage engine, query was: DESCRIBE `ServiceNodes`
The database structure is corrupted. You can try to repair it with "plesk repair installation" and "plesk repair db".

Reconfiguring the mail service ...................................... [ERROR]
DB query failed: SQLSTATE[HY000]: General error: 1030 Got error 28 from storage engine, query was: DESCRIBE `ServiceNodes`
The database structure is corrupted. You can try to repair it with "plesk repair installation" and "plesk repair db".

Reconfiguring the DNS server ........................................ [ERROR]
DB query failed: SQLSTATE[HY000]: General error: 1030 Got error 28 from storage engine, query was: DESCRIBE `ServiceNodes`
The database structure is corrupted. You can try to repair it with "plesk repair installation" and "plesk repair db".

Checking MySQL database servers

Unable connect to localhost:3306: Can't create database
'd6007b20d0c8d6' (errno: 28) ...................................... [ERROR]

Repair databases on available servers
DB query failed: SQLSTATE[HY000]: General error: 1030 Got error 28 from storage engine, query was: DESCRIBE `data_bases`
The database structure is corrupted. You can try to repair it with "plesk repair installation" and "plesk repair db".

Repair database users on available servers
DB query failed: SQLSTATE[HY000]: General error: 1030 Got error 28 from storage engine, query was: DESCRIBE `db_users`
The database structure is corrupted. You can try to repair it with "plesk repair installation" and "plesk repair db".

Error messages: 5; Warnings: 0; Errors resolved: 0
 
I deleted the logs directory
Bad idea.
ERROR: Uncaught exception 'Zend_Log_Exception' with message '"/var/log/plesk/panel.log" cannot be opened
You deleted important log files from Plesk and this is the cause of the problem.
Try to recover directory /var/log/plesk and log file /var/log/plesk/panel.log at least with the following permissions:

Code:
# stat /var/log/plesk
  File: ‘/var/log/plesk’
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: fd01h/64769d    Inode: 4195536     Links: 5
Access: (0750/drwxr-x---)  Uid: (  997/  psaadm)   Gid: (    0/    root)
Context: system_u:object_r:var_log_t:s0
Access: 2021-01-20 03:38:34.135792416 +0700
Modify: 2021-01-20 03:38:18.253168853 +0700
Change: 2021-01-20 03:38:18.253168853 +0700
 Birth: -


# stat /var/log/plesk/panel.log
  File: ‘/var/log/plesk/panel.log’
  Size: 4050424         Blocks: 7920       IO Block: 4096   regular file
Device: fd01h/64769d    Inode: 4195551     Links: 1
Access: (0640/-rw-r-----)  Uid: (  997/  psaadm)   Gid: (    0/    root)
Context: unconfined_u:object_r:var_log_t:s0
Access: 2021-01-19 11:04:12.427495820 +0700
Modify: 2021-01-19 11:04:12.254489003 +0700
Change: 2021-01-19 11:04:12.254489003 +0700
 Birth: -
 
Bad idea.

You deleted important log files from Plesk and this is the cause of the problem.
Try to recover directory /var/log/plesk and log file /var/log/plesk/panel.log at least with the following permissions:

Code:
# stat /var/log/plesk
  File: ‘/var/log/plesk’
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: fd01h/64769d    Inode: 4195536     Links: 5
Access: (0750/drwxr-x---)  Uid: (  997/  psaadm)   Gid: (    0/    root)
Context: system_u:object_r:var_log_t:s0
Access: 2021-01-20 03:38:34.135792416 +0700
Modify: 2021-01-20 03:38:18.253168853 +0700
Change: 2021-01-20 03:38:18.253168853 +0700
Birth: -


# stat /var/log/plesk/panel.log
  File: ‘/var/log/plesk/panel.log’
  Size: 4050424         Blocks: 7920       IO Block: 4096   regular file
Device: fd01h/64769d    Inode: 4195551     Links: 1
Access: (0640/-rw-r-----)  Uid: (  997/  psaadm)   Gid: (    0/    root)
Context: unconfined_u:object_r:var_log_t:s0
Access: 2021-01-19 11:04:12.427495820 +0700
Modify: 2021-01-19 11:04:12.254489003 +0700
Change: 2021-01-19 11:04:12.254489003 +0700
Birth: -
Where do I go from here? I did both of the command and it returned this

root@vps76558:~# stat /var/log/plesk
File: ‘/var/log/plesk’
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 801h/2049d Inode: 65717 Links: 3
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2021-01-19 23:08:17.476501800 -0500
Modify: 2021-01-19 23:31:08.328501800 -0500
Change: 2021-01-19 23:31:08.328501800 -0500
Birth: -

root@vps76558:~# stat /var/log/plesk/panel.log
File: ‘/var/log/plesk/panel.log’
Size: 8192 Blocks: 16 IO Block: 4096 regular file
Device: 801h/2049d Inode: 3220 Links: 1
Access: (0640/-rw-r-----) Uid: ( 999/ psaadm) Gid: ( 0/ root)
Access: 2021-01-19 23:17:02.292501800 -0500
Modify: 2021-01-19 23:40:01.572501800 -0500
Change: 2021-01-19 23:40:01.572501800 -0500
Birth: -
 
Bad idea.

You deleted important log files from Plesk and this is the cause of the problem.
Try to recover directory /var/log/plesk and log file /var/log/plesk/panel.log at least with the following permissions:

Code:
# stat /var/log/plesk
  File: ‘/var/log/plesk’
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: fd01h/64769d    Inode: 4195536     Links: 5
Access: (0750/drwxr-x---)  Uid: (  997/  psaadm)   Gid: (    0/    root)
Context: system_u:object_r:var_log_t:s0
Access: 2021-01-20 03:38:34.135792416 +0700
Modify: 2021-01-20 03:38:18.253168853 +0700
Change: 2021-01-20 03:38:18.253168853 +0700
Birth: -


# stat /var/log/plesk/panel.log
  File: ‘/var/log/plesk/panel.log’
  Size: 4050424         Blocks: 7920       IO Block: 4096   regular file
Device: fd01h/64769d    Inode: 4195551     Links: 1
Access: (0640/-rw-r-----)  Uid: (  997/  psaadm)   Gid: (    0/    root)
Context: unconfined_u:object_r:var_log_t:s0
Access: 2021-01-19 11:04:12.427495820 +0700
Modify: 2021-01-19 11:04:12.254489003 +0700
Change: 2021-01-19 11:04:12.254489003 +0700
Birth: -
Also I just remembered I made a full backup for Plesk before I messed around with the logs. Is there any way the backup could be of any use at this point?
 
Okay, I've run that command and apparently I've run out on disk storage on sda1. The problem with this is that yesterday I saw only about 6gb used out of 10gb of total storage, and then I partitioned my server to increase another 10gb (to a total of 20gb) + detect hardware changes in Health Monitoring to reflect that the total storage is currently 20gb. Any ideas on this?

root@vps76558:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 972M 4.0K 972M 1% /dev
tmpfs 196M 660K 195M 1% /run
/dev/sda1 20G 20G 0 100% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
none 5.0M 20K 5.0M 1% /run/lock
none 977M 4.0K 977M 1% /run/shm
none 100M 0 100M 0% /run/user
 
The main idea is that you need to clean up a full disk partition /dev/sda1. Otherwise, Plesk will not work.
Find out what large files and directories the partition is using and clean it up with care.
 
The main idea is that you need to clean up a full disk partition /dev/sda1. Otherwise, Plesk will not work.
How do I do a full clean up for the disk partition? Is it possible to wipe away the whole thing and restore a back up from my laptop?
Find out what large files and directories the partition is using and clean it up with care.
Is there a guide to know which files and directories that can be deleted without any harm?
 
Is there a guide to know which files and directories that can be deleted without any harm?
This is a purely Linux administrative task that experienced Linux administrators solve in different ways, depending on their experience and skills.
It is very difficult to formalize it and give any specific advice. For example, you can use these commands to find the five largest files on your partition:

Code:
# cd /
# find -type f -exec du -Sh {} + | sort -rh | head -n 5

You decide on the possibility of deleting them, depending on your understanding of what kind of files they are and how important they are for the normal functioning of the system.
 
Code:
# cd /
# find -type f -exec du -Sh {} + | sort -rh | head -n 5
I couldn't do the second line of command, it returned this error

sort: write failed: /tmp/sortrIKX0i: No space left on device
find: `du' terminated by signal 13 (multiple times)
...
find: `./proc/20996/task/20996/fd/5': No such file or directory
find: `./proc/20996/task/20996/fdinfo/5': No such file or directory
find: `./proc/20996/fd/5': No such file or directory
find: `./proc/20996/fdinfo/5': No such file or directory
find: `du' terminated by signal 13 (multiple times)
...
 
The command does not work because the disk is full. You urgently need to delete something or expand the partition if there is nothing to delete.
 
I just upgraded my Plesk storage from 10gb to 20gb. Last I checked my storage consumed 6gb of space, but now after doing some work (which I believe would not consume a lot of space) it seems to have consumed almost all of the storage space (all 20gb). It makes it hard for me to access SSH because there's no more storage room. Now I can't access Plesk via the dashboard because of server error 502 bad gateway. Is there any way I can rectify this problem via SSH?
 
You've probably accumulated some huge logfiles due to errors piling up.
Try these:
du -Shat 100M /var/log/
du -Shat 100M /var/www/vhosts/system/*/logs
 
I tried the plesk repair all function but it returned this

Reconfigure the Plesk installation? [Y/n] y

Reconfiguring the Plesk installation
Reconfiguring the Plesk installation ............................ [FAILED]
- /opt/psa/bootstrapper/pp17.8.11-bootstrapper/bootstrapper.sh:
line 4453: echo: write error: No space left on device
- Cannot write installation log
/var/log/plesk/install/plesk_17.8.11_repair.log

Checking the Plesk database using the native database server tools .. [OK]

Checking the structure of the Plesk database
DB query failed: SQLSTATE[HY000]: General error: 1030 Got error 28 from storage engine, query was: DESC accounts
The database structure is corrupted. You can try to repair it with "plesk repair installation" and "plesk repair db".

Running the FTP service checking tool ............................... [ERROR]
DB query failed: SQLSTATE[HY000]: General error: 1030 Got error 28 from storage engine, query was: DESCRIBE `ServiceNodes`
The database structure is corrupted. You can try to repair it with "plesk repair installation" and "plesk repair db".

Checking Linux system files
DB query failed: SQLSTATE[HY000]: General error: 1030 Got error 28 from storage engine, query was: DESCRIBE `ServiceNodes`
The database structure is corrupted. You can try to repair it with "plesk repair installation" and "plesk repair db".

Repairing web server configuration .................................. [ERROR]
DB query failed: Rachat de crédit trésorerie travaux[HY000]: General error: 1030 Got error 28 from storage engine, query was: DESCRIBE `ServiceNodes`
The database structure is corrupted. You can try to repair it with "plesk repair installation" and "plesk repair db".

Reconfiguring the mail service ...................................... [ERROR]
DB query failed: SQLSTATE[HY000]: General error: 1030 Got error 28 from storage engine, query was: DESCRIBE `ServiceNodes`
The database structure is corrupted. You can try to repair it with "plesk repair installation" and "plesk repair db".

Reconfiguring the DNS server ........................................ [ERROR]
DB query failed: SQLSTATE[HY000]: General error: 1030 Got error 28 from storage engine, query was: DESCRIBE `ServiceNodes`
The database structure is corrupted. You can try to repair it with "plesk repair installation" and "plesk repair db".

Checking MySQL database servers

Unable connect to localhost:3306: Can't create database
'd6007b20d0c8d6' (errno: 28) ...................................... [ERROR]

Repair databases on available servers
DB query failed: SQLSTATE[HY000]: General error: 1030 Got error 28 from storage engine, query was: DESCRIBE `data_bases`
The database structure is corrupted. You can try to repair it with "plesk repair installation" and "plesk repair db".

Repair database users on available servers
DB query failed: SQLSTATE[HY000]: General error: 1030 Got error 28 from storage engine, query was: DESCRIBE `db_users`
The database structure is corrupted. You can try to repair it with "plesk repair installation" and "plesk repair db".

Error messages: 5; Warnings: 0; Errors resolved: 0
How to Repair Database Users on Available Servers? this is important, thank you for your feedback
 
Back
Top