I was troubleshooting a heroku problem with it not showing my google maps. I tried this code I found in this thread Ruby on Rails Google maps javascript api not working on heroku
I followed the directions and changed the production.rb file to config.assets.compile = true
and ran the command RAILS_ENV=production rake assets:precompile
I received an error message from rails and I did what it said to correct the issue. Now my rails is encrypted and I cannot figure out how to unencrypt it. I have the master key just no place to type it. Because of this I cannot run my virtual box server. I get this error when I try [ENV]:/vagrant/src/nomster-engine $ rails server -b 0.0.0.0 -p 3000 => Booting Puma => Rails 5.2.3 application starting in development => Run rails server -h
for more startup options Exiting Traceback (most recent call last): 80: from bin/rails:3:in <main>' 79: from bin/rails:3:in
load' 78: from /vagrant/src/nomster-engine/bin/spring:15:in <top (required)>' 77: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in
require' 76: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in require' 75: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/spring-2.1.0/lib/spring/binstub.rb:11:in
' 74: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/spring-2.1.0/lib/spring/binstub.rb:11:in load' 73: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/spring-2.1.0/bin/spring:49:in
' 72: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/spring-2.1.0/lib/spring/client.rb:30:in run' 71: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/spring-2.1.0/lib/spring/client/command.rb:7:in
call' 70: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in call' 69: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in
load' 68: from /vagrant/src/nomster-engine/bin/rails:9:in <top (required)>' 67: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in
require' 66: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in load_dependency' 65: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in
block in require' 64: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require' 63: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in
require_with_bootsnap_lfi' 62: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in register' 61: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in
block in require_with_bootsnap_lfi' 60: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in require' 59: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/railties-5.2.3/lib/rails/commands.rb:18:in
' 58: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/railties-5.2.3/lib/rails/command.rb:46:in invoke' 57: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/railties-5.2.3/lib/rails/command/base.rb:65:in
perform' 56: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor.rb:387:in dispatch' 55: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in
invoke_command' 54: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/command.rb:27:in run' 53: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:142:in
perform' 52: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:142:in tap' 51: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:147:in
block in perform' 50: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:51:in start' 49: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:89:in
log_to_stdout' 48: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/rack-2.0.7/lib/rack/server.rb:354:in wrapped_app' 47: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:27:in
app' 46: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/rack-2.0.7/lib/rack/server.rb:219:in app' 45: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/rack-2.0.7/lib/rack/server.rb:319:in
build_app_and_options_from_config' 44: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/rack-2.0.7/lib/rack/builder.rb:40:in parse_file' 43: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/rack-2.0.7/lib/rack/builder.rb:49:in
new_from_string' 42: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/rack-2.0.7/lib/rack/builder.rb:49:in eval' 41: from config.ru:in
' 40: from config.ru:in new' 39: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/rack-2.0.7/lib/rack/builder.rb:55:in
initialize' 38: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/rack-2.0.7/lib/rack/builder.rb:55:in instance_eval' 37: from config.ru:3:in
block in ' 36: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:48:in require_relative' 35: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in
require' 34: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in load_dependency' 33: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in
block in require' 32: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require' 31: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in
require_with_bootsnap_lfi' 30: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in register' 29: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in
block in require_with_bootsnap_lfi' 28: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in require' 27: from /vagrant/src/nomster-engine/config/environment.rb:5:in
' 26: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/railties-5.2.3/lib/rails/application.rb:361:in initialize!' 25: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/railties-5.2.3/lib/rails/initializable.rb:60:in
run_initializers' 24: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/2.5.0/tsort.rb:205:in tsort_each' 23: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/2.5.0/tsort.rb:226:in
tsort_each' 22: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/2.5.0/tsort.rb:347:in each_strongly_connected_component' 21: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/2.5.0/tsort.rb:347:in
call' 20: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/2.5.0/tsort.rb:347:in each' 19: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/2.5.0/tsort.rb:349:in
block in each_strongly_connected_component' 18: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/2.5.0/tsort.rb:431:in each_strongly_connected_component_from' 17: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/2.5.0/tsort.rb:350:in
block (2 levels) in each_strongly_connected_component' 16: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/2.5.0/tsort.rb:228:in block in tsort_each' 15: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/railties-5.2.3/lib/rails/initializable.rb:61:in
block in run_initializers' 14: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/railties-5.2.3/lib/rails/initializable.rb:32:in run' 13: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/railties-5.2.3/lib/rails/initializable.rb:32:in
instance_exec' 12: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/devise-4.6.2/lib/devise/rails.rb:37:in block in <class:Engine>' 11: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/devise-4.6.2/lib/devise/secret_key_finder.rb:10:in
find' 10: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/devise-4.6.2/lib/devise/secret_key_finder.rb:24:in key_exists?' 9: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/module/delegation.rb:271:in
method_missing' 8: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/encrypted_configuration.rb:38:in options' 7: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/encrypted_configuration.rb:33:in
config' 6: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/encrypted_configuration.rb:21:in read' 5: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/encrypted_file.rb:42:in
read' 4: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/encrypted_file.rb:79:in decrypt' 3: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/messages/rotator.rb:21:in
decrypt_and_verify' 2: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/message_encryptor.rb:157:in decrypt_and_verify' 1: from /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/message_encryptor.rb:183:in
_decrypt' /home/vagrant/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/message_encryptor.rb:206:in `rescue in _decrypt': ActiveSupport::MessageEncryptor::InvalidMessage (ActiveSupport::MessageEncryptor::InvalidMessage)
I have searched Stack Overflow, used Google and read several articles but I am new to all this and taking a coding bootcamp so I don't fully understand what I am reading
Aucun commentaire:
Enregistrer un commentaire