Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
36 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 ...
0
votes
1answer
9 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-...
0
votes
0answers
19 views

How to use OmniAuth with Rails+Nginx+DigitalOcean?

My Rails app used to use OmniAuth to login in through Facebook/Twitter/Google accounts (different omniauth gems). Everything was working when my app was in some server which was preconfigured, but ...
0
votes
0answers
18 views

SNI Configuration for Puma Web Server

I have a rails app that is a multitenant app. I have clients who access my app using their own domains. This works well until we try to setup SSL, From my research, i have learnt that SNI can help me ...
1
vote
2answers
35 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 ...
1
vote
0answers
11 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 ...
1
vote
0answers
29 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:...
0
votes
0answers
37 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/...
0
votes
1answer
130 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 ...
2
votes
0answers
102 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 ...
0
votes
0answers
34 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) ...
0
votes
0answers
15 views

Anything I should concern when using catch all server_name on nginx

I have Rails website where I want to enable my users to choose their custom domain and point to my website. I search and I found that I can declare catch app server block server { ...
0
votes
1answer
69 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 ...
0
votes
1answer
358 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....
0
votes
0answers
142 views

setup x-frame-options under redirection header for nginx

I have below configuration in nginx.conf file for the Rails(3.2) application. For localhost:5478 in prod the response headers of page contain x-frame-options while the ports 5479-82 when accessed ...
0
votes
0answers
202 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) ...
1
vote
1answer
1k 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 ...
1
vote
1answer
397 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 => ...
0
votes
1answer
219 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 ...
0
votes
0answers
88 views

Segfault linux centos 6

Hello serverfault community, In the past few days i get the following errors on linux console: The problem is i don't understand which package / application cause it. What i tried so far: check ...
0
votes
0answers
103 views

Random requests timing out only on Safari possibly due to SSL handshake errors

I run https://trunkinventory.com, and I'm having issues with Safari on both macOS and iOS. If I try to connect to the site with Safari, I get a "can't establish secure connection to the server" ...
0
votes
0answers
177 views

Unable to load application: Bundler::GemRequireError: There was an error while trying to load the gem 'fog'

I have been trying to run a Ruby/Rails application with the bootstrap script for AWS EC2 instance but I am getting the following error. I have tried installing all gems with bundle install because ...
0
votes
1answer
284 views

Trace rails email logs with postfix logs for email deliver-ability

I have rails application running, which send emails using postfix as relay. Here is flow Rails -> Resque workers -> Postfix -> SES -> email out to clients my problem is i want to find relation ...
0
votes
1answer
722 views

AWS Elastic Beanstalk - Socket failure on Puma server when more than 300 connections at a given time

I've been dealing with an, arguably, strange issue on a AWS Elastic Beanstalk environment. I'm getting the following nginx error when there are more than 300 connections on a single instance at a ...
0
votes
1answer
287 views

AWS autoscale policy warm up issue

I have an autoscaling group in AWS EC2, on which I have an autoscale policy, which keeps the loadbalancer Request Count Per Target at 800 and it has a warm up time of 250 seconds. Now, every time a ...
-1
votes
1answer
51 views

Getting nginx to respond to a remote request

I'm trying to troubleshoot why a server won't respond to public requests. I have nginx running and the conf files are: ngingx.conf user www-data; worker_processes 4; pid /run/nginx.pid; ...
0
votes
1answer
76 views

NGINX - Rewrite rules for subdomains

I have a SaaS web builder. Each tenant has a subdomain. For business requirements, I am needing to give each tenant their own site map. The generation part is not the issue, but how to present it. ...
0
votes
1answer
99 views

Which headers take precedence — the ones set by Nginx or the application server's?

I'm using Nginx on CentOS with a Rails server. I'm confused about how headers get set. If Nginx sets headers and the applicatino server (Ruby on Rails in this case), which one wins out? I have this ...
1
vote
0answers
206 views

jenkins on Ubuntu 14.04 and rael-gc RVM repo - bundle not found?

I'm trying to get jenkins running on a worker node for testing some Rails projects on Ubuntu 14.04. I've installed RVM per these docs. When I launch a build from the Jenkins "master", the console ...
1
vote
0answers
304 views

How can I start puma under a specified user/group?

I'm using Rails 5 and the Puma 3 gam on CentOS. Is it possible (and how?) to specify the user and group under which puma runs when it is started? I need to start it with the appropriate user/group ...
0
votes
1answer
36 views

Chef deploy not working on Ubuntu 14.04 looking for credentials

I am using Ubuntu 14.04 chef-solo stack but since today when I am running the deploy script its giving me below error. Please assist. ========== ubuntu@i-production-base:~$ sudo /var/chef/scripts/...
1
vote
0answers
78 views

ELB Instance Internal IP disclosure

There is a vulnerability detected by Nessus that involves Internal IP Disclosure in the Elastic Beanstalk servers with Nginx and Phusion Passenger at the response headers, in the Location header. I ...
2
votes
1answer
59 views

Heroku - Distributing monolithic Rails app

We have a pretty sizable monolithic Rails app that has a few functions (in parenthesis is the estimated % out of the total codebase): Marketing site when users are not logged in: homepage, additional ...
2
votes
2answers
3k views

client_max_body_size not working

I am building a Rails 5 app that is deployed to AWS elastic beanstalk.The app is running into the error 413 (Request Entity Too Large). I have been looking around Google, Stackoverflow, and ...
2
votes
2answers
202 views

running wordpress blog as directory location within nginx server configured for rails

I've been running a site on puma / rails setup under nginx. Now we have to setup wordpress under path /blog, i.e. www.mysite.com is the rails app, and www.mysite.com/blog is the wordpress blog. the ...
0
votes
1answer
391 views

How to configure nginx to serve from file based on cookie

I am working on an ecommerce platform that has dynamic content for logged in users, but for logged out users many pages such as product pages and category pages are relatively static. Rails has been ...
0
votes
1answer
366 views

Nginx don't properly working with multiple app's

I'm stuck with very strange Nginx' behavior. I have 2 RoR sites, that are working with Puma.First site (app1.com) is working like should, but when i try to access app2.com, i'm just getting app1.com ...
1
vote
2answers
254 views

Horizontal autoscaling rails on GKE - specifically - web server choices and differences with conventional deployments

Here's a great writeup on scaling with heroku (and it applies to traditional deployments). Given that we want containerized applications to be single process, how do we get: slow client protection ...
3
votes
0answers
95 views

Multiple ruby on rails web apps running on one directory in Apache without modifying/adding <Directory> all the time

What I am trying to do is to create multiple ruby apps in one Apache directory and when I go to http://localhost/appname the ruby app resolves without problems. However, I want to do this dynamically ...
1
vote
2answers
233 views

Nginx returns 301 and appends slash for static images

I'm deploying RoR application to Amazon Elastic Beanstalk. Static files are served with nginx. App root is: /var/app/current, it contains current Rails application. public dir tree: => /var/app/...
1
vote
0answers
68 views

Unexplained massive rmagick temporarily file

Problem We recently ran into a situation whereby some of our server instances were suddenly running out of disc space, evidenced by below graph: The reason for running out of disc space is a single /...
0
votes
1answer
189 views

rails puma nginx concurrent access - cannot find the bottleneck

I have a simple rails app running on puma with an nginx proxy server in front of it configured in a standard way. They are running on an aws t2.micro instance. The mysql db is running on another t2....
0
votes
0answers
35 views

CentOS 7: Github commit spawning new Ruby processes and maxing out memory on server

I have a Linux server setup (CentOS7) and have a handful of cronjobs running on there. Nothing too heavy duty, but have run into an issue twice in the past week. It's a ruby process (Rake task, ...
1
vote
1answer
233 views

Solved: rails app on nginx + passenger behind apache2 mod_proxy, ajax upload fails with error 500

The situation is as follows: I made a migration of a rails app from an Ubuntu server with nginx + passenger to a debian server with apache2 + passenger. All was fine until we tested some ajax ...
0
votes
1answer
1k views

Eventual 504 Gateway Timeouts when Nginx/Puma Rails App server is contacting a PostgreSQL backend through a firewall

I've been running into an issue where a Rails app server (nginx/puma) and a PostgreSQL data server communicate consistently when on the same VLAN on our DMZ, yet when the database is isolated to ...
0
votes
1answer
192 views

Port seems to be filtered when accessed from outside after opening on server

I have opened the server port using /sbin/iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT and also ufw allow 80 and the server rails server process is showing as running, ...
0
votes
1answer
662 views

Select specific Ruby version in Phusion Passenger Docker image

I am trying to deploy a Rails application in the Phusion-Passenger Docker image: https://github.com/phusion/passenger-docker The Gemfile for the application specifies Ruby version 2.3.1, but the ...
1
vote
1answer
359 views

Rails doesn't log into new log file after log rotation

I am using newsyslog to rotate my log file in Rails application. The log rotates successfully, but Rails and Sidekiq still log to the old file (development.log.0 and sidekiq.log.0). After I restart ...
0
votes
0answers
68 views

When I upload my file using Rails app on Phusion Passenger, it gets permission 600

I have the Rails server setup using Apache and Phusion Passenger. As per their documentation, I have created a user specific to that app. This user has root access. When a file is uploaded via the ...
3
votes
1answer
1k views

How do I get yarn installed on elastic beanstalk?

Currently you can't install yarn using yum so there doesn't seem to be an easy way to create a config that installs it before asset pre-compilation.