mysociety / fixmytransport

A site focussed on connecting and empowering people who share transport problems of different kinds.
http://www.mysociety.org/2010/03/15/mysocietys-next-12-months-fixmytransport-and-project-fosbury/
Other
37 stars 10 forks source link

Failure to install jhead causes db connection to be dropped when saving models that use autorotate_image as a post processing step #661

Closed crowbot closed 12 years ago

crowbot commented 12 years ago

The error raised in autorotate_image when the required jhead package is not installed (whilst redirected and handled by the popen3 code) causes the database connection to be closed, causing an error the next time the database is accessed:

ActiveRecord::StatementInvalid: PG::Error: no connection to the server : ROLLBACK

See also

https://github.com/brianmario/mysql2/issues/213#issuecomment-3594240