Questions tagged [rails]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
26 views

Ruby and sqlite3 gem not working with bundle. SLackware

I need to run a ruby project with gems and specs. When I type bundle install I received: bash-5.1# bundle install Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing ...
user avatar
0 votes
0 answers
69 views

Postgresql issue on Manjaro 21.2.1

It was working just fine a couple of months ago, but now it just returns the following, any ideas why libldap-2.4.so.2 could not be found all of the sudden? OS: Manjaro 21.2.1 ~ postgres --version ...
user avatar
  • 1
0 votes
0 answers
23 views

Ruby gem install gem_name from the command line raising LoadError

I am using a MacBook Pro early 2015 running Big Sur. I used to OS version of ruby. It was working 6 hours ago but now when I run gem install from the command line I get the following error: (base) ...
user avatar
1 vote
0 answers
18 views

Bash commands executed on rails lost file descriptor between http requests

I have an arduino which I want to send text messages through a rails api. So, directly on a terminal this is as simple as create an file descriptor for the arduino port like: exec 3<> /dev/...
user avatar
  • 11
1 vote
1 answer
511 views

Help solving an elusive file descriptor leak

Over the last 6 months I've been facing an issue I can't seem to get rid of: apparently random "too many files open" / "can't open TCP/IP socket (24)" / "getaddrinfo: can't ...
user avatar
  • 111
1 vote
1 answer
14k views

Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432

Im trying to connect to a Postgres database within a Ruby/Docker container with; docker-compose run app rails db:setup only my stack trace reports;- Starting reptrax-uk_postgres_1 ... done could ...
user avatar
  • 182
-1 votes
2 answers
2k views

Ubuntu could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)

I'm trying to create a new user form my rails application. I already ran psql -p 5432 -h localhsot -U postgres and created a new user. Then I added the user with sudo adduser user_name and afterwards ...
user avatar
2 votes
1 answer
903 views

TMUX + Rails = stty: 'standard input': unable to perform all requested operations

I have a fairly large Rails project that always returns the following after every command in the Rails console: stty: 'standard input': unable to perform all requested operations This only happens ...
user avatar
  • 93
-1 votes
1 answer
667 views

Ruby on Rails Routing Error [closed]

I am running ruby on rails on an Ubuntu Droplet and I am encountering the following error when I navigate to my domain name: Routing Error uninitialized constant HomeController Rails.root: /home/...
user avatar
1 vote
1 answer
113 views

`su -c` as another user doesn't work in a Rails repository

In a bash script that has plenty of commands run as another user, I've found a class of commands that don't seem to work. In a Rails repository as root: > su -c 'whoami' at at > su -c 'rake ...
user avatar
  • 455
1 vote
0 answers
323 views

Can't install ruby on rails MacOSX

While trying to install ruby on rails with sudo gem install rails I get the following error Building native extensions. This could take a while... ERROR: Error installing rails: ERROR: Failed ...
user avatar
3 votes
1 answer
4k views

nginx errors with failed (13: permission denied) for socket despite socket permissions being set to 777

I've set permissions on the socket to 777 yet Nginx keeps stating that it's being denied permission to access, and yes I've restarted the server. Nginx is being started as root (not the best way but ...
user avatar
  • 341
0 votes
1 answer
714 views

How do I get sudo to read my ~/.gemrc file?

I'm using Debian Linux, Ruby on Rails 5 on Apache with Passenger. I crated the file ~/.gemrc gem: --no-rdoc --no-ri However, I'm running the command sudo bundle install and it doesn't seem to be ...
user avatar
  • 1,860
0 votes
2 answers
2k views

Error installing Ruby on Rails (Arch Linux)

I'm currently having an issue when trying to install Ruby on Rails on my Arch Linux ARM system. But it's also not just rails that won't install, it's anything I try to install using gem. Here is some ...
user avatar
2 votes
0 answers
176 views

How do I ungrey the "Gemfile" file so that I can open it in Atom?

I am trying to follow the Project Odin plan to install all necessary things in order to learn how to code. Idin Project has sent me to: http://installfest.railsbridge.org/installfest/...
user avatar
1 vote
2 answers
4k views

unable to access my rails using Public IP of my Ubuntu server in a browser

I have a Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-63-generic x86_64) server and my public IP is something like 183.xx.xxx.xx (curl -4 icanhazip.com).I have started my rails app using the command: rails s -...
user avatar
0 votes
0 answers
115 views

mysql.so: undefined symbol: vio_blocking

I'm trying to set up a Rails 2.2.2 installation (for an old app that I maintain) in a new Linux Mint 18 install. I've installed mysql (5.7.16-0ubuntu0.16.04.1 (Ubuntu)) and, using RVM, have installed ...
user avatar
  • 1,027
2 votes
0 answers
591 views

x64_mingw not a valid platform - Rails 5

Bluehost Shared Server ruby -v 2.2.2 rails -v 5.0.0.1 gem -v 2.4.5 ~/.bashrc export HPATH=$HOME export GEM_HOME=$HPATH/ruby/gems export GEM_PATH=$GEM_HOME:/lib64/ruby/gems/1.9.3 export GEM_CACHE=$...
user avatar
  • 231
1 vote
2 answers
7k views

Error installing nokogiri: ERROR: Failed to build gem native extensions

I can build my rails application on my mac On my Ubuntu machine when I bundle I get errors with a bunch of gems including nokogiri, version 1.6.7.2 Error installing nokogiri: ERROR: Failed to build ...
user avatar
0 votes
0 answers
1k views

Symbolic link not allowed apache 2.4 chiliproject

Few hours ago I upgraded ubuntu 13.10 to 14.04 LTS. I have 1 problem with chiliproject application wich running on Rails. I got error 403 when I'm trying to access my chiliproject application. In ...
user avatar
  • 101