Sidekiq crash on startup

Hi,
It try to set up GitLab frrom source but Sidekiq crashes at start. Here is the trace in sidekiq log :

2015-04-12T20:48:39.857Z 8845 TID-orc2u7iak WARN: Sidekiq died due to the following error, cannot recover, process exiting
2015-04-12T20:48:39.857Z 8845 TID-orc2u7iak WARN: can't create Thread: Resource temporarily unavailable

From my search, it seems that it comes from ressources but :

  • I’ve set one worker
  • My server is 2Gb and 1.5Gb free.

I’m using mysql … I don’t know if it is start point …

Here is the info of environnement :

System information
System:        Debian 7.8
Current User:    gitlab
Using RVM:    no
Ruby Version:    2.1.5p273
Gem Version:    2.2.2
Bundler Version:1.9.2
Rake Version:    10.4.2
Sidekiq Version:3.3.0

GitLab information
Version:    7.9.3
Revision:    7ff7e28
Directory:    /home/gitlab/gitlab
**DB Adapter:    mysql2**
URL:        http://gitlab.lafamillebn.net
HTTP Clone URL:    http://gitlab.lafamillebn.net/some-project.git
SSH Clone URL:    gitlab@gitlab.lafamillebn.net:some-project.git
Using LDAP:    no
Using Omniauth:    no

GitLab Shell
Version:    2.6.0
Repositories:    /home/gitlab/repositories/
Hooks:        /home/gitlab/gitlab-shell/hooks/
Git:        /usr/bin/git

And here is the result gitlab:check

Checking Environment ...

Git configured for gitlab user? ... yes

Checking Environment ... Finished

Checking GitLab Shell ...

GitLab Shell version >= 2.6.0 ? ... OK (2.6.0)
Repo base directory exists? ... yes
Repo base directory is a symlink? ... no
Repo base owned by [...]:[...]? ... yes
Repo base access is drwxrws---? ... yes
Satellites access is drwxr-x---? ... yes
hooks directories in repos are links: ... 
[...] ... repository is empty
Running /home/gitlab/gitlab-shell/bin/check
Check GitLab API access: OK
Check directories and files: 
    /home/[...]/repositories/: OK
    /home/[...]/.ssh/authorized_keys: OK
Test redis-cli executable: redis-cli 2.4.14
Send ping to redis server: PONG
gitlab-shell self-check successful

Checking GitLab Shell ... Finished

Checking Sidekiq ...

Running? ... no
  Try fixing it:
  sudo -u [...] -H RAILS_ENV=production bin/background_jobs start
  For more information see:
  doc/install/installation.md in section "Install Init Script"
  see log/sidekiq.log for possible errors
  Please fix the error above and rerun the checks.

Checking Sidekiq ... Finished

Checking LDAP ...

LDAP is disabled in config/gitlab.yml

Checking LDAP ... Finished

Checking GitLab ...

Database config exists? ... yes
Database is SQLite ... no
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Init script exists? ... yes
Init script up-to-date? ... yes
projects have namespace: ... 
devbieres / HomeTraining ... yes
Projects have satellites? ... 
[...] ... can't create, repository is empty
Redis version >= 2.0.0? ... yes
Ruby version >= 2.0.0 ? ... yes (2.1.5)
Your git bin path is "/usr/bin/git"
Git version >= 1.7.10 ? ... yes (1.7.10)
Active users: 2

Checking GitLab ... Finished

Thanks for you help.

I’m still facing the issue … I’ve a new setup (Third time) but with postgresql and I’ve the same message in Sidekiq trace log …

Thanks again for any help !

After another try, I decided to re-test with the deb package … but again : trouble.

In the middle of the reconfigure : everything failed as two processes uses more than 50% of CPU (seems to be sidekig and unicorn …)

Usually running reconfigure a second time fixes any issues. Did you try that? Also it would be great if you provided any logs or error messages.

At the moment, I’ve nothing running as I uninstall everything …

About log …
For the source install : Ive nothing more that the message in the first page …

For the deb package : the error is “no ressource available” or somthing else … As I wrote, two processes take every CPU …

If you have something that I need to follow.

Thanks