Bug 753466

Summary: createrepo fails with sqlite3.DatabaseError: file is encrypted or is not a database
Product: [Fedora] Fedora Reporter: upgradeservices
Component: repoviewAssignee: Konstantin Ryabitsev <icon>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 16CC: icon, james.antill, lmacken
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-14 15:30:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description upgradeservices 2011-11-12 18:36:18 UTC
running pungi to create an x86 build on an x64 host results in a crash:

setarch i686 pungi --name=F16 --ver=F16 --destdir=/f16/p_dest --cachedir=/f16/p_cache --nosource --force --config=/f16/ks.cfg -C -B

Pungi:INFO: Making repodata

Saving Primary metadata
Saving file lists metadata
Saving other metadata
Generating sqlite DBs
Sqlite DBs complete
Pungi:INFO: Running /usr/bin/repoview --quiet --state-dir /f16/p_cache/repoviewcache --title "F16 F16 - i386" /f16/p_dest/F16/i386/os
Pungi:ERROR: Got an error from /usr/bin/repoview
Pungi:ERROR: Traceback (most recent call last):
  File "/usr/bin/repoview", line 932, in <module>
    main()
  File "/usr/bin/repoview", line 929, in main
    Repoview(opts)
  File "/usr/bin/repoview", line 162, in __init__
    letters = self.setup_letter_groups()
  File "/usr/bin/repoview", line 774, in setup_letter_groups
    pcursor.execute(query)
sqlite3.DatabaseError: file is encrypted or is not a database

Traceback (most recent call last):
  File "/usr/bin/pungi", line 222, in <module>
    main()
  File "/usr/bin/pungi", line 120, in main
    mypungi.doCreaterepo()
  File "/usr/lib/python2.7/site-packages/pypungi/__init__.py", line 807, in doCreaterepo
    self._makeMetadata(self.topdir, cachedir, compsfile, repoview=True, repoviewtitle=repoviewtitle)
  File "/usr/lib/python2.7/site-packages/pypungi/__init__.py", line 783, in _makeMetadata
    pypungi.util._doRunCommand(repoview, self.logger)
  File "/usr/lib/python2.7/site-packages/pypungi/util.py", line 36, in _doRunCommand
    raise OSError, "Got an error from %s: %s" % (command[0], err)
OSError: Got an error from /usr/bin/repoview: Traceback (most recent call last):
  File "/usr/bin/repoview", line 932, in <module>
    main()
  File "/usr/bin/repoview", line 929, in main
    Repoview(opts)
  File "/usr/bin/repoview", line 162, in __init__
    letters = self.setup_letter_groups()
  File "/usr/bin/repoview", line 774, in setup_letter_groups
    pcursor.execute(query)
sqlite3.DatabaseError: file is encrypted or is not a database

Comment 1 seth vidal 2011-11-14 15:08:48 UTC
this is a bug in repoview - it assumes bzip2 for the compression on the sqlite dbs from the repodata.


reassigning.

Comment 2 Konstantin Ryabitsev 2011-11-14 15:30:14 UTC

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