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
1answer
33 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 ...
0
votes
0answers
20 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 ...
0
votes
0answers
41 views

Unable to connect: ERR_CONNECTION_REFUSED. Server rejecting connections

I deployed my Ruby on Rails application successfully with Dokku in a Ubuntu 18.04 LTS server. However, when I try to connect via browser I receive the following error message from Chromium: This site ...
0
votes
0answers
38 views

Running a Rails server with Apache on the same Linux machine for a subdomain

I wish to host a blog on my website, a3y3.dev. My idea is to host this on a subdomain (something like blog.a3y3.dev). Since I already wrote a blog application in Rails long back, I thought it'd be ...
0
votes
0answers
176 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; ...
0
votes
0answers
30 views

Dyno Load on Heroku & suspiciously slow requests

I have problems with understanding what Dyno Load means or what to do with this number. We are using 2x dynos and processing 150RPS. I found this on the Heroku Support page: "keep maximum Dyno load ...
0
votes
0answers
63 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 ...
0
votes
1answer
103 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 ...
0
votes
1answer
134 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 ...
0
votes
0answers
94 views

Can not connect aws Postgres from Rails or pgadmin

below is my `database.yml development: adapter: postgresql encoding: unicode host: <my_aws_end_url> database: <my_db_name> pool: 5432 username: <my_username>...
0
votes
0answers
36 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 ...
0
votes
0answers
26 views

Installing already hosted Wordpress under rails application, opening only sample page?

I have used NGINX reverse proxy to put my blog path from blog.aarvy.me (already hosted) to aarvy.me/blog. But every time I open the article link, it shows only hello page of wordpress theme. Even I ...
0
votes
0answers
25 views

Error when trying to add tasks into a sprint backlog in Redmine

i'am unable to add anything into the sprint , in specific project, in leading to the following blocking error in author project , i can add anything into the sprint , this is my environement : ...
0
votes
0answers
12 views

OpsWorks deployment “successful”, but files aren't there

I'm deploying a Rails app using OpsWorks and Chef. I deployed my application from this repo and OpsWorks told me the deployment was successful, but as far as I can tell, my repo's files aren't on my ...
0
votes
0answers
79 views

Not able to access port 3000 on the LAN

I am on Ubuntu 16.0 Running Ruby on Rails with webric server as: I have opened the ports as: to open the port I have used ufw command as: sudo ufw allow 3000/tcp my Lan Ip is as: But if I access ...
0
votes
0answers
237 views

Windows security pop up disable

I've been working on a website through a local IP address of 192.168.1.200 at port 3000 (https://192.168.1.200:3000 for shorter reference). Before my Windows 10 laptop went to feature 1903, I could ...
0
votes
0answers
114 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,...
0
votes
0answers
58 views

Having trouble restarting Unicorn from other scripts (Rails environment)

I'm running into issues when trying to restart Unicorn on my server in the event the master process dies. Here's the weird thing - if I start it manually, everything is fine. I can do it with either ...
0
votes
1answer
54 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-...
0
votes
1answer
182 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 ...
1
vote
1answer
621 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 ...
0
votes
0answers
138 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
113 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-...
1
vote
2answers
366 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
20 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
233 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
49 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
522 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 ...
3
votes
0answers
209 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
46 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
2answers
369 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
1k 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....
1
vote
0answers
890 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
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 ...
1
vote
1answer
853 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
625 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
1answer
586 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
2k 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
649 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
70 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
115 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
149 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
348 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 ...
2
votes
0answers
613 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
66 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
136 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
65 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
3answers
7k 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
459 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
589 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 ...

1
2 3 4 5
18