Service seems are dissapeared

samuelmf

Verified User
Joined
Jul 30, 2021
Messages
169
Hey guys in one of my DA servers the list of services have dissapeared many services and i cannot reach my domains by web

This one is DA servers that is working well
L4nBNR4.png


And this is another server that i cannot access by domain only by ip
39SrLhv.png

This happened after i applyed updates throug custom build option in DA panel
 
Last edited:
I never use that plugin, you don't see what is happening when things go wrong.

So now like a real sysadmin, go into SSH and check why directadmin isn't running.

Restart directadmin via services directadmin restart and see what error it is giving.
Also check the /var/log/directadmin/error.log file if you see something there which could explain why DA does not start.
 
If you restart DA via SSH, then if it won't start, there should be some error notice at least.

Try this as root via SSH:
Code:
cd /usr/local/directadmin
killall -9 directadmin
./directadmin b2000

This should generate a response like this:
Code:
Debug set to level 2000
DirectAdmin 1.62.6
Accepting Connections on port 2222

If not, it should throw an error and/or at lest an entry in the error.log

If this works you can stop the debug mode this way.
1.) Press ctrl-c
2.) Issue this command ./directadmin d
 
[root@core directadmin]# ./directadmin b2000
2021/09/15 16:02:43 info Open database path=/usr/local/directadmin/data/admin/da.db
2021/09/15 16:02:43 info Open migration database path=/usr/local/directadmin/data/admin/da.db
2021/09/15 16:02:43 info Migrate
2021/09/15 16:02:43 info Migration file 0/1=1_initial.up.sql
2021/09/15 16:02:43 info Migrations done, active connection open
Debug mode. Level 2000

IP Aliases found on enp1s0f1:

listType: 0 size=64
0: 131.153.57.57
1: 131.153.57.58
2: fe80:0:0:0:ae1f:6bff:fef8:3f85
 
It stops there? Looks like its running but still not reachable.

Exactly which distro are you using and which update did you apply?
 
CentOS Linux release 7.9.2009 (Core)
Updates for Nginx, mysql and other services that i not remever, 6 or 7 updates trough custombuild section
It stops there?

Yes, remain on the same value 2: fe80:0:0:0:ae1f:6bff:fef8:3f85
 
I don't use ipv6, so can't test.

You could do a complete rebuild to see where it goes wrong.

Like this:
Code:
cd /usr/local/directadmin/custombuild
./build update
./build all d

It will build all again, apache, nginx, exim, mariadb etc. but it won't change your configs.

Keep looking for errors during compilation.
 
Thanks again @Richard G
After perform this commands a new service appeared mysql, i'm able to load my web scebackend.com now but the other services still not appearing.

The build doesn't showed errors
cd /usr/local/directadmin/custombuild
./build update
./build all d

1631765991158.png
 
Other services example lfd, does it appear in the backend? For example, try run this:

Code:
systemctl status lfd

or

Code:
service status lfd
 
Other services example csf, does it appear in the backend? For example, try run this:

Code:
systemctl status csf

[root@core log]# systemctl status csf
● csf.service - ConfigServer Firewall & Security - csf
Loaded: loaded (/usr/lib/systemd/system/csf.service; enabled; vendor preset: disabled)
Active: active (exited) since Wed 2021-09-15 20:59:05 MST; 38min ago
Main PID: 1163 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/csf.service

Sep 15 20:59:05 core.scebackend.com systemd[1]: Starting ConfigServer Firewall & Security - csf...
Sep 15 20:59:05 core.scebackend.com csf[1163]: (restoring ipsets) (restoring iptables) (restoring ip6tables)
Sep 15 20:59:05 core.scebackend.com systemd[1]: Started ConfigServer Firewall & Security - csf.
[root@core log]#
 
When you do

Code:
systemctl status lfd

does it run correctly?

If yes, do you find this output in here:

Code:
grep "^lfd=" /usr/local/directadmin/data/admin/services.status
 
@MaXi32 Thanks for reply

[root@core log]# systemctl status csf
● csf.service - ConfigServer Firewall & Security - csf
Loaded: loaded (/usr/lib/systemd/system/csf.service; enabled; vendor preset: disabled)
Active: active (exited) since Wed 2021-09-15 20:59:05 MST; 38min ago
Main PID: 1163 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/csf.service

Sep 15 20:59:05 core.scebackend.com systemd[1]: Starting ConfigServer Firewall & Security - csf...
Sep 15 20:59:05 core.scebackend.com csf[1163]: (restoring ipsets) (restoring iptables) (restoring ip6tables)
Sep 15 20:59:05 core.scebackend.com systemd[1]: Started ConfigServer Firewall & Security - csf.
[root@core log]# grep "^lfd=" /usr/local/directadmin/data/admin/services.status
[root@core log]#
 
Since CSF is running perfectly, you should put that service manually if you want to display it on UI. See this: https://www.directadmin.com/features.php?id=487

In my file, /usr/local/directadmin/data/admin/services.status I got this:

Code:
da-popb4smtp=ON
directadmin=ON
dovecot=ON
exim=ON
httpd=ON
mysqld=ON
named=OFF
nginx=ON
php-fpm74=ON
php-fpm80=ON
pure-ftpd=ON
sshd=ON
lfd=ON

You can add any services from the backend into this list (make sure the service exists, for example, if you use php-fpm80, you need to make sure php 8 has been installed).
 
Thanks i have edited the file and put this
da-popb4smtp=ON
directadmin=ON
dovecot=ON
exim=ON
httpd=ON
mysqld=ON
named=ON
pure-ftpd=ON
sshd=ON
rspamd=ON
nginx=ON
lfd=ON

that is what i have on my other DA server i made a copy/paste

Thanks now all seems to be normal
 
Thank you all guys, the service problem has gone but now i have another problem, every certain time my server goes to a kind of suspension or sleep mode and doesn't allow me to connect by console and directadmin
 
That is odd. After how much time this is happening?

Have you installed acpi by any chance? Try this:
cat /proc/acpi/info
if it gives a value return, then you have acpi installed and you should uninstall that.

If that is not the case, it might be a bios setting.
 
[root@core /]# cat /proc/acpi/info
cat: /proc/acpi/info: No such file or directory
I asked the technicians and the guy said me that was a port problem, the problem was at NOC side.
Thanks for all

Another question, how can i do to make all my 5 ips are displayed here
1631899739016.png
 
that was a port problem, the problem was at NOC side.
Ah ok, luckily, then it was not a suspend or sleep mode of the server, that's good.

As for your question, have a look here:
especially a little bit scrolling down, the section "How to assign a user an owned ip".
 
Back
Top