Meteor-CollectionFS icon indicating copy to clipboard operation
Meteor-CollectionFS copied to clipboard

Use CollectionFS with cfs:filesystem in multiple instances?

Open bluepuma77 opened this issue 9 years ago • 3 comments

I am running CollectionFS with cfs:filesystem on multiple instances with the same code.

  • 1 instance is only handling the upload and the processing
  • 2+ instances are only handling image serving

When generating lots of files with instance 1 I experience other instances crashing:

W20160629-18:15:00.618(0)? (STDERR) stream.js:94
W20160629-18:15:00.618(0)? (STDERR)       throw er; // Unhandled stream error in pipe.
W20160629-18:15:00.619(0)? (STDERR)             ^
W20160629-18:15:00.619(0)? (STDERR) Error: ENOENT, open '/app/.meteor/local/cfs/files/_tempstore/files-fhftx3PHM7cRwKHBa-0.chunk'
=> Exited with code: 8
=> Your application is crashing. Waiting for file change.

I read through some posts, seems CollectionFS is not made for multiple instances with the same database and file system because of the current design with the worker.

Two questions from my side:

  1. Can I just disable the workers on the file-serving instances?
  2. Can I just try/catch the issue? Has someone done this before?

bluepuma77 avatar Jun 30 '16 10:06 bluepuma77

@bluepuma77 Yeah, we're having the same issue - and were running multiple dynos on heroku. Did you find anything that worked?

jeffyamada avatar Oct 10 '16 21:10 jeffyamada

Any update ?

rolljee avatar Oct 27 '16 11:10 rolljee

Experiencing the same problem. I've looked all over and I don't think an official fix was ever made. edgee:slingshot anyone?

evolross avatar Jan 05 '17 02:01 evolross