Questions tagged [rails]

18 questions
3
votes
1 answer

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 it's just the way it is and I'm not the one who…
Thermatix
  • 351
  • 4
  • 14
2
votes
1 answer

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 open file" errors in my applications' logs. I run a stack as follows:…
Nick M
  • 121
  • 1
  • 9
2
votes
1 answer

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 not connect to server: Connection refused Is the…
cookie
  • 222
  • 3
  • 8
  • 18
2
votes
1 answer

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 within TMUX. Without using TMUX I don't see this…
Nathan
  • 93
  • 6
2
votes
0 answers

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/deploy_a_rails_app in order to install these things. I am stuck at…
2
votes
0 answers

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=$GEM_HOME/cache export…
CJ Dana
  • 231
  • 1
  • 9
1
vote
0 answers

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/ttyACM0 And then, I can send any message like: echo…
asceta
  • 11
  • 2
1
vote
1 answer

`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 tmp:clear' at rake aborted! LoadError: cannot load…
sscirrus
  • 475
  • 1
  • 6
  • 10
1
vote
0 answers

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 to build gem native extension. current…
1
vote
2 answers

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 -b0.0.0.0 -p3002 and puma server has started…
current_user
  • 81
  • 2
  • 10
1
vote
2 answers

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 gem native extensions I try gem install nokogiri…
Michael Durrant
  • 41,213
  • 69
  • 165
  • 232
0
votes
0 answers

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 postgres: error while…
Zilton
  • 1
0
votes
1 answer

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 picking up the above. How do I get "sudo" to…
Dave
  • 2,348
  • 21
  • 54
  • 84
0
votes
2 answers

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 extra info: General system info: [alarm@alarm…
0
votes
0 answers

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 the same mysql gems that I have in my old Linux…
Max Williams
  • 1,067
  • 2
  • 16
  • 32
1
2