dergachev / chef_redmine

Chef cookbook for installing/configuring redmine instance
2 stars 2 forks source link

Problem with unicorn without vagrant #2

Open krzyadam opened 10 years ago

krzyadam commented 10 years ago

Hi;

Thx for your feedback, i fixed my script , but now I have another type of error : /etc/init.d/unicorn_redmine: ligne 38 : kill: (3564) - Aucun processus de ce type master failed to start, check stderr log for details

but error file is emty.

I'm using rvm with rubby 1.9.3

Any idea what is wrong now ?

dergachev commented 10 years ago

Hi @krzyadam,

Not sure exactly what's going on. If I was debugging it, I would first try starting unicorn directly:

# or something; untested
bundle exec unicorn_rails -D -c config/unicorn.rb

Mess with the config file as appropriate until that works.

Then try running it via the unicorn_redmine init.d wrapper:

bash /etc/init.d/unicorn_redmine start
bash /etc/init.d/unicorn_redmine stop
bash /etc/init.d/unicorn_redmine status
bash /etc/init.d/unicorn_redmine restart

Fix those errors as appropriate. Then hopefully it'll work on boot.

FYI I adapted from the unicorn_redmine init script from https://github.com/lebedevdsl/redmine/blob/master/templates/default/unicorn_init_script.erb without really thinking about what it's doing, and it looks pretty funky. If I had to spend any more time on it, I'd probably google around for a different init script to use as a base. (Here's another one: https://gist.github.com/rubysolo/1320707) (FYI there's nothing redmine specific there, so you're just looking for a unicorn_rails based init script that's RVM aware).

Also keep in mind that some people have made forks of this repo, perhaps their versions are more stable: https://github.com/dergachev/chef_redmine/network

I should warn you that this repo is only minimally tested, and I'd expect that if you're using it differently than I was you'll be spending lots of time figuring things out (unless you're already comfortable debugging rails init scripts, with chef and rvm involved)

Good luck!