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
0answers
8 views

Understanding my Memacached memory usage in a Rails app (versus what AWS says)

I have a Rails app running on AWS, and in AWS I have a Memcached ElastiCache node of type cache.m3.medium (3GB memory, moderate network performance). When I look at the Unused Memory graph I see that ...
-1
votes
0answers
17 views

one of two GET requests can't reach the web hook

there is external system which sends two different GET requests one by one to my web hook. One of the requests reaches the web hook and another one - not. I can't understand why one of the GET ...
0
votes
0answers
20 views

Connect AWS ElastiCache from application hosted over DigitalOcean droplet

I have a Rails application hosted over Digitalocean. I want to use Redis from AWS ElastiCache. Is this possible to connect to Redis with any external machine or we can only connect with it via AWS EC2 ...
0
votes
0answers
21 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 ...
1
vote
0answers
17 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 ...
0
votes
0answers
20 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.&...
0
votes
0answers
15 views

Setup Blooger in a Subdirectory

I would like setup Blogger to be on a subfolder in a Ruby on rails app to : pulpoludo.com/blog RUBY ON RAILS To do this I use rack-reverse-proxy in my rails app : In config/application.rb : config....
0
votes
0answers
37 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"; ...
2
votes
1answer
323 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:...
0
votes
0answers
19 views

Elasticsearch & Searchkick error when server has less than 5% free space

I have a Ruby on Rails project that's using Elastic Search and Searchkick gem, hosted on Digital Ocean server. Every week or so, the logs or something will take up the space on the server, and when ...
1
vote
0answers
204 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 ...
0
votes
0answers
31 views

Intermittent 404 For Static JavaScript Assets, Passenger Rails Apache Stack

I'm working with a Rails 4.2 single page app, running on a cluster of Apache servers with Phusion Passenger. Assets are set to precompile, with digests, and Apache serves static files. The main page ...
0
votes
0answers
168 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 ...
1
vote
0answers
17 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 ...
0
votes
0answers
193 views

Node.js version is not compatible in App Engine deployment with webpacker: Rails 6

I have been strugling a lot with this problem. In context, I've been deploying my rails app to GAE with 'gcloud app deploy' around 2 months ago and I've never had an issue with it. However, today I ...
0
votes
1answer
74 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 ...
0
votes
1answer
101 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 ...
2
votes
1answer
715 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/...
1
vote
0answers
215 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 ...
0
votes
0answers
105 views

Unable to run sidekiq as service in CentOS 8

I have following service file. [Unit] Description=xxx_sidekiq After=syslog.target network.target [Service] Type=notify WatchdogSec=10 WorkingDirectory=/home/xxx/project/matchspace/appointment-ms ...
0
votes
1answer
102 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
32 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 ...
1
vote
1answer
758 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
94 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
234 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
226 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
45 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
203 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
1answer
61 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
285 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
995 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
170 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
345 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
550 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
21 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
327 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
52 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
742 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
248 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
87 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
811 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
2k 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
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) ...
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
1k 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 => ...
1
vote
1answer
915 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
768 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 ...
2
votes
1answer
3k 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
789 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
83 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; ...

1
2 3 4 5
19