Both refresh-cms and init not working

Been wanting to create a local backup before I grant new translators translation permissions, but that fails.

This is the error I get when I try to run ./utils/refresh-cms on my local inkscape-web instance, with my old db:

error_log.txt

This is the error I get for ./utils/init (with the db file removed):

error_init.txt