Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mavericks Unhandled 'error' event. #57

Open
bradley opened this issue Jan 23, 2014 · 6 comments
Open

Mavericks Unhandled 'error' event. #57

bradley opened this issue Jan 23, 2014 · 6 comments

Comments

@bradley
Copy link

bradley commented Jan 23, 2014

When trying to upload an image to s3 on Mavericks I'm seeing

00:23:45 web.1  | events.js:72
00:23:45 web.1  |         throw er; // Unhandled 'error' event
00:23:45 web.1  |               ^
00:23:45 web.1  | Error: read ECONNRESET
00:23:45 web.1  |     at errnoException (net.js:901:11)
00:23:45 web.1  |     at TCP.onread (net.js:556:19)
00:23:45 web.1  | exited with code 8
00:23:45 system | sending SIGTERM to all processes

I've read the other issues on here with similar errors and the solutions seem to be to either ensure that ImageMagick is installed or to set the region for your S3 configuration.

I've tried both.

Any advice here? Im completely lost. Ive reinstalled ImageMagick with homebrew and my config file includes the region:

region: 'us-standard'
@bradley
Copy link
Author

bradley commented Jan 23, 2014

Fixed this by installing ImageMagick via MacPorts a la: http://www.imagemagick.org/script/binary-releases.php#macosx

Hope this helps someone. Closing.

@bradley bradley closed this as completed Jan 23, 2014
@bradley bradley reopened this Jan 23, 2014
@bradley
Copy link
Author

bradley commented Jan 23, 2014

... or not. This still appears to be an issue.

@madhums
Copy link
Owner

madhums commented Jan 26, 2014

ECONNRESET looks like a connection issue. Don't think its related to imagemagick.

@matthewpalmer
Copy link

I'm having this issue as well. @bradley how did you fix it?

@matthewpalmer
Copy link

Interestingly, removing

resizeAndCrop: {
        large: {resize: "1000x1000", crop: "900x900"}
      }

from imagerConfig.js fixed the problem.

Edit:

Actually, it is only fixed if you comment out the line. For example, here is a portion of the config file.

variants: {
    items: {
      // keepNames: true,
      resize: {
        mini : "300x200",
        preview: "800x600"
      },
      crop: {
        thumb: "200x200"
      }/*,
      resizeAndCrop: {
        large: {resize: "1000x1000", crop: "900x900"}
      }*/
    },

     gallery: {
      rename: function (filename) {
        return 'MyFileManipulationLogic_' + filename;
      },
      crop: {
        thumb: "100x100"
      }
    }
  },

Edit 2:
I'm getting intermittent errors. I now have no idea what's wrong. Here's my config file:

module.exports = {
  variants: {
    items: {
      // keepNames: true,
      crop: {
        thumb: "500x500"
      }
    }
  },

  storage: {
    Local: {
      path: "/var/www/"
    },
    S3: {
      key: 'KEY',
      secret: 'SECRET',
      bucket: 'BUCKET',
      storageClass: 'REDUCED_REDUNDANCY',
      secure: false,
    }
  }
};

I have found that the last config file works the best. Not sure if this helps anyone, or helps to decipher the issue.

@itlodge
Copy link

itlodge commented Apr 29, 2014

Thanks @matthewpalmer , after removing resizeAndCrop:, all is ok. But this is so strange!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants