Questions tagged [unicorn]

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/

Filter by
Sorted by
Tagged with
1 vote
0 answers
39 views

nginx unicorn rails authentication failure

I am following this tutorial to deploy a rails app on my cloud server. It's my first time deploying a rails project on a server. When trying to start unicorn or nginx from folder /app/current and user ...
user avatar
0 votes
0 answers
48 views

Failed to run multiple Rails apps with Unicorn + Nginx on single AWS EC2 Instance

I know this issue has been discussed several times but I had no luck and I couldn't fix the issue. I am going to run multiple Rails apps on AWS EC2 Instance with Unicorn and Nginx. I could run one ...
user avatar
  • 101
0 votes
0 answers
140 views

How to dynamically configure Nginx load balancer to send specific requests one server

For the purpose of debugging and testing, I am looking at ways to send requests pertaining a particular, say customer ID, from the Nginx load balancer to a specified machine. I am using Nginx on my ...
user avatar
0 votes
1 answer
271 views

EasyRedmine rake redmine:email:receive_imap doesn't work

I'm trying to use redmine:email:recive_imap rake task on my company's Easyredmine Server to fetch emails from our server mail's adress, but when I launch the command: rake redmine:email:receive_imap ...
user avatar
  • 1
0 votes
1 answer
183 views

How to configure Unicorn when using Nginx virtual hosts

I followed this tutorial to create a Rails app on my server with Nginx and Unicorn. Now I'm trying to run two Rails apps on the same server. My first app works fine when I set working_directory "/...
user avatar
0 votes
1 answer
580 views

SSL - Nginx Error When Making Request To API Upstream

SSL is running fine on my frontend_server. However, when my front end makes a request to the unicorn API server (on the same server, just running in a Unicorn process), I get the following error: GET ...
user avatar
1 vote
1 answer
1k views

Block masking URL from nginx

Some bad person is masking my website with his domain www.baddomain.com. I would like to block it somehow from my nginx config file if that is possible. I tried to see from "baddomain.com" source ...
user avatar
1 vote
0 answers
33 views

Latest GitHub source not being deployed properly by Opsworks

I have an Opsworks Rails Layer (nginx/unicorn) instance that has been running for a while, and I have successfully deployed my rails app to it many times directly from GitHub. Yesterday, I started ...
user avatar
1 vote
1 answer
2k views

502 bad gateway errors after 68 concurrent users to website

I'm running into issues while doing some stress testing in jMeter. Essentially, we're hitting a hard limit of 68 concurrent users. As soon as the test ramps up to that number of users, we're getting ...
user avatar
4 votes
0 answers
678 views

Suddenly started experiencing enormous wait times before requests hit server

Our web app has been getting 20k-30k views a day, and steadily growing. About 4 days ago we suddenly started seeing wait times of 30-40 seconds before the HTML was even being delivered, on pages that ...
user avatar
1 vote
1 answer
103 views

Blue/Green Testing Rails with nginx+Unicorn

I am using Unicorn as the application server in front of my web application. I want to essentially do blue/green testing by having two versions of the site running at the same time. The problem is ...
user avatar
1 vote
2 answers
2k views

Can nginx run both for gitlab and taiga.io on the same VM?

I having troubles running GitLab and Taiga.io on the same VM (i.e. sharing the same IP). Both use nginx. My VM runs Debian 8. I have followed the classical Omnibus installation of GitLab for Debian 8,...
user avatar
4 votes
0 answers
2k views

Gitlab not working because of unicorn

gitlab looks like it should be ok, but it is not - page returns always: 502 Whoops, GitLab is taking too much time to respond. Status: $ gitlab-ctl status run: gitlab-workhorse: (pid 10244) 718s; ...
user avatar
1 vote
1 answer
1k views

Nginx serving static files via Unicorn upstream (tcp)

I'm trying to create a rails app with load balancer. App is running but I don't know how to serve static files. All examples assume that nginx and unicorn running on the same machine. Here is the ...
user avatar
  • 113
1 vote
0 answers
359 views

Gitlab redirect loop when requesting archive.zip

I've set up a Gitlab instance using nginx as the web server on an Arch machine. The steps I've taken to do so are on the Arch Wiki. Everything is working at present apart from the download archive.zip ...
user avatar
  • 111
0 votes
1 answer
109 views

nginx with unicron add https to nginx and redirect https default

Below I have added my nginx.conf file , how to add https to this nginx server and redirect to https by default. I have my crt and key files in /home/ubuntu/ssl/ folder worker_processes 1; user ...
user avatar
  • 103
0 votes
0 answers
877 views

ruby on rails 404 not found after deployment

I'm getting a 404 not found error after deploying my rails app. I'm using: ubuntu, nginx, capistrano, & unicorn. These are my configurations: nginx.conf upstream unicorn { server unix:/tmp/...
user avatar
  • 101
0 votes
1 answer
823 views

Unicorn displaying Rack errors uninitialized constant Rack::Lint::REQUEST_METHOD

I've attempted to install Unicorn + Nginx on Ubuntu 14.04. Whenever the site gets accessed (via localhost:8080 or via Nginx) it just returns a blank 500 error. The error log gives me the following: ...
user avatar
2 votes
1 answer
2k views

Rails + Nginx + Unicorn increase post data size ( 414 Request-URI Too Large)

I get 414 (Request-URI Too Large) exception on my POST Request while sending bulk date to my server. Is it possible to increase the limit of POST data? I have done following change in nginx ...
user avatar
  • 121
1 vote
0 answers
339 views

What could cause Ruby's free heap slots to rapidly increase?

I'm diagnosing why our Rails servers seem to leak memory. In looking at New Relic today, I noticed that "Free heap slots" of our Ruby VMs seems to jump from almost nothing up to the baseline level of ...
user avatar
  • 131
1 vote
0 answers
790 views

Unicorn restarts with same PID on USR2

Having recently migrated our Rails app to MRI 2.2.0 (which may or may not be related), we’re experiencing problems with our Unicorn zero-downtime restarts. When I send the USR2 signal to the master ...
user avatar
0 votes
0 answers
1k views

Request with large header failing

I have rails app running on Nginx/Unicorn/Ubuntu. Nginx is setup with Unicorn as an upstream as follows: upstream unicorn { server unix:/path/to/sockets/unicorn.sock fail_timeout=0; } and ...
user avatar
1 vote
1 answer
5k views

Unicorn master failed to start error

I want to start unicorn, but it prints master failed to start, check stderr log for details And when I check logs nothing there. All settings with NGINX is OK! Because I work with it. But today it ...
user avatar
5 votes
1 answer
2k views

NGINX Unicorn 504 Gateway Time-out

I try all what I found in the Google by this question, but - nothing. It doesn't work anyway. My NGINX default: upstream app { server unix:/tmp/unicorn.rails.sock fail_timeout=0; } server { ...
user avatar
  • 59
5 votes
1 answer
3k views

Unicorn workers timing out intermittently

I'm getting intermittent timeouts from unicorn workers for seemingly no reason, and I'd like some help to debug the actual problem. It's worse because it works about 10 - 20 requests then 1 will ...
user avatar
4 votes
1 answer
4k views

Request timeout issue with nginx, unicorn and rails

I have an application in rails and it runs unicorn in production. There are some requests that take too long to process. I have configured the server to increase the timeout, so these request work ...
user avatar
0 votes
2 answers
3k views

SSL/HTTPS issue (no padlock icon) on Safari when using ngixn+unicorn

I have an application that runs on nginx+unicorn. This is how my server block looks like upstream rtdev{ # fail_timeout=0 means we always retry an upstream even if it failed # to return a good HTTP ...
user avatar
  • 141
1 vote
2 answers
2k views

nginx load balancing images not loading

Below is my load balancing configuration.my other servers contain nginx unicorn based application setup. When i tried above configuration the images are not loading. I have total three servers 1 ...
user avatar
0 votes
1 answer
1k views

Nginx: redirect http to https

I know the question has been asked countless times. Still cant get mine to work with the answers i've seen so far. I'm trying to force redirect http to https with nginx. When i visit https//subdomain....
user avatar
  • 111
0 votes
1 answer
413 views

Trouble getting Unicorn to talk to Nginx

I've seen all of the other questions on here but none of them seem to work for me. Whenever I try and access my site I'm getting a connection refused error through the nginx logs. I'm assuming there ...
user avatar
  • 322
0 votes
0 answers
642 views

Serving static files with NGINX on Unicorn served app

I've just set up a Sinatra app running on Unicorn and served through a socket by NGINX. I'm trying to get NGINX to serve my static assets with this in my nginx config: * EDIT * (added full server ...
user avatar
2 votes
1 answer
2k views

Rails - Nginx not caching images

I've got a VPS where I'm running my Rails app using Nginx and Unicorn. I was successful to add expires headers to JS and CSS files, however I cannot force Nginx to cache images as well (according to ...
user avatar
  • 25
1 vote
3 answers
10k views

nginx Permission denied error

I'm runnning nginx and unicorn to serve Rails application. Unicorn and Rails app works fine, but nginx can't open rails public directory with permission error and return 502 Bad Gateway. curl http://...
user avatar
1 vote
1 answer
2k views

GitLab Unicorn Service crashes all the time, 502 Error

I used the Installer of Gitlab CE and so far everything looks well. Then when finished the installation I always got 502 Error on my website, since then I did a little research, then I saw that my ...
user avatar
  • 121
1 vote
1 answer
2k views

Rails application deployment, nginx, unicorn, capistrano socket error

I am deploying a rails application to a digital ocean VPS. I have followed https://coderwall.com/p/yz8cha . All things done well, but now the browser shows only a blank page. Nginx log contains: ...
user avatar
0 votes
2 answers
542 views

rails app (via apache proxy) images from uploads directory missing

I am running Gitlab reverse-proxied through an Apache 2.2 server for my work group. Recently, we wanted to upload some group logos to use as project Avatars. The uploads all completed successfully (...
user avatar
  • 3,043
0 votes
1 answer
158 views

Restart individual rails apps in nginx+unicorn

I have 15-20 independent rails applications on the same ec2 instance. The rails applications are deployed using apache + passenger with Railsbaseuri. RailsBaseURI /games <Directory /home/ubuntu/...
user avatar
  • 171
4 votes
1 answer
506 views

Nginx + unicorn + spdy + performance testing

I have a ruby on rails website that is hosted on unicorn webserver behind a nginx reverse proxy. I want to evaluate if using spdy will enhance my performance under this setup. Specifically, I need ...
user avatar
  • 171
4 votes
1 answer
7k views

Instances slow when connected to AWS load balancer

I have setup 5 t1.micro EC2's behind an AWS load balancer. All the instances slow down once they are connected to the LB. Eight out of 10 requests takes more than 30s even when I do the requests ...
user avatar
4 votes
0 answers
314 views

Rails 4 Unicorn+Nginx on Ubuntu 13.04 VPS keeps crashing

I bought a years subscription at bluevm.com (found some coupon code, it was only about $15 for a whole year) to launch my first Rails Production server. I'm running Nginx with Unicorn and MySQL on ...
user avatar
1 vote
0 answers
45 views

Redhat quitting process never works always have to kill it

I am working on a RedHat server creating a unicorn process. I have two sets of these processes being created. I am able to QUIT one of the process fine and do so over and over again create it and QUIT ...
user avatar
4 votes
1 answer
2k views

Rails when served by unicorn is generating the wrong fingerprint for precompiled assets

I have a production server with nginx -> unicorn -> rails. I precompile assets, which puts assets in public/assets with a fingerprint (hash) appended to the filename. However, when a web page is ...
user avatar
0 votes
2 answers
792 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 ...
user avatar
  • 201
-1 votes
2 answers
72 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 ...
user avatar
  • 101
0 votes
1 answer
2k 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 ...
user avatar
1 vote
0 answers
823 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 (111:...
user avatar
0 votes
2 answers
1k 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 ...
user avatar
3 votes
2 answers
4k 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; } ...
user avatar
  • 145
1 vote
0 answers
979 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 ...
user avatar
  • 111
0 votes
1 answer
568 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 ...
user avatar
  • 115