espen / balder

Balder - Open source Ruby on Rails photo gallery
http://balderapp.com
MIT License
262 stars 97 forks source link

Error 500: /photos/scans on heroku, s3 backed. #34

Open k-f- opened 12 years ago

k-f- commented 12 years ago

After adding a file manually to s3 I visited /photos/scan produced server 500 error, log output below.

2012-04-24T19:27:03+00:00 heroku[router]: GET photos.kfring.com/photos/scan dyno=web.1 queue=0 wait=0ms service=50ms status=500 bytes=728
2012-04-24T19:27:03+00:00 heroku[nginx]: 74.92.73.117 - - [24/Apr/2012:19:27:03 +0000] "GET /photos/scan HTTP/1.1" 500 728 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/535.19
 (KHTML, like Gecko) Chrome/18.0.1025.163 Safari/535.19" photos.kfring.com
2012-04-24T19:27:06+00:00 app[web.1]: 
2012-04-24T19:27:06+00:00 app[web.1]: 
2012-04-24T19:27:06+00:00 app[web.1]: Started GET "/photos/scan" for 74.92.73.117 at 2012-04-24 12:27:06 -0700
2012-04-24T19:27:06+00:00 app[web.1]: analyze directory /app/public/uploads/files
2012-04-24T19:27:06+00:00 app[web.1]: Errno::ENOENT (No such file or directory - /app/public/uploads/files):
2012-04-24T19:27:06+00:00 app[web.1]: 
2012-04-24T19:27:06+00:00 app[web.1]:   lib/scan.rb:17:in `open'
2012-04-24T19:27:06+00:00 app[web.1]:   lib/scan.rb:17:in `entries'
2012-04-24T19:27:06+00:00 app[web.1]:   lib/scan.rb:17:in `ScanDirectory'
2012-04-24T19:27:06+00:00 app[web.1]:   app/controllers/photos_controller.rb:66:in `scan'
2012-04-24T19:27:06+00:00 app[web.1]:   lib/scan.rb:10:in `Scan'
2012-04-24T19:27:06+00:00 app[web.1]:   app/middleware/flash_session_cookie_middleware.rb:16:in `call'
2012-04-24T19:27:06+00:00 app[web.1]: 
2012-04-24T19:27:06+00:00 app[web.1]: 
2012-04-24T19:27:06+00:00 heroku[router]: GET photos.kfring.com/photos/scan dyno=web.1 queue=0 wait=0ms service=44ms status=500 bytes=728
2012-04-24T19:27:06+00:00 heroku[nginx]: 74.92.73.117 - - [24/Apr/2012:19:27:06 +0000] "GET /photos/scan HTTP/1.1" 500 728 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.163 Safari/535.19" photos.kfring.com
espen commented 12 years ago

The photoscan feature was developed to work locally, not with S3. I have updated this as a feature request. I do not have time or the need for this feature so a pull requests is very much welcome.