Closed tio-trom closed 1 year ago
Can you try to upgrade from testing?
It also fails:
282316 DEBUG yarn run v1.22.19
282446 DEBUG $ prisma migrate deploy
284602 DEBUG Environment variables loaded from .env
284603 DEBUG Prisma schema loaded from prisma/schema.prisma
284685 DEBUG Datasource "db": PostgreSQL database "umami", schema "public" at "localhost:5432"
284920 DEBUG
284920 DEBUG 1 migration found in prisma/migrations
284920 DEBUG
284997 DEBUG Error: P3005
284997 DEBUG
284998 DEBUG The database schema is not empty. Read more about how to baseline an existing production database: https://pris.ly/d/migrate-baseline
284998 DEBUG
285037 DEBUG error Command failed with exit code 1.
285037 DEBUG info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
285054 DEBUG + ynh_exit_properly
285055 DEBUG + local exit_code=1
285055 DEBUG + rm -rf /var/cache/yunohost/download/
285058 DEBUG + '[' 1 -eq 0 ']'
285058 DEBUG + trap '' EXIT
285058 DEBUG + set +o errexit
285059 DEBUG + set +o nounset
285059 DEBUG + sleep 0.5
285561 DEBUG + type -t ynh_clean_setup
285561 DEBUG + ynh_clean_setup
285561 DEBUG + ynh_restore_upgradebackup
285561 DEBUG + ynh_print_err '--message=Upgrade failed.'
285562 DEBUG + local legacy_args=m
285562 DEBUG + args_array=([m]=message=)
285562 DEBUG + local -A args_array
285562 DEBUG + local message
285562 DEBUG + ynh_handle_getopts_args '--message=Upgrade failed.'
285563 DEBUG + set +o xtrace
285580 DEBUG + ynh_print_log '[Error] Upgrade failed.'
285580 DEBUG + echo -e '[Error] Upgrade failed.'
285581 DEBUG + local app_bck=umami
285581 DEBUG + NO_BACKUP_UPGRADE=0
285581 DEBUG + '[' 0 -eq 0 ']'
285582 DEBUG + ynh_backup_archive_exists umami-pre-upgrade1
285583 WARNING [Error] Upgrade failed.
285584 DEBUG + yunohost backup list --output-as json --quiet
285584 DEBUG + jq -e --arg archive umami-pre-upgrade1 '.archives | index($archive)'
285889 DEBUG + yunohost app remove umami
286180 DEBUG Removing umami...
286470 DEBUG [+...................] > Loading installation settings...
287499 DEBUG [#++.................] > Removing umami service integration...
287921 DEBUG [###+................] > Stopping and removing the systemd service...
288646 DEBUG [####++..............] > Removing logrotate configuration...
288777 DEBUG [######+++...........] > Removing the PostgreSQL database...
290170 DEBUG [#########++++.......] > Removing app main directory...
294751 DEBUG [#############++.....] > Removing NGINX web server configuration...
295210 DEBUG [###############+....] > Removing dependencies...
299254 DEBUG '/usr/local/n' wasn't deleted because it doesn't exist.
299375 DEBUG [################++..] > Removing the dedicated system user...
299747 DEBUG [####################] > Removal of umami completed
300750 DEBUG umami uninstalled
301272 WARNING sh: 0: getcwd() failed: No such file or directory
301282 WARNING sh: 0: getcwd() failed: No such file or directory
301290 WARNING sh: 0: getcwd() failed: No such file or directory
302237 DEBUG The operation 'Remove the 'umami' app' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20220628-140606-app_remove-umami' to get help
302248 WARNING This action broke dpkg/APT (the system package managers)... You can try to solve this issue by connecting through SSH and running `sudo apt install --fix-broken` and/or `sudo dpkg --configure -a`.
302308 DEBUG + yunohost backup restore umami-pre-upgrade1 --apps umami --force --debug
302484 DEBUG 134 initializing base actions map parser for cli
302487 DEBUG 136 loading actions map namespace 'yunohost'
302490 DEBUG 140 building parser...
302497 DEBUG 146 building parser took 0.006s
302499 DEBUG 148 acquiring lock...
302548 DEBUG 198 loading python module yunohost.backup took 0.030s
302549 DEBUG 198 processing action [27069.1]: yunohost.backup.restore with args={'name': 'umami-pre-upgrade1', 'system': None, 'apps': ['umami'], 'force': True}
302550 DEBUG 200 Preparing archive for restoration...
302550 DEBUG 200 Extracting needed files from the archive...
Full log here https://paste.yunohost.org/raw/egizexodeg
new update https://github.com/YunoHost-Apps/umami_ynh/pull/4
Umami had a schema and a number of breaking changes from v1 to v2 it is advice to do a clean install.
I mainly see this
sh: 0: getcwd() failed: No such file or directory
- full log here https://paste.yunohost.org/raw/didapapeseI see the same error while updating Nitter.