YunoHost-Apps / zerotier_ynh

ZeroTier networking app for YunoHost
GNU General Public License v3.0
7 stars 1 forks source link

Service handling #2

Closed tituspijean closed 4 years ago

tituspijean commented 4 years ago

There may be an issue with the annoucement/handling of the zerotier service:

Deleting...
A LXC container is already running.
Working time: 2 seconds.
Working time: 14 seconds.
Deleting successful. (0)
Info: yunohost.app app_remove - [947.1] Removing application zerotier…
Error: yunohost cli - Unknown service 'zerotier'
Info:  [++++................] > Loading installation settings... [00h00m,00s]
Info:  [####++++............] > Removing dependencies... [00h00m,01s]
Info:  /etc/apt/trusted.gpg.d/zerotier.asc wasn't deleted because it doesn't exist.
Info:  [########++++........] > Removing logrotate configuration... [00h00m,11s]
Backup of the application...
Start the LXC container..
Create witness files...
Working time: 10 seconds.
Working time: 4 seconds.
Backup successful. (0)
Info: yunohost.backup _collect_app_files - [909.1] Collecting files to be backuped for zerotier…
Info:  [+++.................] > Loading installation settings... [00h00m,00s]
Info:  [###+++..............] > Stopping a systemd service... [00h00m,00s]
Info:  [######++++..........] > Backing up logrotate configuration... [00h00m,00s]
Warning: yunohost.hook <lambda> - [909.1] [WARN] Source path '/etc/systemd/system/zerotier-one.service' does not exist
Info:  [##########+++.......] > Backing up systemd configuration... [00h00m,01s]
Warning: yunohost.hook <lambda> - [909.1] [ERR] !!
Warning: yunohost.hook <lambda> - [909.1]   zerotier's script has encountered an error. Its execution was cancelled.
Warning: yunohost.hook <lambda> - [909.1] !!
Warning: yunohost.hook <lambda> - [909.1] Please find here an extract of the log before the crash:
Warning: yunohost.hook <lambda> - [909.1] [DEBUG]: DEBUG   - ++ ynh_app_setting get zerotier do_not_backup_data
Warning: yunohost.hook <lambda> - [909.1] [DEBUG]: DEBUG   - ++ ACTION=get
Warning: yunohost.hook <lambda> - [909.1] [DEBUG]: DEBUG   - ++ APP=zerotier
Warning: yunohost.hook <lambda> - [909.1] [DEBUG]: DEBUG   - ++ KEY=do_not_backup_data
Warning: yunohost.hook <lambda> - [909.1] [DEBUG]: DEBUG   - ++ VALUE=
Warning: yunohost.hook <lambda> - [909.1] [DEBUG]: DEBUG   - ++ python -
Warning: yunohost.hook <lambda> - [909.1] [DEBUG]: DEBUG   - + do_not_backup_data=
Warning: - Source path '/etc/systemd/system/zerotier-one.service' does not exist
Info: -
Warning: yunohost.hook <lambda> - [909.1] [DEBUG]: DEBUG   -'
Warning: yunohost.hook <lambda> - [909.1] [DEBUG]: DEBUG   -
Warning: yunohost.hook <lambda> - [909.1] [DEBUG]: DEBUG   - + ynh_print_warn '--message=Source path '''/etc/systemd/system/zerotier-one.service''' does not exist'
Warning: yunohost.hook <lambda> - [909.1] [DEBUG]: DEBUG   - + local legacy_args=m
Warning: yunohost.hook <lambda> - [909.1] [DEBUG]: DEBUG   -=message=)
Warning: yunohost.hook <lambda> - [909.1] [DEBUG]: DEBUG   - + declare -Ar args_array
Warning: yunohost.hook <lambda> - [909.1] [DEBUG]: DEBUG   - + local message
Warning: yunohost.hook <lambda> - [909.1] [DEBUG]: DEBUG   - + ynh_handle_getopts_args '--message=Source path '''/etc/systemd/system/zerotier-one.service''' does not exist'
Warning: yunohost.hook <lambda> - [909.1] [DEBUG]: DEBUG   - + set +x
Warning: yunohost.hook <lambda> - [909.1] [DEBUG]: DEBUG   - Source path '''/etc/systemd/system/zerotier-one.service''' does not exist'
Warning: yunohost.hook <lambda> - [909.1] [DEBUG]: DEBUG   - Source path '''/etc/systemd/system/zerotier-one.service''' does not exist'
Warning: yunohost.hook <lambda> - [909.1] [DEBUG]: DEBUG   -'
Warning: yunohost.hook <lambda> - [909.1] [DEBUG]: DEBUG   - + echo /etc/systemd/system/zerotier-one.service
Warning: yunohost.hook <lambda> - [909.1] [DEBUG]: DEBUG   - + grep --quiet /etc/fail2ban
Warning: yunohost.hook <lambda> - [909.1] [DEBUG]: DEBUG   - + return 1
Warning: yunohost.hook <lambda> - [909.1] [DEBUG]: DEBUG   - + ynh_exit_properly
Error: yunohost.backup _collect_app_files - [909.1] Unable to back up the app 'zerotier'
Info: yunohost.backup backup_create - [909.1] Now creating a backup archive from the files collected…