Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels. http://unicorn.bogomips.org/

learn more… | top users | synonyms

0
votes
2answers
27 views

Take HAProxy backend nginx server out of rotation if it can't connect to Unicorn

I have a load balancer running HAProxy with two backend servers both running Nginx on to Unicorn. If nginx goes down on one of these boxes HAProxy takes it out of the set and the service continues to ...
-1
votes
2answers
23 views

Nginx: Changing user [closed]

I have root and deployer users in my ubuntu 13.10. I also have nginx, unicorn installed with Rails 4 application. I'm deploying my application using capistrano 3. Problem: When I prepare a env for ...
0
votes
1answer
104 views

gitlab apache redirect loop

I am trying to set up gitlab with apache as the webserver. Thusfar, I have been unsuccesful. The sidekiq and unicorn start fine, but when I try to visit the root site, I get redirected to /users/login ...
1
vote
0answers
57 views

Nginx Returning 504 Error

I'm getting a 504 error from Nginx on my Ubuntu server where I'm running Rails using Unicorn. When I look in the Nginx error.log.1, I see: 2014/01/21 18:06:02 [error] 698#0: *2 connect() failed ...
0
votes
2answers
64 views

Can't run two separated sites under the same NGINX server

I'm trying to run two separated sites on the same server using nginx. Depending of the configuration, nginx serves one site or another under both domain names. It won't run each site on it's own ...
1
vote
2answers
74 views

Explain load-balancing with Nginx like I'm five

I've found plenty of DIY posts and tutorials on how to configure Nginx as a load-balancer using upstream server: upstream backend { ip_hash; server 1.2.3.4; server 1.2.3.5; server 1.2.3.6; } ...
1
vote
0answers
72 views

nginx configuration for rails subdir deployment

I'm having quite a bit of trouble configuring nginx to serve my Rails app's static files; I mean all the files in the app's public/ folder, not just the files in Rails' asset pipeline. It seems I'm ...
0
votes
0answers
113 views

nginx : Redirect loop

Hi I'm getting a reddirect loop on one of my https pages, (https://beta.voylla.com/user/password/new). The page that contains it (beta.voylla.com/login) should be a https page, but its served as http, ...
0
votes
1answer
52 views

Unicorn rails server with Apache

I'm looking for the best setup to use in conjunction with Unicorn. Are there clear advantages or disadvantages to using Unicorn rails server with Apache? Should I consider using NGINX? I'm concerned ...
0
votes
1answer
96 views

nginx: simplify config for force ssl on specific path for rails app

im using the config below. it works, but the problem for me is the repeating of some lines. the proxy_* directives need to be in location /admin also, because only one location will be executed by ...
3
votes
1answer
112 views

Who should own the god process?

I have a stack running on ubuntu consisting of a Rack application written in Sinatra and GrapeAPI. The application stack includes Redis, Postgres, Nginx and unicorn. I want to use god to handle ...
3
votes
3answers
402 views

Is slow IO on my cloud server causing my slow server restart issues?

I'm running two servers on Rackspace cloud one for the web app and one for the db and redis instances. The web server has 1Gb of ram and single core. Nginx sits in front of unicorn which is running 2 ...
1
vote
0answers
58 views

Deploying sinatra app on rails app sub uri using( unicorn and nginx)

I have rails app running on unicorn+nginx. below is the nginx.conf and unicorn.rb configuration. nginx.conf upstream unicorn { server unix:/tmp/unicorn.todo.sock fail_timeout=0; } server{ ...
0
votes
0answers
67 views

God(rb) starts more processes, then described in config

I have god (godrb.com) watching my Unicorn of site A Unicorn of site B Resque background worker of site A with 3 queues Resque background worker of site B with 1 queue Quantities of instances: ...
0
votes
2answers
73 views

App got press, then servers got owned. I added 8 more servers, STILL too slow [duplicate]

Our new app has received a lot of press today, and is getting thousands of new users every hour... but it has become so slow that it's unusable. We're using Rails 3 patched to latest, ubuntu, ...
1
vote
0answers
54 views

Best way to profile Unicorn workers?

I'm trying to get a better picture of what my Unicorn workers are doing. Are they blocked on calls to other services for a significant portion of their cycles? Are they free most of the time? The ...
0
votes
0answers
140 views

Why do I need to precompile Rails assets on app servers?

I'm deploying a simple Rails app to this small ubuntu precise64 server setup : * 1 server running nginx * 2 servers running unicorn * 1 server running postgresql My servers are provisionned with ...
0
votes
1answer
70 views

Combining Nginx redirect rules

I've just migrated a Rails app from an Apache/Passenger server to a new Nginx/Unicorn server and I'm having some trouble getting the necessary redirects to work. So far the config (which was set up ...
0
votes
2answers
165 views

Nginx + Unicorn multiple apps with locations - routing

I would like to run multiple rails apps with just using different location blocks. Different unicorn workers are started and configured, they are working just fine. Every app is under the same ...
1
vote
1answer
376 views

IP spoofing attack errors after setting up a nodebalancer on Linode.com

I recently set up a NodeBalancer in front of a Rails 3.2.12 app. The app is served by nginx and Unicorn. All seems to work fine, but I get a lot of errors such as these that I didn't get when I only ...
2
votes
1answer
464 views

Unicorn error while hosting a Rails app with NGINX

All of a sudden my app stopped working and these are the last lines I am getting from unicorn.log unicorn worker[0] -D -c /home/deployer/apps/myapp/current/config/unicorn.rb -E production: ...
4
votes
1answer
1k views

Unicorn workers dying

Last night at around midnight, our app fell over and I'm trying to determine why. We currently have a nginx front end server and 2 unicorn worker (app) servers on EC2. Pretty much our unicorn workers ...
0
votes
1answer
104 views

Unicorn Shared Socket

Is it possible to have a unix socket across a network? Is it possible to have multiple application servers running unicorn use that same shared socket? The setup I'd like to achieve would look like: ...
0
votes
1answer
243 views

Nginx + Unicorn Rails Application gets 404 when requests number are high

I have a Rails application deployed using Nginx + Unicorn. Last night, when the traffic peaked, Nginx was getting lots of 404 errors. When I dig into logs, those 404 requests on the nginx side did not ...
0
votes
1answer
129 views

Nginx + Upstream + scaling down ec2 instances

In the process of deploying multiple EC2 instances running a Rails app over Unicorn. I currently have a "front end" server running nginx with multiple "Unicorn" upstream providers. At night, I'd like ...
2
votes
1answer
258 views

How to debug why my server has 3s delay on each request nginx/unicorn?

I am trying to debug why my server has 3 seconds delay on each request. These are my nginx and unicorn config files: https://gist.github.com/regedarek/de7f2e5cd1918b6224ac My server info: ...
0
votes
1answer
142 views

How to have supervisord follows the new unicorn process after USR2 rolling restart?

I have configured supervisord to track my unicorn server process. When I send USR2 process, this performs a rolling restart. After this operation the old unicorn master have restarted and then changed ...
-1
votes
2answers
572 views

How to restart RoR services after server has been rebooted

Update I have been searching around to see what services would possibly need to be restarted in my project after reboot. One of them was thinking sphinx, which I finally got to the point where it ...
1
vote
1answer
138 views

RHEL 6.x on Rackspace Cloud and Dedicated hardware experiencing Redis Timeouts

I just recently set up a mixture of RHEL 6.1 Rackspace cloud hosts and RHEL 6.2 dedicated hosts using Rackconnect. I am experiencing intermittent Redis timeouts from within our Rails 3.2.8 app with ...
0
votes
1answer
150 views

Unicorn, USR2 and the config file

My Bash script has the following code that doesn't throw an error. echo "Reloading Unicorn if USR2 is enabled" kill -USR2 `cat $PID` if [ -s $OLD_PID ] then kill -WINCH `cat $OLD_PID` && kill -QUIT ...
1
vote
1answer
301 views

User start daemon .pid Permission denied

Trying to start a unicorn daemon as a non-root user but failing hard. Unicorn gives the the following error: directory for pid=/var/run/sinatra_test/sinatra_test.pid not writable So I made the ...
0
votes
3answers
204 views

Sudo won't execute command as another user

I'm trying to get a unicorn server to start when the server boots. I've created a shell script which works if I log as the ubuntu user and run /etc/init.d/unicorn start Shell script #!/bin/sh ...
0
votes
1answer
569 views

unicorn and nginx, went wrong

I try to deploy my app via capistrano. It was done, but when I start to nginx and show my site in the browser I see 'We're sorry, but something went wrong.' It is bad. I use unicorn. See my configs ...
0
votes
1answer
208 views

custom 502 error page for nginx with unicorn not working, driving me insane ;)

I tried several times and on multiple occasions to try and fix the below code for nginx with unicorn, but it just isen't working. So now posting here in last report some of you more talented could see ...
1
vote
2answers
111 views

How do I launch unicorn_rails as a startup script with rvm installed on my ubuntu 12.04 machine?

I have a rails app on my server. I have a script startup.sh which launches unicorn_rails and then nginx. In order to get my server to launch on system boot, I've added a line to call my startup ...
1
vote
1answer
734 views

scalability with nginx, passenger, ruby on rails setup [duplicate]

Possible Duplicate: How do you do Load Testing and Capacity Planning for Web Sites Hey guys I had a question regarding scalability for my RoR application. We have been optimizing our ...
1
vote
1answer
455 views

How to properly secure Unicorn/RoR server on ubuntu? Or, harden RoR application stack?

I have few Unicorn servers running on Ubuntu 12.04 and I am looking to secure them against exploits which give remote shell. My main concern is, if it makes sense to deploy ModSecurity? Another ...
0
votes
1answer
301 views

Session persistence between multiple Rails / Unicorn servers with Redis as session_store on AWS

I've got 2 nginx EC2 instances pointing to 2 Unicorn EC2 instances in a round robin load balanced configuration. The two nginx instances are being the Elastic Load Balancer. Both Unicorn instances ...
0
votes
1answer
518 views

custom 502 bad gataway for nginx, cannot get it to work, whats wrong?

Im trying to catch a 502 bad gataway for nginx with unicorn. This error is thrown when unicorn is not running. Im trying to use a custom error page instead for when unicorn is not running to no avail. ...
4
votes
3answers
1k views

Operation not permitted when starting Unicorn

I've created an nginx/unicorn/capistrato setup on Ubuntu (Amazon EC2) by following mostly this guide. I guess everything is set up like it should but when I start Unicorn I get (a LOT of) this error ...
2
votes
0answers
389 views

Rails, Capistrano, Nginx, Unicorn - Application has been already initialized (RuntimeError)

Can anyone shed some light on what exactly this error refers to? I'm having trouble deploying new versions of the site. I, INFO -- : reloading config_file=[snip]/current/config/unicorn.rb I, INFO ...
0
votes
1answer
401 views

How can I setup nginx to serve virtualhosts with rails(unicorn/passenger) and php-fpm

I would like to serve multiple sites on one instance. I install nginx, php-fpm, and a rails app. I use sites like this to guide me. I configure php-fpm to listen to a local socket listen = ...
3
votes
1answer
531 views

Nginx + Unicorn

I am working on a migration from nginx + passenger to nginx + unicorn and I have reached a point where I am a bit stuck. When I attempt to view my test server, I get nothing but a 404 page. I am sure ...
0
votes
1answer
1k views

Nginx + Unicorn subdomain virtual hosting failure (timeouts)

I have a server set on a VPS serving up a production Rails app via Nginx + Unicorn. Presently this works fine with the following conf files: nginx.conf unicorn.conf However the added subdomain of ...
1
vote
0answers
854 views

How to load environment variables with Unicorn

I can't seem to get my server to load up the environment variables. In my ideal setup I would like 1 user (deployer) to serve multiple applications on a single server. Ubuntu 12.04, Nginx, Unicorn. ...
-1
votes
1answer
1k views

Permission denied when starting Unicorn on Ubuntu

I'm not familiar with Ubuntu and some problem with server settings for my Rails app. I've created deployer user in admin group (%admin ALL=(ALL) ALL). It was all ok, but when I'm trying to start ...
0
votes
0answers
77 views

unicorn request logs on production

When I run Unicorn for local dev, It prints these nice request logs that looks like : 127.0.0.1 - - [16/Jul/2012 13:04:09] "GET %2Findex.html HTTP/1.1" 200 5906 0.0023 127.0.0.1 - - [16/Jul/2012 ...
1
vote
1answer
188 views

Unicorn: Sub-Url Generated Links Broken

I am currently trying to stand up an instance of redmine, however currently The generated links in my redmine instance are all broken. I am attempting to serve redmine from a sub-url i.e ...
1
vote
1answer
2k views

Forward real IP through Haproxy => Nginx => Unicorn

How do I forward the real visitors ip adress to Unicorn? The current setup is: Haproxy => Nginx => Unicorn How can I forward the real IP address from Haproxy, to Nginx, to Unicorn? Currently ...
0
votes
1answer
379 views

Redmine served via Apache / Unicorn

I am currently trying to get an instance of redmine up and running. I have been successful so far, however I am now hitting a road block with the apache / unicorn configuration. The following conf ...