Jisti/Prosody: File or folder '/etc/prosody/conf.avail/vc.mydomain.org.cfg.lua' to be backed up does not exist

What type of hardware are you using: Virtual machine
What YunoHost version are you running: 12
How are you able to access your server: The webadmin
SSH

Describe your issue

Everything is ok on my Yunohost. I was just trying to upgrade my apps but get an error.

root@sub:~# yunohost tools upgrade apps
Info: The following apps will be upgraded: jitsi, my_webapp, send
Info: Now upgrading jitsi…
Info: Creating a safety backup prior to the upgrade
Info: Collecting files to be backed up for jitsi…
Info: Declaring files to be backed up...
Warning: File or folder '/etc/prosody/conf.avail/vc.mydomain.org.cfg.lua' to be backed up does not exist
Error: Could not back up jitsi
Info: The operation 'Create a backup archive' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20250504-180500-backup_create' to get help
Warning: unable to upgrade apps: Nothing to save
Error: Some apps could not be upgraded
root@sub:~# 

I guess it has to do with this thing of Jitsi Meet requiring Prosody, but don’t know why it complains now.

What should I do?

Thank you

Share relevant logs or error messages

root@sub:~# 
root@sub:~# yunohost log show 20250504-180500-backup_create
description: Create a backup archive
log_path: /var/log/yunohost/operations/20250504-180500-backup_create.log
logs: 
  - 2025-05-04 20:05:01,270: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
  - 2025-05-04 20:05:01,271: DEBUG - + local src=/etc/jitsi
  - 2025-05-04 20:05:01,272: DEBUG - ++ echo apps/jitsi/backup/etc/jitsi
  - 2025-05-04 20:05:01,272: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
  - 2025-05-04 20:05:01,273: DEBUG - + local dest=apps/jitsi/backup/etc/jitsi
  - 2025-05-04 20:05:01,273: DEBUG - + echo '"/etc/jitsi","apps/jitsi/backup/etc/jitsi"'
  - 2025-05-04 20:05:01,274: DEBUG - ++ dirname /home/yunohost.backup/tmp/jitsi-pre-upgrade2/apps/jitsi/backup/etc/jitsi
  - 2025-05-04 20:05:01,275: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/jitsi-pre-upgrade2/apps/jitsi/backup/etc
  - 2025-05-04 20:05:01,276: DEBUG - + ynh_backup /etc/prosody/conf.avail/vc.mydomain.org.cfg.lua
  - 2025-05-04 20:05:01,276: DEBUG - + local target=/etc/prosody/conf.avail/vc.mydomain.org.cfg.lua
  - 2025-05-04 20:05:01,276: DEBUG - + local is_data=false
  - 2025-05-04 20:05:01,276: DEBUG - + [[ -n jitsi ]]
  - 2025-05-04 20:05:01,277: DEBUG - + [[ /etc/prosody/conf.avail/vc.mydomain.org.cfg.lua =~ ^/var/log/jitsi/?\*?$ ]]
  - 2025-05-04 20:05:01,277: DEBUG - + [[ -n '' ]]
  - 2025-05-04 20:05:01,277: DEBUG - + [[ -n jitsi ]]
  - 2025-05-04 20:05:01,278: DEBUG - ++ ynh_app_setting_get --key=do_not_backup_data
  - 2025-05-04 20:05:01,278: DEBUG - ++ local _globalapp=jitsi
  - 2025-05-04 20:05:01,278: DEBUG - ++ args_array=(['a']='app=' ['k']='key=')
  - 2025-05-04 20:05:01,278: DEBUG - ++ local -A args_array
  - 2025-05-04 20:05:01,278: DEBUG - ++ local app
  - 2025-05-04 20:05:01,278: DEBUG - ++ local key
  - 2025-05-04 20:05:01,278: DEBUG - ++ ynh_handle_getopts_args --key=do_not_backup_data
  - 2025-05-04 20:05:01,279: DEBUG - +++ set +o
  - 2025-05-04 20:05:01,279: DEBUG - +++ grep xtrace
  - 2025-05-04 20:05:01,280: DEBUG - ++ local 'xtrace_enable=set -o xtrace'
  - 2025-05-04 20:05:01,280: DEBUG - ++ set +o xtrace
  - 2025-05-04 20:05:01,292: DEBUG - ++ app=jitsi
  - 2025-05-04 20:05:01,292: DEBUG - ++ ynh_app_setting get jitsi do_not_backup_data
  - 2025-05-04 20:05:01,293: DEBUG - +++ set +o
  - 2025-05-04 20:05:01,293: DEBUG - +++ grep xtrace
  - 2025-05-04 20:05:01,294: DEBUG - ++ local 'xtrace_enable=set -o xtrace'
  - 2025-05-04 20:05:01,294: DEBUG - ++ set +o xtrace
  - 2025-05-04 20:05:01,334: DEBUG - + local do_not_backup_data=
  - 2025-05-04 20:05:01,334: DEBUG - + [[ false == true ]]
  - 2025-05-04 20:05:01,334: DEBUG - + '[' '!' -e /etc/prosody/conf.avail/vc.mydomain.org.cfg.lua ']'
  - 2025-05-04 20:05:01,334: DEBUG - + ynh_print_warn 'File or folder '\''/etc/prosody/conf.avail/vc.mydomain.org.cfg.lua'\'' to be backed up does not exist'
  - 2025-05-04 20:05:01,334: DEBUG - + echo 'File or folder '\''/etc/prosody/conf.avail/vc.mydomain.org.cfg.lua'\'' to be backed up does not exist'
  - 2025-05-04 20:05:01,336: WARNING - File or folder '/etc/prosody/conf.avail/vc.mydomain.org.cfg.lua' to be backed up does not exist
  - 2025-05-04 20:05:01,336: DEBUG - + return 1
  - 2025-05-04 20:05:01,336: DEBUG - + ynh_exit_properly
  - 2025-05-04 20:05:01,336: DEBUG - + local exit_code=1
  - 2025-05-04 20:05:01,336: DEBUG - + [[ backup =~ ^install$|^upgrade$|^restore$ ]]
  - 2025-05-04 20:05:01,336: DEBUG - + '[' 1 -eq 0 ']'
  - 2025-05-04 20:05:01,336: DEBUG - + trap '' EXIT
  - 2025-05-04 20:05:01,337: DEBUG - + set +o errexit
  - 2025-05-04 20:05:01,337: DEBUG - + set +o nounset
  - 2025-05-04 20:05:01,337: DEBUG - + sleep 0.5
  - 2025-05-04 20:05:01,835: DEBUG - + exit 1
  - 2025-05-04 20:05:01,937: DEBUG - Could not run script: /var/cache/yunohost/app_tmp_work_dirs/app_mau1mlj3/scripts/backup
  - 2025-05-04 20:05:01,939: ERROR - Could not back up jitsi
metadata: 
  args: 
    apps: jitsi
    name: jitsi-pre-upgrade2
    system: None
  ended_at: 2025-05-04 20:05:01
  error: Nothing to save
  interface: cli
  operation: backup_create
  parent: None
  related_to: 
    - app
    - jitsi
  started_at: 2025-05-04 20:05:00
  success: False
  yunohost_version: 12.0.14
metadata_path: /var/log/yunohost/operations/20250504-180500-backup_create.yml
name: 20250504-180500-backup_create
root@sub:~# 

Can you share the output of

sudo ls -l /etc/prosody/conf.avail/vc.mydomain.org.cfg.lua

?

Thank you (and apologies, I should have added that info : )

root@sub:~# ls -l /etc/prosody/conf.avail/vc.mydomain.org.cfg.lua
ls: cannot access '/etc/prosody/conf.avail/vc.mydomain.org.cfg.lua': No such file or directory
root@sub:~# ls -l /etc/prosody
ls: cannot access '/etc/prosody': No such file or directory
root@sub:~# 
root@sub:~# dpkg -l | grep prosody
ii  prosody                               0.12.3-1                                        amd64        Lightweight Jabber/XMPP server
root@sub:~# systemctl status prosody
○ prosody.service - Prosody XMPP Server
     Loaded: loaded (/lib/systemd/system/prosody.service; disabled; preset: enabled)
     Active: inactive (dead)
       Docs: https://prosody.im/doc
root@sub:~# 
 

Urgh alright, but that folder is supposed to exists for Jitsi which actually uses Prosody … Could it be that you tried to install the Prosody app or something ?

I cannot remember, but it is possible. I manage several Yunohost servers and I am not sure now.