Bug 44031 - appcenter InstallRemoveUpgrade._apt_get() incompatible with univention-pkgdb-scan
appcenter InstallRemoveUpgrade._apt_get() incompatible with univention-pkgdb-...
Status: RESOLVED DUPLICATE of bug 43660
Product: UCS
Classification: Unclassified
Component: App Center
UCS 4.1
Other Linux
: P5 normal (vote)
: ---
Assigned To: App Center maintainers
App Center maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-03-22 18:01 CET by Felix Botner
Modified: 2017-04-05 13:57 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.057
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2017-03-22 18:01:25 CET
InstallRemoveUpgrade._apt_get() calls apt-get with the option APT::Status-Fd=1.

This is problematic for apt's Post-Invoke (Pre?) hooks as they now don't have a stdout now.


apt-get install -o APT::Status-Fd=1 libquorum4 
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
Die folgenden zusätzlichen Pakete werden installiert:
  libcoroipcc4
Die folgenden NEUEN Pakete werden installiert:
  libcoroipcc4 libquorum4
0 aktualisiert, 2 neu installiert, 0 zu entfernen und 36 nicht aktualisiert.
Es müssen 302 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 380 kB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren [J/n]? y
dlstatus:1:0:Holen der Datei 1 von 2
Holen: 1 https://updates.software-univention.de/4.1/maintained/ 4.1-0/amd64/ libcoroipcc4 1.4.2-3.10.201511021454 [153 kB]
dlstatus:1:0:Holen der Datei 1 von 2
0% [1 libcoroipcc4 0 B/153 kB 0%]dlstatus:2:50.6553:Holen der Datei 2 von 2
Holen: 2 https://updates.software-univention.de/4.1/maintained/ 4.1-0/amd64/ libquorum4 1.4.2-3.10.201511021454 [149 kB]
dlstatus:2:50.6553:Holen der Datei 2 von 2
51% [2 libquorum4 0 B/149 kB 0%]dlstatus:2:100:Holen der Datei 2 von 2
Es wurden 302 kB in 0 s geholt (570 kB/s).
pmstatus:dpkg-exec:0:Ausführen von dpkg
                                       Vormals nicht ausgewähltes Paket libcoroipcc4 wird gewählt.
(Lese Datenbank ... 127292 Dateien und Verzeichnisse sind derzeit installiert.)
Entpacken von libcoroipcc4 (aus .../libcoroipcc4_1.4.2-3.10.201511021454_amd64.deb) ...
pmstatus:libcoroipcc4:0:libcoroipcc4 wird installiert.
                                                      pmstatus:libcoroipcc4:10:libcoroipcc4 wird vorbereitet.
                                                                                                             pmstatus:libcoroipcc4:20:libcoroipcc4 wird entpackt.
   pmstatus:libcoroipcc4:30:Konfiguration von libcoroipcc4 wird vorbereitet.
                                                                            Vormals nicht ausgewähltes Paket libquorum4 wird gewählt.
Entpacken von libquorum4 (aus .../libquorum4_1.4.2-3.10.201511021454_amd64.deb) ...
pmstatus:libquorum4:30:libquorum4 wird installiert.
                                                   pmstatus:libquorum4:40:libquorum4 wird vorbereitet.
                                                                                                      pmstatus:libquorum4:50:libquorum4 wird entpackt.
                                                                                                                                                      pmstatus:libquorum4:60:Konfiguration von libquorum4 wird vorbereitet.
                                                             pmstatus:dpkg-exec:60:Ausführen von dpkg
                                                                                                     libcoroipcc4 (1.4.2-3.10.201511021454) wird eingerichtet ...
pmstatus:libcoroipcc4:60:libcoroipcc4 wird konfiguriert.
                                                        pmstatus:libcoroipcc4:70:libcoroipcc4 wird konfiguriert.
                                                                                                                pmstatus:libcoroipcc4:80:libcoroipcc4 installiert
   libquorum4 (1.4.2-3.10.201511021454) wird eingerichtet ...
pmstatus:libquorum4:80:libquorum4 wird konfiguriert.
                                                    pmstatus:libquorum4:90:libquorum4 wird konfiguriert.
                                                                                                        pmstatus:libquorum4:100:libquorum4 installiert
                                                                                                                                                      Traceback (most recent call last):
  File "/usr/sbin/univention-pkgdb-scan", line 37, in <module>
    univention.pkgdb.main()
  File "/usr/lib/pymodules/python2.7/univention/pkgdb.py", line 577, in main
    return action_scan(connection, cursor, config_registry)
  File "/usr/lib/pymodules/python2.7/univention/pkgdb.py", line 482, in action_scan
    scan_and_store_packages(cursor, sysname, fake_null)
  File "/usr/lib/pymodules/python2.7/univention/pkgdb.py", line 417, in scan_and_store_packages
    cursor.execute(delete_packages, {'sysname': sysname, })
  File "/usr/lib/python2.7/dist-packages/pgdb.py", line 259, in execute
    self.executemany(operation, (params,))
  File "/usr/lib/python2.7/dist-packages/pgdb.py", line 291, in executemany
    raise OperationalError("internal error in '%s': %s" % (sql, err))
pg.OperationalError: internal error in '
        DELETE FROM packages_on_systems
               WHERE sysname = 'master'
        ': SSL error: tlsv1 alert protocol version

close failed in file object destructor:
sys.excepthook is missing
lost sys.stderr
Comment 1 Dirk Wiesenthal univentionstaff 2017-04-05 13:57:08 CEST

*** This bug has been marked as a duplicate of bug 43660 ***