Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [ruby-on-rails]

Ruby on Rails is an open-source, MVC web development framework written in Ruby, optimized for programmer happiness and maintaining sustainable productivity. Many things are defined by convention, freeing you from having to re-invent things to stay productive.

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

How to add a filesystem URL in the Apache configuration of Ruby on Rails server?

I have deployed a RoR application with Apache and Passenger. The Apache VirtualHost is defined as the following: <VirtualHost *:80> # This first-listed virtual host is also the default for *:80 ...
user avatar
0 votes
1 answer
213 views

AWS ElasticBeanstalk: Early termination of worker [puma] Loading development - gems?

I'm currently upgrading rails from 6 to 7 and so had to upgrade my eb platform-version as well (to run ruby-3.0). Now puma isn't able to start and always looping through: [13033] + Gemfile in context: ...
user avatar
0 votes
0 answers
44 views

Restart Nginx with Ruby on Rails

I made a website that does some complex processes with selenium. For this reason, I feel that the server is very slow after processing. Because when I restart Nginx, the slowness problem disappears. ...
user avatar
0 votes
0 answers
13 views

Supervisor Foreground Enters Mangled Arrow Keys

When I run a rails app with byebug enabled I am able to enter commands and navigate up and down my byebug command history with the arrow keys. When I run the same rails app under supervisor and then ...
user avatar
  • 357
0 votes
1 answer
413 views

mysql root password is empty

I am trying to install mysql after i replaced my disk with MySQL on it with a bigger and faster one. After installing mysql-server on ubuntu, when running select user,host,authentication_string from ...
user avatar
  • 3
0 votes
0 answers
514 views

Redis is seeing legitimate connections as attacks - possibly due to reverse proxy?

I'm running Redis for use with Rails and Action Cable. These all sit behind an Nginx reverse proxy. Currently whenever Redis is connected to, I get # Possible SECURITY ATTACK detected. It looks like ...
user avatar
0 votes
0 answers
133 views

Rails app reload is too slow on production using Puma and Nginx

I have a little bit bigger project on Rails (6.0.1), running on latest Puma, using socket with latest Nginx and Debian system. App works great, but when I perform reload : rbenv exec bundle exec ...
user avatar
  • 3
0 votes
1 answer
453 views

Passenger not running (Ruby on Rails + Nginx)

My AWS instance was working fine with my app. But, today, the server was down without memory ram. Then I run: sync; echo 1 > /proc/sys/vm/drop_caches sudo service nginx start After that, ram ...
user avatar
0 votes
0 answers
587 views

NGINX Is redirecting to localhost:3000

I'm using ruby on rails in a docker container running my website https://redrebelgames.com on port 3000. I'm trying to setup NGINX to redirect http:// traffic to https:// and redirect port 80 to port ...
user avatar
0 votes
0 answers
147 views

Gitlab no longer works - can't load assets - 302

For a couple of weeks, our Gitlab-CE is no longer working (web UI). It simply can't load any asset: CSS, JS, PNG... Also, git clone, pull, push from workstation to gitlab server are working fine. So ...
user avatar
  • 111
0 votes
1 answer
296 views

EC2: Relatively small network out spikes cause 100% CPU usage

Background Hello, I have a server I'm running on a free EC2 instance. I'm using nginx and passenger/rails as my web server and application server. The server receives little traffic (still in ...
user avatar
  • 123
0 votes
1 answer
159 views

Connecting to db via SSH on docker fails

I'm trying to connect to a database via SSH from my docker container. I'm getting an error could not connect to server: Connection refused Is the server running on host "0.0.0.0" and ...
user avatar
0 votes
0 answers
28 views

add an asp .net core application to a ruby on rails site hosted on a linux server

I am new to web hosting, and please forgive my ignorance. my company has a website, and the site is an Ruby on Rails application with Passenger hosted on a linux server. I would like to know if it is ...
user avatar
1 vote
0 answers
39 views

nginx unicorn rails authentication failure

I am following this tutorial to deploy a rails app on my cloud server. It's my first time deploying a rails project on a server. When trying to start unicorn or nginx from folder /app/current and user ...
user avatar
0 votes
1 answer
310 views

Rails application not working on AWS after upgrade to Rails 6.1.3

I recently upgraded my application to Rails 6.1.3. When I attempted to deploy the application to AWS the deployment failed with the error message "Following services are not running: application.&...
user avatar
1 vote
1 answer
299 views

How do I configure the hostname for the GitLab NixOS service?

I am trying to deploy a new GitLab instance on NixOS 20.09.1632.a6a3a368dda (Nightingale). I have this rather minimal configuration.nix: { modulesPath, ... }: let host = "example.org"; ...
user avatar
5 votes
2 answers
2k views

Why is bundler failing to find rake while deploying with Capistrano?

I have a Rails project which was running on Ubuntu 18.04, and I've just upgraded the system to Ubuntu 20.04. cap production deploy is failing at the step deploy:assets:precompile with: 00:07 deploy:...
user avatar
  • 203
1 vote
0 answers
357 views

Sidekiq not starting on Ubuntu 18.04 LTS in production

I am trying to run Sidekiq in production using Systemd. I am receiving the following error when trying to start sidekiq. /bin/bash -lc "bundle exec sidekiq -e production -C config/sidekiq.yml -L ...
user avatar
  • 121
0 votes
0 answers
599 views

Nginx responding with 429s but I don't have it configured in my config

I'm hosting a rails app on AWS elastic beanstalk and am noticing my nginx server returning 429s in the nginx log. The problem is, I'm not seeing where the limit_req is being defined so I'm struggling ...
user avatar
  • 1
1 vote
0 answers
22 views

Shouldn't UFW configured Iptables deny access before the request reaches our Unbutu 16.04 hosted Nginx server?

We are using ufw to configure iptables. We have numerous rules denying access from ip addresses that use bots. Here is one example: sudo ufw deny from 0.1.0.0/0.1.255.255 These bots are attempting to ...
user avatar
  • 191
0 votes
1 answer
98 views

Get rid of content ripping bots in a Rails 4 app served by Nginx using Passenger on Ubuntu 16.04

Our rails app is being inundated with requests from bots that are trolling using IP addresses. Every request results in an exception notification error message. Our original Nginx server block: server ...
user avatar
  • 191
0 votes
1 answer
236 views

Apache to serve multiple ruby on rails applications from the same domain

I want to serve multiple different ruby on rails applications using Apache and Passenger via a single domain. The applications all should use the same certificate and I want to deliver the apps using ...
user avatar
2 votes
1 answer
2k views

Bundle install freezing on sassc during Rails server deployment

I'm trying to deploy a Rails app using capistrano. The deployment script, initiated by cap production deploy runs fine, until this command: $HOME/.rbenv/bin/rbenv exec bundle install --path /home/...
user avatar
  • 123
1 vote
1 answer
387 views

Elastic Beanstalk Puma NGINX - Ruby on Rails Load Issues

I have an Elastic Beanstalk instance running Ruby on Rails using Puma with Ruby 2.6 running on 64bit Amazon Linux/2.11.7, the instance is scaled to a c5.2xlarge and a database of db.m5.large. The ...
user avatar
0 votes
1 answer
129 views

Deploy Rails app to Ubuntu 18.04 or 20.04?

I have an existing Rails app that's been sitting on an old Ubuntu 14.04 server on AWS, and I've recently moved the staging environment over to a new AWS EC2 instance running Ubuntu 18.04. I'm not a ...
user avatar
  • 101
0 votes
0 answers
47 views

Failed to run multiple Rails apps with Unicorn + Nginx on single AWS EC2 Instance

I know this issue has been discussed several times but I had no luck and I couldn't fix the issue. I am going to run multiple Rails apps on AWS EC2 Instance with Unicorn and Nginx. I could run one ...
user avatar
  • 101
0 votes
1 answer
1k views

Nginx Gzip not compressing JSON

I have tried various settings available for Nginx.conf, none of them are working for me. Below id my current config, gzip on; gzip_disable "msie6"; gzip_vary on; ...
user avatar
  • 1
0 votes
0 answers
122 views

Installing Discourse, after creating admin the website turns blank

While installing Discourse from source I successfully got to the point of displaying my site. After adding admin with “RAILS_ENV=production bundle exec rake user:create” the website went blank, white ...
user avatar
0 votes
1 answer
407 views

403 Forbidden with apache and passenger

I am getting sporadic 403 responses from a server running Passenger within Apache. The problem starts on seemingly random occasions, and ends randomly as well. From the log, it seems that Apache is ...
user avatar
  • 101
0 votes
1 answer
289 views

Ruby on Rails Deployment to Server resulting in old Wrapper Scripts

I'm trying to deploy my RoR Application to an Ubuntu (Latest Version with Updates) Server. The Application will run with the Gem "Passenger". However, i am unable to run Passenger. rvmsudo bundle ...
user avatar
1 vote
0 answers
127 views

Nginx will only use error pages with certain filenames

Using Nginx I am able to get the default error pages to work for 404 and others, but only if I name the file exactly after the error code, i.e. 404 -> 404.html... 40x.html doesn't seem to work. I ...
user avatar
0 votes
0 answers
305 views

Rails application with Apache on Windows Server

I need to migrate an existing Rails application (Redmine) on a Windows Server 2019 machine. It's been requested to use Apache as web server. The application runs correctly on localhost through webrick,...
user avatar
  • 1
0 votes
1 answer
74 views

gcloud app deploy error(Ignoring mysql2-0.3.21 because its extensions are not built. Try: gem pristine mysql2 --version 0.3.21)

I'm in trouble with GAE(GoogleAppEngine) deployment. I've done two turorial. https://cloud.google.com/ruby/getting-started/using-cloud-sql?hl=en https://cloud.google.com/ruby/getting-started/using-...
user avatar
  • 1
0 votes
1 answer
415 views

Nginx + Passenger: Cache 404 urls

Context I have a Rails app with a nginx server and Passenger. The app is dynamically generating pages based from the request url: if the url exists in the database the app renders the corresponding ...
user avatar
  • 53
1 vote
1 answer
1k views

Puma with systemd and socket activation - Errno::EADDRINUSE

I have a Rails 5 app, running on puma 3.12.1, MRI 2.6.2, and Ubuntu 18.04. It used to run with pumactl and a custom control script but I want to configure it properly with systemd, using socket ...
user avatar
  • 119
0 votes
0 answers
199 views

Puma hangs after upgrade from Debian 9.7 to 9.8

I have a frontend with Nginx talking to Puma over a Unix socket in two separate containers. The base image for the Puma container is ruby:2.5-slim. After clearing my Docker cache two days ago and ...
user avatar
  • 123
0 votes
1 answer
607 views

File size increases while uploading to nginx server and fails

I'm uploading a .wav file of size around 5745kb, the limitation in the nginx config is set as client_max_body_size 10m; The upload fails with error as "Request entity too large" and content-...
user avatar
  • 171
1 vote
2 answers
740 views

Rails SSL running puma and EC2 AWS

Specs: Rails 4.2.4, Ruby 2.1.9, running puma, EC2 instance in production mode I have an SSL certificate that I want to install on my server but using techniques like this one yields no results ...
user avatar
1 vote
0 answers
24 views

ProxyPass just displays folder contents of rails app that is running on port 3000

I have a personal site I'm working on and its the first time I try to configure a server to run multiple apps. So far just getting one to be found through the url instead of with a port number has ...
user avatar
1 vote
0 answers
367 views

/home/webapp: No such file or directory elastic beanstalk

When I deploy my ruby app on aws using elastic beanstalk. Following error occur. pass log App 20278 stdout: intializing git App 20278 stderr: error: could not lock config file /home/webapp/.gitconfig:...
user avatar
  • 101
0 votes
0 answers
54 views

gitlab installation failing on debian 9.6

I'm having a issue on Debian 9.6. When installing gitlab an error is returned: Setting up gitlab (8.13.11+dfsg1-8+deb9u3) ... Creating/updating gitlab user account... Making gitlab owner of /var/lib/...
user avatar
0 votes
1 answer
875 views

Unable to push recent changes to old ruby website on heroku

To be honest, I am not a ruby developer. I am working on certain fixes on a ruby website. It's hosted on Heroku server. The changes I have made doesn't involve adding or removing any gem but only ...
user avatar
3 votes
0 answers
334 views

Puma + Nginx permission denied on files that don't exist

Getting an error in the nginx logs: [error] 6193#6193: *1 open() "/home/ubuntu/app/assets/bootstrap.min-2e2a039f4eb020ba4438b6e2ad6a83748c14257a60f68facd2d72df75c452969.css" failed (13: Permission ...
user avatar
  • 141
0 votes
0 answers
125 views

Use default `ubuntu` user to deploy an app or make separate users?

I have a Ruby on Rails app and use Capistrano to deploy it to the server. The deploy user and the user running the app is the same - the default ubuntu user. (this has sudo access: ubuntu ALL=(ALL) ...
user avatar
  • 211
0 votes
2 answers
1k views

Should I expect Google App Engine to randomly restart instances?

I had one instance of the app (shame on me), running in the australia-southeast1 region yesterday. Last night was a critical time for the app; people were relying on it working flawlessly, and then ...
user avatar
  • 605
0 votes
1 answer
3k views

nginx: [warn] conflicting server name

I haven't been able to figure out why I'm getting this error: nginx: [warn] conflicting server name "stage.mydomain.com" on 0.0.0.0:80, ignored nginx: [warn] conflicting server name "stage....
user avatar
  • 113
1 vote
0 answers
1k views

AWS Elastic Beanstalk ACM SSL certificate installation without load balancing

Reading through the AWS docs just now, it appears that: I can get a free SSL/TLS certificate from Amazon for use with certain AWS services. This is facilitated via the ACM (AWS Certificate Manager) ...
user avatar
  • 125
1 vote
1 answer
3k views

Nginx Proxy to AWS ELB not passing HTTPS protocol to Backend Instances

This is my first ever question, so please go easy on me! I'm trying to set up an Nginx proxy server to auto-generate SSL certificates using OpenResty/Lua and LetsEncrypt, within a multi-tenant SAAS ...
user avatar
  • 111
1 vote
1 answer
2k views

OpenSSL::SSL::SSLError: hostname "smtp.gmail.com" does not match the server certificate

This is what i have setup in setup_email.rb file, if Rails.env.production? ActionMailer::Base.smtp_settings = { :address => "smtp.gmail.com", :port => ...
user avatar
  • 111
1 vote
1 answer
1k views

nginx blank page with puma and rails on beanstalk

I tried to deploy rails api to elastic beanstalk with nginx and puma as the app server. THe deploy was successful, database created and migrated. However, when accessing the web, it just show ...
user avatar
  • 123

1
2 3 4 5
19