Skip to content

Instantly share code, notes, and snippets.

@weex
Created November 15, 2021 20:03
Show Gist options
  • Save weex/9aa7556fe7563f8eb548ab66cbfdbb30 to your computer and use it in GitHub Desktop.
Save weex/9aa7556fe7563f8eb548ab66cbfdbb30 to your computer and use it in GitHub Desktop.
acropolis install error, needing sudo
root@yunohost:~# yunohost app install https://github.com/jobotz/acropolis_ynh/tree/script-improvements -f
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): dsterry
Should this app be exposed to anonymous visitors? [yes | no] (default: yes): yes
Choose the application language [fr | en] (default: fr): en
Choose an administration password for this app:
Info: Installing acropolis...
Info: [....................] > Validating installation parameters... [00h00m,00s]
Info: [+...................] > Storing installation settings... [00h00m,00s]
Info: [#+..................] > Finding an available port... [00h00m,00s]
Info: [##+.................] > Installing dependencies... [00h00m,01s]
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,08s]
Info: [####+...............] > Creating a PostgreSQL database...
Info: [#####+..............] > Setting up source files... [00h00m,01s]
Info: [######+.............] > Configuring NGINX web server... [00h00m,08s]
Info: [#######+............] > Adding swap if needed...
Info: [########+...........] > Adding 0 Mo to swap...
Info: [#########+..........] > Installing Ruby...
Info: [##########+.........] > Adding a configuration file... [00h00m,01s]
Info: [###########+........] > Configuring a systemd service... [00h00m,01s]
Info: [############+.......] > Installing acropolis...
Warning: Following files may not be writable, so sudo is needed:
Warning: /opt/rbenv/versions/2.7.1/bin
Warning: /opt/rbenv/versions/2.7.1/lib/ruby/gems/2.7.0
Warning: /opt/rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/build_info
Warning: /opt/rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/cache
Warning: /opt/rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/doc
Warning: /opt/rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/extensions
Warning: /opt/rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems
Warning: /opt/rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/specifications
Warning: We trust you have received the usual lecture from the local System
Warning: Administrator. It usually boils down to these three things:
Warning: #1) Respect the privacy of others.
Warning: #2) Think before you type.
Warning: #3) With great power comes great responsibility.
Your user account isn't allowed to install to the system RubyGems.
You can cancel this installation and run:
bundle install --path vendor/bundle
to install the gems into ./vendor/bundle/, or you can enter your password
and install the bundled gems to RubyGems using sudo.
Password:
Your user account isn't allowed to install to the system RubyGems.
You can cancel this installation and run:
bundle install --path vendor/bundle
to install the gems into ./vendor/bundle/, or you can enter your password
and install the bundled gems to RubyGems using sudo.
Password: Warning: Sorry, try again.
Your user account isn't allowed to install to the system RubyGems.
You can cancel this installation and run:
bundle install --path vendor/bundle
to install the gems into ./vendor/bundle/, or you can enter your password
and install the bundled gems to RubyGems using sudo.
Password: Warning: Sorry, try again.
Warning: sudo: 3 incorrect password attempts
Warning: Bundler::SudoNotPermittedError: Bundler requires sudo access to install at the moment. Try installing again, granting Bundler sudo access when prompted,
Warning: or installing into a different path.
Warning: An error occurred while installing rake (12.3.3), and Bundler cannot continue.
Warning: Make sure that `gem install rake -v '12.3.3'` succeeds before bundling.
Warning: In Gemfile:
Warning: compass-rails was resolved to 3.1.0, which depends on
Warning: sass-rails was resolved to 5.0.7, which depends on
Warning: railties was resolved to 5.2.5, which depends on
Warning: rake
Error: Unable to install acropolis: An error occurred inside the app installation script
Info: The operation 'Install the 'acropolis' app' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20211115-193140-app_install-acropolis' to get help
Warning: Here's an extract of the logs before the crash. It might help debugging the error:
Info: DEBUG -
Info: WARNING - Administrator. It usually boils down to these three things:
Info: DEBUG -
Info: WARNING - #1) Respect the privacy of others.
Info: WARNING - #2) Think before you type.
Info: WARNING - #3) With great power comes great responsibility.
Info: DEBUG -
Info: WARNING - Sorry, try again.
Info: WARNING - Sorry, try again.
Info: WARNING - sudo: 3 incorrect password attempts
Info: WARNING - Bundler::SudoNotPermittedError: Bundler requires sudo access to install at the moment. Try installing again, granting Bundler sudo access when prompted,
Info: WARNING - or installing into a different path.
Info: WARNING - An error occurred while installing rake (12.3.3), and Bundler cannot continue.
Info: WARNING - Make sure that `gem install rake -v '12.3.3'` succeeds before bundling.
Info: DEBUG -
Info: WARNING - In Gemfile:
Info: WARNING - compass-rails was resolved to 3.1.0, which depends on
Info: WARNING - sass-rails was resolved to 5.0.7, which depends on
Info: WARNING - railties was resolved to 5.2.5, which depends on
Info: WARNING - rake
Info: DEBUG - + ynh_exit_properly
Warning: Removing the app following the installation failure...
Info: [+...................] > Loading installation settings... [00h00m,01s]
Info: [#++.................] > Stopping and removing the systemd service... [00h00m,00s]
Info: [###++...............] > Removing the PostgreSQL database..
Info: [#####++.............] > Removing dependencies... [00h00m,01s]
Info: Removing of Ruby-2.7.1
Info: [#######++...........] > Removing app main directory... [00h00m,04s]
Info: [#########+..........] > Removing NGINX web server configuration... [00h00m,00s]
Info: [##########++........] > Removing various files... [00h00m,00s]
Info: '/etc/acropolis' wasn't deleted because it doesn't exist.
Info: '/var/log/acropolis' wasn't deleted because it doesn't exist.
Info: [############++......] > Removing the dedicated system user... [00h00m,00s]
Info: [####################] > Removal of acropolis completed [00h00m,00s]
Error: The operation 'Install the 'acropolis' app' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20211115-193140-app_install-acropolis' to get help
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment