Plesk shows 502 Bad Gateway after upgrade: General error: 1021 Disk full

Created:

2016-11-16 12:40:12 UTC

Modified:

2017-04-24 11:11:06 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Plesk shows 502 Bad Gateway after upgrade: General error: 1021 Disk full

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

When trying to log into Plesk, it returns blank login page with the following error:

502 Bad Gateway

The output of ' strace ' utility shows that Plesk stuck while opening / var/lock/lmlib/container_locks/authorizer.lock :

527   22:43:32.912390 mkdir("/var/lock/lmlib/container_locks", 0770) = -1 EEXIST (File exists)
527 22:43:32.912476 open("/var/lock/lmlib/container_locks/authorizer.lock", O_WRONLY|O_CREAT, 03775460067203560) = 8
527 22:43:32.912562 fstat(8, {st_dev=makedev(144, 94), st_ino=2460166633, st_mode=S_IFREG|0660, st_nlink=1, st_uid=997, st_gid=998, st_blksize=4096, st_blocks=0, st_size=0, st_atime=2015/03/27-22:35:21, st_mtime=2015/03/27-22:35:21, st_ctime=2015/03/27-22:35:21}) = 0
527 22:43:32.912661 close(8) = 0
527 22:43:32.912730 open("/var/lock/lmlib/container_locks/authorizer.lock", O_RDWR) = 8
527 22:43:32.912839 fcntl(8, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}

OR

There is the following error in /var/log/plesk/panel.log about insufficient disk space:

[29-Jun-2015 20:57:54 America/Chicago] PleskMainDBException: DB query failed:
DESCRIBE `sessions`

Error: SQLSTATE[HY000]: General error: 1021 Disk full (/var/tmp/#sql_593c_0); waiting for someone to free some space...
file: /usr/local/psa/admin/plib/Db/Adapter/Pdo/Mysql.php
line: 30
code: 0
trace: #0 /usr/local/psa/admin/externals/Zend/Db/Adapter/Pdo/Mysql.php(169): Db_Adapter_Pdo_Mysql->query('DESCRIBE `sessi...')
#1 /usr/local/psa/admin/externals/Zend/Db/Table/Abstract.php(835): Zend_Db_Adapter_Pdo_Mysql->describeTable('sessions', NULL)
#2 /usr/local/psa/admin/externals/Zend/Db/Table/Abstract.php(874): Zend_Db_Table_Abstract->_setupMetadata()
#3 /usr/local/psa/admin/externals/Zend/Db/Table/Abstract.php(982): Zend_Db_Table_Abstract->_setupPrimaryKey()
#4 /usr/local/psa/admin/externals/Zend/Db/Table/Select.php(100): Zend_Db_Table_Abstract->info()
#5 /usr/local/psa/admin/externals/Zend/Db/Table/Select.php(78): Zend_Db_Table_Select->setTable(Object(Plesk\\Session\\Storage_DbTable_Sessions))
#6 /usr/local/psa/admin/externals/Zend/Db/Table/Abstract.php(1018): Zend_Db_Table_Select->__construct(Object(Plesk\\Session\\Storage_DbTable_Sessions))
#7 /usr/local/psa/admin/plib/Session/Storage/DbTable.php(144): Zend_Db_Table_Abstract->select()
#8 /usr/local/psa/admin/plib/Application/Web.php(174): Plesk\\Session\\Storage_DbTable->removeExpiredSessions()
#9 /usr/local/psa/admin/plib/auth.php(342): Plesk\\Application_Web->loadSession()
#10 /usr/local/psa/admin/plib/auth.php(219): AutoPrepend->initUserSession()
#11 /usr/local/psa/admin/plib/auth.php(690): AutoPrepend->run()
#12 {main}

Cause

The file /var/lock/lmlib/container_locks/authorizer.lock is corrupted.

Resolution

Perform the following steps to fix the issue:

  1. Rename or remove container_locks folder in /var/lock/lmlib/ directory:

    # mv /var/lock/lmlib/container_locks /var/lock/lmlib/container_locks_old
  2. Then clear /usr/local/psa/var/cache/ directory.

    # rm -rf /usr/local/psa/var/cache/*
  3. Restart sw-cp-server :

    # service sw-cp-server restart
Have more questions? Submit a request

5 Comments

  • 0
    Avatar
    Shahed Sheikh
    # mv /var/lock/lmlib/container_locks /var/lock/lmlib/container_locks_old

    is not working

    get replay 

    mv: cannot stat ‘/var/lock/lmlib/container_locks’: No such file or directory
  • 0
    Avatar
    Vitaly Zhidkov

    @Shahed, this means that directory /var/lock/lmlib/container_locks does not exist. Try to proceed with further steps and check that everything works after that.

  • 0
    Avatar
    Shahed Sheikh

    tried with all steps but nothing works

    actually what i did:

    i upgraded MariaDB 5.5 to 10 & after upgrading everything works fine but i'm unable to access plesk account :(

    my website is http://www.buymebrand.com you can see here everything is fine but in plesk account it shows error 502

  • 0
    Avatar
    Vitaly Zhidkov

    @Shahed, this needs to be checked deeper. If you purchased license directly from Plesk you can submit a ticket, otherwise please contact your hosting provider.

  • 0
    Avatar
    Shahed Sheikh

    Thanks Vitaly Zhidkov

    I've contacted my hosting provider and they are trying to solve this issue from 4 days. 

    I got nothing till now, i permit them to re-install the but didn't received any good answer from them :(

Please sign in to leave a comment.