Giter Club home page Giter Club logo

Comments (10)

podblog avatar podblog commented on August 19, 2024

I've done a little work since then, it appears the upload might be getting stuck on something related to exiftool. I disabled exiftool per your instructions in the docs, though...

heroku log below:

2012-10-29T06:44:12+00:00 app[web.1]: Started POST "/photos" for 66.176.197.226 at 2012-10-29 06:44:12 +0000
2012-10-29T06:44:12+00:00 app[web.1]:
2012-10-29T06:44:12+00:00 app[web.1]:
2012-10-29T06:44:13+00:00 app[web.1]:
2012-10-29T06:44:13+00:00 app[web.1]:
2012-10-29T06:44:13+00:00 app[web.1]: app/middleware/flash_session_cookie_middleware.rb:16:in call' 2012-10-29T06:44:13+00:00 app[web.1]: 2012-10-29T06:44:13+00:00 app[web.1]: Processing by PhotosController#create as */* 2012-10-29T06:44:13+00:00 app[web.1]: app/controllers/photos_controller.rb:81:increate'
2012-10-29T06:44:13+00:00 app[web.1]: NameError (undefined local variable or method exif_read' for #<Photo:0x0000000532fb40>): 2012-10-29T06:44:13+00:00 app[web.1]: app/controllers/photos_controller.rb:82:inblock in create'
2012-10-29T06:44:13+00:00 app[web.1]: Completed 500 Internal Server Error in 1037ms
2012-10-29T06:44:13+00:00 app[web.1]: Parameters: {"name"=>"t-2700.jpg", "_balder_session"=>"BAh7CUkiD3Nlc3Npb25faWQGOgZFRkkiJWNmMTk4NWNlNDdkZDJkZjlkMmVkMWI4YWY2OWJjOWM2BjsAVEkiEF9jc3JmX3Rva2VuBjsARkkiMUNIZGwybllJNTgrSUErOGFlaUZMZkJGUG9BMzY4ZFkxbUxnSUcwTWdoQVE9BjsARkkiFXVzZXJfY3JlZGVudGlhbHMGOwBGSSIBgGZmNTM4N2E4YWE4NDA2NjRiNDY1NWVkZjAzOWYyZDlhNjM5YWU2MDc3NzFjYmQ1YzVmMDc5YjYwMzBlNGM0ODI1YWVlYTk0MTIyNzdiY2NjOGZmODU4NTYyNzM2OTYyN2MzNDgxNGM1ZjJhNzZkMmZlZmY5YmMzNzUyMDBjMmU3BjsAVEkiGHVzZXJfY3JlZGVudGlhbHNfaWQGOwBGaQY%3D--569b08b9ae152862f24386d5894e940aefc41408", "authenticity_token"=>"CHdl2nYI58+IA+8aeiFLfBFPoA368dY1mLgIG0MghAQ=", "photo"=>{"album_id"=>"1"}, "file"=>#<ActionDispatch::Http::UploadedFile:0x0000000535b510 @original_filename="t-2700.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name="file"; filename="t-2700.jpg"\r\nContent-Type: image/jpeg\r\n", @tempfile=#File:/tmp/RackMultipart20121029-2-1c0k7rd>}
2012-10-29T06:44:13+00:00 heroku[router]: POST tenc.herokuapp.com/photos dyno=web.1 queue=0 wait=0ms service=2278ms status=500 bytes=728

from balder.

espen avatar espen commented on August 19, 2024

Try commenting out "before_create :exif_read" in the photo model. I will look into this later but currently too busy with other work.

from balder.

podblog avatar podblog commented on August 19, 2024

This worked. I commented out line 13 in the photo.rb model. Thank you for your help!

from balder.

nullmedium avatar nullmedium commented on August 19, 2024

I get IO errors when uploading with the HTML5 uploader. The upload stops at 60% or 80%. Depending on the file.

from balder.

podblog avatar podblog commented on August 19, 2024

Have you tried commenting out line 13 in photo.rb? If you are on Heroku, the EXIF module causes problems and isn't really necessary to the successful operation and deployment of Balder.

On Tuesday, March 12, 2013 at 7:55 PM, Jens Luedicke wrote:

I get IO errors when uploading with the HTML5 uploader. The upload stops at 60% or 80%. Depending on the file.


Reply to this email directly or view it on GitHub (#36 (comment)).

from balder.

espen avatar espen commented on August 19, 2024

@nullmedium where are you storing the files? On disk or S3? Are you using Heroku? Also see the tip above.

from balder.

nullmedium avatar nullmedium commented on August 19, 2024

@espen On disk. I created an uploads folder within the rails root directory.
In Chrome the uploads aborts and in Safari it stalls. The file is 2 MB in size.

I tried to comment out the line.

Edit: The application is hosted on my own server.

from balder.

espen avatar espen commented on August 19, 2024

What does the log say? Can you try with another file? And perhaps a smaller file?

from balder.

nullmedium avatar nullmedium commented on August 19, 2024

I found the problem. The apache process does not the proper permissions to write into the
/tmp/passenger.1.0.17724/generation-0/buffered_uploads directory!

from balder.

espen avatar espen commented on August 19, 2024

Good to hear you fixed it :)

from balder.

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.