Questions tagged [ruby]
Ruby is a general-purpose object-oriented open-source scripting language. It sees a high degree of use in the configuration management space, and is popular for web development due to the high adoption of Ruby On Rails
498
questions
0
votes
1
answer
242
views
github push -> redmine issue duplicate comments
I've successfully connected github to redmine and whenever someone puts an issue reference in a commit message and pushes it to github, a comment is added to the redmine issue referring back to the ...
0
votes
1
answer
926
views
Why do I get "Error 'configure:3485: error: C compiler cannot create executables'" when I install Ruby 1.9.3 on Fedora 12?
When trying to install Ruby 1.9.3 on Fedora 12, following "Complete Guide to install Ruby 1.9.3 on CentOS", I get the following error when running the command ./configure:
$ ./configure
checking ...
0
votes
1
answer
119
views
Options for Executing Scheduled Scripts on a PHP Server
I have a server that I've setup running PHP. This serves JSON files and is running fine.
I also have several scripts that reads data from an outside source, connects to my MySQL Database Server, and ...
0
votes
1
answer
492
views
Redmine (RoR rack app) on uWSGI forgets sessions when ran with more than one process
When I log into redmine it forgets that I was logged after first click on any link or immediately after the login redirect. After I refresh the page a few times, I am still logged in in some of this ...
0
votes
1
answer
339
views
Gitorious - ActionController::UnknownHttpMethod when logging in?
I'm going to install Gitorious as a slave server for failover purpose follow this blog post.
gitorious.conf
NameVirtualHost *:81
<VirtualHost *:81>
ServerName gitorious.domain.com
...
0
votes
1
answer
181
views
Fixed ruby/mysql connection with new libmysql.dll, and broke Apache in the process
Ok so bit of background - all my development has been on a local Windows 7 machine. I had Apache with PHP/MySQL running with no issues.
Been using ruby (1.9.3 and latest rails release 3.2.9) with ...
0
votes
1
answer
655
views
Error Installing ruby with RVM Single User mode on Arch Linux
I've just installed RVM on ArchLinux x64 in single user mode via the recommended install script
curl -L https://get.rvm.io | bash -s stable
I've also installed all the requirements listed in rvm ...
0
votes
1
answer
2k
views
Host multiple Rack apps on one server with multiple ports (using Apache and Passenger)
I've search online and been reading documentation for Apache, Passenger, Rack, etc, but have yet to find a solution to my problem.
I have several Rack (ruby)-based apps, located in
/home/web/sites/...
0
votes
2
answers
336
views
Missing these required gems: mongrel (but installed)
i am trying to install new plugins for redmine 1.4.4.
Having copied folder and run rake db:migrate_plugins RAILS_ENV=production rake wrote:
Missing these required gems:
mongrel >= 0
You're ...
0
votes
1
answer
54
views
Running application from a different directory
I currently have Redmine setup in /usr/share/redmine and I would like to keep /usr read only. I want to be able to run the application out of /srv/redmine. I am using the debian package. The location ...
0
votes
1
answer
362
views
Nginx - Passenger - Rails 3.2 not responding
I am struggeling to get my rails 3.2 app running on a nginx - passenger - ruby 1.9.3 setup.
here is what I already did:
installed passenger gem
installed rvmsudo passenger-install-nginx-module
I ...
0
votes
2
answers
1k
views
How to install Phusion Passenger using RVM on Rackspace server?
I am getting ready to start hosting my own Ruby applications. I already have RVM installed on my production server. Now I would like to install Passenger.
I have Ruby 1.9.2 set as the default. I ...
0
votes
1
answer
1k
views
memory tuning with rails/unicorn running on ubuntu [duplicate]
I am running unicorn on Ubuntu 11, Rails 3.0, and Ruby 1.8.7.
It is an 8 core ec2 box, and I am running 15 workers. CPU never seems to get pinned, and I seem to be handling requests pretty nicely.
...
0
votes
1
answer
359
views
Ruby Passeger + Nginx or lighthttpi + fgci for shared hosting
I have set up a passenger + nginx setup and I plan to offer a free non-commercial hosting (or in fact on the fly deployment) for rack-based frameworks (e.g. camping, sinatra).
I am facing an "issue" ...
0
votes
2
answers
2k
views
Apache Passenger displaying my Rails application contents?
I have installed mod_rails (phusion passenger) for Apache on Ubuntu 11.10. Ruby and Rails are running fine, and so does mod_rails.
I have setup a site on dev.localhost, which is my ruby app. The app ...
0
votes
1
answer
1k
views
RVM permission denied on Ubuntu 11.10
I've been through all tutorials and solved problems I can find about RVM. There's something wrong with permissions. There are no rubies installed, and when I try to install one: "permission denied". I ...
0
votes
1
answer
110
views
rvm "default" version implementation
According to the official site (http://beginrescueend.com/rubies/default/), the "default" setting of rvm controls the ruby version that is loaded "when you open a new terminal shell".
I am wondering, ...
0
votes
1
answer
100
views
rvm doesn't revert back to system ruby
I'll let the shell log explain itself:
root:~# rvm current
system
root:~# which ruby
/usr/bin/ruby
root:~# rvm use 1.9.2
Using /root/.rvm/gems/ruby-1.9.2-p290
root:~# rvm current
ruby-1.9.2-p290
root:...
0
votes
1
answer
304
views
Which Ruby server for an app with lots of file uploads?
I'm currently building an application that will handle quite a lot of file uploads (images, so a few MB each). It'll also be handling mostly JSON requests on the frontend, behind a Javascript ...
0
votes
1
answer
861
views
Ruby/Passenger stops working after update to OpenSSL
Someone has run a yum update on the CentOS box (Linux 2.6.28.1-xxxx-std-ipv4-32 #2 SMP Fri Jan 30 09:55:02 UTC 2009 i686 i686 i386 GNU/Linux) that runs a Ruby on Rails app (Redmine) served with ...
0
votes
1
answer
1k
views
Monitoring queue depth of resque/resque-scheduler
I'm looking for a way to monitor the "queue depth" of my resque and resque-scheduler redis instances. Currently I am using god to ensure the resque and resque-scheduler tasks are running, and I use ...
0
votes
1
answer
54
views
Is there a Perl/PHP/Ruby/Other webtop-like filemangager platform?
EDIT:
Is there a web based file manager / Workspace similar to EyeOS but uses Unix authentication and allows them to edit their files? If that makes sense? Thanks. It'd be awesome if something like ...
0
votes
1
answer
466
views
Installing Redmine on Ubuntu 10.04
I'm having some issues installing Redmine on Ubuntu 10.04. I basically ran the following:
sudo apt-get install redmine redmine-sqlite redmine-mysql
It walked me through things and I configured ...
0
votes
1
answer
2k
views
Passenger on Debian failed with "only ET_DYN and ET_EXEC can be loaded"
I tried to install passenger using rvm and ruby 1.9.2 on my debian lenny/sid today, but i get this error:
apache2: Syntax error on line 295 of /etc/apache2/apache2.conf: Syntax error on line 1 of /...
0
votes
1
answer
925
views
MySql gem installation failure
I'm attempting to install a mysql gem on my workstation with this command
gem install mysql-2.8.1.gem
output :
> Building native extensions. This could take a while...
ERROR: Error installing ...
0
votes
1
answer
405
views
Cannot get ruby bluepill gem to install on ubuntu
i install bluepill on ubuntu: Linux auto 2.6.31-14-server #48-Ubuntu SMP Fri Oct 16 15:07:34 UTC 2009 x86_64 GNU/Linux
Actual Result:
root@auto:/# gem install bluepill
Successfully installed ...
0
votes
1
answer
415
views
How can I debug these runaway ruby processes?
Seemingly out of nowhere (I didn't make any code changes or server changes), I've got dozens of ruby processes running my server into the ground:
alt text http://share.shpigford.com/images/ruby-...
0
votes
1
answer
211
views
Mongrel cluster returning page source
I've setup a mongrel_rails cluster which worked correctly until I decided to reinstall ruby/rails/mongrel.
I'm able to get an output when I visit the website, but I'm obtaining the page source ...
0
votes
1
answer
1k
views
Compiled ruby fails to find curses
I'm attempting to install the sup MUA but I'm having trouble. When I try to run it, it can't find curses:
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no ...
0
votes
1
answer
338
views
How do you keep a ruby project running?
I currently have a Redmine installation on a local server for our office to use. The problem is that sometimes, when I run the redmine server using:
ruby script/server webrick -e production
it ...
0
votes
1
answer
746
views
can't stop or restart the thin gem on ubuntu 10.04
I get the below error whenever I try to stop or restart the thin gem on Ubuntu 10.04. Any fix for this?
Can't stop process, no PID found in tmp/pids/thin.pid
0
votes
1
answer
614
views
Suppress PHP Headers running cgi PHP from Ruby
I originally posted this on StackOverflow and it was suggested that I try posting this here because, "It might be something like the configuration in CGI is different than the configuration for your ...
0
votes
1
answer
415
views
Unable to configure Ruby with readline
1) ./configure --prefix=$HOME/.packages --with-readline-dir=$HOME/.packages
2) configure: WARNING: unrecognized options: --with-readline-dir
I am trying to setup the most up-to-date version of Ruby ...
0
votes
2
answers
460
views
Why is curl failing to download from cache.ruby-lang.org when ping works?
I have an issue similar to this:
Wget, Curl, Yum Fail but Ping works - CentOS 5
In my case, I have 2 Ubuntu 18.04 servers which are failing to download from cache.ruby-lang.org:
curl -O https://cache....
0
votes
1
answer
385
views
How can I determine why a process is dying? [closed]
On a CentOS 6.5 server I am running a very simple HTTP listener with Sinatra that exists simply to accept POST requests and pass the payload content of the POST request to another service.
I often ...
-1
votes
2
answers
1k
views
rvm doesn't install in centos without root privileges [closed]
I trying to install RVM using deployer user that doesn't had root privileges ant I getting this error:
bash: line 439: ./scripts/install: Permission denied
Any help? Thank you!
-1
votes
1
answer
375
views
Security best practices for Nginx + passenger multi hosting [closed]
I am planning to offer a free multi-hosting for a rack-based ruby framework using nginx and passenger to serve these apps. I am working on several options and I would like to ask some advice on the ...
-1
votes
1
answer
969
views
RVM Mixed Mode - Local Gem Installation
This thing is driving me nuts.
I've installed RVM on a CentOS server; I followed the mixed mode instructions perfectly. https://rvm.io/rvm/install/
When I try to do a "gem install" from a user ...
-1
votes
2
answers
4k
views
Install ruby by rvm
I try to install ruby 2.1.1 by RVM and I receive following error:
vmamaev@vmamaev:~$ rvm install ruby-2.1.1
ruby-2.1.1 - #removing src.
Searching for binary rubies, this might take some time.
No ...
-1
votes
1
answer
2k
views
Passenger 'premature end of script headers' error
I really need help debugging an error I'm getting with Passenger on Apache.
I've just made a fresh install of Ubuntu 10.4 and have Apache, Ruby and Passenger installed. I'm trying to run a simple ...
-2
votes
3
answers
4k
views
Can I safely uninstall Ruby?
I wish to remove non-critical packages to limit exposure to potential security vulnerabilities.
I never use Ruby.
Does removing Ruby will increase security or break other parts of the system ?
-2
votes
2
answers
104
views
Clone ec2 instance with all things installed
I received a amazon email saying that i have to terminate my instance
because of attacks but worked really hard to install and setup
everything on the instance. So how can i create another ...
-2
votes
1
answer
2k
views
How do I SSH through a jump server into a Rails console?
I'd like to have a one-liner for this. When I use the following command:
ssh -o ProxyCommand='ssh -W %h:%p user@<jump server>' -t user@<rails server> 'sudo su another_user ; cd /some/dir ;...
-2
votes
1
answer
1k
views
How BCC works in Postfix
I'm trying to use postfix feature content_filter like:
my_script unix - n n - 10 pipe
flags=Rq user=filter argv=/usr/local/bin/my_script.py -f ${sender} -- ${...
-2
votes
1
answer
2k
views
shift a localhost site from webrick localhost:3000 to apache2 passenger localhost/redmine or redmine.localhost [closed]
I have installed application called REDMINE on my localhost, using ruby on rails. It is accessible webrick script through localhost:3000, on my PC. Now I want to shift to apache2 passenger, I tried ...
-2
votes
1
answer
73
views
looking for answer of Ruby coding in linux [closed]
puts ((11.to_s * 2).to_i/2), does anyone know answer of this coding? I am not aware of ruby!
-6
votes
1
answer
859
views
Why wont my server start
I'm having real difficulty with a server on our load balance cluster and cant understand why. In the catalina log the following appears. It had been another site before and I removed it to see if that ...
-8
votes
1
answer
212
views
how to Moniter cpu status using chef? [closed]
i try with java and ruby for moniter EC2 instance with aws sdk but not able to find any example how to moniter ec2 instacne with chef. can any one help to find example to moniter ec2 instance so we ...