Changes between Initial Version and Version 2 of Ticket #32686


Ignore:
Timestamp:
Dec 28, 2011, 5:35:28 PM (13 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

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.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32686

    • Property Component changed from ports to base
  • Ticket #32686 – Description

    initial v2  
    1 Hi there,
    2 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:
     1Hi there, [[br]]
     2After 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:
     3{{{
    34Error: /opt/local/bin/port: port installed failed: sqlite error: SQL logic error or missing
    45database (1) while executing query: SELECT name FROM registry.ports WHERE id=572
     6}}}
    57
    68Looking into the /opt/local/var/macports/registry/registry.db file with sqlite3 the file seems to be corrupted:
     9{{{
    710sqlite> SELECT id FROM ports;
    8 Fails after ID 571 with "Error: database disk image is malformed".
     11}}}
     12Fails after ID 571 with "{{{Error: database disk image is malformed}}}".
    913
    10 So far it seems that the selfupdate corrupted the registry.db file.
     14So far it seems that the selfupdate corrupted the registry.db file. [[br]]
    1115Is there any way to rebuild/reconstruct the file?
    1216
    13 Thanks in advance,
     17Thanks in advance, [[br]]
    1418Falk