Bobcares

DirectAdmin dead but subsys locked Error: How to Solve?

by | Mar 24, 2023

Let us take closer look at the error DirectAdmin dead but subsys locked Error. With the support of our DirectAdmin support services at Bobcares we will now learn how to remove the error easily.

Error: DirectAdmin dead but subsys locked Error

DirectAdmin dead but subsys locked Error

DirectAdmin is a web-based hosting control panel that is intended to simplify administration. It is compatible with ever-changing web hosting environments. DirectAdmin is commonly abbreviated as DA. DirectAdmin can run on any system with the bare minimum of configurations. DirectAdmin’s default port is 2222.

Checking the DA status will tell us whether or not the DirectAdmin is currently running. The following command can be used to determine the current status of the DirectAdmin. To do this, we have to log in as root. In the terminal, type the following command.

# service directadmin status

Dead but subsys locked

If the the error message ‘directadmin dead but subsys locked, open up, it means that DirectAdmin is not currently running on the server, but the ‘pid’ file is. PID stands for process identification number. Each process in a system is given a unique id by which it can be identified.

If we receive this status message, we will be unable to access the DirectAdmin control panel. This is a significant issue because we may be unable to manage the server until we regain access to the control panel. We must restart the DirectAdmin service to regain access to the control panel. In this case, restarting the process may be difficult. However, we can restart the DirectAdmin service.

Dead but subsys locked: Troubleshoot

Ensure that DirectAdmin is no longer alive

Before we restart the service, we must ensure that DirectAdmin is no longer active. We can verify this with the ‘ps’ command. The ps command displays information about the currently running processes, including their process ID numbers (PIDs). The ps command displays all currently active processes.

We can use grep to print only the DirectAdmin information in the output. This is a very useful pattern matching tool that is found on all unix/linux systems. To do this, we must be logged in as root.

# ps -aux | grep directadmin

Exanple

root 22755  0.0  0.0   6444   692 pts/0 S+   06:51   0:00 grep directadmin

Kill the process

If the above command returns any lines other than the ‘grep’ line, it indicates that the DirectAdmin process is active in the system. Because the DirectAdmin service is currently inactive, these processes have no effect. However, it will prevent DirectAdmin service start/restart operations.

We must kill these processes using their process ids in order to restart the DirectAdmin service. The kill command will terminate a process based on the kill signal and PID specified by the user. The process id will be obtained from the output of the ps command. To terminate a process, use the ‘kill’ command with the process id. This will most probably remove the DirectAdmin dead but subsys locked Error.

Syntax

kill pid

The pid here represents the number displayed in the second column of the ps output.

Force kill

Repeat the ps line after completing the preceding method. This is to confirm that the DirectAdmin process has ended.

# ps waux | grep directadmin

Syntax

# kill -9

or we can type in the following command line:

kill -SIGKILL pid
Using any method, terminate all existing DirectAdmin processes.

Remove pid file

This is the next steps in removeing the DirectAdmin dead but subsys locked Error. A Pid-File is a file that stores the process identification number (pid) in a specific location on the filesystem, allowing other programmes to determine the pid of a running script.

Once all instances of DirectAdmin have been terminated, look for a file named /var/run/directadmin.pid. If we find this file, we will delete it with the rm command.

# rm /var/run/directadmin.pid

Reboot the DirectAdmin

The DirectAdmin service should then be restarted. We can restart the DirectAdmin service with the following command:

# service directadmin restart

This is the final step in removing the error DirectAdmin dead but subsys locked Error.

[Need assistance with similar queries? We are here to help]

Conclusion

To sum up we have now seen how to remove the error DirectAdmin dead but subsys locked Error. With the support of our DirectAdmin Support services at Bobcares we have now gone through a complete guide on how to remove the error.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF