wordpress, zoph: php? database? issues after dist upgrade to Bookworm
After dist upgrade from Bullseye to Bookworm, attempting to install Zoph gives this error:
Mar 10 23:51:06 freedombox sudo[689115]: plinth : PWD=/ ; USER=root ; COMMAND=/usr/share/plinth/actions/actions zoph setup --write-fd 25
Mar 10 23:51:06 freedombox sudo[689115]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=114)
Mar 10 23:51:07 freedombox /usr/share/plinth/actions/actions[689117]: Error executing action: Command '['zoph', '--config', 'import.enable', 'true']' returned non-zero exit status 255.
Traceback (most recent call last):
File "/usr/share/plinth/actions/actions", line 92, in _call
return_values = func(*arguments['args'], **arguments['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/plinth/modules/zoph/privileged.py", line 47, in setup
_zoph_configure('import.enable', 'true')
File "/usr/lib/python3/dist-packages/plinth/modules/zoph/privileged.py", line 41, in _zoph_configure
subprocess.run(['zoph', '--config', key, value], check=True)
File "/usr/lib/python3.11/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['zoph', '--config', 'import.enable', 'true']' returned non-zero exit status 255.
Mar 10 23:51:07 freedombox sudo[689115]: pam_unix(sudo:session): session closed for user root
Mar 10 23:51:07 freedombox /usr/bin/plinth[420966]: Error running action zoph..setup(*(), **{}): Command '['zoph', '--config', 'import.enable', 'true']' returned non-zero exit status 255. (255, ['zoph', '--config', 'import.enable', 'true'], b'', b'PHP Fatal error: Uncaught db\\exception: Unable to get records: SQLSTATE[HY000] [1049] Unknown database \'zoph\' in /usr/share/zoph/www/php/classes/zophTable.inc.php:638\nStack trace:\n#0 /usr/share/zoph/www/php/classes/zophTable.inc.php(587): zophTable::getRecordsFromQuery()\n#1 /usr/share/zoph/www/php/classes/zophTable.inc.php(772): zophTable::getRecords()\n#2 /usr/share/zoph/www/php/classes/conf/confDefault.inc.php(170): zophTable::getSelectArray()\n#3 /usr/share/zoph/www/php/classes/conf/confDefault.inc.php(55): conf\\confDefault::getConfigInterface()\n#4 /usr/share/zoph/www/php/classes/conf/conf.inc.php(69): conf\\confDefault::getConfig()\n#5 /usr/share/zoph/www/php/classes/conf/conf.inc.php(165): conf\\conf::loadFromDB()\n#6 /usr/share/zoph/www/php/classes/auth/cli.inc.php(45): conf\\conf::get()\n#7 /usr/share/zoph/www/php/auth.inc.php(55): auth\\cli->__construct()\n#8 /usr/share/zoph/www/php/include.inc.php(43): require_once(\'...\')\n#9 /usr/bin/zoph(95): require_once(\'...\')\n#10 /usr/bin/zoph(66): init()\n#11 {main}\n thrown in /usr/share/zoph/www/php/classes/zophTable.inc.php on line 638\n\x1b[31m ERROR\x1b[0m \x1b[94m__main__ \x1b[0m Error executing action: Command \'[\'zoph\', \'--config\', \'import.enable\', \'true\']\' returned non-zero exit status 255.\nTraceback (most recent call last):\n File "/usr/share/plinth/actions/actions", line 92, in _call\n return_values = func(*arguments[\'args\'], **arguments[\'kwargs\'])\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib/python3/dist-packages/plinth/modules/zoph/privileged.py", line 47, in setup\n _zoph_configure(\'import.enable\', \'true\')\n File "/usr/lib/python3/dist-packages/plinth/modules/zoph/privileged.py", line 41, in _zoph_configure\n subprocess.run([\'zoph\', \'--config\', key, value], check=True)\n File "/usr/lib/python3.11/subprocess.py", line 571, in run\n raise CalledProcessError(retcode, process.args,\nsubprocess.CalledProcessError: Command \'[\'zoph\', \'--config\', \'import.enable\', \'true\']\' returned non-zero exit status 255.\n') [' File "/usr/share/plinth/actions/actions", line 92, in _call\n return_values = func(*arguments[\'args\'], **arguments[\'kwargs\'])\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n', ' File "/usr/lib/python3/dist-packages/plinth/modules/zoph/privileged.py", line 47, in setup\n _zoph_configure(\'import.enable\', \'true\')\n', ' File "/usr/lib/python3/dist-packages/plinth/modules/zoph/privileged.py", line 41, in _zoph_configure\n subprocess.run([\'zoph\', \'--config\', key, value], check=True)\n', ' File "/usr/lib/python3.11/subprocess.py", line 571, in run\n raise CalledProcessError(retcode, process.args,\n']
Mar 10 23:51:07 freedombox /usr/bin/plinth[420966]: Setup completed: zoph: Error installing app: Command '['zoph', '--config', 'import.enable', 'true']' returned non-zero exit status 255. Command '['zoph', '--config', 'import.enable', 'true']' returned non-zero exit status 255.
Also, the WordPress site shows a blank page only. I didn't find any logs related to it.