Lost packages after restart
-
morbus, make sure you are on the latest snapshot.
-
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
-
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? -
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 ;)
-
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
-
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.
-
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>
-
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.
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.
-
@Cry:
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)
-
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 :)
-
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>