While uploading photos in OpenStreetView app, my imaging goes on pending state and I got a message in console:
.aasm_state is deprecated and will be removed in version 4.0.0; please use .aasm.state instead!
I have rubyist-aasm-2.1.1 installed on my system. This message actually itself a solution of problem, just rename .aasm_state to .assm.state. In this way you have to rename all the aasm variable names.
For this use a patch already submitted in OSV github but never used in restful authentication plugin (because of being inactive from last Four years)
Apply this Patch:
patch OpenStreetView/vendor/plugins/restful_authentication/lib/authorization/aasm_roles.rb < fix_issue_37.patch
when you build again after making this changes you will not see any error, but your images will still bi in pending state. To change your state from pending->processing->unavailable:
open another terminal, and type
and keep it running till you run app.