https://redmine.pfsense.org/https://redmine.pfsense.org/favicon.ico?16780521162016-04-14T16:50:01ZpfSense bugtrackerpfSense - Bug #6137: Old package inc files may cause problems post-upgradehttps://redmine.pfsense.org/issues/6137?journal_id=262942016-04-14T16:50:01ZJim Thompsonjim@netgate.com
<ul><li><strong>Assignee</strong> set to <i>Chris Buechler</i></li></ul> pfSense - Bug #6137: Old package inc files may cause problems post-upgradehttps://redmine.pfsense.org/issues/6137?journal_id=262952016-04-14T16:50:08ZJim Thompsonjim@netgate.com
<ul><li><strong>Assignee</strong> changed from <i>Chris Buechler</i> to <i>Renato Botelho</i></li></ul> pfSense - Bug #6137: Old package inc files may cause problems post-upgradehttps://redmine.pfsense.org/issues/6137?journal_id=263042016-04-15T01:03:54ZChris Buechlercbuechler@gmail.com
<ul><li><strong>Project</strong> changed from <i>pfSense Packages</i> to <i>pfSense</i></li><li><strong>Subject</strong> changed from <i>Haproxy fails after 2.2.x to 2.3 upgrade</i> to <i>Old package inc files may cause problems post-upgrade</i></li><li><strong>Category</strong> changed from <i>haproxy</i> to <i>Package System</i></li><li><strong>Status</strong> changed from <i>New</i> to <i>Confirmed</i></li></ul><p>The problem this causes is one of the old haproxy*.inc files make filter_configure_sync hang forever. So it kills the entire system until you remove those inc files.</p>
<p>We probably ought to whack all of the inc files in /usr/local/pkg with the exception of those in base in post-upgrade unless Renato has a better idea. That will prevent the haproxy issue, and possibly any number of other post-upgrade issues related to old package inc files.</p>
<p>Moving to base and package system because it's possibly an issue with much more than haproxy and should have a general fix.</p> pfSense - Bug #6137: Old package inc files may cause problems post-upgradehttps://redmine.pfsense.org/issues/6137?journal_id=268692016-04-29T14:10:07ZRenato Botelhorenato@netgate.com
<ul><li><strong>Status</strong> changed from <i>Confirmed</i> to <i>Feedback</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset <a class="changeset" title="Fix #6137: - Uninstall all packages on current system before upgrade using pre_upgrade_command s..." href="https://redmine.pfsense.org/projects/pfsense/repository/2/revisions/a07d27e544882076e17da718a3dd98a403761b5c">a07d27e544882076e17da718a3dd98a403761b5c</a>.</p> pfSense - Bug #6137: Old package inc files may cause problems post-upgradehttps://redmine.pfsense.org/issues/6137?journal_id=269652016-05-06T02:56:59ZChris Buechlercbuechler@gmail.com
<ul><li><strong>File</strong> <a href="/attachments/1687">config-pkg-upgradetest1.localdomain-20160506013418.xml</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/1687/config-pkg-upgradetest1.localdomain-20160506013418.xml">config-pkg-upgradetest1.localdomain-20160506013418.xml</a> added</li><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Confirmed</i></li></ul><p>The upgrade log shows it doing the package uninstall as configured, and it's correctly reinstalled post-upgrade, but it leaves behind the .inc files in /usr/local/pkg/ so it doesn't fix the root issue here.</p>
<p>Also no doubt many inc files hanging around out there that aren't part of an installed package. After uninstalling the packages, it should rm /usr/local/pkg/* minus the files in base.</p>
<p>Basic example config attached for haproxy. Restore to 2.2.6, upgrade to 2.3.1 snapshot. This particular config, having the .inc files hanging around there doesn't hurt anything. But their presence in /usr/local/pkg/ is what will break with many configs.</p> pfSense - Bug #6137: Old package inc files may cause problems post-upgradehttps://redmine.pfsense.org/issues/6137?journal_id=269772016-05-06T09:21:17ZRenato Botelhorenato@netgate.com
<ul></ul><p>It was my fault, I forgot part of the code commented out. Fixed now.</p> pfSense - Bug #6137: Old package inc files may cause problems post-upgradehttps://redmine.pfsense.org/issues/6137?journal_id=269782016-05-06T09:30:08ZRenato Botelhorenato@netgate.com
<ul><li><strong>Status</strong> changed from <i>Confirmed</i> to <i>Feedback</i></li></ul><p>Applied in changeset <a class="changeset" title="Remove a wrong comment I left by accident and make it really remove packages. Fixes #6137" href="https://redmine.pfsense.org/projects/pfsense/repository/2/revisions/18bd1ccb8770fc656e80d0cdc0c8900b8a960a18">18bd1ccb8770fc656e80d0cdc0c8900b8a960a18</a>.</p> pfSense - Bug #6137: Old package inc files may cause problems post-upgradehttps://redmine.pfsense.org/issues/6137?journal_id=269792016-05-06T11:44:19ZAdam Thompsonathompso@athompso.net
<ul></ul><p>I think I have two firewalls still running 2.2.x, so I should be able to test in a "real world" scenario.</p>
<p>Can you please advise when this fix hits the public website, and/or provide an upgrade URL I can test with?</p>
<p>(I probably won't be able to do a test upgrade until Tuesday at the earliest... and I'm only going to take one shot at upgrading each firewall, because they're both production systems. At least one of them is i386, not amd64, if that makes any difference.)</p> pfSense - Bug #6137: Old package inc files may cause problems post-upgradehttps://redmine.pfsense.org/issues/6137?journal_id=269802016-05-06T12:04:58ZRenato Botelhorenato@netgate.com
<ul></ul><p>Adam Thompson wrote:</p>
<blockquote>
<p>I think I have two firewalls still running 2.2.x, so I should be able to test in a "real world" scenario.</p>
<p>Can you please advise when this fix hits the public website, and/or provide an upgrade URL I can test with?</p>
<p>(I probably won't be able to do a test upgrade until Tuesday at the earliest... and I'm only going to take one shot at upgrading each firewall, because they're both production systems. At least one of them is i386, not amd64, if that makes any difference.)</p>
</blockquote>
<p>You can get 2.3.1-DEVELOPMENT snapshots at <a class="external" href="https://snapshots.pfsense.org/">https://snapshots.pfsense.org/</a>. All snapshots newer than 20160606-0900 will contain the fix.</p> pfSense - Bug #6137: Old package inc files may cause problems post-upgradehttps://redmine.pfsense.org/issues/6137?journal_id=270832016-05-12T02:28:26ZChris Buechlercbuechler@gmail.com
<ul></ul><p>the removal part was fine. The reinstall post-upgrade wasn't working until my last commit. Leaving to verify once that hits a snapshot.</p> pfSense - Bug #6137: Old package inc files may cause problems post-upgradehttps://redmine.pfsense.org/issues/6137?journal_id=270892016-05-12T05:17:31ZRenato Botelhorenato@netgate.com
<ul></ul><p>It passed on all my tests too</p> pfSense - Bug #6137: Old package inc files may cause problems post-upgradehttps://redmine.pfsense.org/issues/6137?journal_id=271072016-05-12T22:35:24ZChris Buechlercbuechler@gmail.com
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Resolved</i></li></ul><p>all works now</p>