Meteor-Files: Thumbnails generation error

I’m having an issue:

  • generating thumbnails
  • Meteor-Files: Version 1.9.5
  • Meteor Version: 1.6.0.1
  • Appearing on Mac/Linux (not tested on windows)
  • this issue is appearing server side

I am using the thumbnail generation example found here.

When I upload several images at once, most of the images create thumbnails. However, for a handful of the images, the thumbnails are not generated. I receive the error shown below:

[159.203.61.14][createThumbnails] [img.resize] { Error: Command failed: 
[159.203.61.14]    at ChildProcess.onExit (/bundle/bundle/programs/server/npm/node_modules/gm/lib/command.js:301:17)
[159.203.61.14]    at emitTwo (events.js:125:13)
[159.203.61.14]    at ChildProcess.emit (events.js:213:7)
[159.203.61.14]    at maybeClose (internal/child_process.js:927:16)
[159.203.61.14]    at Socket.stream.socket.on (internal/child_process.js:348:11)
[159.203.61.14]    at emitOne (events.js:115:13)
[159.203.61.14]    at Socket.emit (events.js:210:7)
[159.203.61.14]    at Pipe._handle.close [as _onclose] (net.js:545:12) code: null, signal: 'SIGKILL' }
[159.203.61.14]{ Error: Command failed: 
[159.203.61.14]    at ChildProcess.onExit (/bundle/bundle/programs/server/npm/node_modules/gm/lib/command.js:301:17)
[159.203.61.14]    at emitTwo (events.js:125:13)
[159.203.61.14]    at ChildProcess.emit (events.js:213:7)
[159.203.61.14]    at maybeClose (internal/child_process.js:927:16)
[159.203.61.14]    at Socket.stream.socket.on (internal/child_process.js:348:11)
[159.203.61.14]    at emitOne (events.js:115:13)
[159.203.61.14]    at Socket.emit (events.js:210:7)
[159.203.61.14]    at Pipe._handle.close [as _onclose] (net.js:545:12) code: null, signal: 'SIGKILL' }
[159.203.61.14][FilesCollection] [Upload] [DDP] Got #-1/2 chunks, dst: IMG_4746-1.jpg
[159.203.61.14][FilesCollection] [Upload] [finish(ed)Upload] -> /images/SNygdJC3G647dxLM7.jpg
[159.203.61.14][FilesCollection] [Upload] [finish(ing)Upload] -> /images/v59YFLdZXW8bp4y5f.jpg
[159.203.61.14][FilesCollection] [_preCollectionCursor.observe] [changed]: iSfykHMSdENSLeMGR
[159.203.61.14][FilesCollection] [Upload] [DDP] Got #-1/3 chunks, dst: IMG_4741-1.jpg
[159.203.61.14][FilesCollection] [Upload] [finish(ed)Upload] -> /images/v59YFLdZXW8bp4y5f.jpg
[159.203.61.14][FilesCollection] [_preCollectionCursor.observe] [changed]: i7ZC63i8GHEwuJpFc
[159.203.61.14][FilesCollection] [Upload] [finish(ing)Upload] -> /images/r7T7ZzYux2tjrZahW.jpg
[159.203.61.14][FilesCollection] [_preCollectionCursor.observe] [removed]: ppixaEvznRennF7GW
[159.203.61.14][FilesCollection] [Upload] [DDP] Got #-1/2 chunks, dst: IMG_4739-1.jpg
[159.203.61.14][FilesCollection] [Upload] [finish(ed)Upload] -> /images/r7T7ZzYux2tjrZahW.jpg
[159.203.61.14][FilesCollection] [Upload] [finish(ing)Upload] -> /images/McpEckrGhQ2gZZmEB.jpg
[159.203.61.14][FilesCollection] [_preCollectionCursor.observe] [removed]: L6ARAcbLqAbAtzDWk
[159.203.61.14][FilesCollection] [Upload] [DDP] Got #-1/2 chunks, dst: IMG_4754-1.jpg
[159.203.61.14][FilesCollection] [Upload] [finish(ed)Upload] -> /images/McpEckrGhQ2gZZmEB.jpg
[159.203.61.14][FilesCollection] [_preCollectionCursor.observe] [changed]: SNygdJC3G647dxLM7
[159.203.61.14][FilesCollection] [Upload] [finish(ing)Upload] -> /images/YDJx5P3KLGyyMRx95.jpg
[159.203.61.14][FilesCollection] [_preCollectionCursor.observe] [changed]: v59YFLdZXW8bp4y5f
[159.203.61.14][FilesCollection] [Upload] [DDP] Got #-1/2 chunks, dst: IMG_4752-1.jpg
[159.203.61.14][FilesCollection] [Upload] [finish(ed)Upload] -> /images/YDJx5P3KLGyyMRx95.jpg
[159.203.61.14][FilesCollection] [_preCollectionCursor.observe] [removed]: iSfykHMSdENSLeMGR
[159.203.61.14][FilesCollection] [Upload] [finish(ing)Upload] -> /images/tfWsoZkjw9d55v9TB.jpg
[159.203.61.14][FilesCollection] [_preCollectionCursor.observe] [removed]: i7ZC63i8GHEwuJpFc
[159.203.61.14][FilesCollection] [Upload] [DDP] Got #-1/2 chunks, dst: IMG_4751-1.jpg
[159.203.61.14][FilesCollection] [Upload] [finish(ed)Upload] -> /images/tfWsoZkjw9d55v9TB.jpg
[159.203.61.14][FilesCollection] [Upload] [finish(ing)Upload] -> /images/RE2c9g7YZhCiizZJn.jpg
[159.203.61.14][FilesCollection] [_preCollectionCursor.observe] [changed]: r7T7ZzYux2tjrZahW

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 21 (12 by maintainers)

Most upvoted comments

Hi @programthis I am having some files from my project with V1.8.3. I hope this can help you.

I tried to keep the folder structure so that you find easy which goes where. Together the files follow a phone camera workflow. In the components it uses a Cordova camera, takes the shot, saves it to the state, then on press of button starts saving to Files with a thumbnail and does upload to S3. I am long due to put these together in a demo for the Wiki of this repo… In the ImageMagic I generate “polaroids” (and on the server I do the thumbnails).

Let me know if you want to go through these files together in case things are too cumbersome. As there is always place for improvement (in my case there is a lot), if you get to look at this and find it useful and find ways to improve, let us know please as a better version of it will try to make it to the wiki.

As mentioned this is V1.8.3. I am not aware whether there have been any breaking changes since. Cordova camera - Ostri0Files - S3.zip

@dr-dimitru Thank you. I will up the RAM first in that case and see if that resolves the issue.