Bug 753466 - createrepo fails with sqlite3.DatabaseError: file is encrypted or is not a database
Summary: createrepo fails with sqlite3.DatabaseError: file is encrypted or is not a da...
Keywords:
Status: CLOSED DUPLICATE of bug 749028
Alias: None
Product: Fedora
Classification: Fedora
Component: repoview
Version: 16
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Konstantin Ryabitsev
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-12 18:36 UTC by upgradeservices
Modified: 2014-01-21 23:20 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-14 15:30:14 UTC
Type: ---


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.