Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

FOP2 Community Forum

  1. Home
  2. Support
  3. Fop2 does not see the internet.

Fop2 does not see the internet.

Scheduled Pinned Locked Moved Support
30 Posts 3 Posters 463 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N
    N
    nicolas
    wrote on last edited by
    #9

    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,

    1 Reply Last reply
    0
    • B
      B
      bazoozoo
      wrote on last edited by
      #10

      [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

      1 Reply Last reply
      0
      • N
        N
        nicolas
        wrote on last edited by
        #11

        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.

        1 Reply Last reply
        0
        • B
          B
          bazoozoo
          wrote on last edited by
          #12
          [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)
          
          
          1 Reply Last reply
          0
          • N
            N
            nicolas
            wrote on last edited by
            #13

            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,

            1 Reply Last reply
            0
            • A
              A
              AlexRS
              wrote on last edited by
              #14

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

              1 Reply Last reply
              0
              • B
                B
                bazoozoo
                wrote on last edited by
                #15

                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

                1 Reply Last reply
                0
                • A
                  A
                  AlexRS
                  wrote on last edited by
                  #16

                  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.

                  1 Reply Last reply
                  0
                  • B
                    B
                    bazoozoo
                    wrote on last edited by
                    #17

                    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

                    1 Reply Last reply
                    0
                    • A
                      A
                      AlexRS
                      wrote on last edited by
                      #18

                      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=)

                      1 Reply Last reply
                      0
                      • B
                        B
                        bazoozoo
                        wrote on last edited by
                        #19

                        12727:@AlexRS escribi贸:

                        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.

                        1 Reply Last reply
                        0
                        • B
                          B
                          bazoozoo
                          wrote on last edited by
                          #20

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

                          1 Reply Last reply
                          0
                          • B
                            B
                            bazoozoo
                            wrote on last edited by
                            #21
                            [root@pbx fop2_backup]# telnet www.fop2.com
                            Trying 104.236.110.4...
                            telnet: connect to address 104.236.110.4: Connection refused
                            
                            1 Reply Last reply
                            0
                            • B
                              B
                              bazoozoo
                              wrote on last edited by
                              #22

                              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.

                              1 Reply Last reply
                              0
                              • B
                                B
                                bazoozoo
                                wrote on last edited by
                                #23
                                [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.

                                1 Reply Last reply
                                0
                                • B
                                  B
                                  bazoozoo
                                  wrote on last edited by
                                  #24

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

                                  1 Reply Last reply
                                  0
                                  • N
                                    N
                                    nicolas
                                    wrote on last edited by
                                    #25

                                    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.

                                    1 Reply Last reply
                                    0
                                    • N
                                      N
                                      nicolas
                                      wrote on last edited by
                                      #26

                                      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.

                                      1 Reply Last reply
                                      0
                                      • A
                                        A
                                        AlexRS
                                        wrote on last edited by
                                        #27

                                        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.

                                        1 Reply Last reply
                                        0
                                        • B
                                          B
                                          bazoozoo
                                          wrote on last edited by
                                          #28

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

                                          1 Reply Last reply
                                          0

                                          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
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          Powered by NodeBB Contributors
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups