Displaying 20 results from an estimated 4000 matches similar to: "Redundant puppet Masters setup help"
2011 Dec 15
6
Puppet with Ruby1.9 issue
Hi,
I have a running puppetmaster with nginx and passenger and ruby 1.9.2.
When i do puppet cert --trace --list . i get the following error.
/usr/lib64/ruby/gems/1.9.1/gems/puppet-2.7.9/lib/puppet/application/
cert.rb:43:in `block (2 levels) in <class:Cert>''
/usr/lib64/ruby/gems/1.9.1/gems/puppet-2.7.9/lib/puppet/application.rb:
357:in `block (2 levels) in parse_options''
2010 Oct 22
4
502 bad gateway on nginx with recv() failed
Hi,
I''m serving the puppetmaster application with its config.ru through
unicorn - proxied by nginx.
I''m using unix sockets, 4 workers, and 2048 backlog.
The clients - after their typical "puppet run" - send back a report to
the master in YAML.
Some clients whose reports tend to be large (close to 2mb) get a 502
bad gateway error and error out.
nginx log:
2010/10/22
2012 Feb 27
1
Tags issue
Hi ,
I am using tags according to environments Eg: prd_env and stg_env
How do i implement a default node Eg:
node default inherits basenode {
tag("prd_eu")|("stg_eu"))
include general
}
The above does not work.
I invoke the puppe agent
puppet agent --test --noop --server=puppetmaster.domain.local --
tags=prd_env|stg_env
Any ideas how i can allow both the
2009 Oct 13
7
Unicorn Nginx Issue
I''ve setup nginx with this
server {
listen 80;
server_name unicorn.local;
location / {
proxy_pass http://unicorn;
}
}
upstream unicorn {
server unix:/Users/mattmongeau/projects/test/unicorn/tmp/sockets/unicorn.sock;
}
When I run unicorn_rails -c config/unicorn.rb -E development I can
access the application just fine on unicorn.local
When I run unicorn_rails -c
2012 Dec 04
2
403 Forbidden from nginx when unicorn started in debug mode
I am using nginx with unicorn as a reverse proxy.
Has been fantastic, but needed to look through some code
for first time.
Using ruby 1.9.3p194 with rails 3.2.9, development mode with ssl enabled,
I start unicorn with -d
...and it does not get served up by nginx.
Any ideas, or more information needed?
Thanks!
Jet
Below is my unicorn.rb for developent:
# config/unicorn.rb
env =
2011 Jun 25
3
Unicorn and streaming in Rails 3.1
Streaming works with Unicorn + Apache. Both with and without deflating.
My understanding is that Unicorn + Apache is not a good combination
though because Apache does not buffer, and thus Unicorn has no fast
client in front. (I don''t know which is the ultimate technical reason
Unicorn puts such an emphasis on fast clients, but will do some
research about it.)
I have seen in
2012 Jun 08
2
File creation mode in Rails + Unicorn
Hi,
I''m currently giving Nginx + Unicorn a try, to eventually replace Apache + Passenger. So far so good.
I have a Rails 3.2.5 app behind Unicorn, itself behind Nginx.
In this Rails app, I have set page caching for some resources. They are created in Rails.root/public/ to be directly available to Nginx.
When I first hit such a page, the static cache file is not present, so the Rails
2011 Nov 14
3
nginx + unicorn deployment survey
Hello all, I''m wondering if you deploy nginx:
1) on the same machine that runs unicorn (exclusively proxying to that)
2) on a different machine that doesn''t run unicorn
3) both, nginx could forward to either to localhost
or another host on the same LAN
And of course, the reason(s) you chose what you chose. I''m inclined
to believe many folks are on 1) simply
2010 Aug 15
1
unicorn behind apache with file uploads
Hi,
For one of our apps we switched to unicorn from mongrel.
The unicorn server use to run behind an apache with timeout of 300sec,
as sometime the customer may do a large file upload.
After we made the switch we started getting lots of
Unicorn::ClientShutdown occurred in photos#flash_upload
bytes_read=2762663 (pr some other number)
We were not able to recreate it in our tests, but support was
2011 Aug 12
16
Rack content-length Rack::Lint::LintErrors errors with unicorn
Has anyone seen anything like this before? I can get it to happen all
the time if I issue a HEAD request, but it only happens very
intermittently on GET requests.
I''m using Ruby 1.9.2p180.
Any ideas on where to start debugging?
204.93.223.151, 10.195.114.81 - - [11/Aug/2011 21:03:50] "GET /
HTTP/1.0" 200 37902 0.5316
app error: Content-Length header was 37902, but should be
2013 Nov 05
4
Handling closed clients
We have a service that clients use to upload files. We have a couple of clients that are on slow links and so their upload times out. We get errors in the logs that I''d like to get rid of.
I was hoping that the recent commit 24b9f66dcdda44378b4053645333ce9ce336b413 would help us, but it does not. After digging in a bit, I have some ideas about why and a patch I''d like comments
2011 Jan 13
5
Unicorn 3.3.1 "Too many open files" error in kgio_tryaccept
Strange error which took down my server today:
Unhandled listen loop exception #<Errno::EMFILE: Too many open files - accept>.
/usr/local/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/unicorn-3.3.1/lib/unicorn/http_server.rb:606:in
`kgio_tryaccept''
/usr/local/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/unicorn-3.3.1/lib/unicorn/http_server.rb:606:in
2012 Dec 07
3
Ubuntu upstart
I cannot find any good example of a unicorn upstart task that works
properly for the following:
* Upstart will restart if unicorn dies
* Can send USR2 signal to unicorn to do a no downtime deploys
* Able to stop upstart job, even after a deploy
I have tried the following:
expect fork
respawn
setuid www-data
chdir /var/www/app/current
exec bundle exec unicorn_rails -E production -c
2013 Aug 20
14
A barrage of unexplained timeouts
We''ve been running unicorn-3.6.2 on REE 1.8.7 2011.12 in production for quite some time and we use monit to monitor each unicorn worker. Occasionally, I''ll get a notification that a worker has timed-out and has been re-spawned. In all these cases, when I look at the rails logs, I can see the last request that the worker handled, and they all have appeared to complete
2009 Oct 09
1
While we're on the topic
First - Thanks! We''re loving Unicorn.
I''m serving about 200K API requests a day on a few linux servers
running Unicorn. We have the API calls, and also some admin stuff
that has a UI. I have a pair of F5 load balancers in front of the
setup with two pools. The API pool passes directly to the unicorns,
while the UI pool passes to nginx which passes to unicorn. At
2010 Jun 23
2
Purpose of "Status" header in HTTP responses?
Hi folks
On line #63 of unicorn/http_response.rb a "Status" header is written to the
socket. A comment in the code explains that some broken clients require this
header and unicorn generously accommodates them.
We?re having the opposite problem. One of our clients using Microsoft Windows
and ASP haven?t been able to connect to our HTTP API since we moved it to
unicorn from passenger.
2011 May 19
2
unicorn doesn't restart properly after cap deploy (not using Bundler)
Hey guys,
I''m sending USR2 to unicorn after cap deploy, and the old master is
getting replaced by a new master that doesn''t work.
Here are some similar threads I found ...
http://rubyforge.org/pipermail/mongrel-unicorn/2010-October/000733.html
http://rubyforge.org/pipermail/mongrel-unicorn/2010-October/000717.html
I''m not using Bundler, and I have working_directory
2013 Apr 25
4
Why doesn't SIGTERM quit gracefully?
Hi,
I''m wondering why SIGINT and SIGTERM both were chosen for the quick
shutdown? I agree with SIGINT but not with SIGTERM. A lot of unix
tools send SIGTERM as default (kill, runit among some) and it seems to
be the standard way of telling a process to quit gracefully but not
among Ruby people (there are a few other ruby processes behaving the
same way). I just think it''s weird
2011 Jul 11
6
Unicorn vs Apache
Hello all,
I have always deploys rails apps with unicorn and nginx as a reverse
proxy in the past. However, I am working with a new firm and they would
like to use Apache with mod_pagespeed in front of unicorn.
We will be deploying a rails 3.1 app with streaming. To me,
mod_pagespeed does not seem like a magic bullet, as it appears to be a
collection of best practices which have to be rewritten
2012 Apr 27
14
app error: Socket is not connected (Errno::ENOTCONN)
I''m getting the following errors multiple times per request when using
4.3.0. I do not receive any errors when using 4.2.1. Please CC me on
replies, I''m not subscribed to the mailing list.
16:48:42 web.1 | E, [2012-04-26T16:48:42.733954 #87940] ERROR -- :
app error: Socket is not connected (Errno::ENOTCONN)
16:48:42 web.1 | E, [2012-04-26T16:48:42.734193 #87940] ERROR