Connect. Communicate. Collaborate. Securely.

Home » Kerio User Forums » Kerio Connect » Kerio 8.4.2 Crashing daily with /etc/resolv.conf: error (MacOS 10.8.5 and Kerio Connect 8.4.2 Crashing Daily)
  •  
LeeM

Messages: 2
Karma: 0
Send a private message to this user
Hiya,

The server is running MacOS 10.8.5 and Kerio 8.4.2

Everyday the Server is crashing with the error below.


01:37:21] tcpiphlp.cpp: failed to update DNS servers; failed to open /etc/resolv.conf: (2) No such file or directory
[01/Apr/2015 01:37:21] tcpiphlp.cpp: failed to update DNS servers; failed to open /etc/resolv.conf: (2) No such file or directory
[01/Apr/2015 01:37:21] tcpiphlp.cpp: failed to update DNS servers; failed to open /etc/resolv.conf: (2) No such file or directory
[01/Apr/2015 01:37:21] tcpiphlp.cpp: failed to update DNS servers; failed to open /etc/resolv.conf: (2) No such file or directory
[01/Apr/2015 01:37:21] tcpiphlp.cpp: failed to update DNS servers; failed to open /etc/resolv.conf: (2) No such file or directory
[01/Apr/2015 01:37:21] tcpiphlp.cpp: failed to update DNS servers; failed to open /etc/resolv.conf: (2) No such file or directory
[01/Apr/2015 01:37:21] tcpiphlp.cpp: failed to update DNS servers; failed to open /etc/resolv.conf: (2) No such file or directory
[01/Apr/2015 01:37:21] tcpiphlp.cpp: failed to update DNS servers; failed to open /etc/resolv.conf: (2) No such file or directory

I've checked the symbolic link which seems okay please see below.

lrwxr-xr-x@ 1 root wheel 11 16 Nov 2012 etc -> private/etc
dr-xr-xr-x 2 root wheel 1 1 Apr 06:57 home
-rw-r--r--@ 1 root wheel 8244640 29 Sep 2013 mach_kernel
dr-xr-xr-x 2 root wheel 1 1 Apr 06:57 net
drwxr-xr-x@ 6 root wheel 204 31 Mar 07:23 private
drwxr-xr-x@ 62 root wheel 2108 5 Feb 2014 sbin
lrwxr-xr-x@ 1 root wheel 11 16 Nov 2012 tmp -> private/tmp
drwxr-xr-x@ 12 root wheel 408 5 Feb 2014 usr
lrwxr-xr-x@ 1 root wheel 11 16 Nov 2012 var -> private/var

Thanks
  •  
Lyle M

Messages: 410

Karma: 7
Send a private message to this user
Hi Lee,

Welcome to the Kerio forums.
This error message has been mentioned a couple of times in these forums. I'd recommend searching them out for reference. Once you've confirmed that there's a file or symlink at /etc/resolv.conf, it's likely time to look at your server's DNS settings in System Preferences/Network (the Mac, not Kerio).
-------------
If you need a little help on the resolv.conf file, on a 10.8.5 system, the /etc/resolve.conf symlink points to /var/run/resolv.conf
That file should contain the following:
#
# Mac OS X Notice
#
# This file is not used by the host name and address resolution
# or the DNS query routing mechanisms used by most processes on
# this Mac OS X system.
#
# This file is automatically generated.
#
search (your search domain if you've set one)
nameserver (your dns' IP address)
nameserver (additional dns)
--------------
Make sure you have a proper DNS setup in the Network prefs. Make sure to test it with the usual cadre of tools (Network Utility.app, host, nslookup, etc). Ensure that the DNS itself is configured correctly. If you're using a public DNS, it may be a good idea to try an alternate. Once you're past this problem, there are potential benefits to having your own local DNS, if that's an option for you.

To test my assumption here, I very briefly removed my DNS entries from the Network prefs on my 10.10.2 Connect server and applied the changes. Within seconds, my error log was flooded with:
[02/Apr/2015 11:24:13] tcpiphlp.cpp: failed to update DNS servers; failed to open /etc/resolv.conf: (2) No such file or directory
[02/Apr/2015 11:24:14] Last message repeated 18 times

Adding back the DNS hosts quickly resolved the errors. I don't know if there are other causes for this error, but a bad DNS config is certainly one of them! Yes, I did this on our live server during the workday. I'm just crazy that way.

Best of luck,
Lyle
  •  
LeeM

Messages: 2
Karma: 0
Send a private message to this user
Thank your the responding to my post Lyle and the warm welcome.

I should of mentioned in my earlier post this server has been running with out any problems for over a year until I applied the 8.4.2 update last week.

The info about the symbolic link was from me digging around the forums and finding a post about about the same error, in an earlier version of Kerio 8.2.4 I believe.

I've had more time to a look at the logs today and the server is crashing everyday between 01:37 - 01:48 and just after the backup has completed. So I have just removed my email alert to see if this makes any difference.

The error below only appears in the log after the backup and is repeated 8x before the server crashes.

tcpiphlp.cpp: failed to update DNS servers; failed to open /etc/resolv.conf: (2) No such file or directory

[Updated on: Sat, 04 April 2015 20:14]

  •  
Lyle M

Messages: 410

Karma: 7
Send a private message to this user
Well, that's certainly perplexing!

The last time I tried using the built-in Kerio backup, it was still running well into the workday and had to be stopped. I do a late night clone with carbon copy cloner. It's not ideal, in that any changes that occur during the backup may be out of sync. But, it's better than nothing and finishes in under an hour (the initial backup took about 6 hours).

You could try enabling the store backup debug log to see if the backup is logging anything of use. I'm guessing it's the backup causing the failure and that the DNS related logs are tertiary.

If the logs yield no clues, a followup approach might be to shutdown KC and backup your system via an alternate method (eg. CCC). Once safely backed up, startup KC again and disable the built-in backup to see if KC crashes at the same time. If it doesn't crash, you have a pretty good argument that the KC backup is playing a big role in this (not that you don't already).

Ultimately, I have a feeling you may have to call in one of your two annual support incidents on this.

Sorry I couldn't give you anything conclusive. There's plenty of smart folks on this forum that may also chime in.

Best wishes.
  •  
jcooper

Messages: 61
Karma: 3
Send a private message to this user
I started having a similar error in 8.3 (planning on upgrading in the next couple weeks). Interestingly, this is only happening with one particular client, and the client logs in using POP3 (it's actually a "robot" filemaker database that checks a specific email account then acts on it). The account is a Local User (not directory service), though I use Open Directory for most of my accounts, so the first DNS server is the OD server (which runs a DNS service as well). SSL is off as this account is internal only. Worked fine for ages, only recently having problems. As I mentioned earlier, I haven't upgraded yet, but I did stop and restart the KMS service a week or two ago to change a user's account name.

[24/Jun/2015 12:27:09][4709208064] {pop3s} POP3 server session begin; client connected from xxx.xxx.xxx.xxx:56311
[24/Jun/2015 12:27:09][4709208064] {pop3s} Command: CAPA
[24/Jun/2015 12:27:09][4709208064] {pop3s} Command: AUTH LOGIN
[24/Jun/2015 12:27:09][4709208064] {pop3s} User robotemail<_at_>domain.com logged in
[24/Jun/2015 12:27:09][4709208064] {pop3s} Command: UIDL
[24/Jun/2015 12:27:09][4709208064] {pop3s} Command: LIST
[24/Jun/2015 12:27:09][4709208064] {pop3s} Command: QUIT
[24/Jun/2015 12:27:09][4709208064] {pop3s} Session end
[24/Jun/2015 12:27:09][4709208064] {pop3s} POP3 server session begin; client connected from xxx.xxx.xxx.xxx:56312
[24/Jun/2015 12:27:09][4709208064] {pop3s} Command: CAPA
[24/Jun/2015 12:27:09][4709208064] {pop3s} Command: AUTH LOGIN
[24/Jun/2015 12:27:09][4709208064] {pop3s} User robotemail<_at_>domain.com logged in
[24/Jun/2015 12:27:09][4709208064] {pop3s} Command: UIDL
[24/Jun/2015 12:27:09][4709208064] {pop3s} Command: LIST
[24/Jun/2015 12:27:09][4709208064] {pop3s} Command: RETR 1
[24/Jun/2015 12:29:11][4709208064] {pop3s} POP3 server connection broken (user robotemail<_at_>domain.com from xxx.xxx.xxx.xxx): (2) No such file or directory
[24/Jun/2015 12:29:11][4709208064] {pop3s} Session end

Thanks,

Jeff
  •  
clan

Messages: 224
Karma: 21
Send a private message to this user
The client logs in and sends commands, so there is nothing wrong with authentication or DNS here. It looks like your client tries to retrieve a non-existent message. The results of the UIDL and LIST commands would be helpful. I don't know if there are debug message for this, but the connection being unencrypted a tcpdump would do as well.
  •  
jcooper

Messages: 61
Karma: 3
Send a private message to this user
I looked at the output from tcpdump and my ears started to bleed, so I looked elsewhere. Ran the same program from another machine and it worked fine, so it seems to have been a client-side issue. We're on Mac, so I repaired permissions, restarted, and now it's humming along. Thanks,

Jeff
Previous Topic: Inbox re-sync issue with Kerio 8.5.0 exchange activesync
Next Topic: Access to the Developer Zone
Goto Forum:
  


Disclaimer:
Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Wed Feb 22 07:10:47 CET 2017

Total time taken to generate the page: 0.02373 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.