Code Monkey home page Code Monkey logo

Comments (4)

kioopi avatar kioopi commented on June 3, 2024

Do you have the resque worker and scheduler running? These run the backgound-jobs to resize the images and process videos and audios.

We will try update the docs later.

For now, the discussion in this issue may help: #11

from pageflow.

mcousin avatar mcousin commented on June 3, 2024

Yes, I had a closer look on #11, but my worker and scheduler are both started and I think the processing works fine - to some part at least...

I get the properly resized images (thumbnail / medium / print / ...) in what I suspect to be the right folders, e.g.:

..amazonaws.com/testapp/mmm.local/image_files/processed_attachments/000/000/039/v1/thumbnail/2013-03-12_14.40.44.JPG

So it all looks pretty good from my point of view, only the image processing stops with "Fehler beim Verarbeiten" and no images show up in front- or backend.

I tried to figure out what this Fehler might be, but all I found in the development.log was:

E, [2014-05-13T00:02:12.127763 #2595] ERROR -- : Pageflow::ProcessImageFileJob - exception for Pageflow::ImageFile 39: 
#ActiveRecord::StatementInvalid: SQLite3::SQLException: cannot rollback - no transaction is active: rollback transaction

So I scanned through my server output and found this one

  SQL (4935.1ms)  UPDATE "pageflow_edit_locks" SET "updated_at" = '2014-05-12 21:59:22.034859' WHERE "pageflow_edit_locks"."id" = 24
SQLite3::BusyException: database is locked: UPDATE "pageflow_edit_locks" SET "updated_at" = '2014-05-12 21:59:22.034859' WHERE "pageflow_edit_locks"."id" = 24
Completed 500 Internal Server Error in 4946ms

ActiveRecord::StatementInvalid (SQLite3::BusyException: database is locked: UPDATE "pageflow_edit_locks" SET "updated_at" = '2014-05-12 21:59:22.034859' WHERE "pageflow_edit_locks"."id" = 24)

from pageflow.

kioopi avatar kioopi commented on June 3, 2024

Maybe the problem is with SQLite? It seems to have problems with concurrent writes.

We're using MySQL in production as well as development so we don't have much experience with SQLite errors, sorry.

I have updated the Getting started guide to use MySQL instead.

from pageflow.

mcousin avatar mcousin commented on June 3, 2024

Thanks a lot, that fixed it! As soon as I switched to MySQL, all problem are gone and it works like a charm.

from pageflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.