Fresh Lute install does not work - attempts to write to a readonly database

I have searched the forum for similar issues

on

This category is for issues regarding specific apps, NOT general issues with YunoHost.

on

This form is written in English but feel free to write in French if you’re more comfortable!

on

What app is this about, and its version

Lute, 3.10.3~ynh1

What YunoHost version are you running

12.1.41.2

What type of hardware are you using

VPS bought online

Describe your issue

After installing lute and trying to navigate to the app, the service returns a 502.
In the admin panel, the lute service is not running, and fails immediately upon being started. It seems like the database created during install is read-only, or the service user does not have permission to write to the database that is created.

Share relevant logs or error messages

Oct 15 13:48:54 systemd[1]: Started lute.service - Lute: Learning using texts.
Oct 15 13:48:56 python[3510933]:
Oct 15 13:48:56 python[3510933]: Starting Lute version 3.10.3.
Oct 15 13:48:56 python[3510933]:
Oct 15 13:48:56 python[3510933]: Using specified config: /var/www/lute/config.yml
Oct 15 13:48:56 python[3510933]: data path: /home/yunohost.app/lute
Oct 15 13:48:56 python[3510933]: database: /home/yunohost.app/lute/lute.db
Oct 15 13:48:56 python[3510933]:
Oct 15 13:48:56 python[3510933]: File /var/www/lute/venv/lib/python3.11/site-packages/lute/db/setup/../schema/migrations_repeatable/vacuum.sql exception:
Oct 15 13:48:56 python[3510933]: attempt to write a readonly database
Oct 15 13:48:56 python[3510933]: --------------------------------------------------
Oct 15 13:48:56 python[3510933]: Error during startup:
Oct 15 13:48:56 python[3510933]: Type: <class ‘sqlite3.OperationalError’>
Oct 15 13:48:56 python[3510933]: attempt to write a readonly database
Oct 15 13:48:56 python[3510933]: Please check your setup and try again.
Oct 15 13:48:56 python[3510933]: Ask for help on Discord, or report an issue on GitHub.
Oct 15 13:48:56 python[3510933]: Additionally, help is available with --help.
Oct 15 13:48:56 python[3510933]: --------------------------------------------------
Oct 15 13:48:57 systemd[1]: lute.service: Deactivated successfully.
Oct 15 13:48:57 systemd[1]: lute.service: Consumed 1.107s CPU time.

Can you share the output of
ls /home/yunohost.app/lute/lute.db -lh