Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Quagga OSPF installation hanging…

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    16 Posts 6 Posters 4.0k Views
    Loading More Posts
    • 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.
    • O
      oben
      last edited by

      I stripped all my packages on an upgrade from 2.2.6 to 2.3

      I reinstalled packages and found that Quagga hangs at install with:

      Installing pfSense-pkg-Quagga_OSPF…
      Updating pfSense-core repository catalogue...
      pfSense-core repository is up-to-date.
      Updating pfSense repository catalogue...
      pfSense repository is up-to-date.
      All repositories are up-to-date.
      The following 2 package(s) will be affected (of 0 checked):

      New packages to be INSTALLED:
      pfSense-pkg-Quagga_OSPF: 0.6.12.1_4 [pfSense]
      quagga: 1.0.20160315 [pfSense]

      The process will require 7 MiB more space.
      1 MiB to be downloaded.
      Fetching pfSense-pkg-Quagga_OSPF-0.6.12.1_4.txz: .. done
      Fetching quagga-1.0.20160315.txz: …....... done
      Checking integrity... done (0 conflicting)
      [1/2] Installing quagga-1.0.20160315…
      ===> Creating users and/or groups.
      Using existing group 'quagga'.
      Using existing user 'quagga'.
      [1/2] Extracting quagga-1.0.20160315: …....... done
      [2/2] Installing pfSense-pkg-Quagga_OSPF-0.6.12.1_4…
      [2/2] Extracting pfSense-pkg-Quagga_OSPF-0.6.12.1_4: …....... done
      Saving updated package information...
      done.
      Loading package configuration... done.
      Configuring package components...
      Loading package instructions...
      Custom commands...
      Executing custom_php_resync_config_command()...

      On reboot Quagga causes the pacakge startup to hang on the console and the console menu never comes up again until one reboots and during the shutdown sequence something terminates leading to the console menu printing suddenly and then reboot happens.

      I think some process in Quagga is not going into the background.

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Full install or NanoBSD?

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • E
          est
          last edited by

          Same Problem. ..

          • New installation
          • Quagga Service works.
          • Message Output …Quagga Service started.. . not visible
          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            @est:

            Same Problem. ..

            • New installation
            • Quagga Service works.
            • Message Output …Quagga Service started.. . not visible

            @jimp:

            Full install or NanoBSD?

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • E
              est
              last edited by

              Full installation

              1 Reply Last reply Reply Quote 0
              • S
                SkyNET
                last edited by

                Same problem here upgrading from the latest pfSense version to 2.3 (full install).
                Only Quagga_Zebra runs, but OSPFd will not start. No logging in the System Log about Quagga.
                During a clean install the screen hangs/sits at "Executing custom_php_resync_config_command()…" and there is no progress.

                On a different system i run a i386 install, and there the upgrade went smooth.
                That system suffered from "forgetting" every SNORT setting.. but that's a different story, and an easy fix..  :-X

                Hope this helps..

                1 Reply Last reply Reply Quote 0
                • S
                  SkyNET
                  last edited by

                  While the install was still running, and hanging on the "Executing custom_php_resync_config_command()…" message, I logged in to the WUI.
                  There under Services I pressed Start on Quagga_OSPFd to see what would happen, get a message like "nothing to do" on the screen attached to the pfSense machine, and the install process continued to the next package install..

                  Only output I can read on the screen at this moment is

                  defaultrouter="NO"
                  quagga_enable="YES"

                  "Also, you may wish to set the following options:
                  Quagga_deamons="zebra bgpd etc"
                  quagga_flags="...."
                  quagga_extralibs_path="... ..."
                  router_enable="NO"
                  watchquagga_enable"YES"

                  Noting to do..
                  Starting syslog...done
                  Starting CRON... done
                  and so on..

                  1 Reply Last reply Reply Quote 0
                  • BBcan177B
                    BBcan177 Moderator
                    last edited by

                    @SkyNET:

                    On a different system i run a i386 install, and there the upgrade went smooth.
                    That system suffered from "forgetting" every SNORT setting.. but that's a different story, and an easy fix..  :-X

                    For Snort/Suricata, there is a "Checkbox" in Global Settings, to "Keep Snort Settings After Deinstall"… That needs to be enabled, or it will clear out your settings...

                    "Experience is something you don't get until just after you need it."

                    Website: http://pfBlockerNG.com
                    Twitter: @BBcan177  #pfBlockerNG
                    Reddit: https://www.reddit.com/r/pfBlockerNG/new/

                    1 Reply Last reply Reply Quote 0
                    • jimpJ
                      jimp Rebel Alliance Developer Netgate
                      last edited by

                      Anyone hitting this, can you share the quagga settings section from your config.xml? You can send it via PM if you wish to do so privately, or mask out any password/IP addresses/etc.

                      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                      Need help fast? Netgate Global Support!

                      Do not Chat/PM for help!

                      1 Reply Last reply Reply Quote 0
                      • S
                        SkyNET
                        last edited by

                        Successfully upgraded system 3 (amd64 - full install).

                        I will do a compare from all of the system-config files and post the differences, if I spot any.
                        On the system1, I successfully removed the Quagga package. Installing it again did not help. Lets see if there are any "left-overs" of quagga in the config..

                        Will post my results shortly.

                        1 Reply Last reply Reply Quote 0
                        • M
                          mph
                          last edited by

                          I have the same problem on all of my systems (8 routers)
                          Also, qugga ospf is working incorrectly. Route table doesn't update with actions on  ospf, only on start. For example, i had stopped the ospf demon, but route tables hasn't changed.

                          I think, the problems has the same root.

                          PS. sorry for my english

                          1 Reply Last reply Reply Quote 0
                          • M
                            mph
                            last edited by

                            @jimp:

                            Anyone hitting this, can you share the quagga settings section from your config.xml? You can send it via PM if you wish to do so privately, or mask out any password/IP addresses/etc.

                            
                            	 <installedpackages><package><name>Open-VM-Tools</name>
                            
                            			<website>http://open-vm-tools.sourceforge.net/</website>
                            			<version>1280544.13_2</version>
                            			<pkginfolink>https://doc.pfsense.org/index.php/Open_VM_Tools_package</pkginfolink>
                            			<configurationfile>open-vm-tools.xml</configurationfile></package> 
                            		 <package><name>Quagga OSPF</name>
                            			<internal_name>Quagga_OSPF</internal_name>
                            			 <descr><strong>WARNING! Installs files to the same place as OpenBGPD. Installing both will break things.</strong>]]></descr>
                            			<version>0.6.12.1_4</version>
                            			<configurationfile>quagga_ospfd.xml</configurationfile></package> 
                            		 <service><name>vmware-guestd</name>
                            			<rcfile>vmware-guestd.sh</rcfile>
                            			<executable>vmtoolsd</executable></service> 
                            		 <tab><text>Global Settings</text>
                            			<url>pkg_edit.php?xml=quagga_ospfd.xml&id=0</url>
                            			 <active></active></tab> 
                            		 <quaggaospfdinterfaces><config><interface>wan</interface>
                            				 <networktype><metric><interfacearea><descr><passive>on</passive>
                            				 <acceptfilter><md5password><password><routerpriorityelections><hellointervalinseconds><retransmitinterval><deadtimer></deadtimer></retransmitinterval></hellointervalinseconds></routerpriorityelections></password></md5password></acceptfilter></descr></interfacearea></metric></networktype></config> 
                            			 <config><interface>ovpns1</interface>
                            				 <networktype><metric><interfacearea><descr><passive><acceptfilter><md5password><password><routerpriorityelections><hellointervalinseconds><retransmitinterval><deadtimer></deadtimer></retransmitinterval></hellointervalinseconds></routerpriorityelections></password></md5password></acceptfilter></passive></descr></interfacearea></metric></networktype></config> 
                            			 <config><interface>ovpns2</interface>
                            				 <networktype><metric><interfacearea><descr><passive><acceptfilter><md5password><password><routerpriorityelections><hellointervalinseconds><retransmitinterval><deadtimer></deadtimer></retransmitinterval></hellointervalinseconds></routerpriorityelections></password></md5password></acceptfilter></passive></descr></interfacearea></metric></networktype></config> 
                            			 <config><interface>ovpns3</interface>
                            				 <networktype><metric><interfacearea><descr><passive><acceptfilter><md5password><password><routerpriorityelections><hellointervalinseconds><retransmitinterval><deadtimer></deadtimer></retransmitinterval></hellointervalinseconds></routerpriorityelections></password></md5password></acceptfilter></passive></descr></interfacearea></metric></networktype></config> 
                            			 <config><interface>ovpns4</interface>
                            				 <networktype><metric><interfacearea><descr><passive><acceptfilter><md5password><password><routerpriorityelections><hellointervalinseconds><retransmitinterval><deadtimer></deadtimer></retransmitinterval></hellointervalinseconds></routerpriorityelections></password></md5password></acceptfilter></passive></descr></interfacearea></metric></networktype></config> 
                            			 <config><interface>ovpns5</interface>
                            				 <networktype><metric><interfacearea><descr><passive><acceptfilter><md5password><password><routerpriorityelections><hellointervalinseconds><retransmitinterval><deadtimer></deadtimer></retransmitinterval></hellointervalinseconds></routerpriorityelections></password></md5password></acceptfilter></passive></descr></interfacearea></metric></networktype></config> 
                            			 <config><interface>ovpns6</interface>
                            				 <networktype><metric><interfacearea><descr><passive><acceptfilter><md5password><password><routerpriorityelections><hellointervalinseconds><retransmitinterval><deadtimer></deadtimer></retransmitinterval></hellointervalinseconds></routerpriorityelections></password></md5password></acceptfilter></passive></descr></interfacearea></metric></networktype></config> 
                            			 <config><interface>ovpns7</interface>
                            				 <networktype><metric><interfacearea><descr><passive><acceptfilter><md5password><password><routerpriorityelections><hellointervalinseconds><retransmitinterval><deadtimer></deadtimer></retransmitinterval></hellointervalinseconds></routerpriorityelections></password></md5password></acceptfilter></passive></descr></interfacearea></metric></networktype></config></quaggaospfdinterfaces> 
                            		 <quaggaospfd><config><password>zebra</password>
                            				 <logging><adjacencylog><routerid><area>0.0.0.0
                            				 <updatefib><redistributeconnectedsubnets><redistributedefaultroute><redistributestatic><redistributekernel><spfholdtime><spfdelay><rfc1583><row><routevalue><routearea></routearea></routevalue></row> 
                            				<carpstatusvid>none</carpstatusvid></rfc1583></spfdelay></spfholdtime></redistributekernel></redistributestatic></redistributedefaultroute></redistributeconnectedsubnets></updatefib></routerid></adjacencylog></logging></config></quaggaospfd></installedpackages> 
                            
                            1 Reply Last reply Reply Quote 0
                            • S
                              SkyNET
                              last edited by

                              Got OSPFd running again..

                              Removed Quagga_OSPF from packages.. hangs.. rebooted..
                              Package shows up under Services.. At status it shows "OSPF appears not to be running".

                              Checked if all interfaces are correct. Set "Network Type" for each interface. Broadcast/point-to-point.
                              Somehow some interface got binded to the WAN interface.
                              Hit Save. Then I got an "504 Gateway Time-out" message of nginx.

                              In a second browser tab I noticed that OSPFd is now running. Under status I see all the OSPF neighbors I should see.
                              Restarted OSPFd via Services and noticed that the SPF algorithm was newly executed.

                              So conclusion.. check interfaces, or remove all interfaces from OSPF and configure them again.

                              System log regarding nginx

                              nginx: 2016/04/18 14:10:41 [error] 46201#0: *103 upstream timed out (60: Operation timed out) while reading response header from upstream, client: 10.x.y.z, server: , request: "POST /pkg_edit.php?xml=quagga_ospfd_interfaces.xml&act=edit&id=3 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.socket", host: "10.x.x.x", referrer: "https://10.x.x.x/pkg_edit.php?xml=quagga_ospfd_interfaces.xml&act=edit&id=3"

                              1 Reply Last reply Reply Quote 0
                              • jimpJ
                                jimp Rebel Alliance Developer Netgate
                                last edited by

                                OK I was able to reproduce this using that config section above. I'm preparing a fix, but it might need a local fix in your quagga settings if it seems to be stuck there.

                                If you run this command you'll see the actual problem:

                                /usr/local/etc/rc.d/quagga.sh restart
                                

                                Run that from a shell prompt, NOT the GUI Diagnostics > Command prompt.

                                In the above case, at least on my VM, it was a blank/empty interface. Fixing the interfaces allowed it to function.

                                I'm adding two things to prevent it from being a problem in the future:
                                1. A check to ensure blank interfaces don't make it into the Quagga config
                                2. Using mwexec_bg rather than mwexec on the calls to (re)start the service so that it can't hang up the PHP process in the GUI.

                                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                Need help fast? Netgate Global Support!

                                Do not Chat/PM for help!

                                1 Reply Last reply Reply Quote 0
                                • jimpJ
                                  jimp Rebel Alliance Developer Netgate
                                  last edited by

                                  New version pushed, it should be up within ~30m.

                                  Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                  Need help fast? Netgate Global Support!

                                  Do not Chat/PM for help!

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    SkyNET
                                    last edited by

                                    Just performed the updated.. OSPF still working great.
                                    Thanks for the effort jimp!

                                    1 Reply Last reply Reply Quote 0
                                    • First post
                                      Last post
                                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.