[MacPorts] #68009: Improvement to logging for installation of Mariadb server

MacPorts noreply at macports.org
Tue Aug 22 17:01:50 UTC 2023


#68009: Improvement to logging for installation of Mariadb server
-------------------------+-----------------------------
 Reporter:  jasimon9     |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  Normal       |  Milestone:  MacPorts Future
Component:  ports        |    Version:
 Keywords:               |       Port:
-------------------------+-----------------------------
 I had problem upgrading mariadb-10.6-server that took very long to solve.
 It would have been made much easier if the logging that gave the solution
 was also included at the end of the log output along with the other notes
 pertaining to various ports. So this ticket is just a request to improve
 the macports logging for the mariadb server ports.

 The situation appears to be something like the following (because I don't
 have the full log it has to come from memory):

 - task is to upgrade mariadb-10.6-server
 - during the process, macports has to uninstall mariadb-10.6 apparently
 after the mariadb-10.6-server is done
 - but because mariadb-10.6 is dependent upon the server, a notice is
 displayed about that, but then it goes ahead to force the uninstall and
 upgrade of mariadb-10.6. The key part is that there is a notice stating to
 the effect that '''the server mariadb-10.6-server has to be
 reinstalled.'''
 - I did not originally see that. The result was apparently that the server
 install is corrupted such that is has to be redone.
 - The result is that the commands to unload and reload the server shown
 below appeared to function properly, but mariadb as mysqld was not
 running.
   - sudo port unload mariadb-10.6-server
   - sudo port load mariadb-10.6-server

 I could not do any of the usual things to get it to run. Further, there
 was nothing in the error log.

 I finally got it fixed by realizing that the install of the server had to
 be executed by itself, and then the unload/reload sequence. After that all
 was again good.

 A lot of grief could have been avoided simply by taking that error message
 that was obscured by being hidden in all the output and putting at the end
 in a "mariadb-10.6-server has the following notes" section.

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


More information about the macports-tickets mailing list