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

    Lost packages after restart

    Scheduled Pinned Locked Moved pfSense Packages
    19 Posts 4 Posters 6.8k 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.
    • M
      morbus
      last edited by

      Snort was fine this time however Dashboard produced the folowing

      Jul 12 08:28:19 pfwall1 php: : Resyncing configuration for all packages.
      Jul 12 08:28:19 pfwall1 php: : XML error: not well-formed (invalid token) at line 1
      Jul 12 08:28:19 pfwall1 php: : Could not locate dashboard.inc.
      Jul 12 08:28:20 pfwall1 php: : Beginning package installation for Dashboard.
      Jul 12 08:28:31 pfwall1 dnsmasq[549]: reading /var/dhcpd/var/db/dhcpd.leases
      Jul 12 08:28:28 pfwall1 php: : Beginning package installation for Dashboard.

      I rebooted twice and it did the same again. It also appears to install dashboard once and then do it again?
      I have had problems where I will end up with 2 instances of snort because of the reinstall. reinstalling the package fixes this.

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

        morbus, make sure you are on the latest snapshot.

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

          I am on 1.2b2 from the cd iso at the moment. I will put a snapshot on tomorrow give it another go and let you know

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

            Well after upgrading to 1.2-BETA-2-TESTING-SNAPSHOT-07-05-2007 it is still double installing the Dashboard package.

            Jul 13 08:44:05 pfwall2 php: : Resyncing configuration for all packages.
            Jul 13 08:44:05 pfwall2 php: : XML error: not well-formed (invalid token) at line 1
            Jul 13 08:44:05 pfwall2 php: : The Dashboard package is missing required dependencies and must be reinstalled.
            Jul 13 08:44:05 pfwall2 php: : The Dashboard package is missing required dependencies and must be reinstalled.
            Jul 13 08:44:05 pfwall2 php: : Could not locate dashboard.inc.
            Jul 13 08:44:06 pfwall2 php: : Beginning package installation for Dashboard.
            Jul 13 08:44:11 pfwall2 kernel: tcp_output: inc sockbuf, old 65856, new 74048, sb_cc 65834, snd_wnd 54559, sendwnd 54559
            Jul 13 08:44:12 pfwall2 php: : Beginning package installation for Dashboard.

            There also seem to be some problems with installing and removing this package. I had to have several attempts to install the package as it didn't install properly after the upgrade. It was in the installed package list but wouldn't reinstall properly I had to reboot in the end.
            Now if I uninstall it the dashboard remains?

            1 Reply Last reply Reply Quote 0
            • Cry HavokC
              Cry Havok
              last edited by

              I've found that, for packages that are in the install limbo (pfSense thinks they are installed but you can't un-install them), one fix is to take the installation URL from the available packages screen for another package and then change the package name (ie, copy the URL for installing squid and change "squid" to "dashboard").  At this point you can then install (and then uninstall) the package in question.

              At least, it's worked for me so far ;)

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

                Don't think that will work as I can uninstall dashboard it just has no effect. ie not back to the old status page.

                It is not a problem as I like Dashboard and want to keep it. It was just a FYI

                1 Reply Last reply Reply Quote 0
                • Cry HavokC
                  Cry Havok
                  last edited by

                  Ok, now this is just plain odd…

                  I've just noticed that, at some point post installing beta2, my FreeRADIUS install vanished, but in the dashboard services tab and the Status:Services tab I have Squid listed twice...

                  Re-installing FreeRADIUS uses my old config.

                  The only references to to FreeRADIUS in my system log is from the 11th, when I installed the beta2 snapshot and de-installed then re-installed FreeRADIUS to resolve having it show twice in the Services tab.

                  I'm going to try to install rsync onto my pfSense box so I can take automated backups of it (rsnapshot).  That way if this happens again I'll be able to check for any changes that'll help you track down what's going on.

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

                    I've just noticed that, at some point post installing beta2, my FreeRADIUS install vanished, but in the dashboard services tab and the Status:Services tab I have Squid listed twice…

                    This is not to surprising (I have done this working on new packages) all this info is in your config.xml file and each part is separate.

                    You may have extra <service>entries in your config.xml file leading to the extra entries in the services status pages.

                     <service><name>snort</name>
                    			<rcfile>snort.sh</rcfile>
                    			<executable>snort</executable></service> 
                    

                    Re-installing FreeRADIUS uses my old config.

                    All the config for a package remains after you remove it just the menu options disappear.
                    I have had packages attempt to reinstall them selves after upgrading and usually the disappear due to the double install problem.

                    There is a nice backup script on the m0n0 site which I think works for pfsense as well</service>

                    1 Reply Last reply Reply Quote 0
                    • Cry HavokC
                      Cry Havok
                      last edited by

                      @morbus:

                      Re-installing FreeRADIUS uses my old config.

                      All the config for a package remains after you remove it just the menu options disappear.

                      Yeah, but I didn't remove the package.

                      @morbus:

                      There is a nice backup script on the m0n0 site which I think works for pfsense as well

                      Well, I took the "simple" approach and simply copied across the rsync binary from another FreeBSD 6.2 box.  I'm now taking backups every 6 hours (via rsnapshot).  The next time something strange happens I'll at least be able to identify the changes.

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

                        @Cry:

                        @morbus:

                        Re-installing FreeRADIUS uses my old config.

                        All the config for a package remains after you remove it just the menu options disappear.

                        Yeah, but I didn't remove the package.

                        Ok so it messed up the install/reinstall but the same applies. pfSense wont remove the config from the xml file therefore when you reinstall it is will still know your setup (pretty useful feature really)

                        1 Reply Last reply Reply Quote 0
                        • Cry HavokC
                          Cry Havok
                          last edited by

                          @morbus:

                          Ok so it messed up the install/reinstall but the same applies. pfSense wont remove the config from the xml file therefore when you reinstall it is will still know your setup (pretty useful feature really)

                          Yeah, one for which I'm very grateful  :)

                          1 Reply Last reply Reply Quote 0
                          • D
                            dvserg
                            last edited by

                            Section <include_file>on package xml file must contains fill include path

                            <include_file>/usr/local/pkg/myself_file.inc</include_file>

                            function sync_package from pkg-utils.inc not checked this (get_pkg_depends do it for example)

                            		/* Bring in package include files */
                            		if (isset($pkg_config['include_file']) && $pkg_config['include_file'] != "") {
                            			$include_file = $pkg_config['include_file'];
                            			if (file_exists($include_file))
                            				require_once($include_file);
                            			else
                            				if (file_exists($include_file)) {
                            					require_once($include_file);
                            				} else {
                            					log_error("Could not locate {$include_file}.");
                            					install_package($package['name']);
                            					uninstall_package_from_name($package['name']);
                            					install_package($package['name']);
                            				}
                            		}
                            
                            ```</include_file>

                            SquidGuardDoc EN  RU Tutorial
                            Localization ru_PFSense

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