# Sidekiq jobs are failing for 1 of my users

**URL:** <https://meta.discourse.org/t/sidekiq-jobs-are-failing-for-1-of-my-users/51143>\
**Category:** Self-hosting\
**Created:** [October 5, 2016, 8:56pm UTC](https://meta.discourse.org/t/sidekiq-jobs-are-failing-for-1-of-my-users/51143 "2016-10-05T20:56:49Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![corillian](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/corillian/32/1847_2.png) [@corillian](https://meta.discourse.org/u/corillian)\
**Post date:** [October 5, 2016, 11:06pm UTC](https://meta.discourse.org/t/sidekiq-jobs-are-failing-for-1-of-my-users/51143/9 "2016-10-05T23:06:17Z")

</div>

Ah thank you that worked =). Unfortunately I got another error once I executed `u.build_user_stat.save`:

```plaintext
ActiveRecord::StatementInvalid: PG::NotNullViolation: ERROR: null value in colu mn "new_since" violates not-null constraint
DETAIL: Failing row contains (3530, 0, 0, 0, 0, 0, 0, 0, null, null, null, 0, 0 , 0, null).
: INSERT INTO "user_stats" ("user_id") VALUES (3530) RETURNING "user_id"
from /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rack-mini-profiler-0.10.1/ lib/patches/db/pg.rb:90:in `exec'

```

For what it’s worth I checked `user_stats` and the user already has an entry in the table. I tried to locate `build_user_stat` in the Discourse code but I couldn’t find it anywhere?

---

_[View the full topic](https://meta.discourse.org/t/sidekiq-jobs-are-failing-for-1-of-my-users/51143)._
