Zentyal Forum, Linux Small Business Server
Zentyal Server => Email and Groupware => Topic started by: gofast321 on December 23, 2016, 04:10:49 pm
-
Running 5.0.1 development
Is anyone else having an issue with the mail log? I have been sending and receiving mail but the mail log never populates. I can see the records in /var/log/mail.log but the report in Zentyal never populates.
Chad
-
Would you :
open a command line and become root
sudo su
We are going to go poking around in mysql looking for information.
mysql -e 'select * from mail_message' zentyal
Copy and paste any response including errors if any. Post them here. The command simply looks to see if the table that receives that data is populating.
-
Thanks for the help. Select statement came back blank...
root@wis1:/home/gofast321# mysql -e 'select * from mail_message' zentyal
root@wis1:/home/gofast321#
-
The fact that the table exists means that the init scripts ran for mail. Chances are a cold restart will clear this issue up. Have you restarted the system since noticing the isssue?
-
Yeah, I have restarted a few times but no success.
-
Is this a vm or a physical machine? I am thinking that disabling and then re-enabling the mail module should do the trick. If not then doing the same to the log module would be the next things I try. If this is a vm I would start with either a backup or a snapshot (depending on the technology employed).
-
One more question, are errors showing up in /var/log/zentyal/zentyal.log ? Maybe there is a clue there.
-
Those are all good thoughts. I have tried disabling and re-enabling both the mail module and the logs module but neither worked. I have noticed that none of the logs are actually working. I reviewed the zentyal.log and there are no errors.
I think if no one else has bumped into this issue the only solution left is a reinstall.
-
You say that no logs are working? Is the zentyal mysql password correct? Look in
/var/lib/zentyal/conf/zentyal-mysql.passwd
Run
mysql -u zentyal -p
When it prompts you provide the password from the file above. Database access is a common thread between all of the zentyal logging.
-
The mysql password is correct. It lets me in. However, I did check the tables in the "zentyal" database and they are all empty.
Is there a process that populates the tables in the DB from the log files?
Thanks.
-
I believe what you are looking for is zentyal.loggerd.service.
-
We haven't found any way to reproduce this behavior, mail logs are working for us in all our test scenarios. If anyone finds a way to reproduce it, please open a issue in tracker.zentyal.org with all the detailed steps to follow. Thanks!
-
I am assuming that you probably have pulled the trigger on a re-install given your silence on this subject. Hopefully things are working now for you.