Hi, I have the same issue. I never use ruby -- but looking at /srv/www/obs/api/Rakefile it seems you could avoid that requirement by setting the environment-variable "RAILS_ENV=production" This is by no means a solution and I didn't try it. So wait for some expert to comment on that before trying this yourself. I am also confused by the fact that the gem "single_test" actually exist: # rpm -qf /usr/lib64/obs-api/ruby/2.5.0/gems/single_test-0.6.0/ obs-bundled-gems-2.10.10-63.1.x86_64 Looking a bit deeper into it with strace strace ./bin/rake fix_project project="TEST" --trace 2>&1 | grep single_test/tasks.rb It seems it checks stuff in /usr/lib64/obs-api/ruby/2.5.0/gems/, eg. openat(AT_FDCWD, "/usr/lib64/obs-api/ruby/2.5.0/gems/thread_safe-0.3.6/lib/single_test/tasks.rb", O_RDONLY|O_NONBLOCK|O_CLOEXEC) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/usr/lib64/obs-api/ruby/2.5.0/gems/minitest-5.11.3/lib/single_test/tasks.rb", O_RDONLY|O_NONBLOCK|O_CLOEXEC) = -1 ENOENT (No such file or directory) but not in /usr/lib64/obs-api/ruby/2.5.0/gems/single_test-0.6.0/ Where the actual file is located... HTH someone to fix this problem, Christof On Monday, 20 September 2021 11:02:06 CEST Morschhäuser, Mark wrote:
Hi,
the rake command aborts. I executed it with --trace for additional information:
./bin/rake --trace fix_project project="Test" rake aborted! LoadError: cannot load such file -- single_test/tasks /usr/lib64/obs-api/ruby/2.5.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291:in `require' /usr/lib64/obs-api/ruby/2.5.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291:in `block in require' /usr/lib64/obs-api/ruby/2.5.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:257:in `load_dependency' /usr/lib64/obs-api/ruby/2.5.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291:in `require' /srv/www/obs/api/Rakefile:12:in `<top (required)>' /usr/lib64/obs-api/ruby/2.5.0/gems/rake-12.3.3/lib/rake/rake_module.rb:29:in `load' /usr/lib64/obs-api/ruby/2.5.0/gems/rake-12.3.3/lib/rake/rake_module.rb:29:in `load_rakefile' /usr/lib64/obs-api/ruby/2.5.0/gems/rake-12.3.3/lib/rake/application.rb:703:in `raw_load_rakefile' /usr/lib64/obs-api/ruby/2.5.0/gems/rake-12.3.3/lib/rake/application.rb:104:in `block in load_rakefile' /usr/lib64/obs-api/ruby/2.5.0/gems/rake-12.3.3/lib/rake/application.rb:186:in `standard_exception_handling' /usr/lib64/obs-api/ruby/2.5.0/gems/rake-12.3.3/lib/rake/application.rb:103:in `load_rakefile' /usr/lib64/obs-api/ruby/2.5.0/gems/rake-12.3.3/lib/rake/application.rb:82:in `block in run' /usr/lib64/obs-api/ruby/2.5.0/gems/rake-12.3.3/lib/rake/application.rb:186:in `standard_exception_handling' /usr/lib64/obs-api/ruby/2.5.0/gems/rake-12.3.3/lib/rake/application.rb:80:in `run'
rpm -qV obs-api looks ok so far, nothing is missing.
-----Ursprüngliche Nachricht----- Von: Adrian Schröter [mailto:adrian@suse.de] Gesendet: Montag, 20. September 2021 09:23 An: OBS List <buildservice@lists.opensuse.org> Cc: Morschhäuser, Mark <Mark.Morschhaeuser@dsa.de> Betreff: Re: "Additional projects in backend" mail
On Montag, 20. September 2021, 09:12:12 CEST Morschhäuser, Mark wrote:
Hello,
I get mails from my OBS instance with the content
Additional projects in backend: ["Test"]
What is the problem and how do I fix the issue?
The backend and frontend is out of sync.
cd /srv/www/obs/api/ ./bin/rake fix_project project="Test"
to restore it in the frontend db.