Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
FreePBX (CentOS 7) is crashing every 15-60 minutes on AWS EC2 instance.
Here's what I have in /var/log/messages (the sigint is where I rebooted it):
Code:
Sep 16 09:21:11 freepbx dnsmasq[599]: reading /etc/resolv.conf
Sep 16 09:21:11 freepbx dnsmasq[599]: using nameserver 172.31.0.2#53
Sep 16 09:21:11 freepbx avahi-daemon[600]: Withdrawing address record for 172.31.20.124 on eth0.
Sep 16 09:21:11 freepbx avahi-daemon[600]: Leaving mDNS multicast group on interface eth0.IPv4 with address 172.31.20.124.
Sep 16 09:21:11 freepbx avahi-daemon[600]: Interface eth0.IPv4 no longer relevant for mDNS.
Sep 16 09:30:18 freepbx auditd[577]: Audit daemon rotating log files
Sep 16 09:39:18 freepbx systemd-logind: Removed session 57.
Sep 16 11:24:44 freepbx systemd: Received SIGINT.
It seems like its shutting down eth0, I don't have any web or ssh access when it does that. However if I get an instance screenshot it shows its at the login prompt, so it seems like the server is fine, it just doesn't have network connectivity any more.
I ran:
Code:
sar -u 2 5000
and notice there was a CPU spike, but only to 38%, right before I lost connection.
I contacted FreePBX and they blamed the problem on AWS, I contacted AWS and as you can guess they blamed the problem on FreePBX.
Thanks in advance.
Update: An AWS engineer responded as follows:
Quote:
As the issue was with the private IP being released (at-least appears in messages), we checked the DHCP server of the instance to see if the DHCP client of the instance is sending the DHCPRequest or not. Based on the investigation and logs, I can confirm that the DHCP client of the instance ##### is requesting the private IP 172.xxx.xxx.xxx of the instance via DHCPRequest and get the renewal successfully via DHCPAck. Having said that, it appears that the IP address is not being removed, it just that avahi detected that the IP address has been removed, and is changing its internal state in response and we need to look further.
[root@voip6 ~]# date
Tue Sep 19 21:43:33 CDT 2017
[root@voip6 ~]# date
Tue Sep 19 16:43:35 CDT 2017
This is as its booting up (I just happened to do it quickly), some how its pulling the UTC time, but putting CDT for the time zone. I have rdate set to run by a cron at midnight, however its running when the server reboots (because crond is restarting), but after it gets the first dhcp lease. rdate then resets the clock back 5 hours, but then it loses network connectivity before renewing the dhcp lease and needs to be restart.
So the question is why is it putting the current UTC time with the CDT timezone?
I do not believe this is the issue because the DHCP server only hands out DHCP addresses it doesn't control network access. At some point the server will ask the client or the client will inform the server that the lease is still needed. This usually happens long before the lease has expired. Maybe this isn't happening or the request isn't getting to the system.
Sangoma7 FreePBX in Amazon AWS EC2 Losing Network Connectivity when Timezone changes
abefroman, I'm having this exact issue. I'm running the FreePBX distro (Sangoma 7). with FreePBX 14.0.1.14 and Asterisk 14.6.2-1.sng7, inside an Amazon EC2 Instance via an AMI image i uploaded.
Did you resolve this?
It only happens when I change the timezone from UTC to New_York. (server is rebooted after changing timezone). Doesn't matter if I change timezone from command line or via the FreePBX GUI the system loses connectivity within 15 to 60 minutes until I reboot.
Problem occurs with this configuration:
[root@freepbx ~]# ls -l /etc/localtime
lrwxrwxrwx 1 root root 36 Oct 19 15:31 /etc/localtime -> /usr/share/zoneinfo/America/New_York
[root@freepbx ~]#
Problem does not occur with this configuration:
[root@freepbx ~]#
[root@freepbx]# ls -la /etc/localtime
lrwxrwxrwx. 1 root root 25 Oct 12 18:35 /etc/localtime -> ../usr/share/zoneinfo/UTC
[root@freepbx]#
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.