此日志使我在Heroku上的错误日志大部分都出现了,我不太了解该错误的含义。这是什么,我如何使它消失?
2018-12-09T00:22:21.020684+00:00 app[web.3]: 00:22:21 worker.1 | E, [2018-12-09T00:22:21.016292 #15] ERROR -- : Retrying ActiveStorage::PurgeJob in 3 seconds, due to a StandardError. The original exception was #<ActiveRecord::RecordNotFound: Couldn't find ActiveStorage::Blob with 'id'=2>.
2018-12-09T00:22:21.020807+00:00 app[web.3]: 00:22:21 worker.1 | I, [2018-12-09T00:22:21.018923 #15] INFO -- : [ActiveJob] Enqueued ActiveStorage::PurgeJob (Job ID: e89af631-9c28-4247-8897-887a55c68b64) to Sidekiq(default) at 2018-12-09 00:22:24 UTC
2018-12-09T00:22:25.744836+00:00 app[web.4]: 00:22:25 worker.1 | D, [2018-12-09T00:22:25.744555 #15] DEBUG -- : [1m[36mActiveStorage::Blob Load (1.4ms)[0m [1m[34mSELECT "active_storage_blobs".* FROM "active_storage_blobs" WHERE "active_storage_blobs"."id" = $1 LIMIT $2[0m [["id", 2], ["LIMIT", 1]]
2018-12-09T00:22:25.745100+00:00 app[web.4]: 00:22:25 worker.1 | E, [2018-12-09T00:22:25.744923 #15] ERROR -- : Retrying ActiveStorage::PurgeJob in 3 seconds, due to a StandardError. The original exception was #<ActiveRecord::RecordNotFound: Couldn't find ActiveStorage::Blob with 'id'=2>.
2018-12-09T00:22:25.746754+00:00 app[web.4]: 00:22:25 worker.1 | I, [2018-12-09T00:22:25.746542 #15] INFO -- : [ActiveJob] Enqueued ActiveStorage::PurgeJob (Job ID: e89af631-9c28-4247-8897-887a55c68b64) to Sidekiq(default) at 2018-12-09 00:22:28 UTC
我所知道的是,它正在寻找S3上不存在的图像。它从哪里获得id的值?
这使95%的原木及其注意力分散到发现或发现实际问题上。我该如何修复并使其消失?
此刻我的ActiveStorage :: Blob为空,但它一直在询问不存在的附件的URL。