release upgrade crashed on custom configuration file dialog
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | ubuntu-release-upgrader (Ubuntu) |
High
|
Brian Murray | ||
| | Xenial |
High
|
Brian Murray | ||
Bug Description
On Kubuntu 15.04 amd64, while running installer to upgrade to 15.10, the GUI froze at 89% complete and /var/log/
Yesterday on #kubuntu channel there was someone complaining about the same thing - his installer GUI froze at %80, and he found a similar stack trace in the log (I only know the last line of the trace was identical, didn't see the full stack trace). He said in his case it looks related to the sane (scanner package) custom configuration file dialog prompt.
I think this is a pretty critical bug since an aborted OS upgrade is likely to render the system unusable for the average user, and it does little to encourage confidence of users in the OS distribution.
2015-10-24 14:34:12,360 DEBUG got a conffile-prompt from dpkg for file: '/etc/tomcat7/
2015-10-24 14:34:12,362 DEBUG UI version is 4.0
2015-10-24 14:34:12,362 DEBUG uiname is dialog_conffile
2015-10-24 14:34:12,362 DEBUG toplevel widget is QDialog
2015-10-24 14:34:12,362 DEBUG setting property geometry
2015-10-24 14:34:12,362 DEBUG setting property windowTitle
2015-10-24 14:34:12,362 DEBUG setting property modal
2015-10-24 14:34:12,362 DEBUG push QDialog dialog_conffile
2015-10-24 14:34:12,362 DEBUG push QGridLayout gridlayout
2015-10-24 14:34:12,362 DEBUG setting property text
2015-10-24 14:34:12,362 DEBUG push QPushButton show_difference
2015-10-24 14:34:12,362 DEBUG pop widget QPushButton show_difference
2015-10-24 14:34:12,362 DEBUG new topwidget <PyQt5.
2015-10-24 14:34:12,362 DEBUG setting property sizePolicy
2015-10-24 14:34:12,362 DEBUG setting property text
2015-10-24 14:34:12,363 DEBUG setting property pixmap
2015-10-24 14:34:12,363 DEBUG setting property wordWrap
2015-10-24 14:34:12,363 DEBUG push QLabel textLabel2
2015-10-24 14:34:12,363 DEBUG pop widget QLabel textLabel2
2015-10-24 14:34:12,363 DEBUG new topwidget <PyQt5.
2015-10-24 14:34:12,363 DEBUG setting property text
2015-10-24 14:34:12,363 DEBUG setting property wordWrap
2015-10-24 14:34:12,363 DEBUG push QLabel label_conffile
2015-10-24 14:34:12,363 DEBUG pop widget QLabel label_conffile
2015-10-24 14:34:12,363 DEBUG new topwidget <PyQt5.
2015-10-24 14:34:12,363 DEBUG setting property text
2015-10-24 14:34:12,363 DEBUG push QPushButton keep_button
2015-10-24 14:34:12,363 DEBUG pop widget QPushButton keep_button
2015-10-24 14:34:12,363 DEBUG new topwidget <PyQt5.
2015-10-24 14:34:12,363 DEBUG setting property text
2015-10-24 14:34:12,363 DEBUG push QPushButton replace_button
2015-10-24 14:34:12,363 DEBUG pop widget QPushButton replace_button
2015-10-24 14:34:12,363 DEBUG new topwidget <PyQt5.
2015-10-24 14:34:12,364 DEBUG push QTextEdit textview_conffile
2015-10-24 14:34:12,364 DEBUG pop widget QTextEdit textview_conffile
2015-10-24 14:34:12,364 DEBUG new topwidget <PyQt5.
2015-10-24 14:34:12,364 DEBUG pop layout QGridLayout gridlayout
2015-10-24 14:34:12,364 DEBUG pop widget QDialog dialog_conffile
2015-10-24 14:34:12,364 DEBUG new topwidget None
2015-10-24 14:34:12,365 ERROR not handled exception in KDE frontend:
Traceback (most recent call last):
File "/tmp/ubuntu-
sys.
File "/tmp/ubuntu-
if app.run():
File "/tmp/ubuntu-
return self.fullUpgrade()
File "/tmp/ubuntu-
if not self.doDistUpgr
File "/tmp/ubuntu-
res = self.cache.
File "/tmp/ubuntu-
apt.
File "/usr/lib/
# which is less than optimal!
File "/usr/lib/
File "/tmp/ubuntu-
res = os.WEXITSTATUS(
File "/tmp/ubuntu-
self.
File "/tmp/ubuntu-
InstallProg
File "/usr/lib/
self.
File "/tmp/ubuntu-
self.
TypeError: argument 1 has unexpected type 'NoneType'
2015-10-24 14:34:12,366 DEBUG running apport_crash()
2015-10-24 14:34:12,393 DEBUG enabling apt cron job
Related branches
| amichair (amichai2) wrote : | #1 |
| affects: | ubiquity (Ubuntu) → ubuntu-release-upgrader (Ubuntu) |
| tags: | added: kubuntu wily |
| Launchpad Janitor (janitor) wrote : | #2 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in ubuntu-release-upgrader (Ubuntu): | |
| status: | New → Confirmed |
| Changed in ubuntu-release-upgrader (Ubuntu): | |
| importance: | Undecided → Critical |
| Changed in ubuntu-release-upgrader (Ubuntu): | |
| importance: | Critical → High |
| Xavier Aragon (xarax-lp) wrote : | #3 |
The reason of the problem is visible in the python backtrace of the bug description, where line 339 of DistUpgradeView
File "/tmp/ubuntu-
TypeError: argument 1 has unexpected type 'NoneType'
That python code line should most probably be:
i.e. the argument of the connect method should be the self.showConffile method itself, not the return value of that method (I suppose it returns None, which triggers the TypeError).
The problem comes from bug #1423279, which fixed a syntax error, but apparently introduced this other error. The problem has been reported also in bug #1448380, which has been marked fixed for some reason that I fail to understand.
| summary: |
- installer crashed on custom configuration file dialog + release upgrade crashed on custom configuration file dialog |
| Ubuntu QA Website (ubuntuqa) wrote : | #4 |
This bug has been reported on the Ubuntu ISO testing tracker.
A list of all reports related to this bug can be found here:
http://
| tags: | added: iso-testing |
| Changed in ubuntu-release-upgrader (Ubuntu Xenial): | |
| status: | Confirmed → In Progress |
| assignee: | nobody → Brian Murray (brian-murray) |
| Brian Murray (brian-murray) wrote : | #5 |
Thanks for the detailed research Xavier.
| Launchpad Janitor (janitor) wrote : | #6 |
This bug was fixed in the package ubuntu-
---------------
ubuntu-
[ Tim Lunn ]
* DistUpgrade/
* DistUpgrade/
logind inhibitor will be released when os.exec is called as we lose
reference on the fd (LP: #1566141)
[ Brian Murray ]
* DistUpgrade/
(LP: #1509655)
-- Brian Murray <email address hidden> Thu, 07 Apr 2016 15:26:25 -0700
| Changed in ubuntu-release-upgrader (Ubuntu Xenial): | |
| status: | In Progress → Fix Released |


Addition: after killing the frozen installer gui and running 'sudo dpkg --configure -a' in terminal to continue the installation manually, I indeed got the prompt about /etc/tomcat7/ server. xml and whether I want the maintainer's version, the current version, to view diff, etc.
However, after selecting 'n' to keep the currently installed version, a whole new full-screen dialog immediately showed up (full-terminal, that is, i.e. an ascii dialog within the terminal window, not another GUI desktop window) asking me basically the same question again but with a couple more available options (3-way merge etc.).
Maybe that's what trips up the installer - the configuration file choices prompt being presented twice in a row.
I hope this helps.