update mariadb

thaco

Verified User
Joined
Jul 21, 2016
Messages
8
today after update mariadb with custombuild in (admin da control panel)
database masked
webmail & da control panel down

me use this code:(ssh)
cd /usr/local/directadmin/custombuild
rm -f mysql/MariaDB-10.*
./build update
./build mariadb
./build roundcube

now database and webmail work correctly
But
ip:2222 (da control panel) not work and now me cannot login to my control panel
can help me?

me use centos 8

Error after insert ip:2222 or mydomain:2222 in browser:

This site can’t be reached​

mydomain refused to connect.


Try:
  • Checking the connection
  • Checking the proxy and the firewall
ERR_CONNECTION_REFUSED
 
Try this below. What OS/ version and Custombuild version?

Make sure you have a backup goes without saying right..

Code:
cd /usr/local/directadmin/custombuild
./build set_fastest
./build clean
./build update
./build mariadb
./build roundcube
./build rewrite_confs
 
Try this below. What OS/ version and Custombuild version?

Make sure you have a backup goes without saying right..

Code:
cd /usr/local/directadmin/custombuild
./build set_fastest
./build clean
./build update
./build mariadb
./build roundcube
./build rewrite_confs
Thanks
CustomBuild
2.0.0 (rev: 2596)
NAME="CentOS Linux"
VERSION="8 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="8"
Operating System: CentOS Linux 8 (Core)
CPE OS Name: cpe:/o:centos:centos:8
Kernel: Linux 4.18.0-147.5.1.el8_1.x86_64
Architecture: x86-64


whit this line:
Code:
./build rewrite_confs
every thing work correctly
But
after restart service with:
Code:
reboot
Again access to da Control panel denied
now roundcube and database work correctly

me think after restart Apache my access is ok Until I reboot

do need update centos?
 
What is the output of:

Code:
netstat -ntplu |grep 2222

and

Code:
service directadmin status

?
 
tcp6 0 0 :::2222 :::* LISTEN 21803/directadmin
and
● directadmin.service - DirectAdmin Web Control Panel
Loaded: loaded (/etc/systemd/system/directadmin.service; enabled; vendor pre>
Active: active (running) since Mon 2020-11-16 13:33:01 +0330; 24h ago
Docs: http://www.directadmin.com
Process: 21802 ExecStart=/usr/local/directadmin/directadmin d (code=exited, s>
Main PID: 21803 (directadmin)
Tasks: 11 (limit: 23980)
Memory: 21.9M
CGroup: /system.slice/directadmin.service
├─21803 /usr/local/directadmin/directadmin d
├─71640 /usr/local/directadmin/directadmin d
├─71685 /usr/local/directadmin/directadmin d
├─71801 /usr/local/directadmin/directadmin d
├─72119 /usr/local/directadmin/directadmin d
├─72149 /usr/local/directadmin/directadmin d
├─72259 /usr/local/directadmin/directadmin d
├─72323 /usr/local/directadmin/directadmin d
├─72325 /usr/local/directadmin/directadmin d
├─74988 /usr/local/directadmin/directadmin d
└─75023 /usr/local/directadmin/directadmin d

Nov 16 13:33:01 server.mydomain systemd[1]: Stopped DirectAdmin Web Control Pan>
Nov 16 13:33:01 server.mydomain systemd[1]: Starting DirectAdmin Web Control Pa>
Nov 16 13:33:01 server.mydomain systemd[1]: directadmin.service: Can't open PID>
Nov 16 13:33:01 server.mydomain systemd[1]: Started DirectAdmin Web Control Pan>
~
~
~
~
~
~
~
~
~
lines 1-25/25 (END)
 
Last edited:
Ok so directadmin is currently running on port 2222. Which firewall are you using? If you temporarily disable your firewall, are you able to reach the control panel?
 
thanks
me not use firewall
and when able to access control panel, that my default firewall was disable with this code:

systemctl disable firewalld

systemctl stop firewalld

if was enable Firewall, my access get down

me can install Your suggestion Firewall and test it with Together

excuse me, but As I said: when me use this code

cd /usr/local/directadmin/custombuild
./build rewrite_confs

can access to direct admin, and https://mydomain:2222 is work correctly
but when reboot server, my access get down
 
But when you reboot your server and before running the ./build rewrite_confs command, is the directadmin service running? (check with the 2 commands above after rebooting your server)
 
Thank you

now after reboot
There was no result for this code:
netstat -ntplu |grep 2222

for this cod:
service directadmin status


Nov 17 14:22:49 server.thaco.ir systemd[1]: directadmin.service: Failed with re>
lines 1-12/12 (END)...skipping...
● directadmin.service - DirectAdmin Web Control Panel
Loaded: loaded (/etc/systemd/system/directadmin.service; enabled; vendor pre>
Active: failed (Result: exit-code) since Tue 2020-11-17 14:22:49 +0330; 5h 6>
Docs: http://www.directadmin.com
Process: 812 ExecStart=/usr/local/directadmin/directadmin d (code=exited, sta>
Main PID: 815 (code=exited, status=9)

Nov 17 14:22:48 server.mydomain systemd[1]: Starting DirectAdmin Web Control Pa>
Nov 17 14:22:49 server.mydomain systemd[1]: directadmin.service: Can't open PID>
Nov 17 14:22:49 server.mydomain systemd[1]: Started DirectAdmin Web Control Pan>
Nov 17 14:22:49 server.mydomain systemd[1]: directadmin.service: Main process e>
Nov 17 14:22:49 server.mydomain systemd[1]: directadmin.service: Failed with re>
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~

[root@server ~]# mydomainservice directadmin status
-bash: mydomainservice: command not found
[root@server ~]# service directadmin status
Redirecting to /bin/systemctl status directadmin.service
● directadmin.service - DirectAdmin Web Control Panel
Loaded: loaded (/etc/systemd/system/directadmin.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2020-11-17 14:22:49 +0330; 5h 8min ago
Docs: http://www.directadmin.com
Process: 812 ExecStart=/usr/local/directadmin/directadmin d (code=exited, status=0/SUCCESS)
Main PID: 815 (code=exited, status=9)

Nov 17 14:22:48 server.mydomain systemd[1]: Starting DirectAdmin Web Control Panel...
Nov 17 14:22:49 server.mydomain systemd[1]: directadmin.service: Can't open PID file /run/directadmin.pid (yet?) after start: No such file or directory
Nov 17 14:22:49 server.mydomain systemd[1]: Started DirectAdmin Web Control Panel.
Nov 17 14:22:49 server.mydomain systemd[1]: directadmin.service: Main process exited, code=exited, status=9/n/a
Nov 17 14:22:49 server.mydomain systemd[1]: directadmin.service: Failed with result 'exit-code'.
 
Can you start directadmin normally now?

Code:
service directadmin start

Seems like directadmin gets started too quickly on boot, when your pid-file directory is not yet ready.
 
after update mariadb This problem has occurred.
yes
with :
service directadmin start
start directadmin normally
but
again
after reboote
my access get down
 
Back
Top