fork_execv: dup() failed: Permission denied 4.2.1 Message can not be delivered at this time

Created:

2016-11-16 12:55:27 UTC

Modified:

2017-04-24 12:07:29 UTC

0

Was this article helpful?


Have more questions?

Submit a request

fork_execv: dup() failed: Permission denied 4.2.1 Message can not be delivered at this time

Applicable to:

  • Plesk 12.0 for Linux

Symptoms

  1. Message can not be delivered to mail@domain.tld . The following message can be found in /usr/local/psa/var/log/maillog :

    relay=plesk_virtual, delay=0.33, delays=0.31/0.01/0/0.02, dsn=4.3.0, status=deferred (temporary failure. Command output: fork_execv: dup() failed: Permission denied 4.2.1 Message can not be delivered at this time )
  2. Unable to log into Plesk after upgrade from 11.5.30 to 12.0.18 :

    ERROR: Zend_Db_Statement_Exception
    SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'd41d8cd98f00b204e9800998ecf8427e' for key 'PRIMARY'

    At the same time the following error can be found in /var/log/plesk/panel.log :

    [26-May-2014 11:51:39 Europe/Helsinki] PHP Warning: mcrypt_create_iv(): Cannot open source device; File: /usr/local/psa/admin/plib/Plesk/Base/Utils/String.php, Line: 70
    [26-May-2014 11:51:39 Europe/Helsinki] Exception: PHP Warning: mcrypt_create_iv(): Cannot open source device; File: /usr/local/psa/admin/plib/Plesk/Base/Utils/String.php, Line: 70
    file: /usr/local/psa/admin/plib/Smb/Exception/Syntax.php
    line: 56
    code: 0
    trace: #0 [internal function]: Smb_Exception_Syntax::handleError(2, 'mcrypt_create_i...', '/usr/local/psa/...', 70, Array)
    #1 /usr/local/psa/admin/plib/Plesk/Base/Utils/String.php(70): mcrypt_create_iv(16, 1)
    #2 /usr/local/psa/admin/plib/Session/Helper.php(313): Plesk_Base_Utils_String::getRandomSalt(16)
    #3 /usr/local/psa/admin/plib/Application/Web.php(257): Plesk\\Session\\Helper::generateSessionId()
    #4 /usr/local/psa/admin/htdocs/login_up.php3(67): Plesk\\Application_Web->registerSession('admin', 'ond_1954_')
    #5 {main}

Cause

Incorrect permissions for files /dev/null , /dev/urandom , /dev/random :

# ll /dev/null
crw-rw---- 1 root root 1, 9 May 26 09:41 /dev/null
# ll /dev/urandom
crw-rw---- 1 root root 1, 9 May 26 09:41 /dev/urandom
# ll /dev/random
crw-rw---- 1 root root 1, 9 May 26 09:41 /dev/random

Caused by internal issue with id #PPPM-1668 , it will be fixed in one of the future Plesk updates.

Resolution

Set correct permissions for files /dev/null , /dev/urandom , /dev/random :

# chmod 0666 /dev/null
# chmod 0666 /dev/urandom
# chmod 0666 /dev/random
Have more questions? Submit a request
Please sign in to leave a comment.