https://redmine.pfsense.org/https://redmine.pfsense.org/favicon.ico?16780521162015-10-09T11:45:18ZpfSense bugtrackerpfSense - Bug #5291: Difficult to be sure that a package install has endedhttps://redmine.pfsense.org/issues/5291?journal_id=215262015-10-09T11:45:18ZPhillip Davisphil@jankaritech.com
<ul></ul><p>Also when you remove a package, the title of the text box says "Beginning package installation" - that is a bit dumb, but I think it did that in 2.2.* also. It should say "Beginning package removal".</p>
<p>At the end of package removal there is some text output that says "Package deleted" - in places like that the word "deleted" could be changed to "removed" to match the button text that the user pushed originally.</p> pfSense - Bug #5291: Difficult to be sure that a package install has endedhttps://redmine.pfsense.org/issues/5291?journal_id=215272015-10-09T11:47:43ZAnonymous
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Confirmed</i></li><li><strong>Assignee</strong> set to <i>Phillip Davis</i></li></ul><p>Duplicates <a class="issue tracker-4 status-3 priority-4 priority-default closed" title="Todo: Package installation GUI updates (Resolved)" href="https://redmine.pfsense.org/issues/5279">#5279</a></p>
<p>The package manager is a WIP. I am converting it to a system that starts the installation process in the background and then monitors it via AJAX to get the status and progress. It will be another couple of days before it is ready for testing.</p>
<p>Stay tuned.</p> pfSense - Bug #5291: Difficult to be sure that a package install has endedhttps://redmine.pfsense.org/issues/5291?journal_id=215482015-10-10T00:33:13ZChris Buechlercbuechler@gmail.com
<ul><li><strong>Assignee</strong> deleted (<del><i>Phillip Davis</i></del>)</li></ul><p>part of <a class="issue tracker-4 status-3 priority-4 priority-default closed" title="Todo: Package installation GUI updates (Resolved)" href="https://redmine.pfsense.org/issues/5279">#5279</a>, but good feedback here, will leave to make sure that's addressed once finished.</p> pfSense - Bug #5291: Difficult to be sure that a package install has endedhttps://redmine.pfsense.org/issues/5291?journal_id=215932015-10-12T17:50:47ZJim Thompsonjim@netgate.com
<ul><li><strong>Assignee</strong> set to <i>Anonymous</i></li></ul> pfSense - Bug #5291: Difficult to be sure that a package install has endedhttps://redmine.pfsense.org/issues/5291?journal_id=216272015-10-13T13:02:11ZAnonymous
<ul><li><strong>File</strong> <i>pkg_install.gif</i> added</li><li><strong>Status</strong> changed from <i>Confirmed</i> to <i>Assigned</i></li></ul>The package installation system has been updated such that:
<ul>
<li>The installer is run in the background so that the GUI remains responsive</li>
<li>The GUI polls for status/progress via AJAX</li>
<li>The progress bar works correctly, obtaining its information from the installer JSON output</li>
<li>The exit status of each step is indicated by "Success" or "Failure" in the text window</li>
<li>A banner is displayed showing "Wait", "Success" and "failed" (paraphrasing). The background color is changed to match the message.</li>
</ul>
ToDo:
<ul>
<li>Handle page reloads and catch some of the less obvious errors.</li>
<li>Combine the pfSense-upgrade and pfSense-upgrade-GUI.sh scripts</li>
<li>Add some gettext()-s where needed</li>
</ul>
<p><img src="pkg_install.gif" alt="" /></p> pfSense - Bug #5291: Difficult to be sure that a package install has endedhttps://redmine.pfsense.org/issues/5291?journal_id=216572015-10-14T10:46:11ZAnonymous
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Feedback</i></li><li><strong>Assignee</strong> changed from <i>Anonymous</i> to <i>Phillip Davis</i></li></ul><p>The package installer now shows a color coded completion banner, "real time" log data and a progress bar.</p>
<p>The progress bar is of limited use at them moment since some packages (pfBlockerNG is an example) run for close to a minute, but only output progress information during the 1st second. Perhaps this can be improved too.</p> pfSense - Bug #5291: Difficult to be sure that a package install has endedhttps://redmine.pfsense.org/issues/5291?journal_id=216602015-10-14T10:50:11ZAnonymous
<ul><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset <a class="changeset" title="Fixes #5291 Fixes #5279" href="https://redmine.pfsense.org/projects/pfsense/repository/2/revisions/35fcf1c1eb105da320b63550edfa5063af7312b3">pfsense:35fcf1c1eb105da320b63550edfa5063af7312b3</a>.</p> pfSense - Bug #5291: Difficult to be sure that a package install has endedhttps://redmine.pfsense.org/issues/5291?journal_id=216722015-10-15T02:38:54ZPhillip Davisphil@jankaritech.com
<ul></ul><p>See pull request <a class="external" href="https://github.com/pfsense/pfsense/pull/1965">https://github.com/pfsense/pfsense/pull/1965</a> for a couple of changes to tidy up a few bits of text.<br />Works nicely, thanks.<br />Note that "reinstallall" is not working - should I raise another redmine report for that? Or is it already a known part of WIP?</p> pfSense - Bug #5291: Difficult to be sure that a package install has endedhttps://redmine.pfsense.org/issues/5291?journal_id=216732015-10-15T06:54:09ZAnonymous
<ul></ul><p>I believe the reinstallation issue was fixed late yesterday with an update to the pfSense-update script but I will check. Thanks for the PR. I'll look at it later today.</p> pfSense - Bug #5291: Difficult to be sure that a package install has endedhttps://redmine.pfsense.org/issues/5291?journal_id=216742015-10-15T07:00:41ZAnonymous
<ul><li><strong>File</strong> deleted (<del><i>pkg_install.gif</i></del>)</li></ul> pfSense - Bug #5291: Difficult to be sure that a package install has endedhttps://redmine.pfsense.org/issues/5291?journal_id=216752015-10-15T07:05:31ZAnonymous
<ul></ul><p>Confirmed that reinstallation works as expected. (tested with sudo, snort and pfBlockerNG)<br />PR merged and tested.</p>
<p>Thanks!</p> pfSense - Bug #5291: Difficult to be sure that a package install has endedhttps://redmine.pfsense.org/issues/5291?journal_id=216762015-10-15T07:37:18ZPhillip Davisphil@jankaritech.com
<ul></ul><p>Single package reinstall works.<br />But Diagnostics->Backup/Restore, "Reinstall Packages" does nothing after pressing "Confirm".</p> pfSense - Bug #5291: Difficult to be sure that a package install has endedhttps://redmine.pfsense.org/issues/5291?journal_id=216842015-10-15T12:03:09ZAnonymous
<ul></ul><p>reinstallall functionality restored and tested.</p>
<p>Please note that the progress bar is suppressed during this operation. It is not really possible to know in advance how many steps are required, so it would jump about in a nonsensical manner. The textarea tells all and the status banner information is accurate.</p> pfSense - Bug #5291: Difficult to be sure that a package install has endedhttps://redmine.pfsense.org/issues/5291?journal_id=216902015-10-15T22:15:11ZPhillip Davisphil@jankaritech.com
<ul><li><strong>File</strong> <a href="/attachments/1390">ReinstallAll.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/1390/ReinstallAll.png">ReinstallAll.png</a> added</li></ul><p>I did reinstall all on a system with Cron and OpenVPN Client Export Utility installed. The reinstall completed very quickly and the text area has just the word "Success".<br />Is it supposed to be that quiet?</p>
<p>I tried editing /usr/local/www/packages/cron/cron.php - just put some rubbish text in comments. Then do package reinstall all. The edited version of cron.php was still there. I expected that the reinstall would overwrite all the files supplied by the package with the proper package versions.</p>
<p>What is really supposed to happen?</p>
<p>I did an individual reinstall of Cron package. cron.php went back to the original code as I expected.</p> pfSense - Bug #5291: Difficult to be sure that a package install has endedhttps://redmine.pfsense.org/issues/5291?journal_id=216922015-10-16T06:21:32ZAnonymous
<ul></ul><p>No. You should see the logs from the uninstall and install processes for each package. I tested with a VM and with real hardware but perhaps there is some timing issue. I'll try it on a few more. platforms and with the same packages you tested with.</p>
<p>Would you mind taking a look in /tmp/webgui-log.txt please? That should contain the logs.</p> pfSense - Bug #5291: Difficult to be sure that a package install has endedhttps://redmine.pfsense.org/issues/5291?journal_id=216942015-10-16T08:00:09ZAnonymous
<ul></ul><p>Applied in changeset <a class="changeset" title="Fixed #5291 - Reinstalling pfSense-pkg-openvpn-client-export" href="https://redmine.pfsense.org/projects/pfsense/repository/2/revisions/1166ee1e443ac91ea827a567ab40975e0ec8213e">pfsense:1166ee1e443ac91ea827a567ab40975e0ec8213e</a>.</p> pfSense - Bug #5291: Difficult to be sure that a package install has endedhttps://redmine.pfsense.org/issues/5291?journal_id=216952015-10-16T08:05:06ZAnonymous
<ul><li><strong>File</strong> <a href="/attachments/1397">reinstall.jpg</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/1397/reinstall.jpg">reinstall.jpg</a> added</li></ul><p>Never mind the logs.</p>
<p>There were two issues specific to pfSense-pkg-openvpn-client-export:</p>
<p>My "Does the string begin with pfSense-pkg-" trick was crude and failed on all of the '-' in this package name, and once installed you cannot access the functionality because a required PHP function has been removed.</p>
<p>I have fixed the former (you should see more sensible re-install all output now) and have sent a note to Renato about the latter.</p>
<p>Thanks again for all of you testing. It really helps :)</p>
<p><img src="https://redmine.pfsense.org/attachments/download/1397/reinstall.jpg" alt="" /></p> pfSense - Bug #5291: Difficult to be sure that a package install has endedhttps://redmine.pfsense.org/issues/5291?journal_id=216962015-10-16T08:26:31ZAnonymous
<ul></ul><p>openvpn client export issue moved to a new ticket <a class="issue tracker-1 status-3 priority-4 priority-default closed" title="Bug: vpn_openvpn_*.php: export tabs not installed after installing openvpn client export package (Resolved)" href="https://redmine.pfsense.org/issues/5311">#5311</a></p> pfSense - Bug #5291: Difficult to be sure that a package install has endedhttps://redmine.pfsense.org/issues/5291?journal_id=219102015-10-27T04:38:48ZPhillip Davisphil@jankaritech.com
<ul></ul><p>General install, remove, reinstall and reinstall all seems good now. I just tried all the combinations on:<br />2.3-ALPHA (amd64) <br />built on Mon Oct 26 19:32:58 CDT 2015 <br />FreeBSD 10.2-STABLE</p>
<p>The functionality works and the messages along the way are consistent with what is happening. IMHO this is resolved.</p> pfSense - Bug #5291: Difficult to be sure that a package install has endedhttps://redmine.pfsense.org/issues/5291?journal_id=227992015-11-20T07:48:10ZRenato Botelhorenato@netgate.com
<ul><li><strong>Project</strong> changed from <i>Bootstrap</i> to <i>pfSense</i></li></ul> pfSense - Bug #5291: Difficult to be sure that a package install has endedhttps://redmine.pfsense.org/issues/5291?journal_id=232042015-12-06T22:07:10ZPhillip Davisphil@jankaritech.com
<ul></ul><p>Ping - this can be marked resolved.</p> pfSense - Bug #5291: Difficult to be sure that a package install has endedhttps://redmine.pfsense.org/issues/5291?journal_id=233112015-12-09T17:59:18ZChris Buechlercbuechler@gmail.com
<ul><li><strong>Category</strong> set to <i>Package System</i></li><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Resolved</i></li></ul><p>fixed</p>