Fop2 does not see the internet.
-
Type this:
sestatus
Do you have selinux enabled or disabled? Try disabling it if you have it enabled:
setenforce 0
Then restart your web server:
service httpd restart
Then try again.
Another issue could be that your server does not have correct DNS resolvers configured, try
ping www.fop2.com
Does that work/resolve?
Best regards,
-
[root@pbx ~]# sestatus
SELinux status: disabled
In topic start i already ping fop2.com
One more time:
[root@pbx ~]# ping www.fop2.com
PING www.fop2.com (104.236.110.4) 56(84) bytes of data.
64 bytes from 104.236.110.4: icmp_seq=1 ttl=54 time=178 ms
64 bytes from 104.236.110.4: icmp_seq=2 ttl=54 time=178 ms
^C
--- www.fop2.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1562ms
rtt min/avg/max/mdev = 178.186/178.499/178.813/0.526 ms -
the plugin list is retrieved using http (port 80) to an available fop2 mirror using file_get_content in php.. you can check the source if you want. You can enable debug in config.php, that might give you additional warnings or errors that could indicate where the problem is.
-
[root@pbx ~]# tail -f /var/log/fop2_debug.log 127.0.0.1 <- Response: Success 127.0.0.1 <- Ping: Pong 127.0.0.1 <- Timestamp: 1482980170.559504 -- TIMER asterisk_ami_connect and async config check Set doing hup to zero ** Asterisk Manager logged in localhost for 198 seconds (Thu Dec 29 10:56:13 2016) -- TIMER asterisk_ami_connect and async config check Set doing hup to zero ** Asterisk Manager logged in localhost for 201 seconds (Thu Dec 29 10:56:16 2016) New client connection from socket AnyEvent::Handle=HASH(0x9fec420) - 127.0.0.1:57102 Flash clients connected: 1 -------------------------------------------------------------------------------------------------- Client 127.0.0.1:57102, user: no user, type: no type -------------------------------------------------------------------------------------------------- Total: 1, Websocket: 0, XMLSocket: 0, Other: 1. Double logins: 0 -------------------------------------------------------------------------------------------------- 127.0.0.1:57102 <= <msg data="GENERAL|version|0|0" /> -- PROCESS_FLASH_COMMAND origen GENERAL accion version destino 0 password 0 Client Disconnection - remove client on error from socket AnyEvent::Handle=HASH(0x9fec420) (127.0.0.1:57102) New client connection from socket AnyEvent::Handle=HASH(0x950d330) - 127.0.0.1:57106 Flash clients connected: 1 -------------------------------------------------------------------------------------------------- Client 127.0.0.1:57106, user: no user, type: no type -------------------------------------------------------------------------------------------------- Total: 1, Websocket: 0, XMLSocket: 0, Other: 1. Double logins: 0 -------------------------------------------------------------------------------------------------- 127.0.0.1:57106 <= <msg data="GENERAL|plugins|0|0" /> -- PROCESS_FLASH_COMMAND origen GENERAL accion plugins destino 0 password 0 Client Disconnection - remove client on error from socket AnyEvent::Handle=HASH(0x950d330) (127.0.0.1:57106) -
a fop2 server debug won't help in this case. Your problem is NOT in FOP2 (the switchboard). Your problem is with the FOP2 Manager that is a simple php application, and separate from FOP2 server itself.
You must look at php logs, you can enable debug in config.php and you will see debugging warnings and errors on screen. You can also inspect your web server error log file as it might be logging php errors or similar there.
Do not look at fop2 server debug logs, not even at the javascript console debug when you connect to the switchboard, as it has nothing to do with the fop2 manager plugins page unable to reach www.fop2.com via port 80.
Best regards,
-
-
-
-
No debug messages((((
But!!! I understud why repo stop working! It is beacose a change database character set to utf-8.
When i drop table fop2buutons, fop2 rebuild it and everething now working.
But now, i want to rebuild all fop2 tables.... and i am a fraid to lost liscense -
-
-
-
-
Well, Fellows, finally, i have found the root of problem.
The server has 2 ethernet adapters. One of them (eth0) looks to internal network and has NAT to internet. Second one (eth1) - looks into sip provider network.
Well, when i turn off "SipProvider" adapter (eth1), the fop2 start see internet and i can install and delete plugins.
I have no idea, why this work like that and how to fix it. -
[root@pbx ~]# route add -net 104.236.110.4 netmask 255.255.255.254 gw 192.168.111.111 dev eth0 [root@pbx ~]# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 104.236.110.4 192.168.111.111 255.255.255.254 UG 0 0 0 eth0 ...Static route does not helping.
-
-
-
About the two nics you have, well, it is a networking issue on your site. You should really check your default gateway configuration, as it seems is not correctly defined? You should check that the default gateway is the "internet" nic, and not the sip provider nic.
-
As I see from telnet, you DNS works perfectly. Do you use firewall? Is set default gate on you NIC configuration? Use /32 mask for you route (255.255.255.255).
Yes, try telnet to 80 port. I think, telnet port on fop2.com will not answer.
telnet www.fop2.com 80I can try to solve you network issue if @admin is not against.
-
12736:@admin escribi贸:
You should really check your default gateway configuration
Checked so many times... works everything but fop2 repo.
12735:@admin escribi贸:
You should really check your DNS/Internet connection.
It looks like problem was realy in DNS. When i opened dns settings i saw this:
SIP Provider DNS server (172......)
Internal DNS (192.168.5.200)
Google public dns (8.8.8.8)
And it's strange, because i have tuned it like that:
127.0.0.1
SIP Provider DNS server (172......)
Internal DNS (192.168.5.200)
Google public dns (8.8.8.8)
Why disappear 127.0.0.1 - mistery....
Well, for now - everything loks like work normal...
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 馃挆
Register Login