Project

General

Profile

Actions

Bug #20436

closed

Another db:seed failure

Added by Guido Günther over 6 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Notifications
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

This looks similar to #20231 but not quiet. I had run db:seed succesfully with a later commit than 5a144e4bf516db2dff4ffb798ebeca19eccd624f)

$ git merge-base --is-ancestor 5a144e4bf516db2dff4ffb798ebeca19eccd624f a154c816 ; echo $?
0

Now forwarding to 8a6a98c0e1950ddbf1f744021f746ec8aa9e06c5 it fails again like:

2017-07-28T12:56:33  [app] [D] Setting current user thread-local variable to nil
rake aborted!
JSON::ParserError: 784: unexpected token at 'null'
/home/agx/foreman/app/services/ui_notifications/seed.rb:15:in `configure'
/home/agx/foreman/db/seeds.d/17-notification_blueprints.rb:38:in `block in <top (required)>'
/home/agx/foreman/db/seeds.d/17-notification_blueprints.rb:38:in `each'
/home/agx/foreman/db/seeds.d/17-notification_blueprints.rb:38:in `<top (required)>'
/home/agx/foreman/db/seeds.rb:43:in `block (2 levels) in <top (required)>'
/home/agx/foreman/app/models/concerns/foreman/thread_session.rb:75:in `as'
/home/agx/foreman/app/models/concerns/foreman/thread_session.rb:81:in `as_anonymous_admin'
/home/agx/foreman/db/seeds.rb:42:in `block in <top (required)>'
/home/agx/foreman/db/seeds.rb:36:in `each'
/home/agx/foreman/db/seeds.rb:36:in `<top (required)>'
/home/agx/foreman/vendor/gems/ruby/2.3.0/gems/railties-4.2.9/lib/rails/engine.rb:547:in `load_seed'
-e:1:in `<main>'
Tasks: TOP => db:seed
Actions #1

Updated by Marek Hulán over 6 years ago

  • Category set to Notifications

I've seen similar errors with different json parsers. These are my json gems which seems to work

json (2.1.0, default: 2.0.2, 1.8.6)
json_pure (1.8.6)
Actions #2

Updated by yifat makias almost 3 years ago

  • Status changed from New to Resolved

If it is still am issue please let us know.

Actions

Also available in: Atom PDF