Urgent: How to fix this FreePBX Repo Access Issue?
-
Dear All,
I have been in the critical situation as the "Admin Modules" can't update the online modules.
This is the error:
"Warning: Cannot connect to online repository(s) (http://mirror1.freepbx.org,http://mirror2.freepbx.org). Online modules are not available."
Kindly assist
-
Check your DNS and connectivity and make sure you can resolve those DNS records.
-
Also look at this:
https://issues.freepbx.org/browse/FREEPBX-16398 -
Well, it doesn't work at all
-
@dbeato I can't find any solution here
-
Start with pinging, can you ping that address?
ping mirror1.freepbx.org
If no, can you resolve it?
nslookup mirror1.freepbx.org
-
@scottalanmiller Thanks for having you here
Here what I have after ping mirror1.freepbx.org
"ping: unknown host mirror1.freepbx.org" -
@jimmy_k said in Urgent: How to fix this issue " Warning: Cannot connect to online repository(s) (http://mirror1.freepbx.org,http://mirror2.freepbx.org). Online modules are not available. "?:
@scottalanmiller Thanks for having you here
Here what I have after ping mirror1.freepbx.org
"ping: unknown host mirror1.freepbx.org"So you cannot resolve it, what are your DNS servers for this system?
-
@jimmy_k said in Urgent: How to fix this issue " Warning: Cannot connect to online repository(s) (http://mirror1.freepbx.org,http://mirror2.freepbx.org). Online modules are not available. "?:
@scottalanmiller Thanks for having you here
Here what I have after ping mirror1.freepbx.org
"ping: unknown host mirror1.freepbx.org"Check the contents of /etc/resolv.conf likely there is no DNS server listed.
-
It's also possible that the system is not plumbed at all, are you connected via SSH or a local console?
-
@scottalanmiller and here is the result
nameserver 127.0.0.1
Generated by NetworkManager
No nameservers found; try putting DNS servers into your
ifcfg files in /etc/sysconfig/network-scripts like so:
DNS1=8.8.8.8
DNS2=8.8.4.4
DOMAIN=lab.foo.com bar.foo.com
-
@scottalanmiller I connected with both
-
@jimmy_k said in Urgent: How to fix this issue " Warning: Cannot connect to online repository(s) (http://mirror1.freepbx.org,http://mirror2.freepbx.org). Online modules are not available. "?:
@scottalanmiller and here is the result
nameserver 127.0.0.1
Generated by NetworkManager
No nameservers found; try putting DNS servers into your
ifcfg files in /etc/sysconfig/network-scripts like so:
DNS1=8.8.8.8
DNS2=8.8.4.4
DOMAIN=lab.foo.com bar.foo.com
Are the DNS on that domain working?
-
@dbeato I am still able to ping those DNS
-
@jimmy_k said in Urgent: How to fix this issue " Warning: Cannot connect to online repository(s) (http://mirror1.freepbx.org,http://mirror2.freepbx.org). Online modules are not available. "?:
@scottalanmiller and here is the result
nameserver 127.0.0.1
Generated by NetworkManager
No nameservers found; try putting DNS servers into your
ifcfg files in /etc/sysconfig/network-scripts like so:
DNS1=8.8.8.8
DNS2=8.8.4.4
DOMAIN=lab.foo.com bar.foo.com
It says right there in that file that it won't work. No Nameservers Found. So you have to modify /etc/sysconfig/network-scripts to put them in. Until then, the system won't have working DNS.
-
@jimmy_k said in Urgent: How to fix this issue " Warning: Cannot connect to online repository(s) (http://mirror1.freepbx.org,http://mirror2.freepbx.org). Online modules are not available. "?:
@dbeato I am still able to ping those DNS
So your network is working, but without DNS entries, it can't find servers.
-
@scottalanmiller I have tried to modify "etc/resolv.conf" as below
nameserver 192.168.1.221 # Generated by NetworkManager # No nameservers found; try putting DNS servers into your # ifcfg files in /etc/sysconfig/network-scripts like so: # # DNS1=8.8.8.8 # DNS2=8.8.4.4 # DOMAIN=lab.foo.com bar.foo.com
& modify this as well
" etc/sysconfig/network-scripts/ifcfg-eth0DEVICE="eth0" BOOTPROTO="static" BROADCAST="192.168.1.255" GATEWAY="192.168.1.1" HWADDR="00:E0:4C:86:40:9A" IPADDR="192.168.1.221" NETMASK="255.255.255.0" # DNS1=8.8.8.8 # DNS2=8.8.4.4 NM_CONTROLLED="yes" ONBOOT="yes" TYPE="Ethernet" UUID="30ddc6a1-0719-4729-b7cf-cc65fa10a038"
then after that I checked
" nslookup mirror 1.freepbx.org "
the result as
"connection time out; try next origin
connection time out; no servers could be reached"How to solve this?
-
Well in both cases, your DNS is commented out. So it is not working, exactly as it is defined. You need to have DNS entries. Uncomment them in your ifcfg-eth0 so that it can put them into resolv.conf. Don't modify resolv.conf itself, let the script do it.
So...
# DNS1=8.8.8.8 # DNS2=8.8.4.4
Needs to be...
DNS1=8.8.8.8 DNS2=8.8.4.4
-
@scottalanmiller it is the same thing. The error is still there
-
@jimmy_k now the message as
" Server: 127.0.0.1
Address: 127.0.0.1#53Server can't find mirror1.freepbx.org: REFUSED