"Additional projects in backend" mail
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? Best regards, Mark Morschhäuser
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. -- Adrian Schroeter <adrian@suse.de> Build Infrastructure Project Manager SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany (HRB 247165, AG München), Geschäftsführer: Felix Imendörffer
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. -- Adrian Schroeter <adrian@suse.de> Build Infrastructure Project Manager SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany (HRB 247165, AG München), Geschäftsführer: Felix Imendörffer
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.
(Yes, resurrecting an old thread, but additional information for sparsely documented problems might be helpful to others ;-) Am 20.09.21 um 09:23 schrieb Adrian Schröter:
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.
RAILS_ENV=production ./bin/rake ... to make it actually work. IF the project complained about is a project whose creation failed due to the signd not wanting to sign after the update of the host OS or an expired key, then a simple way to fix this is to simply remove the directory /srv/obs/projects/Test.pkg and the file /srv/obs/projects/Test.xml This saves the effort to actually delete the project again after "rake fix_project" added it to tha database :-) Have fun, -- Stefan Seyfried "Once the rockets are up, who cares where they come down? That's not my department," says Wernher von Braun. -- Tom Lehrer
participants (4)
-
Adrian Schröter
-
Christof Hanke
-
Morschhäuser, Mark
-
Stefan Seyfried