This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Pages: [1]
1
Other modules / Zentyal 7. I can't restart dns, I can't update and the web interface gives 504
« on: August 07, 2024, 06:27:43 am »
Hi guys
my zentyal ad controller went out today. A power outage crippled the server and now I can´t load the web interface and I seem to be unable to get dns (bind9), nginx or samba services restarted.
things I tried
1. tried to restart some services, some I was able to restart, other just simply hang
sudo zs dns restart - hangs indefinetely
sudo systemctl restart - hangs indefinetely
sudo systemctl start zentyal.webadmin-nginx.service worked ok
sudo systemctl start zentyal.webadmin-uwsgi.service worked ok
after issuing the last commands I get a 504 ngnix error when trying to load the page
2. I figure I'd try to update the system but that didn´t help
first of all sudo apt update was not able to connect without dns and for some reason I didn´t have a default gateway but that I was able to resolve by adding the gateway manually with sudo ip route add default via <gateway ip> dev eth0, so I can ping out to an ip address but i haven´t be able to figure out how to get dns working.
I did an sudo apt autoremove -y.. but this process gets stucked at 99% after restarting zentyal module webadmin
3. I read I could try to reconfigure the packages so I did sudo -configure -a but that get's stuck in configuring zentyal-core (7.0.9)...
4. I tried to lookup some info in the logs
- zentyal.log shows nothing that may lead to a resolution.. no error in particular
- syslog shows some error related to samba and dnsupdate_nameupdate_done failed dns update with exit code 1
- software.log says there's an issue connecting to local mysql server through socket /var/run/mysqld/mysql.sock' when processing package zentyal-core, I tried to restart mysql and and that did work as well as this command: mysqlcheck -u root -p$(cat /var/lib/zentyal/conf/zentyal-mysql.passwd) \
--all-databases
5. try sudo dpkg-reconfigure zentyal and the same for bind9 and the command completed with no error
but when I try to do sudo sudo zs dns start it hangs.. and when i try to do sudo systemctl start bind9 it fails with code exited status =1/failure ... failed to start Bind Domain name server
and journalctl -u bind9 shows no entries
6. samba (smbd) appears dead.. and when I try to do sudo systemctl start smbd if failed after sometime (it times out)... checking sudo journalctl -u smbd says failed to start samba smb daemon but nothing that would tell me why.
I tried to check samba with samba-tool dbcheck -cross-ncs and --fix and all appears good but if I check if the service is up and running with sudo systemctl start smbd It fails and I get a message that smbd.service is masked as the reason. I tried to unmask it but still not able to get the service up and running again.
I looked at var/log/zentyal/zentyal.log and I get something that says
'ldap.::safeconnect - fatal : could not connect to samba ldap server connect permission denied at /usr/share/perl5/ebox ldap.pm line 219, found this post https://forum.zentyal.org/index.php?topic=35172.0
, I did as suggested but I can't still start bing9 or samba
Any help or guidance would be greatly apprciated it
my zentyal ad controller went out today. A power outage crippled the server and now I can´t load the web interface and I seem to be unable to get dns (bind9), nginx or samba services restarted.
things I tried
1. tried to restart some services, some I was able to restart, other just simply hang
sudo zs dns restart - hangs indefinetely
sudo systemctl restart - hangs indefinetely
sudo systemctl start zentyal.webadmin-nginx.service worked ok
sudo systemctl start zentyal.webadmin-uwsgi.service worked ok
after issuing the last commands I get a 504 ngnix error when trying to load the page
2. I figure I'd try to update the system but that didn´t help
first of all sudo apt update was not able to connect without dns and for some reason I didn´t have a default gateway but that I was able to resolve by adding the gateway manually with sudo ip route add default via <gateway ip> dev eth0, so I can ping out to an ip address but i haven´t be able to figure out how to get dns working.
I did an sudo apt autoremove -y.. but this process gets stucked at 99% after restarting zentyal module webadmin
3. I read I could try to reconfigure the packages so I did sudo -configure -a but that get's stuck in configuring zentyal-core (7.0.9)...
4. I tried to lookup some info in the logs
- zentyal.log shows nothing that may lead to a resolution.. no error in particular
- syslog shows some error related to samba and dnsupdate_nameupdate_done failed dns update with exit code 1
- software.log says there's an issue connecting to local mysql server through socket /var/run/mysqld/mysql.sock' when processing package zentyal-core, I tried to restart mysql and and that did work as well as this command: mysqlcheck -u root -p$(cat /var/lib/zentyal/conf/zentyal-mysql.passwd) \
--all-databases
5. try sudo dpkg-reconfigure zentyal and the same for bind9 and the command completed with no error
but when I try to do sudo sudo zs dns start it hangs.. and when i try to do sudo systemctl start bind9 it fails with code exited status =1/failure ... failed to start Bind Domain name server
and journalctl -u bind9 shows no entries
6. samba (smbd) appears dead.. and when I try to do sudo systemctl start smbd if failed after sometime (it times out)... checking sudo journalctl -u smbd says failed to start samba smb daemon but nothing that would tell me why.
I tried to check samba with samba-tool dbcheck -cross-ncs and --fix and all appears good but if I check if the service is up and running with sudo systemctl start smbd It fails and I get a message that smbd.service is masked as the reason. I tried to unmask it but still not able to get the service up and running again.
I looked at var/log/zentyal/zentyal.log and I get something that says
'ldap.::safeconnect - fatal : could not connect to samba ldap server connect permission denied at /usr/share/perl5/ebox ldap.pm line 219, found this post https://forum.zentyal.org/index.php?topic=35172.0
, I did as suggested but I can't still start bing9 or samba
Any help or guidance would be greatly apprciated it
2
Installation and Upgrades / Unable to perform config backup:Error: mysqldump: couldn't execute FLUSH TABLES
« on: February 11, 2023, 10:49:14 pm »
Hi guys
I'm on version 7
I was trying to do a backup of recent config changes but I get an error pretty much indicating something like
'...mysqldump: couldn't execute 'FLUSH TABLES': Access Denied, you need at least the RELOAD or FLUSH_TABLES priviledge(s) for this operation... Exit Value 2'
I found this article https://mysqldump.guru/mysqldump-couldnt-execute-flush-tables-access-denied.html that seems to point out the problem and solution, but I'm unsure how to do this from the command line as I don't want to break anything.
any guidance on what command will take care of this will be greatly appreciated.
Cheers.
I'm on version 7
I was trying to do a backup of recent config changes but I get an error pretty much indicating something like
'...mysqldump: couldn't execute 'FLUSH TABLES': Access Denied, you need at least the RELOAD or FLUSH_TABLES priviledge(s) for this operation... Exit Value 2'
I found this article https://mysqldump.guru/mysqldump-couldnt-execute-flush-tables-access-denied.html that seems to point out the problem and solution, but I'm unsure how to do this from the command line as I don't want to break anything.
any guidance on what command will take care of this will be greatly appreciated.
Cheers.
Pages: [1]