Ruby on Rails, Production mode

Hello, I have a problem.
I’m on linux, with Ruby version 2.5.1, and rails version 5.2.3.
I can’t launch my application in production mode, but in development mode everything goes well.

Thanks again for your help! :slight_smile:

zcd@zcd-VirtualBox:~/ror/prolixe2019$ sudo rails s -e production
=> Booting Puma
=> Rails 5.2.3 application starting in production
=> Run rails server -h for more startup options
Exiting
Traceback (most recent call last):
84: from bin/rails:4:in <main>' 83: from /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in require’
82: from /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in load_dependency' 81: from /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in block in require’
80: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require' 79: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in require_with_bootsnap_lfi’
78: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in register' 77: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in block in require_with_bootsnap_lfi’
76: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in require' 75: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/commands.rb:18:in <top (required)>’
74: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/command.rb:46:in invoke' 73: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/command/base.rb:65:in perform’
72: from /var/lib/gems/2.5.0/gems/thor-0.20.3/lib/thor.rb:387:in dispatch' 71: from /var/lib/gems/2.5.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in invoke_command’
70: from /var/lib/gems/2.5.0/gems/thor-0.20.3/lib/thor/command.rb:27:in run' 69: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:142:in perform’
68: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:142:in tap' 67: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:147:in block in perform’
66: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:53:in start' 65: from /var/lib/gems/2.5.0/gems/rack-2.0.7/lib/rack/server.rb:283:in start’
64: from /var/lib/gems/2.5.0/gems/rack-2.0.7/lib/rack/server.rb:354:in wrapped_app' 63: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:27:in app’
62: from /var/lib/gems/2.5.0/gems/rack-2.0.7/lib/rack/server.rb:219:in app' 61: from /var/lib/gems/2.5.0/gems/rack-2.0.7/lib/rack/server.rb:319:in build_app_and_options_from_config’
60: from /var/lib/gems/2.5.0/gems/rack-2.0.7/lib/rack/builder.rb:40:in parse_file' 59: from /var/lib/gems/2.5.0/gems/rack-2.0.7/lib/rack/builder.rb:49:in new_from_string’
58: from /var/lib/gems/2.5.0/gems/rack-2.0.7/lib/rack/builder.rb:49:in eval' 57: from config.ru:in
56: from config.ru:in new' 55: from /var/lib/gems/2.5.0/gems/rack-2.0.7/lib/rack/builder.rb:55:in initialize’
54: from /var/lib/gems/2.5.0/gems/rack-2.0.7/lib/rack/builder.rb:55:in instance_eval' 53: from config.ru:3:in block in ’
52: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:48:in require_relative' 51: from /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in require’
50: from /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in load_dependency' 49: from /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in block in require’
48: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require' 47: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in require_with_bootsnap_lfi’
46: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in register' 45: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in block in require_with_bootsnap_lfi’
44: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in require' 43: from /home/zcd/ror/prolixe2019/config/environment.rb:5:in <top (required)>’
42: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/application.rb:361:in initialize!' 41: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/initializable.rb:60:in run_initializers’
40: from /usr/lib/ruby/2.5.0/tsort.rb:205:in tsort_each' 39: from /usr/lib/ruby/2.5.0/tsort.rb:226:in tsort_each’
38: from /usr/lib/ruby/2.5.0/tsort.rb:347:in each_strongly_connected_component' 37: from /usr/lib/ruby/2.5.0/tsort.rb:347:in call’
36: from /usr/lib/ruby/2.5.0/tsort.rb:347:in each' 35: from /usr/lib/ruby/2.5.0/tsort.rb:349:in block in each_strongly_connected_component’
34: from /usr/lib/ruby/2.5.0/tsort.rb:431:in each_strongly_connected_component_from' 33: from /usr/lib/ruby/2.5.0/tsort.rb:350:in block (2 levels) in each_strongly_connected_component’
32: from /usr/lib/ruby/2.5.0/tsort.rb:228:in block in tsort_each' 31: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/initializable.rb:61:in block in run_initializers’
30: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/initializable.rb:32:in run' 29: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/initializable.rb:32:in instance_exec’
28: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/application/finisher.rb:69:in block in <module:Finisher>' 27: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/application/finisher.rb:69:in each’
26: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/engine.rb:356:in eager_load!' 25: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/engine.rb:475:in eager_load!’
24: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/engine.rb:475:in each' 23: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/engine.rb:477:in block in eager_load!’
22: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/engine.rb:477:in each' 21: from /var/lib/gems/2.5.0/gems/railties-5.2.3/lib/rails/engine.rb:478:in block (2 levels) in eager_load!’
20: from /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:246:in require_dependency' 19: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:85:in depend_on’
18: from /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:334:in depend_on' 17: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:47:in require_or_load’
16: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:16:in allow_bootsnap_retry' 15: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:48:in block in require_or_load’
14: from /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:356:in require_or_load' 13: from /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:37:in load_interlock’
12: from /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies/interlock.rb:13:in loading' 11: from /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/concurrency/share_lock.rb:151:in exclusive’
10: from /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies/interlock.rb:14:in block in loading' 9: from /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:37:in block in load_interlock’
8: from /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:378:in block in require_or_load' 7: from /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in require’
6: from /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in load_dependency' 5: from /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in block in require’
4: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require' 3: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in require_with_bootsnap_lfi’
2: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in register' 1: from /var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in block in require_with_bootsnap_lfi’
/var/lib/gems/2.5.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require’: /home/zcd/ror/prolixe2019/app/controllers/users/passwords_controller.rb:1: syntax error, unexpected ‘:’, expecting end-of-input (SyntaxError)
frozen_string_literal: false

1 Like

i have same problem, :frowning: