Portindex fails (2.10.0)

Gerben Wierda gerben.wierda at rna.nl
Tue Aug 13 22:55:40 UTC 2024


Seems to be related to https://trac.macports.org/ticket/70511

> On 14 Aug 2024, at 00:23, Gerben Wierda <gerben.wierda at rna.nl> wrote:
> 
> I have three Macs, two of which running Sonoma. On one I have updated to 2.10.0 without trouble. All three systems are configured in the same way (obviously not…)
> 
> When I have updated my ports (using git, I keep my own fork/clone in case I do maintenance on a port), I tend to run portindex
> 
> On two of the three systems this fails:
> 
> % portindex
> sqlite error: attempt to write a readonly database (8) while executing query: CREATE INDEX registry.snapshot_file_id ON snapshot_files(id)
>     while executing
> "registry::open $db_path"
>     (procedure "mportinit" line 832)
>     invoked from within
> "mportinit ui_options global_options"
>     (file "/opt/local/bin/portindex" line 22)
> 
> Portindex and Portindex.quick are owned by me. portindex -d doesn’t give extra information. So, I am a bit at a loss.
> 
> Apparently it is looking elsewhere. But where and why?

It isn't looking elsewhere. With a sudo it works. After that it works also without a sudo. Weird.

I probably forgot I did one with sudo as well on the other system.

> 
> Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>)
> R&A Enterprise Architecture <https://ea.rna.nl/> (main site)
> Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/>
> Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20240814/64ca74a2/attachment.htm>


More information about the macports-users mailing list