Comments (10)
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:in
create'
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:in
block 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.
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.
This worked. I commented out line 13 in the photo.rb model. Thank you for your help!
from balder.
I get IO errors when uploading with the HTML5 uploader. The upload stops at 60% or 80%. Depending on the file.
from balder.
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.
@nullmedium where are you storing the files? On disk or S3? Are you using Heroku? Also see the tip above.
from balder.
@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.
What does the log say? Can you try with another file? And perhaps a smaller file?
from balder.
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.
Good to hear you fixed it :)
from balder.
Related Issues (20)
- License? HOT 4
- Cannot destroy album or collection HOT 5
- Cannot upload pictures HOT 10
- S3 and Balder - Not on Heroku
- S3 and Balder - Not on Heroku HOT 1
- Basic functions ok, but has not implemented a lot of functionality HOT 1
- unknown attribute: password HOT 2
- error #2038 HOT 4
- Error 500: /photos/scans on heroku, s3 backed. HOT 1
- Reading Keywords from exif will break if there is a single tag in the image in 1.9 HOT 1
- /photos/scan creates duplicates HOT 2
- Caching
- not allowing to create first user HOT 1
- please add to documentation - disable setup after creation of first user HOT 1
- Carrierwave 500s with "TypeError (no implicit conversion of nil into String)" when not on Heroku HOT 9
- NoMethodError (undefined method `parameterize' for nil:NilClass) when searching HOT 3
- Any solution to work with existing project? HOT 1
- Gem config issue, rack-cache HOT 1
- . HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from balder.