passenger

Passenger 3.0.17 + Nginx 1.2.4 + “Content-Length” Header = 502 Bad Gateway

混江龙づ霸主 提交于 2019-12-11 12:09:05
问题 I have just run across an issue where setting response.headers['Content-Length'] in a Rails 3.2.2 application causes Nginx to throw a "502 Bad Gateway" error. I have an action in a controller that uses the send_data method to send raw JPEG data contained within a variable. Before, I had a problem with some browsers not downloading the entire image being sent and discovered that no Content-Length header is being sent, so I decided to use the .bytesize property of the variable containing the

Bash Command which Rails does Not Find

社会主义新天地 提交于 2019-12-11 10:54:49
问题 Passenger says: Ruby on Rails application could not be started ... Command 'exiftool' not found (MiniExiftool::Error) When I login with ssh and I type exiftool in any directory the command works properly. I have the follwing line in both .bash_profile and .bashrc export PATH=$PATH:$HOME/bin Is it possible that Rails (MiniExiftool plugin) does not recognize that bash command? How can I fix this behaviour? 回答1: The PATH for the user your server runs as does not include the directory that

RVM and Passenger: No such file to load - bundler

大兔子大兔子 提交于 2019-12-11 10:42:51
问题 I've seen other similar errors, but none of the solutions have worked for me: On Snow Leopard, I'm using RVM with project-based gemsets. I have both Rails 2 and Rails 3 apps. When I use bundler with Rails 2 or with Rails 3, I get: no such file to load -- bundler In my Rails 2 apps that don't use bundler, I just get a message that Rails needs to be installed when it is. My RVM install has a global gemset with REE version of Ruby. $ rvm list rvm rubies => ree-1.8.7-2011.03 [ x86_64 ] ruby-1.8.7

cannot load such file — capistrano/setup (LoadError)

非 Y 不嫁゛ 提交于 2019-12-11 10:38:54
问题 I am following https://gorails.com/deploy/ubuntu/16.04 Initially i have one version of capistrano 3.8.1 and my problem initially is: nicoara@ubuntu:~/deploy_test$ cap install STAGES=production /home/nicoara/.rbenv/versions/2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- capistrano/cli (LoadError) i solve this with "gem install rvm-capistrano" which installs another version of capistrano as well, 2.15.6, and now the error is: nicoara@ubuntu:~

nginx be both reverse proxy and web server

别等时光非礼了梦想. 提交于 2019-12-11 10:36:06
问题 I currently use nginx with passenger to serve my rails app. considering including a caching reverse proxy to the equation. Can I use the same instance of nginx as a reverse proxy (running on port 80, serving static as well as e-tagged actions) as well or would I need a different instance of nginx or a totally different type of reverse proxy? Thanks! 回答1: I think You can use the same instance of NGINx to do both but You will have to configure your application to listen on a different port. You

Phusion Passenger 5.1.12 + OSX 10.13 + Server 5.4

烂漫一生 提交于 2019-12-11 09:44:55
问题 I've been having problems with Phusion Passenger since upgrading to 10.13. I've read several articles about the root cause of this issue (most of which are over my head, quite frankly) but I was under the impression that Passenger 5.1.12 was supposed to solve this problem. Nevertheless, it has not for me and Apache crashes with the following log entry: httpd[31444]: objc[31444]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called. We cannot

Why is Phusion Passenger refusing to recognize my updated RubyGems?

耗尽温柔 提交于 2019-12-11 08:59:18
问题 I've updated RubyGems everywhere I can possibly think to update it: The various places I've updated RubyGems http://files.droplr.com/files/14167865/zel8k.Screen%20shot%202010-03-09%20at%2017:24:59.png but Phusion passenger keeps throwing the same error: Error Screenshot http://files.droplr.com/files/14167865/zee8W.Screen%20shot%202010-03-09%20at%2017:19:50.png There is that one freaking place that shows 1.3.1 as the version, despite the file name of 1.3.6. I've obviously borked things up

Images not showing after deployment with Passenger/Capistrano to Nginx server

霸气de小男生 提交于 2019-12-11 08:52:34
问题 Hi I'm deploying my first Rails app to Ubuntu 16 server using Capistrano everything went smooth except the images are not showing in the production environment. On the production server the images are located in this path : /myapp/current/public/assets But if I look at this in the browser my broken images links gives me this(see picture), this is a broken link for the header image. the strange thing is that there is a .svg file in the /myapp/current/public/assets which is showing up perfectly

Requests get stuck in PG::Connection#async_exec

喜你入骨 提交于 2019-12-11 08:41:13
问题 I'm trying to make a rails application work under passenger with no luck so far. It uses sequel to connect to postgresql . Requests randomly take too much time to complete. I was able to find where the app is spending its time: %self total self wait child calls name 99.92 65.713 65.713 0.000 0.000 5 PG::Connection#async_exec 0.00 0.002 0.002 0.000 0.000 264 Set#delete ... Supposedly, it doesn't happen with webrick , and I'm going to try and run it under unicorn . Here are some related links.

Rails 3.2 Asset Pipeline with Passenger Endless Errors

☆樱花仙子☆ 提交于 2019-12-11 08:22:59
问题 Having recently migrated my app to 3.2.1, it would seem I'm another developer struggling with the asset pipeline. Everything looks ok, my assets are compiled and apparently served. In the source of my doc I can see this: <link href="/assets/application-4fac522109a7afaaa2f18ef9f1294e19.css" media="screen" rel="stylesheet" type="text/css" /> And the link works just fine. However, neither my js or css actually load. The only error I can actually see in the apache logs is this: cache: [GET /]