Skip to content

Instantly share code, notes, and snippets.

@weex
Created November 10, 2021 19:35
Show Gist options
  • Save weex/0f0b64ea576a8b7f0f55613a27ca4259 to your computer and use it in GitHub Desktop.
Save weex/0f0b64ea576a8b7f0f55613a27ca4259 to your computer and use it in GitHub Desktop.
acropolis ynh install error
root@yunohost:~# yunohost app install https://github.com/magicstone-dev/acropolis_ynh.git
DANGER! This app is not part of YunoHost's app catalog. Installing third-party apps may compromise the integrity and security of your system. You should probably NOT install it unless you know what you are doing. NO SUPPORT will be provided if this app doesn't work or breaks your system… If you are willing to take that risk anyway, type 'Yes, I understand': Yes, I understand
Choose the domain where this app should be installed [yunohost.local | git.yunohost.local | testacropolis.yunohost.local | testecko.yunohost.local] (default: yunohost.local): testacropolis.yunohost.local
Choose the path where this app should be installed (default: /example): /
Choose an administrator user for this app [dsterry] (default: dsterry):
Should this app be exposed to anonymous visitors? [yes | no] (default: yes):
Choose the application language [fr | en] (default: fr): en
Choose an administration password for this app:
Error: This password is among the most used passwords in the world. Please choose something more unique.
root@yunohost:~# yunohost app install https://github.com/magicstone-dev/acropolis_ynh.git
DANGER! This app is not part of YunoHost's app catalog. Installing third-party apps may compromise the integrity and security of your system. You should probably NOT install it unless you know what you are doing. NO SUPPORT will be provided if this app doesn't work or breaks your system… If you are willing to take that risk anyway, type 'Yes, I understand': Yes, I understand
Choose the domain where this app should be installed [yunohost.local | git.yunohost.local | testacropolis.yunohost.local | testecko.yunohost.local] (default: yunohost.local): testacropolis.yunohost.local
Choose the path where this app should be installed (default: /example): /
Choose an administrator user for this app [dsterry] (default: dsterry):
Should this app be exposed to anonymous visitors? [yes | no] (default: yes):
Choose the application language [fr | en] (default: fr): en
Choose an administration password for this app:
Info: Installing diaspora...
Info: [+...................] > Validating installation parameters... [00h00m,00s]
Info: [#+..................] > Storing installation settings... [00h00m,00s]
Info: [##+.................] > Finding an available port... [00h00m,01s]
Info: [###+................] > Installing dependencies... [00h00m,00s]
Info: rbenv already seems installed in `/opt/rbenv/bin/rbenv'.
Info: Trying to update with git...
Info: `rbenv install' command already available in `/opt/rbenv/plugins/ruby-build/bin/rbenv-install'.
Info: Trying to update rbenv with git...
Info: `rbenv alias' command already available in `/opt/rbenv/plugins/rbenv-aliase/bin/rbenv-alias'.
Info: Trying to update rbenv-aliases with git...
Info: `rbenv latest' command already available in `/opt/rbenv/plugins/xxenv-latest/bin/rbenv-latest'.
Info: Trying to update xxenv-latest with git...
Info: Installing Ruby-2.7.1
Info: [####+...............] > Configuring system user... [00h04m,36s]
Info: [#####+..............] > Creating a PostgreSQL database...
Info: [######+.............] > Setting up source files... [00h00m,02s]
Info: [#######+............] > Configuring NGINX web server... [00h00m,14s]
Info: [########+...........] > Installing Ruby...
Info: [#########+..........] > Adding a configuration file... [00h00m,00s]
Info: [##########+.........] > Configuring a systemd service... [00h00m,02s]
Warning: Variable $rbenv_root wasn't initialized when trying to replace __RBENV_ROOT__ in /etc/systemd/system/diaspora-web.service
Error: Unable to install diaspora: An error occurred inside the app installation script
Info: The operation 'Install the 'diaspora' app' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20211110-192933-app_install-diaspora' to get help
Warning: Here's an extract of the logs before the crash. It might help debugging the error:
Info: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/systemd/system/diaspora-web.service
Info: DEBUG - + local delimit=@
Info: DEBUG - + for one_var in "${uniques_vars[@]}"
Info: DEBUG - + [[ -v app ]]
Info: DEBUG - + match_string=__APP__
Info: DEBUG - + match_string=__APP__
Info: DEBUG - + replace_string=diaspora
Info: DEBUG - + replace_string=diaspora
Info: DEBUG - + replace_string=diaspora
Info: DEBUG - + sed --in-place s@__APP__@diaspora@g /etc/systemd/system/diaspora-web.service
Info: DEBUG - + for one_var in "${uniques_vars[@]}"
Info: DEBUG - + [[ -v port_web ]]
Info: DEBUG - + match_string=__PORT_WEB__
Info: DEBUG - + match_string=__PORT_WEB__
Info: DEBUG - + replace_string=3002
Info: DEBUG - + replace_string=3002
Info: DEBUG - + replace_string=3002
Info: DEBUG - + sed --in-place s@__PORT_WEB__@3002@g /etc/systemd/system/diaspora-web.service
Info: DEBUG - + for one_var in "${uniques_vars[@]}"
Info: DEBUG - + [[ -v rbenv_root ]]
Info: DEBUG - + ynh_die '--message=Variable $rbenv_root wasn'\''t initialized when trying to replace __RBENV_ROOT__ in /etc/systemd/system/diaspora-web.service'
Warning: Removing the app following the installation failure...
Info: [+...................] > Loading installation settings... [00h00m,00s]
Info: [#++.................] > Stopping and removing the systemd service... [00h00m,00s]
Info: [###++...............] > Removing the diaspora PostgreSQL database..
Info: [#####++.............] > Removing dependencies... [00h00m,01s]
Info: Removing of Ruby-2.7.1
Info: [#######++...........] > Removing app main directory... [00h00m,03s]
Info: [#########+..........] > Removing NGINX web server configuration... [00h00m,00s]
Info: [##########++........] > Removing various files... [00h00m,00s]
Info: '/etc/cron.d/diaspora' wasn't deleted because it doesn't exist.
Info: '/etc/diaspora' wasn't deleted because it doesn't exist.
Info: '/var/log/diaspora' wasn't deleted because it doesn't exist.
Info: [############++......] > Removing the dedicated system user... [00h00m,00s]
Info: [####################] > Removal of diaspora completed [00h00m,00s]
Error: The operation 'Install the 'diaspora' app' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20211110-192933-app_install-diaspora' to get help
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment