Fop2 does not see the internet.

  1. ‹ Older
  2. 7 years ago

    admin

    28 Dec 2016 Administrator

    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.

  3. [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)
    
  4. admin

    29 Dec 2016 Administrator

    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,

  5. Yes, enabled debug in fop2/admin/config.php helps me in my problem with manager.

  6. Happy New Year everyone!!! I wish you all happiness health and luck!
    About the problem:
    I turned on debug in config.php
    Where is this log location?
    System log and fop2_debug.log are clean

  7. Happy New Year! You will see the debug on a web page you see. After changing config.php (admin/config.php), refresh you admin web page. You will see debug on it.

  8. Edited 7 years ago by bazoozoo

    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

  9. Edited 7 years ago by AlexRS

    Its strange.. Do you change admin/config, not ./config? As I know, the license is stored in file in /usr/local/fop2 directory and bound to you NIC mac-address. Try to backup it before rebuild. By mysqldump, for example. Or wait @admin answer=)

  10. @AlexRS Its strange.. Do you change admin/config, not ./config?

    Yes, i changed. And when i drop table fop2buttons i seen debug, but no debug on plugins page.

  11. Well..... After i kill all fop2 table in asterisk mysql, i came back to start point. For now-everithing work like in topic start.

  12. [root@pbx fop2_backup]# telnet www.fop2.com
    Trying 104.236.110.4...
    telnet: connect to address 104.236.110.4: Connection refused
  13. 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.

  14. Edited 7 years ago by bazoozoo
    [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.

  15. Another problem.
    BNeacose of this problem, mini browser do not see internet too :-((

  16. admin

    2 Jan 2017 Administrator

    it is not the same problem. Mini browser performs a request from YOUR BROWSER, the FOP2 Manager performs a request from the server.

    You should really check your DNS/Internet connection.

  17. admin

    2 Jan 2017 Administrator

    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.

  18. 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 80

    I can try to solve you network issue if @admin is not against.

  19. @admin You should really check your default gateway configuration

    Checked so many times... works everything but fop2 repo.

    @admin 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...

  20. Thank you all very much!

  21. @bazoozoo [code][root@pbx fop2_backup]# telnet www.fop2.com
    Trying 104.236.110.4...
    telnet: connect to address 104.236.110.4: Connection refused[/code]

    Strange. This means you server resolved www.fop2.com to 104.236.110.4 and tryed to connect to it.
    In this case DNS works perfectly.
    If all works now, good luck!)

or Sign Up to reply!