ActionView::Template::Error (The asset "financial_plan_design" is not present in the asset pipeline

Here is the notes from monitoring tab:

Deployed v0

Deployment completed successfully.

1 desired, 1 placed, 1 healthy, 0 unhealthy [health checks: 1 total, 1 passing]

Here’s the logs

$ fly logs -a icy-sunset-5578

Waiting for logs…

2023-02-25T07:25:41.981 app[9d8218d9] sin [info] – add_index(:users, :reset_password_token, {:unique=>true})

2023-02-25T07:25:41.983 app[9d8218d9] sin [info] → 0.0020s

2023-02-25T07:25:41.983 app[9d8218d9] sin [info] == 20221109120529 DeviseCreateUsers: migrated (0.0193s) =======================

2023-02-25T07:25:41.988 app[9d8218d9] sin [info] I, [2023-02-25T07:25:41.988378 #525] INFO – : Migrating to CreateTransactions (20221110043329)

2023-02-25T07:25:41.990 app[9d8218d9] sin [info] == 20221110043329 CreateTransactions: migrating ===============================

2023-02-25T07:25:41.990 app[9d8218d9] sin [info] – create_table(:transactions)

2023-02-25T07:25:41.997 app[9d8218d9] sin [info] → 0.0067s

2023-02-25T07:25:41.997 app[9d8218d9] sin [info] == 20221110043329 CreateTransactions: migrated (0.0070s) ======================

2023-02-25T07:25:42.001 app[9d8218d9] sin [info] I, [2023-02-25T07:25:42.001097 #525] INFO – : Migrating to FixColumnName (20221110044618)

2023-02-25T07:25:42.002 app[9d8218d9] sin [info] == 20221110044618 FixColumnName: migrating ====================================

2023-02-25T07:25:42.003 app[9d8218d9] sin [info] – rename_column(:transactions, :type, :action_type)

2023-02-25T07:25:42.012 app[9d8218d9] sin [info] → 0.0090s

2023-02-25T07:25:42.012 app[9d8218d9] sin [info] == 20221110044618 FixColumnName: migrated (0.0091s) ===========================

2023-02-25T07:25:42.016 app[9d8218d9] sin [info] I, [2023-02-25T07:25:42.015803 #525] INFO – : Migrating to AddStockRefToTransactions (20221110084828)

2023-02-25T07:25:42.016 app[9d8218d9] sin [info] == 20221110084828 AddStockRefToTransactions: migrating ========================

2023-02-25T07:25:42.016 app[9d8218d9] sin [info] – add_reference(:transactions, :stock, {:null=>false, :foreign_key=>true})

2023-02-25T07:25:42.025 app[9d8218d9] sin [info] → 0.0080s

2023-02-25T07:25:42.025 app[9d8218d9] sin [info] == 20221110084828 AddStockRefToTransactions: migrated (0.0082s) ===============

2023-02-25T07:25:42.033 app[9d8218d9] sin [info] I, [2023-02-25T07:25:42.033460 #525] INFO – : Migrating to AddDefaultValueToShares (20221110131112)

2023-02-25T07:25:42.035 app[9d8218d9] sin [info] == 20221110131112 AddDefaultValueToShares: migrating ==========================

2023-02-25T07:25:42.035 app[9d8218d9] sin [info] – change_column_default(:stocks, :shares, 0)

2023-02-25T07:25:42.042 app[9d8218d9] sin [info] → 0.0067s

2023-02-25T07:25:42.042 app[9d8218d9] sin [info] == 20221110131112 AddDefaultValueToShares: migrated (0.0070s) =================

2023-02-25T07:25:42.046 app[9d8218d9] sin [info] I, [2023-02-25T07:25:42.045829 #525] INFO – : Migrating to AddAccountStatusToUser (20221114052358)

2023-02-25T07:25:42.047 app[9d8218d9] sin [info] == 20221114052358 AddAccountStatusToUser: migrating ===========================

2023-02-25T07:25:42.047 app[9d8218d9] sin [info] – add_column(:users, :account_status, :integer)

2023-02-25T07:25:42.050 app[9d8218d9] sin [info] → 0.0031s

2023-02-25T07:25:42.050 app[9d8218d9] sin [info] == 20221114052358 AddAccountStatusToUser: migrated (0.0033s) ==================

2023-02-25T07:25:42.056 app[9d8218d9] sin [info] I, [2023-02-25T07:25:42.055878 #525] INFO – : Migrating to AddUserToStocks (20221115124344)

2023-02-25T07:25:42.056 app[9d8218d9] sin [info] == 20221115124344 AddUserToStocks: migrating ==================================

2023-02-25T07:25:42.056 app[9d8218d9] sin [info] – add_reference(:stocks, :user, {:foreign_key=>true})

2023-02-25T07:25:42.063 app[9d8218d9] sin [info] → 0.0063s

2023-02-25T07:25:42.063 app[9d8218d9] sin [info] == 20221115124344 AddUserToStocks: migrated (0.0065s) =========================

2023-02-25T07:25:42.066 app[9d8218d9] sin [info] I, [2023-02-25T07:25:42.066426 #525] INFO – : Migrating to AddUserToTransactions (20221115125641)

2023-02-25T07:25:42.067 app[9d8218d9] sin [info] == 20221115125641 AddUserToTransactions: migrating ============================

2023-02-25T07:25:42.067 app[9d8218d9] sin [info] – add_reference(:transactions, :user, {:null=>false, :foreign_key=>true})

2023-02-25T07:25:42.074 app[9d8218d9] sin [info] → 0.0070s

2023-02-25T07:25:42.074 app[9d8218d9] sin [info] == 20221115125641 AddUserToTransactions: migrated (0.0072s) ===================

2023-02-25T07:25:42.078 app[9d8218d9] sin [info] I, [2023-02-25T07:25:42.078060 #525] INFO – : Migrating to RemoveStockFromTransactions (20221115130434)

2023-02-25T07:25:42.079 app[9d8218d9] sin [info] == 20221115130434 RemoveStockFromTransactions: migrating ======================

2023-02-25T07:25:42.079 app[9d8218d9] sin [info] – remove_reference(:transactions, :stock, {:null=>false, :foreign_key=>true})

2023-02-25T07:25:42.092 app[9d8218d9] sin [info] == 2022111513

2023-02-25T07:25:42.092 app[9d8218d9] sin [info] == 2022111513 434 RemoveStockFromTransactions: migrated (0.0128s) =============

2023-02-25T07:25:42.097 app[9d8218d9] sin [info] I, [2023-02-25T07:25:42.096803 #525] INFO – : Migrating to TransactionsChangeColumnFloat (20221119010638)

2023-02-25T07:25:42.098 app[9d8218d9] sin [info] == 20221119010638 TransactionsChangeColumnFloat: migrating ====================

2023-02-25T07:25:42.098 app[9d8218d9] sin [info] – change_column(:transactions, :cost_price, :float)

2023-02-25T07:25:42.106 app[9d8218d9] sin [info] → 0.0083s

2023-02-25T07:25:42.106 app[9d8218d9] sin [info] – change_column(:stocks, :cost_price, :float)

2023-02-25T07:25:42.111 app[9d8218d9] sin [info] → 0.0041s

2023-02-25T07:25:42.111 app[9d8218d9] sin [info] == 20221119010638 TransactionsChangeColumnFloat: migrated (0.0128s) ===========

2023-02-25T07:25:42.752 app[9d8218d9] sin [info] => Booting Puma

2023-02-25T07:25:42.752 app[9d8218d9] sin [info] => Rails 6.1.7 application starting in production

2023-02-25T07:25:42.752 app[9d8218d9] sin [info] => Run bin/rails server --help for more startup options

2023-02-25T07:25:43.267 app[9d8218d9] sin [info] W, [2023-02-25T07:25:42.919901 #520] WARN – : Creating scope :trader. Overwriting existing method User.trader.

2023-02-25T07:25:43.267 app[9d8218d9] sin [info] Puma starting in single mode…

2023-02-25T07:25:43.267 app[9d8218d9] sin [info] * Puma version: 5.6.5 (ruby 3.1.2-p20) (“Birdie’s Version”)

2023-02-25T07:25:43.267 app[9d8218d9] sin [info] * Min threads: 5

2023-02-25T07:25:43.267 app[9d8218d9] sin [info] * Max threads: 5

2023-02-25T07:25:43.267 app[9d8218d9] sin [info] * Environment: production

2023-02-25T07:25:43.267 app[9d8218d9] sin [info] * PID: 520

2023-02-25T07:25:43.268 app[9d8218d9] sin [info] * Listening on http://0.0.0.0:3000

2023-02-25T07:25:43.271 app[9d8218d9] sin [info] Use Ctrl-C to stop

2023-02-25T07:26:40.065 app[9d8218d9] sin [info] I, [2023-02-25T07:26:40.064786 #520] INFO – : [8239c1d1-ead4-4de2-94c0-f8d46ca4c638] Started GET “/” for 66.241.124.21 at 2023-02-25 07:26:40 +0000

2023-02-25T07:26:40.067 app[9d8218d9] sin [info] I, [2023-02-25T07:26:40.066864 #520] INFO – : [8239c1d1-ead4-4de2-94c0-f8d46ca4c638] Processing by HomeController#index as HTML

2023-02-25T07:26:40.079 app[9d8218d9] sin [info] I, [2023-02-25T07:26:40.079694 #520] INFO – : [8239c1d1-ead4-4de2-94c0-f8d46ca4c638] Rendered home/index.html.erb within layouts/application (Duration: 1.7ms | Allocations: 785)

2023-02-25T07:26:40.080 app[9d8218d9] sin [info] I, [2023-02-25T07:26:40.079896 #520] INFO – : [8239c1d1-ead4-4de2-94c0-f8d46ca4c638] Rendered layout layouts/application.html.erb (Duration: 2.7ms | Allocations: 853)

2023-02-25T07:26:40.080 app[9d8218d9] sin [info] I, [2023-02-25T07:26:40.080252 #520] INFO – : [8239c1d1-ead4-4de2-94c0-f8d46ca4c638] Completed 500 Internal Server Error in 13ms (Allocations: 2839)

2023-02-25T07:26:40.081 app[9d8218d9] sin [info] F, [2023-02-25T07:26:40.081325 #520] FATAL – : [8239c1d1-ead4-4de2-94c0-f8d46ca4c638]

2023-02-25T07:26:40.081 app[9d8218d9] sin [info] [8239c1d1-ead4-4de2-94c0-f8d46ca4c638] ActionView::Template::Error (The asset “financial_plan_design” is not present in the asset pipeline.

2023-02-25T07:26:40.081 app[9d8218d9] sin [info] ):

2023-02-25T07:26:40.081 app[9d8218d9] sin [info] [8239c1d1-ead4-4de2-94c0-f8d46ca4c638] 14:

2023-02-25T07:26:40.081 app[9d8218d9] sin [info] [8239c1d1-ead4-4de2-94c0-f8d46ca4c638] 15:

2023-02-25T07:26:40.081 app[9d8218d9] sin [info] [8239c1d1-ead4-4de2-94c0-f8d46ca4c638] 16:

2023-02-25T07:26:40.081 app[9d8218d9] sin [info] [8239c1d1-ead4-4de2-94c0-f8d46ca4c638] 17: <%= image_tag “financial_plan_design”, class: “border-0 img-thumbnail” %>

2023-02-25T07:26:40.081 app[9d8218d9] sin [info] [8239c1d1-ead4-4de2-94c0-f8d46ca4c638] 18:

2023-02-25T07:26:40.081 app[9d8218d9] sin [info] [8239c1d1-ead4-4de2-94c0-f8d46ca4c638] 19:

2023-02-25T07:26:40.081 app[9d8218d9] sin [info] [8239c1d1-ead4-4de2-94c0-f8d46ca4c638] 20:

2023-02-25T07:26:40.081 app[9d8218d9] sin [info] [8239c1d1-ead4-4de2-94c0-f8d46ca4c638]

2023-02-25T07:26:40.081 app[9d8218d9] sin [info] [8239c1d1-ead4-4de2-94c0-f8d46ca4c638] app/views/home/index.html.erb:17

2023-02-25T07:26:40.081 app[9d8218d9] sin [info] [8239c1d1-ead4-4de2-94c0-f8d46ca4c638] app/controllers/home_controller.rb:13:in `rescue in index’

2023-02-25T07:26:40.081 app[9d8218d9] sin [info] [8239c1d1-ead4-4de2-94c0-f8d46ca4c638] app/controllers/home_controller.rb:3:in `index’

2023-02-25T07:28:14.083 app[9d8218d9] sin [info] I, [2023-02-25T07:28:14.083341 #520] INFO – : [0017fc7e-16dc-4fcb-ba40-ca6779c2c4b1] Started GET “/” for 66.241.124.21 at 2023-02-25 07:28:14 +0000

2023-02-25T07:28:14.084 app[9d8218d9] sin [info] I, [2023-02-25T07:28:14.084357 #520] INFO – : [0017fc7e-16dc-4fcb-ba40-ca6779c2c4b1] Processing by HomeController#index as HTML

2023-02-25T07:28:14.086 app[9d8218d9] sin [info] I, [2023-02-25T07:28:14.086007 #520] INFO – : [0017fc7e-16dc-4fcb-ba40-ca6779c2c4b1] Rendered home/index.html.erb within layouts/application (Duration: 0.6ms | Allocations: 323)

2023-02-25T07:28:14.086 app[9d8218d9] sin [info] I, [2023-02-25T07:28:14.086112 #520] INFO – : [0017fc7e-16dc-4fcb-ba40-ca6779c2c4b1] Rendered layout layouts/application.html.erb (Duration: 0.7ms | Allocations: 354)

2023-02-25T07:28:14.086 app[9d8218d9] sin [info] I, [2023-02-25T07:28:14.086354 #520] INFO – : [0017fc7e-16dc-4fcb-ba40-ca6779c2c4b1] Completed 500 Internal Server Error in 2ms (Allocations: 761)

2023-02-25T07:28:14.087 app[9d8218d9] sin [info] F, [2023-02-25T07:28:14.087428 #520] FATAL – : [0017fc7e-16dc-4fcb-ba40-ca6779c2c4b1]

2023-02-25T07:28:14.087 app[9d8218d9] sin [info] [0017fc7e-16dc-4fcb-ba40-ca6779c2c4b1] ActionView::Template::Error (The asset “financial_plan_design” is not present in the asset pipeline.

2023-02-25T07:28:14.087 app[9d8218d9] sin [info] ):

2023-02-25T07:28:14.087 app[9d8218d9] sin [info] [0017fc7e-16dc-4fcb-ba40-ca6779c2c4b1] 14:

2023-02-25T07:28:14.087 app[9d8218d9] sin [info] [0017fc7e-16dc-4fcb-ba40-ca6779c2c4b1] 15:

2023-02-25T07:28:14.087 app[9d8218d9] sin [info] [0017fc7e-16dc-4fcb-ba40-ca6779c2c4b1] 16:

2023-02-25T07:28:14.087 app[9d8218d9] sin [info] [0017fc7e-16dc-4fcb-ba40-ca6779c2c4b1] 17: <%= image_tag “financial_plan_design”, class: “border-0 img-thumbnail” %>

2023-02-25T07:28:14.087 app[9d8218d9] sin [info] [0017fc7e-16dc-4fcb-ba40-ca6779c2c4b1] 18:

2023-02-25T07:28:14.087 app[9d8218d9] sin [info] [0017fc7e-16dc-4fcb-ba40-ca6779c2c4b1] 19:

2023-02-25T07:28:14.087 app[9d8218d9] sin [info] [0017fc7e-16dc-4fcb-ba40-ca6779c2c4b1] 20:

2023-02-25T07:28:14.087 app[9d8218d9] sin [info] [0017fc7e-16dc-4fcb-ba40-ca6779c2c4b1]

2023-02-25T07:28:14.087 app[9d8218d9] sin [info] [0017fc7e-16dc-4fcb-ba40-ca6779c2c4b1] app/views/home/index.html.erb:17

2023-02-25T07:28:14.087 app[9d8218d9] sin [info] [0017fc7e-16dc-4fcb-ba40-ca6779c2c4b1] app/controllers/home_controller.rb:13:in `rescue in index’

2023-02-25T07:28:14.087 app[9d8218d9] sin [info] [0017fc7e-16dc-4fcb-ba40-ca6779c2c4b1] app/controllers/home_controller.rb:3:in `index’

What could be the solution or where I went wrong?

Not a rails person (there are experts here who might show up), but it the meanwhile, Googling a bit for the error in the logs you shared, it looks like the code might be missing a file extension for the asset financial_plan_design: ruby on rails - The asset "logo.png" is not present in the asset pipeline - Stack Overflow

For this error, my recommendation is to get this application running with RAILS_ENV=production on your development machine before deploying. The asset pipeline is confusing. I will admit that from time to time I will decide to drop the files into my /public directory and use <img src="..."> rather than figure out how to get image_tag to work.

1 Like