https://redmine.pfsense.org/https://redmine.pfsense.org/favicon.ico?16780521162016-07-10T15:26:42ZpfSense bugtrackerpfSense - Bug #6594: Package reinstallation post-config restore hangs if no Internet connectivityhttps://redmine.pfsense.org/issues/6594?journal_id=281672016-07-10T15:26:42ZJim Thompsonjim@netgate.com
<ul><li><strong>Assignee</strong> set to <i>Renato Botelho</i></li></ul> pfSense - Bug #6594: Package reinstallation post-config restore hangs if no Internet connectivityhttps://redmine.pfsense.org/issues/6594?journal_id=282362016-07-13T12:00:28ZAdam Piaseckidjamp42@yahoo.com
<ul></ul><p>This happens even without packages installed. I restored a config without any package information in it. Even selected <br />"Do not backup package information." when backing up the config. It still hangs on boot.</p> pfSense - Bug #6594: Package reinstallation post-config restore hangs if no Internet connectivityhttps://redmine.pfsense.org/issues/6594?journal_id=283042016-07-16T01:04:04ZChris Buechlercbuechler@gmail.com
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/28304/diff?detail_id=22024">diff</a>)</li><li><strong>Priority</strong> changed from <i>Normal</i> to <i>High</i></li></ul><p>It's still the package reinstall that gets hung up, regardless of whether or not you have packages installed. It sets needs_package_sync_after_reboot regardless of whether there are packages in the config, which is where it gets hung.</p> pfSense - Bug #6594: Package reinstallation post-config restore hangs if no Internet connectivityhttps://redmine.pfsense.org/issues/6594?journal_id=301972016-12-29T20:02:18ZKevin Wojniak
<ul></ul><p>I'm running into this right now. Not a big network guy, just trying to replace our small business' router with a SG-4860 1U and twiddling my thumbs while the router sits and attempts to access WAN even though interfaces haven't been assigned (I did a restore of the config from the web).</p>
<p>I think changing it to not attempt 3 (?) times and use a lower timeout would greatly help. Then I could be on my way home sooner :)</p> pfSense - Bug #6594: Package reinstallation post-config restore hangs if no Internet connectivityhttps://redmine.pfsense.org/issues/6594?journal_id=303122017-01-03T17:46:18ZPig Monkey
<ul></ul><p>I was just hit by this as well. In my case I am preparing to replace a device at a remote site. I used pfsense's restore functionality to upload the configuration from the old device to the new device, and rebooted. Then wondered why it seemed to still be hanging 15 minutes later.</p>
<p>After throwing in a serial cable and power cycling the new device, I saw the "Waiting for Internet connection to update pkg metadata and finish package reinstallationUpdating pfSense-core repository catalogue..." message. After hanging there for a while it moves on to "Updating pfSense repository catalogue..." and then hangs again. It finally errors there, and then moves on to hanging at "Updating pfSense-core repository catalogue..." And then it loops back to "pfSense repository catalogue...". It does the loop 3 or 4 times.</p>
<p>A shorter timeout is definitely appropriate. If the first check fails, it would be nice if it did not attempt the subsequent updates. Perhaps there should be some sort of "offline" boot option that we can use to prevent any connection attempts if we know we're going to bring the device up without WAN.</p> pfSense - Bug #6594: Package reinstallation post-config restore hangs if no Internet connectivityhttps://redmine.pfsense.org/issues/6594?journal_id=317742017-02-23T11:34:47ZRenato Botelhorenato@netgate.com
<ul></ul><p>Kevin Wojniak wrote:</p>
<blockquote>
<p>I'm running into this right now. Not a big network guy, just trying to replace our small business' router with a SG-4860 1U and twiddling my thumbs while the router sits and attempts to access WAN even though interfaces haven't been assigned (I did a restore of the config from the web).</p>
<p>I think changing it to not attempt 3 (?) times and use a lower timeout would greatly help. Then I could be on my way home sooner :)</p>
</blockquote>
<p>Which version were you upgrading to?</p> pfSense - Bug #6594: Package reinstallation post-config restore hangs if no Internet connectivityhttps://redmine.pfsense.org/issues/6594?journal_id=317752017-02-23T11:35:02ZRenato Botelhorenato@netgate.com
<ul></ul><p>Pig Monkey wrote:</p>
<blockquote>
<p>I was just hit by this as well. In my case I am preparing to replace a device at a remote site. I used pfsense's restore functionality to upload the configuration from the old device to the new device, and rebooted. Then wondered why it seemed to still be hanging 15 minutes later.</p>
<p>After throwing in a serial cable and power cycling the new device, I saw the "Waiting for Internet connection to update pkg metadata and finish package reinstallationUpdating pfSense-core repository catalogue..." message. After hanging there for a while it moves on to "Updating pfSense repository catalogue..." and then hangs again. It finally errors there, and then moves on to hanging at "Updating pfSense-core repository catalogue..." And then it loops back to "pfSense repository catalogue...". It does the loop 3 or 4 times.</p>
<p>A shorter timeout is definitely appropriate. If the first check fails, it would be nice if it did not attempt the subsequent updates. Perhaps there should be some sort of "offline" boot option that we can use to prevent any connection attempts if we know we're going to bring the device up without WAN.</p>
</blockquote>
<p>Which version were you upgrading to?</p> pfSense - Bug #6594: Package reinstallation post-config restore hangs if no Internet connectivityhttps://redmine.pfsense.org/issues/6594?journal_id=317792017-02-23T14:17:20ZPig Monkey
<ul></ul><p>Renato Botelho wrote:</p>
<blockquote>
<p>Which version were you upgrading to?</p>
</blockquote>
<p>2.3.2</p> pfSense - Bug #6594: Package reinstallation post-config restore hangs if no Internet connectivityhttps://redmine.pfsense.org/issues/6594?journal_id=317842017-02-24T10:26:35ZKill Bill
<ul></ul><p>Someone test this, perhaps? <a class="external" href="https://github.com/pfsense/pfsense/pull/3582">https://github.com/pfsense/pfsense/pull/3582</a></p>
<p>Dunno, but it seems to me someone has misread the PHP docs.</p> pfSense - Bug #6594: Package reinstallation post-config restore hangs if no Internet connectivityhttps://redmine.pfsense.org/issues/6594?journal_id=319272017-03-02T13:27:36ZRenato Botelhorenato@netgate.com
<ul></ul><p>Kill Bill wrote:</p>
<blockquote>
<p>Someone test this, perhaps? <a class="external" href="https://github.com/pfsense/pfsense/pull/3582">https://github.com/pfsense/pfsense/pull/3582</a></p>
<p>Dunno, but it seems to me someone has misread the PHP docs.</p>
</blockquote>
<p>It was really a bug, thanks for spotting it but it has no relation with this one. That piece of code is only used by GUI, during boot only pfSense-upgrade is used.</p> pfSense - Bug #6594: Package reinstallation post-config restore hangs if no Internet connectivityhttps://redmine.pfsense.org/issues/6594?journal_id=319282017-03-02T13:28: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>Pig Monkey wrote:</p>
<blockquote>
<p>Renato Botelho wrote:</p>
<blockquote>
<p>Which version were you upgrading to?</p>
</blockquote>
<p>2.3.2</p>
</blockquote>
<p>It has a fix on 2.3.3 and 2.4.0. I couldn't replicate it anymore</p> pfSense - Bug #6594: Package reinstallation post-config restore hangs if no Internet connectivityhttps://redmine.pfsense.org/issues/6594?journal_id=319862017-03-05T06:46:14ZKill Bill
<ul></ul><p>Renato Botelho wrote:</p>
<blockquote>
<p>Kill Bill wrote:</p>
<blockquote>
<p>Someone test this, perhaps? <a class="external" href="https://github.com/pfsense/pfsense/pull/3582">https://github.com/pfsense/pfsense/pull/3582</a></p>
<p>Dunno, but it seems to me someone has misread the PHP docs.</p>
</blockquote>
<p>It was really a bug, thanks for spotting it but it has no relation with this one. That piece of code is only used by GUI, during boot only pfSense-upgrade is used.</p>
</blockquote>
<p>Well, at least it definitely seems to have fixed the GUI freeze on package (re)install.</p> pfSense - Bug #6594: Package reinstallation post-config restore hangs if no Internet connectivityhttps://redmine.pfsense.org/issues/6594?journal_id=324172017-04-01T21:36:36ZAnonymous
<ul><li><strong>File</strong> <a href="/attachments/2031">2.4.0.b.20170401.1306-6594-boot-output</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/2031/2.4.0.b.20170401.1306-6594-boot-output">2.4.0.b.20170401.1306-6594-boot-output</a> added</li></ul><p>On 2.4.0.b.20170401.1306, when a backup from 2.4.0.b.20170328.1156 is restored with no WAN connectivity the attached console output is shown. pfSense is not accessible from the WebGUI until the process times out and it moves on.</p> pfSense - Bug #6594: Package reinstallation post-config restore hangs if no Internet connectivityhttps://redmine.pfsense.org/issues/6594?journal_id=325322017-04-14T18:16:07ZPaighton Bisconer
<ul></ul><p>On 2.4.0.b.20170407.1403, backed up config, restored with no WAN connectivity, pfSense WEBGUI was accessible, console did hang on reinstalling packages but once WAN was restored everything worked fine. No crashes or hangs while restoring config other than waiting for packages.</p> pfSense - Bug #6594: Package reinstallation post-config restore hangs if no Internet connectivityhttps://redmine.pfsense.org/issues/6594?journal_id=326342017-04-27T20:58:26ZJim Pingle
<ul><li><strong>Target version</strong> changed from <i>2.4.0</i> to <i>2.3.4</i></li><li><strong>Affected Architecture</strong> <i>All</i> added</li><li><strong>Affected Architecture</strong> deleted (<del><i></i></del>)</li></ul> pfSense - Bug #6594: Package reinstallation post-config restore hangs if no Internet connectivityhttps://redmine.pfsense.org/issues/6594?journal_id=326552017-05-02T15:35:51ZRenato Botelhorenato@netgate.com
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Resolved</i></li></ul> pfSense - Bug #6594: Package reinstallation post-config restore hangs if no Internet connectivityhttps://redmine.pfsense.org/issues/6594?journal_id=328022017-05-20T07:06:53ZMarco Hofmann
<ul></ul><p>Hello everybody.<br />I'm at a customer site today with several branch offices. I sit at the head quarter and prepare three pfsense boxes for replacement. There are old x86 aplliances I have to replace. I grabbed the config.xml from the old appliances and installed a fresh version of 2.3.4 onto the new hardware. I then logged on to the WebGUI and restored the config.xml. I knew about this bug here so I thought the restore would be much quicker. But I already wait for over 30 minutes now. Is this not fixed with 2.3.4 ?<br /><pre>
Configuring CRON...done.
Starting NTP time client...done.
Starting DHCP service...done.
Starting DHCPv6 service...done.
Configuring firewall......done.
Configuring IPsec VPN... done
Generating RRD graphs...done.
Waiting for Internet connection to update pkg metadata and finish package reinstallationUpdating pfSense-core repository catalogue...
repository pfSense-core has no meta file, using default settings
Unable to update repository pfSense-core
Updating pfSense repository catalogue...
repository pfSense has no meta file, using default settings
Unable to update repository pfSense
Error updating repositories!
ERROR!!! An error occurred on pkg execution (rc = 70) with parameters 'update -f':
pkg: https://pkg.pfsense.org/pfSense_v2_3_4_amd64-core/meta.txz: No address record
pkg: https://pkg.pfsense.org/pfSense_v2_3_4_amd64-core/packagesite.txz: No address record
pkg: https://pkg.pfsense.org/pfSense_v2_3_4_amd64-pfSense_v2_3_4/meta.txz: No address record
pkg: https://pkg.pfsense.org/pfSense_v2_3_4_amd64-pfSense_v2_3_4/packagesite.txz: No address record
.Updating pfSense-core repository catalogue...
repository pfSense-core has no meta file, using default settings
Unable to update repository pfSense-core
Updating pfSense repository catalogue...
repository pfSense has no meta file, using default settings
Unable to update repository pfSense
Error updating repositories!
ERROR!!! An error occurred on pkg execution (rc = 70) with parameters 'update -f':
pkg: Repository pfSense-core load error: access repo file(/var/db/pkg/repo-pfSense-core.sqlite) failed: No such file or directory
pkg: https://pkg.pfsense.org/pfSense_v2_3_4_amd64-core/meta.txz: No address record
pkg: https://pkg.pfsense.org/pfSense_v2_3_4_amd64-core/packagesite.txz: No address record
pkg: Repository pfSense load error: access repo file(/var/db/pkg/repo-pfSense.sqlite) failed: No such file or directory
pkg: https://pkg.pfsense.org/pfSense_v2_3_4_amd64-pfSense_v2_3_4/meta.txz: No address record
pkg: https://pkg.pfsense.org/pfSense_v2_3_4_amd64-pfSense_v2_3_4/packagesite.txz: No address record
.Updating pfSense-core repository catalogue...
</pre></p> pfSense - Bug #6594: Package reinstallation post-config restore hangs if no Internet connectivityhttps://redmine.pfsense.org/issues/6594?journal_id=329192017-06-07T09:39:50ZOliver Hansenoliver.hansen@gmail.com
<ul></ul><p>Just happened to me as well. Brand new SG-2440 from Netgate with 2.3.4 pre-installed. I restored a config from the old router which is also on 2.3.4 and I've been waiting for over 20 minutes and so far it just keeps looping. Going to be late to the office after waiting for this to finish.</p>
<p>Waiting for Internet connection to update pkg metadata and finish package reinstallationUpdating pfSense-core repository catalogue...<br />repository pfSense-core has no meta file, using default settings</p>
<p>Unable to update repository pfSense-core<br />Updating pfSense repository catalogue...<br />repository pfSense has no meta file, using default settings<br />Unable to update repository pfSense<br />Error updating repositories!</p>
<p>ERROR!!! An error occurred on pkg execution (rc = 70) with parameters 'update -f':<br />pkg: Repository pfSense-core load error: access repo file(/var/db/pkg/repo-pfSense-core.sqlite) failed: No such file or directory<br />pkg: <a class="external" href="https://firmware.netgate.com/pkg/pfSense_factory-v2_3_4_amd64-core/meta.txz">https://firmware.netgate.com/pkg/pfSense_factory-v2_3_4_amd64-core/meta.txz</a>: No address record<br />pkg: <a class="external" href="https://firmware.netgate.com/pkg/pfSense_factory-v2_3_4_amd64-core/packagesite.txz">https://firmware.netgate.com/pkg/pfSense_factory-v2_3_4_amd64-core/packagesite.txz</a>: No address record<br />pkg: Repository pfSense load error: access repo file(/var/db/pkg/repo-pfSense.sqlite) failed: No such file or directory<br />pkg: <a class="external" href="https://firmware.netgate.com/pkg/pfSense_factory-v2_3_4_amd64-pfSense_factory-v2_3_4/meta.txz">https://firmware.netgate.com/pkg/pfSense_factory-v2_3_4_amd64-pfSense_factory-v2_3_4/meta.txz</a>: No address record<br />pkg: <a class="external" href="https://firmware.netgate.com/pkg/pfSense_factory-v2_3_4_amd64-pfSense_factory-v2_3_4/packagesite.txz">https://firmware.netgate.com/pkg/pfSense_factory-v2_3_4_amd64-pfSense_factory-v2_3_4/packagesite.txz</a>: No address record</p>
<p>.Updating pfSense-core repository catalogue...<br />repository pfSense-core has no meta file, using default settings<br />Unable to update repository pfSense-core<br />Updating pfSense repository catalogue...</p> pfSense - Bug #6594: Package reinstallation post-config restore hangs if no Internet connectivityhttps://redmine.pfsense.org/issues/6594?journal_id=329202017-06-07T09:47:11ZMarco Hofmann
<ul></ul><p>I opened a new ticket for that problem, as the old one (this one) is closed<br /><a class="external" href="https://redmine.pfsense.org/issues/7604">https://redmine.pfsense.org/issues/7604</a></p>
<p>You can post your content there please.</p>