Ticket #32686 (closed defect: fixed)
Registry DB corrupted after selfupdate
| Reported by: | falkschramm@… | Owned by: | macports-tickets@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | base | Version: | 2.0.3 |
| Keywords: | lack-of-interest | Cc: | pixilla@…, cal@… |
| Port: |
Description (last modified by ryandesign@…) (diff)
Hi there,
After running "port selfupdate" today the registry DB seems to be corrupted. Before "port list outdated" was running fine. After the selfupdate it fails with the following error message:
Error: /opt/local/bin/port: port installed failed: sqlite error: SQL logic error or missing database (1) while executing query: SELECT name FROM registry.ports WHERE id=572
Looking into the /opt/local/var/macports/registry/registry.db file with sqlite3 the file seems to be corrupted:
sqlite> SELECT id FROM ports;
Fails after ID 571 with "Error: database disk image is malformed".
So far it seems that the selfupdate corrupted the registry.db file.
Is there any way to rebuild/reconstruct the file?
Thanks in advance,
Falk
Change History
Note: See
TracTickets for help on using
tickets.

