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

Fatal error: This socket is closed. #273

Closed
maraisr opened this issue Dec 10, 2014 · 22 comments
Closed

Fatal error: This socket is closed. #273

maraisr opened this issue Dec 10, 2014 · 22 comments

Comments

@maraisr
Copy link

maraisr commented Dec 10, 2014

So this morning for some bizarre reason this issue seems to only occur with this task. node v0.10.33 If i copy in the folder "grunt-contrib-imagemin" from another working project it seems to work fine, so i think its just when i went npm update --save-dev this morning that it messed things up.

@ghost
Copy link

ghost commented Dec 11, 2014

I just installed node v0.10.33 without updating npm and faced the same problem. And just by copying a folder "grunt-contrib-imagemin" from a working project, the problem was solved.

@fredw
Copy link

fredw commented Dec 11, 2014

+1

@SamuraiPrinciple
Copy link

We have the same problem on some windows machines (works on linux and osx) - 64bit Windows 7, node v0.10.33.

@walkerfranson
Copy link

@Recchi Thanks

@jrgtt
Copy link

jrgtt commented Dec 13, 2014

@Recchi Pretty bizarre solution, but it worked... Thanks!

@florianmatz
Copy link

Seems to be a problem with the jpgtran bin-wrapper, that avoids imagetran beeing installed properly. I've run imagemin without grunt and the error only occures when minimizing jpgs. Same problem is reported for the gulp tasks. So i guess, the the jpgtran guys are to blame...

See: imagemin/jpegtran-bin#54

@blowsie
Copy link

blowsie commented Dec 15, 2014

+1

Does anyone have a working copy of the files that they can share please?

@ghost
Copy link

ghost commented Dec 16, 2014

@faster23
Copy link

@Recchi thanks, it worked.

@blowsie
Copy link

blowsie commented Dec 16, 2014

@Recchi Thanks alot!

@ondjazz
Copy link

ondjazz commented Dec 17, 2014

@Recchi Lifesaver!

@ghost
Copy link

ghost commented Dec 17, 2014

+1 Thanks @Recchi

@Brantron
Copy link

@Recchi what if I do not have a project that uses this? I just installed this task and received this error. Should I pull it from the repo?

@florianmatz
Copy link

Try to install a really old version. I've tried 7.0.2 as provided above and it worked. I had to install it via bower because i could not copy the neccessary files due to windows file name length limitations

@Sawtaytoes
Copy link

+1 also broken for me. I don't want to use 0.7.2 if I don't have to. The folder names in older versions go really deep in Windows and are a problem to delete.

@ghost
Copy link

ghost commented Dec 18, 2014

Guys, I don't know any other solution to this problem. In truth, it's more like a crutch than a solution. If you look above, I gave a link to a working folder.

@davegreenwp
Copy link

I've been trying to include imagemin in our boilerplate at work and there never seems to be a build that works on Win7. I'm having the same issue and considering throwing myself out of the window. :)

Tried 0.7.2 with no joy. Any suggestions?

EDIT: I just ran it with --verbose and got this:

PNG

Loading "imagemin.js" tasks...OK

  • imagemin

Running "imagemin" task

Running "imagemin:dynamic" (imagemin) task
Verifying property imagemin.dynamic exists in config...OK
Files: img/Death_star1.png -> build/img/Death_star1.png
Options: interlaced, optimizationLevel=3, progressive
Fatal error: This socket is closed.

JPG

Loading "imagemin.js" tasks...OK

  • imagemin

Running "imagemin" task

Running "imagemin:dynamic" (imagemin) task
Verifying property imagemin.dynamic exists in config...OK
Files: img/death-star-1.jpg -> build/img/death-star-1.jpg
Options: interlaced, optimizationLevel=3, progressive
Fatal error: This socket is closed.

GIF

Loading "imagemin.js" tasks...OK

  • imagemin

Running "imagemin" task

Running "imagemin:dynamic" (imagemin) task
Verifying property imagemin.dynamic exists in config...OK
Files: img/deathstarfiring.gif -> build/img/deathstarfiring.gif
Options: interlaced, optimizationLevel=3, progressive
Fatal error: This socket is closed.

SVG

Successful!

@kevva
Copy link
Member

kevva commented Jan 13, 2015

Use 0.9.2.

@GomesNayagam
Copy link

getting same error with 0.9.2

@GomesNayagam
Copy link

worked this way : npm install grunt-contrib-imagemin@0.9.2 --save-dev

@blowsie
Copy link

blowsie commented Feb 13, 2015

@Saturn2888 The deep folders are no problem to delete with npm uninstall

@kevva kevva closed this as completed Mar 26, 2015
@vicky-gonsalves
Copy link

+1 @Recchi

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

No branches or pull requests