I fixed my problem by deinstall the app and restore the last backup.
Then i tried to update from 2.17.1~ynh1 to 2.20.3~ynh1 but it doesn’t work, because of:
PostgreSQL 14 or later is required (found 13.20).
@wazdra How to fix that? See: Paperless doesn't start - #4 by jedie