Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Can't restore #7

Closed
anmol26s opened this issue Sep 19, 2018 · 1 comment
Closed

Can't restore #7

anmol26s opened this issue Sep 19, 2018 · 1 comment

Comments

@anmol26s
Copy link
Contributor

Hi

I am unable to restore the app to a new server.

Logs:


 main
97893 DEBUG + ynh_abort_if_errors
97893 DEBUG + set -eu
97893 DEBUG + trap ynh_exit_properly EXIT
97893 DEBUG + local app=zeronet
97893 DEBUG ++ ynh_app_setting_get zeronet domain
97893 DEBUG ++ sudo yunohost app setting zeronet domain --output-as plain --quiet
98294 DEBUG + local domain=zero.domain.tld
98295 DEBUG ++ ynh_app_setting_get zeronet path
98295 DEBUG ++ sudo yunohost app setting zeronet path --output-as plain --quiet
98496 DEBUG + local path=/
98496 DEBUG ++ ynh_app_setting_get zeronet deploy_path
98496 DEBUG ++ sudo yunohost app setting zeronet deploy_path --output-as plain --quiet
98797 DEBUG + local deploy_path=/var/www/zeronet-v0.6.2
98797 DEBUG ++ ynh_app_setting_get zeronet symlink_to_deploy_path
98798 DEBUG ++ sudo yunohost app setting zeronet symlink_to_deploy_path --output-as plain --quiet
99099 DEBUG + local symlink_to_deploy_path=/var/www/zeronet
99099 DEBUG ++ ynh_app_setting_get zeronet nginx_config_file
99099 DEBUG ++ sudo yunohost app setting zeronet nginx_config_file --output-as plain --quiet
99400 DEBUG + local nginx_config_file=/etc/nginx/conf.d/zero.domain.tld.d/zeronet.conf
99400 DEBUG ++ ynh_app_setting_get zeronet systemd_service_name
99401 DEBUG ++ sudo yunohost app setting zeronet systemd_service_name --output-as plain --quiet
99701 DEBUG + local systemd_service_name=ynh-zeronet-user.service
99702 DEBUG ++ ynh_app_setting_get zeronet systemd_service_file
99702 DEBUG ++ sudo yunohost app setting zeronet systemd_service_file --output-as plain --quiet
100003 DEBUG + local systemd_service_file=/etc/systemd/system/ynh-zeronet-user.service
100003 DEBUG ++ ynh_app_setting_get zeronet user
100003 DEBUG ++ sudo yunohost app setting zeronet user --output-as plain --quiet
100304 DEBUG + local user=user
100305 DEBUG ++ ynh_app_setting_get zeronet user_zeronet_dir
100305 DEBUG ++ sudo yunohost app setting zeronet user_zeronet_dir --output-as plain --quiet
100706 DEBUG + local user_zeronet_dir=/home/user/.zeronet
100706 DEBUG ++ ynh_app_setting_get zeronet url
100706 DEBUG ++ sudo yunohost app setting zeronet url --output-as plain --quiet
101007 DEBUG + local url=zero.domain.tld/
101008 DEBUG + is_app_restorable zero.domain.tld / /var/www/zeronet-v0.6.2
101008 DEBUG + local -r domain=zero.domain.tld
101008 DEBUG + local -r path=/
101008 DEBUG + local -r deploy_path=/var/www/zeronet-v0.6.2
101008 DEBUG + ynh_webpath_available zero.domain.tld /
101008 DEBUG + local domain=zero.domain.tld
101009 DEBUG + local path=/
101009 DEBUG + sudo yunohost domain url-available zero.domain.tld /
101510 DEBUG False
101511 DEBUG + test '!' -d /var/www/zeronet-v0.6.2
101511 DEBUG + install_dependencies
101511 DEBUG + sudo apt-get install --quiet --yes python-msgpack python-gevent
101912 DEBUG Reading package lists...
102113 DEBUG Building dependency tree...
102114 DEBUG Reading state information...
102515 DEBUG python-msgpack is already the newest version (0.4.8-1).
102515 DEBUG python-gevent is already the newest version (1.1.2-1).
102515 DEBUG 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
102516 DEBUG + sudo cp -a ./sources /var/www/zeronet-v0.6.2
102817 DEBUG + sudo ln --symbolic --force /var/www/zeronet-v0.6.2 /var/www/zeronet
102817 DEBUG + sudo chown user: -LR /var/www/zeronet
102918 DEBUG + sudo chown user: -h /var/www/zeronet
102918 WARNING cp: cannot create directory '/home/user/.zeronet': No such file or directory
102918 DEBUG + sudo rm -rf /home/user/.zeronet
102919 WARNING !!
102919 DEBUG + sudo cp -aR ./conf/.zeronet /home/user/.zeronet
102919 WARNING   zeronet's script has encountered an error. Its execution was cancelled.
102919 DEBUG + ynh_exit_properly
102919 WARNING !!
102919 DEBUG + local exit_code=1
102919 WARNING 
102920 DEBUG + '[' 1 -eq 0 ']'
102920 DEBUG + trap '' EXIT
102920 DEBUG + set +eu
102920 DEBUG + echo -e '!!\n  zeronet'\''s script has encountered an error. Its execution was cancelled.\n!!'
102920 DEBUG + type -t ynh_clean_setup
102920 DEBUG + ynh_die
102921 DEBUG + echo ''
102921 DEBUG + exit 1
@anmol26s
Copy link
Contributor Author

Fixed with this PR #13

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant