Schleuder-web v4.0.0 setup issues

I have been trying to setup schleuder-web based off the schleuder-web-4.0.0 tag and despite going down some rabbit holes I cannot get it to complete the initial setup prior to a startup attempt.

First I got this: `user@schleuder-debian12:~/schleuder-web$ bundle install Bundler 2.3.15 is running, but your lockfile was generated with 2.2.16. Installing Bundler 2.2.16 and restarting using that version. Fetching gem metadata from https://rubygems.org/. Following files may not be writable, so sudo is needed: /usr/local/bin /var/lib/gems/3.1.0 Fetching bundler 2.2.16

Your user account isn't allowed to install to the system RubyGems. You can cancel this installation and run:

  bundle config set --local path 'vendor/bundle'
  bundle install

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 config set --local path 'vendor/bundle'
  bundle install

to install the gems into ./vendor/bundle/, or you can enter your password and install the bundled gems to RubyGems using sudo.

Password: Installing bundler 2.2.16 Calling DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call DidYouMean.correct_error(error_name, spell_checker)' instead. Fetching gem metadata from https://rubygems.org/..

nokogiri-1.12.5-x86_64-linux requires ruby version >= 2.5, < 3.1.dev, which is incompatible with the current version, ruby 3.1.2p20`

I found https://github.com/sparklemotion/nokogiri/issues/2397 which led me to remove Gemfile.lock and try again, which appeared to get me further along but failed again until I installed some additional packages via apt install git patch libyaml-dev

Next up I tried to run the setup, which warned about stringio but ultimately continued & failed: `./bin/setup == Installing dependencies == WARN: Unresolved or ambiguous specs during Gem::Specification.reset: stringio (>= 0) Available/installed versions of this gem: - 3.1.4 - 3.0.1.2 WARN: Clearing out unresolved specs. Try 'gem cleanup ' Please report a bug if this causes problems. The Gemfile's dependencies are satisfied

== Preparing database == /var/lib/gems/3.1.0/gems/activesupport-6.1.7.10/lib/active_support/logger_thread_safe_level.rb:16:in `module:LoggerThreadSafeLevel': uninitialized constant ActiveSupport::LoggerThreadSafeLevel::Logger (NameError)

Logger::Severity.constants.each do |severity|
^^^^^^
from /var/lib/gems/3.1.0/gems/activesupport-6.1.7.10/lib/active_support/logger_thread_safe_level.rb:9:in `<module:ActiveSupport>'
from /var/lib/gems/3.1.0/gems/activesupport-6.1.7.10/lib/active_support/logger_thread_safe_level.rb:8:in `<main>'
from /var/lib/gems/3.1.0/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /var/lib/gems/3.1.0/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /var/lib/gems/3.1.0/gems/activesupport-6.1.7.10/lib/active_support/logger_silence.rb:5:in `<main>'
from /var/lib/gems/3.1.0/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /var/lib/gems/3.1.0/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /var/lib/gems/3.1.0/gems/activesupport-6.1.7.10/lib/active_support/logger.rb:3:in `<main>'
from /var/lib/gems/3.1.0/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /var/lib/gems/3.1.0/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /var/lib/gems/3.1.0/gems/activesupport-6.1.7.10/lib/active_support.rb:29:in `<main>'
from /var/lib/gems/3.1.0/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /var/lib/gems/3.1.0/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /var/lib/gems/3.1.0/gems/railties-6.1.7.10/lib/rails/command.rb:3:in `<main>'
from /var/lib/gems/3.1.0/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /var/lib/gems/3.1.0/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /var/lib/gems/3.1.0/gems/railties-6.1.7.10/lib/rails/commands.rb:3:in `<main>'
from /var/lib/gems/3.1.0/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /var/lib/gems/3.1.0/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from bin/rails:4:in `<main>'

== Command ["bin/rails db:prepare"] failed ==`

That led me to https://stackoverflow.com/questions/79360526/uninitialized-constant-activesupportloggerthreadsafelevellogger-nameerror which had me try to downgrade concurrent-ruby to 1.3.4 and update Gemfile.lock to keep it there. This resulted in a failure, but with a different error: `== Installing dependencies == WARN: Unresolved or ambiguous specs during Gem::Specification.reset: stringio (>= 0) Available/installed versions of this gem: - 3.1.4 - 3.0.1.2 WARN: Clearing out unresolved specs. Try 'gem cleanup ' Please report a bug if this causes problems. The Gemfile's dependencies are satisfied

== Preparing database == rails aborted! LoadError: cannot load such file -- listen /home/me/schleuder-web/config/environments/development.rb:72:in block in <main>' /home/me/schleuder-web/config/environments/development.rb:3:in ' /home/me/schleuder-web/config/environment.rb:5:in `' Tasks: TOP => db:prepare => db:load_config => environment (See full trace by running task with --trace)

== Command ["bin/rails db:prepare"] failed ==`

I then also tried restoring concurrent-ruby to 1.3.5 and instead included require "logger" in config/boot.rb before require "bundler/setup" which led to the same error which makes sense based on the report that versions of concurrent-ruby prior to 1.3.5 were just masking the issue.

This led me to https://stackoverflow.com/questions/38663706/loaderror-could-not-load-the-listen-gem-rails-5 so I also tried running bundle config --delete without & bundle config --delete with which resulted in a new error: == Preparing database == rails aborted! Psych::AliasesNotEnabled: Alias parsing was not enabled. To enable it, pass aliases: truetoPsych::loadorPsych::safe_load. /home/me/schleuder-web/config/initializers/load_turing_questions.rb:2:in ' /home/me/schleuder-web/config/environment.rb:5:in `' Tasks: TOP => db:prepare => db:load_config => environment (See full trace by running task with --trace)

== Command ["bin/rails db:prepare"] failed ==`

So at this point I'm stopping and checking in to see if someone can advise what might be going on and/or what I might be missing. Thanks.

Edited by fleish