Error 500 when running Rails in Google App Engine - ruby-on-rails

I'm trying to run my application in google app engine, I get up normally and even works the endpoint, but when several requests the same, give 500 error, with the message:
Internal Server Error
uninitialized constant Concurrent :: Promises
I have nothing that uses this in my application.
Thanks for your help.

This is an already closed issue on google-cloud-ruby. You may need to update your gem by running:
$ gem update google-cloud-ruby

Related

Rails returns HTTP 500 for every page with no error log after bundle install

Today I tried to install a gem using bundler. It complained about super-user privileges so I ran it to install to vendor/bundle, and then all of a sudden every page in my app returns HTTP 500 for seemingly no reason. I re-ran bundler to install globally, and that didn't solve the problem.
In typical rails fashion, it just exits with the 500 error page without printing anything to the logs. Routing is functioning normally, the console says it renders the appropriate view, and active record seems to be working as normal, but after all of that it just shows an error page. No errors on the console or in logs/.
I'm not sure why bundler would cause this issue but I'm completely out of ideas. I've done a good bit of googling but all of the other similar situations I've found were because of a misconfigured model or database, which I know with certainty isn't the case. If anyone more familiar with Rails than me could give me a place to start I'd be very grateful.
Update: Running bundler doctor fails b/c the directory /opt/rubies/ruby-2.6.5/lib/ruby/gems/2.6.0/bundler doesn't exist - looking for issues related to this.
Solved; ultimately this was because I forgot to delete an old requirement in application.js. It still seems absolutely ludicrous to me that rails would exit 500 without an error message with no way to access more verbose debug logs

Rack error - RuntimeError: failed to get urandom in a Rails app (Rails 5.0.6, Ruby 2.5.5)

I'm making a lot of API requests to a Rails 5.0(.6) app running locally. It inconsistently fails with the Rack error:
RuntimeError: failed to get urandom
The backtrace is to the SecureRandom module, not in the application (specifically the uuid method). From there it is in ActionDispatch::RequestId. Unfortunately, the full backtrace is gone from my terminal history and does not show up in the logs (since it occurs outside Rails).
From the many requests that are working and the fact that it fails in different places, I'm guessing that it is due to some local system limitation.
After attempting a couple of different fixes, I eventually discovered that the issue was my open files limit. To check it, run ulimit -n in a terminal. Mine was set to 256.
I followed the instructions in this article:
https://wilsonmar.github.io/maximum-limits/
The specific instructions start at the "Sierra and newer versions" header and go to "Their permissions need to be “-rw-r–r–”, set by sudo chmod 644." under #5. After adding the files and changing ownership and permission, I restarted and the open file limit is now 524288.
I now have no further issues with rapid API calls.

Rails Server Startup Error mac

I've been working on a project the last few days, and I've been struggling with an error when starting up my rails server with the 'rails server' command. I have searched the whole internet for an answer but I dont really seem to find a solution to my problem.
The problem is that when I launch rails server with the command I get this output:
Output as seen on image.
It looks to me like you need to install Redis.
There is a Gem for that and you can see the installation instructions HERE

Spree error 500

Need some help here.
I have deployed spree (0.70.3) on slicehost (ubuntu, ruby1.8.7, Rails
3.1.3), installed the spree gem, loaded in the sample data
successfully following the steps on spree startup manual and I am
using passenger (it works on localhost:3000). When I upload to my
server, however, instead of seeing the spree interface, I am getting
an error message. From the production.log:
Processing by HomeController#index as HTML Completed 500 Internal
Server Error in 22ms ActiveRecord::StatementInvalid (Could not find
table 'product_groups'):
Any suggestions how I can get this to work?
Website: http://www.nutxboutique.com
production.log is the rails log. It appears your problem is occurring before rails completes loading. If you're using apache, check/post the apache logs, it might have more clues as to what's going on.

Google Visualizations for Rails 3 - uninitialized constant ApplicationHelper::GoogleVisualization

I am using the following gem for Google Visualizations https://github.com/jeremyolliver/gvis
I have followed the instructions for installation and usage on the page but I get the following error:
uninitialized constant ApplicationHelper::GoogleVisualization
How can I correct this error? I think it may be to do with restarting the server or rails but I'm not sure how to do this
Also what is the common plugin/gem or approach to using Google Visualizations with rails 3?
EDIT: I have now restarted my server and get the same error. One thing I noticed in the installation instructions is renaming the directory:
mv vendor/plugins/rails/rails-google-visualization-plugin vendor/plugins/google_visualization
The first line has a sub directory called rails within vendor/plugins, however this is not actually created when the plugin is installed. I am not sure if this is a typo error or not in the installation instructions
It's possible that you just need to restart your server. Open the console with your Mongrel or WEBrick running, and type Ctrl+C, and when it's done exiting, type rails s.

Resources