Ruby is a programming language that is mostly used nowadays as part of Ruby On Rails
0
votes
1answer
11 views
RubyGem installation can't find header files
I'm running Ruby 1.9.3 on CentOS 5.3. I installed it by compiling Ruby 1.9.3 from source, along with libyaml. I'm also using rbenv to manage versions, so I placed the compiled installation in ...
-2
votes
0answers
28 views
What's the difference between effective user id and real user id? [closed]
I am a Ruby developer, and in the Ruby File API, I read the doc:
readable?(file_name)
Returns true if the named file is readable by the effective user id of this process.
readable_real?(file_name)
...
1
vote
1answer
28 views
Postfix piping to a ruby script. Is a new ruby process created for each email?
I'm writing a ruby script to process incoming email for a specific email address using a transport.
Postfix transport table
me@example.com ruby-script
Postfix master file
ruby-script unix - ...
1
vote
0answers
17 views
Best way to profile Unicorn workers?
I'm trying to get a better picture of what my Unicorn workers are doing. Are they blocked on calls to other services for a significant portion of their cycles? Are they free most of the time?
The ...
0
votes
1answer
44 views
VPS setup for hosting more than one app (via VMs?)
First of all, I’m not an admin, so excuse me if my questions are kinda obvious/lame – I’m just a ruby programmer, which would like to host few apps on his server;)
Lets say, that I’ve got 3 ...
0
votes
1answer
19 views
How do I manage Ruby installations on production machines with sparse resources?
I have a virtual Debian host with about 256MB RAM running a little Rails application that won't need more. As Ruby 2.0 is coming along, it should be upgraded in the near future. The last time I ...
-1
votes
0answers
25 views
cannot install chef on windows [closed]
I'm trying to install chef on windows 7. Just runing command:
gem install chef --version=10.16.2 --no-rdoc --no-ri
But there is error occured:
Temporarily enhancing PATH to include DevKit...
...
-2
votes
0answers
60 views
How do I install Ruby 2.0.0 correctly on Ubuntu 12.04? [closed]
I installed RVM successfully, but when I issue this command:
sudo apt-get update
or:
rvm install 2.0.0
I have these errors:
W: Failed to fetch ...
0
votes
2answers
35 views
mysql gem broken in debian testing?
I've been trying all night, and so far have been unable to compile the mysql gem for ruby on my Debian Testing 64Bit system.
I believe it is because I have the openssl v1.0.0 library installed.
Here ...
0
votes
0answers
59 views
Mongrel failing to start after an OS update
So there's this installation on a virtual server, administered by Plesk, running CentOS. The OS has been automatically updated recently - this broke a custom ruby installation. I haven't set up the ...
0
votes
0answers
20 views
Vagrant - Unable to up instance due to “librarian” not found (even though it's installed)
Quite a strange problem I'm having, basically I type "vagrant up" and I'm immediately presented with:
Gem "Librarian" was not found. Try running `vagrant gem install librarian --no-ri --no-rdoc`
Of ...
0
votes
0answers
21 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
1answer
44 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
0answers
29 views
Chef rbenv cookbook recipe user not found
I have a problem with Chef rbenv cookbook. Once I start to bootstrap a server it gives me a error:
could not find user recipe for cookbook rbenv
But the recipe is in the recipes folder.
I can not ...
1
vote
1answer
62 views
Puppet: build DNS file from node config (or: how do I iterate over node variables globally)
I also use puppet for my nodes. I am also running a (BIND) dns server.
Would it be possible to use the $aliases variable I have for each node in a template for the DNS module?
My nodes look like ...
0
votes
1answer
38 views
Why can't I connect to my PostgreSQL database?
I'm trying to install tentd-admin.
The install fails during this step:
$ DATABASE_URL=postgres://localhost/tent_server bundle exec rake db:migrate
I also tried this:
$ ...
0
votes
0answers
20 views
Everytime I run gem list I get error: can't convert Regexp into String
I'm not sure why my DS keeps giving me this error when trying to simply list all the gems I have installed. I have successfully installed ruby on my DS, and a few gems, but now when I do gem list I ...
0
votes
1answer
31 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 ...
-1
votes
1answer
77 views
Send 6000 emails at once [closed]
I am trying to help a local community group set up an email list. They cant afford to pay any extra money to rent an smtp server.
The email list is around 6,000 addresses. We dont want it to be ...
-1
votes
1answer
43 views
Is it possible to resume installation (build) after it was failed? [closed]
I'm trying to install Ruby-2.0.0-rc2 with ruby-build on Windows under Cygwin. And for the second time I get BUILD FAILED error. First time I had no make utility and got BUILD FAILED very fast after ...
0
votes
0answers
76 views
Amazon OpsWorks custom cookbook RVM
I'm trying to install RVM with Amazon OpsWorks using this cookbook. I want rvm to run under the user tomcat6, so I included the recipe rvm::user with the correct attributes.
The error I'm getting is:
...
1
vote
0answers
318 views
Ubuntu, ruby 2, rails 4
I'm trying to setup a server, which has Ubuntu 10.04 LTS, Ruby 2.0.0-p0 and Rails 4 beta1. I can get everything installed but rails 4 has a slight error and I'd like to get someones opinion. When I do ...
0
votes
1answer
105 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
1answer
40 views
RPM Package a ruby project
I want to package a ruby program that I get from git into a RPM package. I have at my disposition a build server and a production server (Same OS / Same Arch).
As most ruby project, mine does have ...
0
votes
0answers
31 views
Start resque with monit default config
I am trying to start resque with Monit and monitor it. I modified the default config so it will look for my user ruby etc, but monit wont even write to its log that its starting it.
check process ...
0
votes
1answer
51 views
Unicorn Shared Socket
Is it possible to have a unix socket across a network? Is it possible to have multiple application servers running unicorn use that same shared socket?
The setup I'd like to achieve would look like:
...
0
votes
1answer
38 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
0answers
39 views
Lighttpd and ruby on rails app
I'm under ubuntu and I setup it to run php and postgres, now I need to run a Ruby on rails app. I have already installed all that i need, like ruby, rails, git and so on and created a test app placed ...
0
votes
1answer
119 views
Trouble installing Redmine on CentOS 6.2 - undefined method db for main:object
I am trying to install RedMine on CentOS 6.2 but I am running into difficulties when I try to access the site. Using this guide, I have configured the following in environment.rb:
# Load the rails ...
0
votes
1answer
27 views
Running recipe name
In Chef, is possible to get the recipe name when this recipe is running?
I want to add recipe name on logging/debugging. Something like:
Chef:Log.info "#{recipe_name} xxxx"
0
votes
1answer
43 views
How do I completely remove all Ruby gems?
I am trying to completely remove my Ruby and Rails installation.
After uninstalling Ruby with apt-get remove ruby1.9.1 I see that all the Ruby stuff like ruby, rake and irb from "/usr/bin" was ...
1
vote
1answer
100 views
configuring Munin for Nginx 1.2.4 on ubuntu 10.04 ubuntu ec2 instances
I am running my ruby on rails app ubuntu 10.04 ec2 instance and I am using nginx 1.2.4. I am trying to configure munin to get stats fron nginx, I have recompiled nginx and its working fine but I am ...
0
votes
0answers
272 views
vagrant - Could not find chef
New ubuntu 10.04 vagrant setup, and trying to run vagrant up
$ vagrant up
[default] VM already created. Booting if it's not already running...
[default] Clearing any previously set forwarded ...
1
vote
1answer
184 views
Bundler (or Ruby) mangling require paths
About 50% of the time, when I run bundle (or bundle exec foo) I get an error like the following:
> bundle
...
0
votes
0answers
36 views
PATH variable not what I'm expecting - apache2 + passenger on OS X Mountain Lion
I've installed passenger via Apache on Mac OS X Mountain Lion and it's looking sweet. I've managed to get some of my web applications working fine, but I've come across one or two which aren't ...
0
votes
2answers
119 views
Install Ruby and Rails on Debian Squeeze
We have a Linux (Debian Squeeze) server in production, currently running apps on a LAMP stack.
I now need to bring over an existing RoR app from a different server onto this new server and get it ...
0
votes
0answers
75 views
Rails Deployment: Phusion passenger problems
I'm using the following for my rails app.
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]
Rails 3.0.5
Phusion Passenger version 3.0.5
The app sits in a 4GB RAM linux box. I recently ...
0
votes
0answers
93 views
Can't include gems in Ruby scripts but gems are installed
I have CentOS 5.8 VM with Ruby and Chef-solo installed on that.
When I tried to write my own script I realized that Ruby interpreter can't find gems:
$ irb
irb(main):001:0> require 'json'
...
0
votes
0answers
40 views
scrapi doesn't see tidy libraries
I have a simple ruby file that scraps a price off of walmart's site. I did a gem install scrapi and a gem install tidy. When I run my code on my windows 7 box I get the following error:
Error
...
0
votes
0answers
58 views
Dynamik Role Attributes in Chef
I would like the Chef cookbook network_interfaces to have dynamic values for ip addresses, netmasks and alike for each of my nodes. What works for me is the following:
db_role.rb (block1):
...
1
vote
1answer
149 views
Puppet - Call custom function (which contains case/when) from manifest
I am working on puppetizing my httpd and nginx vhost confs. Right now I have 5 servers which each have their own port and are run on server1, while nginx is running on server2. Obviously I need to ...
3
votes
1answer
128 views
SSH 'connection reset' when attempting multiple simultaneous outbound connections to the same host
I have a script that executes a Rake remote task which executes once for each of two roles. Both roles are users on the same Vagrant instance. So essentially the task is opening two SSH connections ...
0
votes
1answer
263 views
Chef / ruby / erb files - How does this example code work?
I am working on a custom bootstrap template, based on a sample template. I am looking at the example of getting the validation key from the workstation to the brand new server, and from what I can ...
-2
votes
1answer
231 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 ...
0
votes
2answers
294 views
How should secret files be pushed to an EC2 (on AWS) Ruby on Rails application?
How should secret files be pushed to an EC2 Ruby on Rails application using amazon web services with their elastic beanstalk?
I add the files to a git repository, and I push to github, but I want to ...
0
votes
2answers
212 views
Linux: find thin server running on port 80 and kill it
On my Linux server I ran:
sudo thin start -p 80 -d
Now I'd like to restart the sever. The trouble is, I can't seem to get the old process to kill it. I tried:
netstat -anp
But what I see on port ...
-1
votes
2answers
88 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
vote
1answer
217 views
Puppet and Vim fighting over Ruby version
I have installed puppet 3.0.1 from the .dmg from puppetlabs. If I remove ruby 1.9.3, puppet works, but other things like my vim install (dependant plugins) do not.
According to ...
1
vote
0answers
122 views
nginx proxy_pass to different backends based on location / passing rewrited url
What the quickest and cleanest solution if you want to proxy URL request to two different backends via proxypass based on location.
location /app1/ {
alias /var/www/ruby/public;
...
1
vote
1answer
219 views
segfault in timeout.rb using gem with ruby enterprise edition (ree-1.8.7) [closed]
I'm attempting to install a gem on my new Ubuntu 12.10 (GNU/Linux 3.6.5-x86_64-linode28 x86_64) server, and I'm getting a segfault in timeout.rb . I've installed rvm, and ree, and getting this error ...
