I have followed all the necessary steps to deploy my app following the documentation for Rails and also for SQLite3, however I’m having some issues getting past a certain step. If someone more experienced could assist me, I’d greatly appreciate it. Thanks guys!
It looks like you are on the right track in fact it looks like the migration succeeded. Something, however, clearly failed and I’ll be able to help further if i can see what it was. Unfortunately in that screen shot the line i wasn’t too see is truncated of of the top.
Can you run fly logs
on one window while you run fly deploy
in another so that we can get the full log?
We are getting closer, but not quite there yet. What would be ideal is to see that start of the stack trace. But I can see that the exception happened during the processing of a require
statement which generally means that you’ve installed a gem but don’t have all of its runtime dependencies installed. Posting the start of the stack trace would help. Alternately, posting your Gemfile
would enable me to reproduce the problem here.
It looks like my guess was wrong, and we still don’t have the part of the stack trace that is useful.
From what I can see, you’ve added the following to your Gemfile:
gem "devise"
gem "ffi"
gem "httparty"
gem "byebug"
group :development, :test do
gem 'dotenv-rails'
gem 'rspec-rails'
end
I’ve added those to a Gemfile from a new Rails app and deployed it successfully.
What I’m looking for in the logs is the lines that immediately follow a line that looks like:
2022-12-09T14:45:07Z app[7a2bb041] iad [info]bin/rails server
There is no such line within the logs that you mentioned unfortunately. Could this be the issue?
I’m really not sure what else I can show at this stage. Can I post the full logs easily?
That does indeed look like the right error. It looks like you are running with sqlite3. And have an existing database (most likely on a volume). That database already has a user column. And an operation (probably db:migrate) is trying to create another user column. Not shown in that error is which table a user column is trying to be added to, but I’m not sure that matters.
If I’m reading this correctly, removing (or commenting out) the mount instructions in your fly.toml
should enable your application to start - though it will be with a fresh database on each deploy. Not what you want, but knowing whether this works or not would be useful.
Can you confirm what you want to happen with respect to databases? In particular, did you want sqlite3? Is it on a volume? How was the database initialized?
As an alternative to windows terminal, 'flyctl dashboardwill take you to a web page. From there if you click on
Monitoring` in the left side bar you can see your logs. You should be able to easily copy/paste from there. Putting that output in between two lines consisting of three backticks will format those lines correctly. See: Extended Syntax | Markdown Guide
I simply followed the steps and documentation for the sqlite3 section on Fly.io
I also took out the mount instructions from my fly.toml and it still didn’t deploy successfully unfortunately.
Here’s the full log
///
$ fly logs -a comicapp
Waiting for logs…
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:188:in `invoke’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:160:in `invoke_task’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block (2 levels) in top_level’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `each’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block in top_level’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:125:in `run_with_threads’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:110:in `top_level’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands/rake/rake_command.rb:24:in `block (2 levels) in perform’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:186:in `standard_exception_handling’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands/rake/rake_command.rb:24:in `block in perform’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/rake_module.rb:59:in `with_application’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands/rake/rake_command.rb:18:in `perform’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/command.rb:51:in `invoke’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands.rb:18:in `’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] Caused by:
2022-12-09T18:00:41.556 app[5544827e] lhr [info] SQLite3::SQLException: duplicate column name: user_id
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/sqlite3-1.5.4-x86_64-linux/lib/sqlite3/database.rb:152:in `initialize’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/sqlite3-1.5.4-x86_64-linux/lib/sqlite3/database.rb:152:in `new’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/sqlite3-1.5.4-x86_64-linux/lib/sqlite3/database.rb:152:in `prepare’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/sqlite3-1.5.4-x86_64-linux/lib/sqlite3/database.rb:198:in `execute’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/connection_adapters/sqlite3/database_statements.rb:32:in `block (2 levels) in execute’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/lib/active_support/dependencies/interlock.rb:41:in `permit_concurrent_loads’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/connection_adapters/sqlite3/database_statements.rb:31:in `block in execute’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/connection_adapters/abstract_adapter.rb:765:in `block in log’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/lib/active_support/notifications/instrumenter.rb:24:in `instrument’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/connection_adapters/abstract_adapter.rb:756:in `log’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/connection_adapters/sqlite3/database_statements.rb:30:in `execute’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/connection_adapters/abstract/schema_statements.rb:627:in `add_column’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/connection_adapters/sqlite3_adapter.rb:250:in `add_column’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/migration.rb:932:in `block in method_missing’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/migration.rb:900:in `block in say_with_time’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/migration.rb:900:in `say_with_time’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/migration.rb:921:in `method_missing’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/db/migrate/20221206122746_add_user_id_to_custom_characters.rb:5:in `change’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/migration.rb:870:in `exec_migration’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/migration.rb:854:in `block (2 levels) in migrate’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/migration.rb:853:in `block in migrate’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:215:in `with_connection’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/migration.rb:852:in `migrate’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/migration.rb:1046:in `migrate’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/migration.rb:1360:in `block in execute_migration_in_transaction’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/connection_adapters/abstract/transaction.rb:319:in `block in within_new_transaction’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/connection_adapters/abstract/transaction.rb:317:in `within_new_transaction’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/connection_adapters/abstract/database_statements.rb:316:in `transaction’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/transactions.rb:209:in `transaction’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/migration.rb:1411:in `ddl_transaction’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/migration.rb:1359:in `execute_migration_in_transaction’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/migration.rb:1333:in `each’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/migration.rb:1333:in `migrate_without_lock’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/migration.rb:1284:in `migrate’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/migration.rb:1117:in `up’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/migration.rb:1092:in `migrate’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/tasks/database_tasks.rb:262:in `migrate’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/railties/databases.rake:92:in `block (2 levels) in ’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `block in execute’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `each’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `execute’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:219:in `block in invoke_with_call_chain’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:243:in `block in invoke_prerequisites’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:241:in `each’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:241:in `invoke_prerequisites’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:218:in `block in invoke_with_call_chain’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:188:in `invoke’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:160:in `invoke_task’
2022-12-09T18:00:41.556 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block (2 levels) in top_level’
2022-12-09T18:00:41.557 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `each’
2022-12-09T18:00:41.557 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block in top_level’
2022-12-09T18:00:41.557 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:125:in `run_with_threads’
2022-12-09T18:00:41.557 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:110:in `top_level’
2022-12-09T18:00:41.557 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands/rake/rake_command.rb:24:in `block (2 levels) in perform’
2022-12-09T18:00:41.557 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:186:in `standard_exception_handling’
2022-12-09T18:00:41.557 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands/rake/rake_command.rb:24:in `block in perform’
2022-12-09T18:00:41.557 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/rake_module.rb:59:in `with_application’
2022-12-09T18:00:41.557 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands/rake/rake_command.rb:18:in `perform’
2022-12-09T18:00:41.557 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/command.rb:51:in `invoke’
2022-12-09T18:00:41.557 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands.rb:18:in `’
2022-12-09T18:00:41.557 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require’
2022-12-09T18:00:41.557 app[5544827e] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require’
2022-12-09T18:00:41.557 app[5544827e] lhr [info] Tasks: TOP => fly:server => db:migrate
2022-12-09T18:00:41.557 app[5544827e] lhr [info] (See full trace by running task with --trace)
2022-12-09T18:00:41.557 app[5544827e] lhr [info] I, [2022-12-09T18:00:41.551377 #528] INFO – : Migrating to AddUserIdToCustomCharacters (20221206122746)
2022-12-09T18:00:41.557 app[5544827e] lhr [info] == 20221206122746 AddUserIdToCustomCharacters: migrating ======================
2022-12-09T18:00:41.557 app[5544827e] lhr [info] – add_column(:custom_characters, :user_id, :integer)
2022-12-09T18:00:42.064 app[5544827e] lhr [info] Starting clean up.
2022-12-09T18:00:42.065 app[5544827e] lhr [info] Umounting /dev/vdc from /mnt/comicapp
///
What that trace suggests is that AddUserIdToCustomCharacters
is trying to add a user_id
column to the custom_characters
table, but that table already has a column by that name. Since that error continues to occur after you removed the mount, this means that this will happen even on an empty database.
This suggests that you may have a duplicate file or other error in your db/migrate
directory?
Does the following work on your machine?
bin/rails db:drop
bin/rails db:migrate
I did the commands there and they worked but it didn’t fix anything unfortunately when it came to deploying again. I got rid of the AddUserIdToCustomCharacters error however, so I’m not sure if the new log file can aid us now in figuring out if there are any other issues.
///
$ fly logs -a comicapp
Waiting for logs…
2022-12-09T20:17:37.926 app[df242374] lhr [info] Preparing to run: /bin/bash -o pipefail -c ${SERVER_COMMAND}
as root
2022-12-09T20:17:37.950 app[df242374] lhr [info] 2022/12/09 20:17:37 listening on [fdaa:0:fd16:a7b:7e:3:5d53:2]:22 (DNS: [fdaa::3]:53)
2022-12-09T20:17:39.955 app[df242374] lhr [info] bin/rails server
2022-12-09T20:17:40.678 app[df242374] lhr [info] => Booting Puma
2022-12-09T20:17:40.678 app[df242374] lhr [info] => Rails 7.0.4 application starting in production
2022-12-09T20:17:40.678 app[df242374] lhr [info] => Run bin/rails server --help
for more startup options
2022-12-09T20:17:41.055 app[df242374] lhr [info] Exiting
2022-12-09T20:17:41.056 app[df242374] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.6/lib/zeitwerk/loader/callbacks.rb:25:in `on_file_autoloaded’: expected file /app/app/controllers/turbo_devise_controller.rb to define constant TurboDeviseController, but didn’t (Zeitwerk::NameError)
2022-12-09T20:17:41.056 app[df242374] lhr [info] raise Zeitwerk::NameError.new(“expected file #{file} to define constant #{cpath}, but didn’t”, cref.last)
2022-12-09T20:17:41.056 app[df242374] lhr [info] ^^^^^
2022-12-09T20:17:41.057 app[df242374] lhr [info] undle/ruby/3.1.0/gems/zeitwerk-2.6.6/lib/zeitwerk/loader/helpers.rb:135:in cget' in
require’
2022-12-09T20:17:41.057 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.6/lib/zeitwerk/loader/helpers.rb:135:in `const_get’
2022-12-09T20:17:41.057 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.6/lib/zeitwerk/loader/helpers.rb:135:in `cget’
2022-12-09T20:17:41.057 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.6/lib/zeitwerk/loader/eager_load.rb:169:in `block in actual_eager_load_dir’
2022-12-09T20:17:41.057 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.6/lib/zeitwerk/loader/helpers.rb:40:in `block in ls’
2022-12-09T20:17:41.057 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.6/lib/zeitwerk/loader/helpers.rb:25:in `each’
2022-12-09T20:17:41.057 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.6/lib/zeitwerk/loader/helpers.rb:25:in `ls’
2022-12-09T20:17:41.057 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.6/lib/zeitwerk/loader/eager_load.rb:164:in `actual_eager_load_dir’
2022-12-09T20:17:41.057 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.6/lib/zeitwerk/loader/eager_load.rb:17:in `block (2 levels) in eager_load’
2022-12-09T20:17:41.057 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.6/lib/zeitwerk/loader/eager_load.rb:16:in `each’
2022-12-09T20:17:41.057 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.6/lib/zeitwerk/loader/eager_load.rb:16:in `block in eager_load’
2022-12-09T20:17:41.057 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.6/lib/zeitwerk/loader/eager_load.rb:10:in `synchronize’
2022-12-09T20:17:41.057 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.6/lib/zeitwerk/loader/eager_load.rb:10:in `eager_load’
2022-12-09T20:17:41.057 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.6/lib/zeitwerk/loader.rb:296:in `block in eager_load_all’
2022-12-09T20:17:41.057 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.6/lib/zeitwerk/loader.rb:294:in `each’
2022-12-09T20:17:41.057 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.6/lib/zeitwerk/loader.rb:294:in `eager_load_all’
2022-12-09T20:17:41.057 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/application/finisher.rb:74:in `block in module:Finisher’
2022-12-09T20:17:41.057 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/initializable.rb:32:in `run’ nce_exec’
2022-12-09T20:17:41.057 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/initializable.rb:32:in `run’
2022-12-09T20:17:41.057 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/initializable.rb:61:in `block in run_initializers’
2022-12-09T20:17:41.057 app[df242374] lhr [info] from /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/3.1.0/tsort.rb:228:in `block in tsort_each’
2022-12-09T20:17:41.057 app[df242374] lhr [info] from /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/3.1.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component’
2022-12-09T20:17:41.057 app[df242374] lhr [info] from /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/3.1.0/tsort.rb:431:in `each_strongly_connected_component_from’
2022-12-09T20:17:41.058 app[df242374] lhr [info] from /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/3.1.0/tsort.rb:347:in `each’ from /usr/lib/fullstaq-ruby/versions
2022-12-09T20:17:41.058 app[df242374] lhr [info] from /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/3.1.0/tsort.rb:347:in `each’
2022-12-09T20:17:41.058 app[df242374] lhr [info] from /usr/lib/fullstaq-ruby/versions
2022-12-09T20:17:41.058 app[df242374] lhr [info] 3.1.2-jemalloc/lib/ruby/3.1.0/tsort.rb:347:in `call’
2022-12-09T20:17:41.058 app[df242374] lhr [info] from /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/3.1.0/tsort.rb:347:in `each_strongly_connected_component’
2022-12-09T20:17:41.058 app[df242374] lhr [info] from /usr/lib/fullstaq-ruby/versions/3.1.2-jemalloc/lib/ruby/3.1.0/tsort.rb:226:in `tsort_each’
2022-12-09T20:17:41.058 app[df242374] lhr [info] ilder.rb:116:in `eval’ from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.4/lib/rack/builder.rb:1
2022-12-09T20:17:41.058 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/initializable.rb:60:in `run_initializers’
2022-12-09T20:17:41.058 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/application.rb:372:in `initialize!’
2022-12-09T20:17:41.058 app[df242374] lhr [info] from /app/config/environment.rb:7:in `’
2022-12-09T20:17:41.058 app[df242374] lhr [info] from config.ru:5:in `require_relative’
2022-12-09T20:17:41.058 app[df242374] lhr [info] from config.ru:5:in `block in ’
2022-12-09T20:17:41.059 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.4/lib/rack/builder.rb:116:in `eval’
2022-12-09T20:17:41.059 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.4/lib/rack/builder.rb:1
2022-12-09T20:17:41.059 app[df242374] lhr [info] 6:in `new_from_string’
2022-12-09T20:17:41.059 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.4/lib/rack/builder.rb:105:in `load_file’
2022-12-09T20:17:41.059 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.4/lib/rack/builder.rb:66:in `parse_file’
2022-12-09T20:17:41.059 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.4/lib/rack/server.rb:349:in `build_app_and_options_from_config’
2022-12-09T20:17:41.059 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.4/lib/rack/server.rb:249:in `app’
2022-12-09T20:17:41.059 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.4/lib/rack/server.rb:422:in `wrapped_app’
2022-12-09T20:17:41.059 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.4/lib/rack/server.rb:312:in `block in start’
2022-12-09T20:17:41.059 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.4/lib/rack/server.rb:379:in `handle_profiling’
2022-12-09T20:17:41.059 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.4/lib/rack/server.rb:311:in `start’
2022-12-09T20:17:41.059 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands/server/server_command.rb:38:in `start’
2022-12-09T20:17:41.059 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands/server/server_command.rb:143:in `block in perform’
2022-12-09T20:17:41.059 app[df242374] lhr [info] from internal:kernel:90:in `tap’
2022-12-09T20:17:41.059 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands/server/server_command.rb:134:in `perform’
2022-12-09T20:17:41.059 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run’
2022-12-09T20:17:41.059 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command’
2022-12-09T20:17:41.059 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch’
2022-12-09T20:17:41.059 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/command/base.rb:87:in `perform’
2022-12-09T20:17:41.059 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/command.rb:48:in `invoke’
2022-12-09T20:17:41.059 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands.rb:18:in `’
2022-12-09T20:17:41.059 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require’
2022-12-09T20:17:41.059 app[df242374] lhr [info] from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require’
2022-12-09T20:17:41.059 app[df242374] lhr [info] from bin/rails:7:in `’
2022-12-09T20:17:41.065 app[df242374] lhr [info] rails aborted!
2022-12-09T20:17:41.065 app[df242374] lhr [info] Command failed with status (1): [bin/rails server…]
2022-12-09T20:17:41.065 app[df242374] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/file_utils.rb:67:in `block in create_shell_runner’
2022-12-09T20:17:41.065 app[df242374] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/file_utils.rb:57:in `sh’
2022-12-09T20:17:41.065 app[df242374] lhr [info] /app/lib/tasks/fly.rake:23:in `block (2 levels) in ’
2022-12-09T20:17:41.065 app[df242374] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `block in execute’
2022-12-09T20:17:41.065 app[df242374] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `each’
2022-12-09T20:17:41.065 app[df242374] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `execute’
2022-12-09T20:17:41.065 app[df242374] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:219:in `block in invoke_with_call_chain’
2022-12-09T20:17:41.065 app[df242374] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize’
2022-12-09T20:17:41.065 app[df242374] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain’
2022-12-09T20:17:41.065 app[df242374] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:188:in `invoke’
2022-12-09T20:17:41.065 app[df242374] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:160:in `invoke_task’
2022-12-09T20:17:41.065 app[df242374] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block (2 levels) in top_level’
2022-12-09T20:17:41.065 app[df242374] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `each’
2022-12-09T20:17:41.065 app[df242374] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block in top_level’
2022-12-09T20:17:41.065 app[df242374] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:125:in `run_with_threads’
2022-12-09T20:17:41.065 app[df242374] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:110:in `top_level’
2022-12-09T20:17:41.065 app[df242374] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands/rake/rake_command.rb:24:in `block (2 levels) in perform’
2022-12-09T20:17:41.065 app[df242374] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:186:in `standard_exception_handling’
2022-12-09T20:17:41.065 app[df242374] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands/rake/rake_command.rb:24:in `block in perform’
2022-12-09T20:17:41.065 app[df242374] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/rake_module.rb:59:in `with_application’
2022-12-09T20:17:41.065 app[df242374] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands/rake/rake_command.rb:18:in `perform’
2022-12-09T20:17:41.065 app[df242374] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/command.rb:51:in `invoke’
2022-12-09T20:17:41.065 app[df242374] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands.rb:18:in `’
2022-12-09T20:17:41.065 app[df242374] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require’
2022-12-09T20:17:41.065 app[df242374] lhr [info] /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require’
2022-12-09T20:17:41.065 app[df242374] lhr [info] Tasks: TOP => fly:server
2022-12-09T20:17:41.065 app[df242374] lhr [info] (See full trace by running task with --trace)
2022-12-09T20:17:41.940 app[df242374] lhr [info] Starting clean up.
2022-12-09T20:17:41.941 app[df242374] lhr [info] Umounting /dev/vdc from /mnt/comicapp
///
I’m out for the evening but will look at into this deeper shortly. But the above is the important piece. I can’t help but get the feeling that this problem is somehow related to the previous problem… devise / authentication / user…
Earlier you apologized. No need… as long as you haven’t given up and are making forward progress I’ll try to help. And I’m always looking for ways to make Rails’s integration with Fly better so that problems like these either don’t occur or have obvious solutions… so needless to say, I’m interested.
Thanks again for all your assistance
Just to let you know I got it working!!! Thanks for all your help. The last solution was to simply delete this ‘turbo_devise_controller.rb’ file. It was just an empty Ruby file so, not sure why it caused a fail but we’re up and running now