• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Issue creating new domain

rainari

New Pleskian
Server operating system version
AlmaLinux 8.8 (Sapphire Caracal)
Plesk version and microupdate number
Plesk Obsidian v18.0.54_build1800230714.10 os_RedHat el8
Hello

Didn't find same discussion here, therefore I post new thread.
I have issue with creating new domain... Error happens during creating physical hosting

Creating physical hosting
flock(): Argument #1 ($stream) must be of type resource, bool given

Second issue is that I can't change PHP versions. Getting some weird error
 

Attachments

  • newdomainfailed.png
    newdomainfailed.png
    21.8 KB · Views: 9
  • phperror.png
    phperror.png
    51 KB · Views: 9
Let's check the PHP issue first, because that could also lead to the other issue. Could you please copy the content of the "php" section of /usr/local/psa/admin/conf/panel.ini to a post here? Was that file modified manually before?
 
Hello
panel.ini isn't change manually and there is no PHP section
Code:
; Plesk initialization file
;
; Notes:
; * Be careful and understand what do you do while modifying of panel behavior.
; * If option is missed default value will be used.
; * Use ";" for comments.
; * Enabled debug mode or high log level can be the reason of panel slowdown.

[debug]

; Enable debug mode (do not use in production environment)
;enabled = on

[log]

; Log messages verbosity level (from 0 to 7)
; 0 - only critical errors, 7 - all including debug messages, default - 3
;filter.priority = 7

; Enable logging of SQL queries
;show.sql_query = on

; Enable logging of external utilities calls
;show.util_exec = on

; Enable logging of stdin and stdout for external utilities calls (do not use in production environment)
;show.util_exec_io = on

; Enable logging of APSC activities
;apsc.enabled = on

[aps]

; Disable APS apps at all
;enabled = off

[locale]

; Show locale keys instead of localized string (values: off, on, long)
;showKeys = long

[help]

; Documentation URL
;url = http://example.com

[promos]

; Disable other products promotions
;enabled = off

[facebook]

; Hide Like link
;showLikeLink = off

[rating]

; Hide feedback dialog with question to rate product
;enabled = off

[cli]

; Ignore nonexistent options in command line interface
;ignoreNonexistentOptions = off

[pmm]

; Allow to upload modified, corrupted, created on another server or in an older Panel version
; that does not support signing of backups. Set this option only if you trust to backup creator because upload of modified
; backup may compromise you server. If value is on then users just informed about changes in backup and restore isn`t blocked
; Values: on, off
;allowRestoreModifiedDumps = off
[databaseManagement]
features.phpMyAdmin.loginForm.enabled = on


[ext-firewall]
confirmTimeout = 60

[ext-grafana]
allowSuperAdmin = true
 
Here are entries in log
Code:
[2023-07-24 11:05:50.878] 2330864:64be30ded65d5 DEBUG [util_exec] [42c26bea783af2d8ef6969568f6a7b02-0] Starting: phpinimng --status --type=fpm --service-name=plesk-php74-fpm_hooldusraamat.ee_73
[2023-07-24 11:05:51.118] 2330864:64be30ded65d5 DEBUG [util_exec] [42c26bea783af2d8ef6969568f6a7b02-0] Finished in 0.2405s, Error code: 0
[24-Jul-2023 11:05:51 Europe/Tallinn] PHP Warning: fopen(/run/lock/files/plesk_restart_apache.lock): Failed to open stream: Permission denied; File: /usr/local/psa/admin/plib/Service/Driver/Web/Server/Restartable.php, Line: 48

[2023-07-24 11:05:51.120] 2330864:64be30ded65d5 ERR [panel] Exception: PHP Warning: fopen(/run/lock/files/plesk_restart_apache.lock): Failed to open stream: Permission denied; File: /usr/local/psa/admin/plib/Service/Driver/Web/Server/Restartable.php, Line: 48

file: /usr/local/psa/admin/plib/Smb/Exception/Syntax.php
line: 56
code: 0
trace: #0 (0): Smb_Exception_Syntax::handleError(integer '2', string 'fopen(/run/lock/files/plesk_restart_apache.lock): Failed to open stream: Permission denied', string '/usr/local/psa/admin/plib/Service/Driver/Web/Server/Restartable.php', integer '48')
#1 /usr/local/psa/admin/plib/Service/Driver/Web/Server/Restartable.php(48): fopen(string '/run/lock/files/plesk_restart_apache.lock', string 'r')
#2 /usr/local/psa/admin/plib/Service/Driver/Web/Server/Restartable.php(15): Service_Driver_Web_Server_Apache->_isRestartLocked()
#3 /usr/local/psa/admin/application/smb/controllers/WebController.php(669): Service_Driver_Web_Server_Apache->getRestartInterval()
#4 /usr/local/psa/admin/application/smb/controllers/WebController.php(652): Smb_WebController->getRestartApacheIntervalWhenChangingPhpHandler()
#5 /usr/local/psa/admin/plib/vendor/plesk/zf1/library/Zend/Controller/Action.php(516): Smb_WebController->phpSettingsAction()
#6 /usr/local/psa/admin/plib/vendor/plesk/zf1/library/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch(string 'phpSettingsAction')
#7 /usr/local/psa/admin/plib/vendor/plesk/zf1/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(object of type Zend_Controller_Request_Http, object of type Zend_Controller_Response_Http)
#8 /usr/local/psa/admin/plib/Application/Web.php(48): Zend_Controller_Front->dispatch(object of type Zend_Controller_Request_Http)
#9 /usr/local/psa/admin/htdocs/application.php(15): Plesk\Application_Web->run()

[2023-07-24 11:05:51.120] 2330864:64be30ded65d5 DEBUG [panel] Execute: '/usr/local/psa/admin/bin/send-error-report'
[24-Jul-2023 11:05:51 Europe/Tallinn] PHP Warning:  fopen(/run/lock/files/plesk_restart_apache.lock): Failed to open stream: Permission denied in /usr/local/psa/admin/plib/Service/Driver/Web/Server/Restartable.php on line 48
[2023-07-24 11:05:51.328] 2330864:64be30ded65d5 ERR [panel] flock(): Argument #1 ($stream) must be of type resource, bool given:
0: /usr/local/psa/admin/plib/Service/Driver/Web/Server/Restartable.php:49
    flock(boolean false, integer '6')
1: /usr/local/psa/admin/plib/Service/Driver/Web/Server/Restartable.php:49
    Service_Driver_Web_Server_Apache->_isRestartLocked()
2: /usr/local/psa/admin/plib/Service/Driver/Web/Server/Restartable.php:15
    Service_Driver_Web_Server_Apache->getRestartInterval()
3: /usr/local/psa/admin/application/smb/controllers/WebController.php:669
    Smb_WebController->getRestartApacheIntervalWhenChangingPhpHandler()
4: /usr/local/psa/admin/application/smb/controllers/WebController.php:652
    Smb_WebController->phpSettingsAction()
5: /usr/local/psa/admin/plib/vendor/plesk/zf1/library/Zend/Controller/Action.php:516
    Zend_Controller_Action->dispatch(string 'phpSettingsAction')
6: /usr/local/psa/admin/plib/vendor/plesk/zf1/library/Zend/Controller/Dispatcher/Standard.php:308
    Zend_Controller_Dispatcher_Standard->dispatch(object of type Zend_Controller_Request_Http, object of type Zend_Controller_Response_Http)
7: /usr/local/psa/admin/plib/vendor/plesk/zf1/library/Zend/Controller/Front.php:954
    Zend_Controller_Front->dispatch(object of type Zend_Controller_Request_Http)
8: /usr/local/psa/admin/plib/Application/Web.php:48
    Plesk\Application_Web->run()
9: /usr/local/psa/admin/htdocs/application.php:15
[2023-07-24 11:05:51.328] 2330864:64be30ded65d5 ERR [panel] TypeError: flock(): Argument #1 ($stream) must be of type resource, bool given
file: /usr/local/psa/admin/plib/Service/Driver/Web/Server/Restartable.php
line: 49
code: 0
trace: #0 /usr/local/psa/admin/plib/Service/Driver/Web/Server/Restartable.php(49): flock(boolean false, integer '6')
#1 /usr/local/psa/admin/plib/Service/Driver/Web/Server/Restartable.php(15): Service_Driver_Web_Server_Apache->_isRestartLocked()
#2 /usr/local/psa/admin/application/smb/controllers/WebController.php(669): Service_Driver_Web_Server_Apache->getRestartInterval()
#3 /usr/local/psa/admin/application/smb/controllers/WebController.php(652): Smb_WebController->getRestartApacheIntervalWhenChangingPhpHandler()
#4 /usr/local/psa/admin/plib/vendor/plesk/zf1/library/Zend/Controller/Action.php(516): Smb_WebController->phpSettingsAction()
#5 /usr/local/psa/admin/plib/vendor/plesk/zf1/library/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch(string 'phpSettingsAction')
#6 /usr/local/psa/admin/plib/vendor/plesk/zf1/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(object of type Zend_Controller_Request_Http, object of type Zend_Controller_Response_Http)
#7 /usr/local/psa/admin/plib/Application/Web.php(48): Zend_Controller_Front->dispatch(object of type Zend_Controller_Request_Http)
#8 /usr/local/psa/admin/htdocs/application.php(15): Plesk\Application_Web->run()

[2023-07-24 11:05:51.328] 2330864:64be30ded65d5 DEBUG [panel] Execute: '/usr/local/psa/admin/bin/send-error-report'
Rights issue? this file has 600
1690186299251.png
 
I think it is safe to delete /run/lock/files/plesk_restart_apache.lock. However, there is a reason why a lock is present. Probably a service hung or still hangs, and you can either determine which one it is and restart it or you can try to reboot the whole server so that all services restart the way they should. It is also thinkable that due to the "multi"-problem situation, the Plesk installation was damanged or file permissions were modified that Plesk cannot work properly. If you suspect that this could be the case, a "# plesk repair installation" might fix the issue. Bottom line if it was my own server: I'd probably first try to remove the .lock, then reboot the whole server (because probably some situation caused services become unresponsive) and also try the repair (in this order).

If this does not feel comfortable to you (because there are always risks with reboots), you could also open a ticket with Plesk support and let them look into your server by SSH. They might identify the cause individually and fix it without reboot.
 
Back
Top