0

I trying to use carrierwave gem for upload image in Ruby on rails. following guid and try upload but, some error on my rails. i think caused database timeout, but i don't know what exactly. here's my error screen. I checked my uploader in model class and other things..

enter image description here

2
  • Which version of ruby and rails, are you using ? I never used carrierwave but I know that paperclip is now deprecated and it's better to use activestorage. You could take a look at api.rubyonrails.org/files/activestorage/README_md.html. For the database error if it is locked it's maybe because something already locked it for writing something Commented Aug 31, 2020 at 11:23
  • @Snoobie I using rails 6 Commented Sep 1, 2020 at 2:43

1 Answer 1

0

SQLite3 is a file-based database, and locking is little less advanced than a full fledged DB; I would only use it in a few users setting. Maybe you have opened the DB in a SQLite viewer or another process that is locking the DB at the same time?

There are plenty of suggestions in this thread: Ruby: SQLite3::BusyException: database is locked:

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.