[SOLVED] Can't install Huginn

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.1.15.1
What app is this about: huginn 2025.03.23~ynh1

Describe your issue

Can’t install the app.

Bare Metal, 32 GB RAM

Share relevant logs or error messages

https://paste.yunohost.org/raw/yepagomizo

Warning: Here's an extract of the logs before the crash. It might help debugging the error:
Info: DEBUG - /var/www/huginn/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.7/lib/active_record/tasks/database_tasks.rb:497:in `load_seed'
Info: DEBUG - /var/www/huginn/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.7/lib/active_record/railties/databases.rake:397:in `block (2 levels) in <main>'
Info: DEBUG - /var/www/huginn/vendor/bundle/ruby/3.2.0/gems/rake-13.2.1/exe/rake:27:in `<top (required)>'
Info: DEBUG - /var/www/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.6.2/lib/bundler/cli/exec.rb:59:in `load'
Info: DEBUG - /var/www/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.6.2/lib/bundler/cli/exec.rb:59:in `kernel_load'
Info: DEBUG - /var/www/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.6.2/lib/bundler/cli/exec.rb:23:in `run'
Info: DEBUG - /var/www/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.6.2/lib/bundler/cli.rb:452:in `exec'
Info: DEBUG - /var/www/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/command.rb:28:in `run'
Info: DEBUG - /var/www/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
Info: DEBUG - /var/www/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor.rb:538:in `dispatch'
Info: DEBUG - /var/www/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.6.2/lib/bundler/cli.rb:35:in `dispatch'
Info: DEBUG - /var/www/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/base.rb:584:in `start'
Info: DEBUG - /var/www/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.6.2/lib/bundler/cli.rb:29:in `start'
Info: DEBUG - /var/www/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.6.2/exe/bundle:28:in `block in <top (required)>'
Info: DEBUG - /var/www/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.6.2/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
Info: DEBUG - /var/www/huginn/vendor/bundle/ruby/3.2.0/gems/bundler-2.6.2/exe/bundle:20:in `<top (required)>'
Info: DEBUG - /opt/rbenv/versions/huginn/bin/bundle:25:in `<main>'
Info: DEBUG - Tasks: TOP => db:seed
Info: DEBUG - (See full trace by running task with --trace)
Info: DEBUG - + ynh_exit_properly
Warning: Removing the app after installation failure…

It seem you have use a admin user with not enough characters must be between 3 and 190 characters in length

2025-08-29 14:34:46,059: DEBUG - + ynh_exec_warn_less bundle exec rake db:seed RAILS_ENV=production SEED_USERNAME=ga SEED_PASSWORD=**********
2025-08-29 14:34:46,059: DEBUG - + [[ 7 -eq 1 ]]
2025-08-29 14:34:46,059: DEBUG - + bundle exec rake db:seed RAILS_ENV=production SEED_USERNAME=ga SEED_PASSWORD=**********
2025-08-29 14:34:47,834: DEBUG - rake aborted!
2025-08-29 14:34:47,835: DEBUG - ActiveRecord::RecordInvalid: Validation failed: Username can only contain letters, numbers, underscores, and dashes, and must be between 3 and 190 characters in length. (ActiveRecord::RecordInvalid)

Yes, it’s a Linux username, it has only 2 characters.

That must be wrong because man useradd says that a Linux username can have max. 32 characters.

this limit is not a problem from unix but from this app Ruby on Rails. Active Records seems reclaim minimum 3 characters.

Here is the code from the app Rails with this limit

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.