Opened 13 years ago
Last modified 9 years ago
#32686 closed defect
Registry DB corrupted after selfupdate — at Version 2
Reported by: | falkschramm@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | base | Version: | 2.0.3 |
Keywords: | lack-of-interest | Cc: | |
Port: |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
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 (2)
comment:1 Changed 13 years ago by falkschramm@…
Cc: | falkschramm@… added |
---|
comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | falkschramm@… removed |
---|---|
Component: | ports → base |
Description: | modified (diff) |
I don't know why your registry corrupted, nor how to fix it. But I do want to point out that "port list" doesn't do what you think it does.
Note: See
TracTickets for help on using
tickets.
Cc Me!