[MacPorts] #70523: port 2.10.0 port command errors after selfupdate to 2.10.0

MacPorts noreply at macports.org
Sat Aug 10 02:53:10 UTC 2024


#70523: port 2.10.0 port command errors after selfupdate to 2.10.0
------------------------+--------------------
 Reporter:  bal-agates  |      Owner:  (none)
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.10.0
 Keywords:              |       Port:
------------------------+--------------------
 I just did an MacPorts selfupdate.

 {{{
 $ sudo port selfupdate
 Password:
 --->  Updating MacPorts base sources using rsync
 MacPorts base version 2.9.3 installed,
 MacPorts base version 2.10.0 downloaded.
 --->  Updating the ports tree
 --->  MacPorts base is outdated, installing new version 2.10.0
 Installing new MacPorts release in /opt/local as root:wheel; permissions
 0755


 The ports tree has been updated. To upgrade your installed ports, you
 should run
   port upgrade outdated
 }}}

 Now the port command fails no matter what command options are selected.

 {{{
 $ port
 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 global_variations"
 Error: /opt/local/bin/port: Failed to initialize MacPorts, sqlite error:
 attempt to write a readonly database (8) while executing query: CREATE
 INDEX registry.snapshot_file_id ON snapshot_files(id)

 $ port outdated
 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 global_variations"
 Error: /opt/local/bin/port: Failed to initialize MacPorts, sqlite error:
 attempt to write a readonly database (8) while executing query: CREATE
 INDEX registry.snapshot_file_id ON snapshot_files(id)
 }}}

 I have done selfupdate many times in the past without issues.  Has
 something changed in 2.10.0 or are there bugs?  What database file is
 trying to be accessed?

 System: macOS 14.6.1 on MacBook Pro 2021 (M1).

-- 
Ticket URL: <https://trac.macports.org/ticket/70523>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list