thin

Capistrano + thin + nginx with user not allowed to sudo howto?

I have a scenario like this which I want to use capistrano to deploy my ruby on rails application: The web application is on a thin cluster with the config file stored under /etc/thin. also an init script is in /etc/init.d/thin, so it would start automatically whenever my server needs a reboot Also nginx is executed the same way (as an...

Thin + Nginx Production ready combination for RubyOnRails Application.

I have recently installed Nginx + Thin on my deployment server, but i am not sure how this will perform in last requests & responses situation. lets say 1000/req per sec. so the speed on thin is good with 10-100 req /per sec I wanted to know on higher volumes of data being processed on the request/response cluster. Guide me on this :-...

POSTing an HTML form to remote.cgi - written in Ruby?

I am working on a website hosted on microsoft's office live service. It has a contact form enabling visitors to get in touch with the owner. I want to write a Ruby script that sits on a seperate sever and which the form will POST to. It will parse the form data and email the details to a preset address. The script should then redirec...

PHP and Oracle using a thin driver

Is there a thin driver for Oracle available to be used with PHP (for example as an extension)? I cannot install the OCI driver/client, but need to be able to access an Oracle database. ...

Thin Crashes Hard with Ramaze

So, I'm just trying out Ramaze for a new project, and I'm wondering why it won't work with Thin, but will with ramaze start (which is webrick I guess). Here's what it gives me: /opt/local/lib/ruby1.9/gems/1.9.1/gems/thin-1.2.2/lib/thin/request.rb:50: [BUG] unknown type 0x22 (0xc given) This is the line it's talking about: @parser = ...

Ruby can't link with MS C runtime (msvcr90.dll)

Hi folks. I was attempting to run the Ruby Thin demo application on Windows/XP when I got an error that Windows couldn't find "msvcr90.dll" for Ruby 1.8.7 -- I found a redistributable and put that in my path to be confronted with the information that: "R6034 ... application has made an attempt to lead the C runtime incorrectly" Earli...

Oracle ResultSetMetaData getPrecision/getScale

I'm using Oracle's JDBC thin driver (10.2.0.3) for connecting to an Oracle 10g database. I'd like to get information about the database columns, so I use ResultSetMetaData. The most important information I need is the type of the column and the length, so I use getColumnType, getPrecision, and getScale methods. It works for a simple que...

Can Apache BalancerMember be configured to use unix domain sockets?

I am using the Apache Proxy balancer directive to hook up a set of thin servers (for Rails). Like so: <Proxy balancer://thinservers> BalancerMember http://127.0.0.1:5000 route=thin0 BalancerMember http://127.0.0.1:5001 route=thin1 BalancerMember http://127.0.0.1:5002 route=thin2 </Proxy> However, thin can also be conf...

Ruby, Sinatra and Streaming

I'm furiously trying to debug why iTunes isn't accepting the data I'm sending to it (as a DAAP Server) - you can see what I'm trying to do on the github page. The only difference I can find between my response and an identical response from mt-daapd (which iTunes does accept) is that the mt-daapd response is broken down into small packe...

How to use ruby thin with CGI scripts?

I've written some ruby CGI scripts (using the Ruby CGI class) that I serve from my production server using lighttpd. I want to test them on my development server using thin. Basically, I want to drop all my CGI scripts in a directory and start thin in that directory. Then, any requests to http://localhost:3000/&lt;script> should just exe...

Thin (ruby) is barfing

Simple sinatra app: require 'rubygems' require 'sinatra' get '/' do "Hey" end Then: $ ruby test.rb And when I hit http://localhost:4567, it drops the connection and I get: /usr/local/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin_parser.bundle: dlopen(/usr/local/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin_parser.bundle, 9): no suita...

Why does my rdebug session say "*** No sourcefile available"

I'm not sure what the pattern of behaviour is but some programs - notably simple rack.ru based ones running in thin - can't easily be debugged. When a breakpoint is tripped, no source is available Note this isn't the same as this other S.O. [issue][1] [1]: http://stackoverflow.com/questions/323010/in-ruby-why-does-my-irb-interactive-de...

problems installing thin on Windows

Hi all, I'm trying to install Thin on Windows (ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]) but get an error message: C:>gem install thin Building native extensions. This could take a while... ERROR: Error installing thin: ERROR: Failed to build gem native extension. C:/rails/ruby/bin/ruby.exe extcon...

Problems installing Thin on windows 7 x86

I'm having problems getting thin working on my Windows 7 machine (I've already installed eventmachine v0.8.1): >gem install thin --ignore-dependencies checking for main() in -lc... no creating Makefile make 'make' is not recognized as an internal or external command, operable program or batch file. Are there not meant to...

Rack::Session:Cookie error using Sinatra, Thin, Rails, and Rack::Cascade

I have a combined Sinatra/Rails app that shares a session using Rack::Session::Cookie. The app works fine when started with Rack::Handler::Thin.run app, but if the rackup file is start with thin start, I get an error in Rack::Session::Cookie: !! Unexpected error while processing request: no marshal_dump is defined for class Proc no mar...

Ruby on Rails deployment, on "thin" server with lot of attachments

A lot of PDFs are stored inside MySQL as a BLOB field for each PDF file. The average file size is 500K each. The Rails app will stream the :binary data as file downloads, where there is a user click on the download link. Assume there is a maximum of 5 users downloading 5 PDFs concurrently, what kind of deployment setup parameters I sh...

Is there any way to control RAM that Ruby's Thin server uses?

I have VPS with 1GB of RAM. One ruby-app that runs on thin server takes about 60+ MB of RAM, no matter if application is used right now or not. Is there any way to control this? Because right now Im runnin' out of memory. Any suggestions are accepted. Thanks in advance. ...

Can nginx be used as a reverse proxy for a backend websocket server?

We're working on a Ruby on Rails app that needs to take advantage of html5 websockets. At the moment, we have two separate "servers" so to speak: our main app running on nginx+passenger, and a separate server using Pratik Naik's Cramp framework (which is running on Thin) to handle the websocket connections. Ideally, when it comes time f...

The init script to several Unicorn.rb instance

I use now thin to serve my rack application on my webserver. I have a lot of web application so I have a init script who check all file in my /etc/thin and start all of then with configuration inside. I want migrate to unicorn so I want same behaviour, but when I check the example in unicorn, I found only init script to start one unicor...

Can't install thin by using rubygems on Ubuntu 9.10

How can I fix this error, and install thin or other gems? $ sudo gem install thin Building native extensions. This could take a while... ERROR: Error installing thin: ERROR: Failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.rb checking for rb_trap_immediate in ruby.h,rubysig.h... *** extconf.rb failed *** Could no...