veliovgroup / Meteor-Files

🚀 Upload files via DDP or HTTP to ☄️ Meteor server FS, AWS, GridFS, DropBox or Google Drive. Fast, secure and robust.
https://packosphere.com/ostrio/files
BSD 3-Clause "New" or "Revised" License
1.11k stars 168 forks source link

Simplest way to Upload and Stream Video through S3 using Meteor js Blaze #488

Closed anaghakomawar closed 7 years ago

anaghakomawar commented 7 years ago

I am new to Meteor. I am trying to upload video to S3 bucket and streaming the video.

Following things which I tried and failed are :

imports/videoUploadclient/videoUpload.js

    import { Meteor } from 'meteor/meteor';
    import { FilesCollection } from 'meteor/ostrio:files';

    export const BizVideo = new FilesCollection({
        collectionName: 'bussVideo',
        allowClientCode: false,
        chunkSize: 1024 * 1024
    });

HTML file:

    {{#with currentUpload}}
        Uploading <b>{{file.name}}</b>:
            <span id="progress">{{progress.get}}%</span>
            {{else}}
                <input id="fileInput" type="file" />
    {{/with}}

    <div class="col-lg-12 col-sm-12 col-xs-12 col-md-12  vBusGroupRow">
        <div class="vPhotosOwnerManager">

            <div class="row vPhotosYouRow">
                {{#each files}} 
                <div class="col-lg-4 col-md-4 col-sm-4  col-xs-12 vPhotosUserRowSec">
                    <div class="vPhotosYouRImgNew vPhotosYouRImgPost">
                        <i class="fa fa-times-circle pull-right deleteVideo cursorPointer" id="video-{{_id}}" aria-hidden="true"></i>
                        <div class="videoShow">
                            <video controls="controls" width="300" height="200" src="{{fileURL this}}?play=true">
                            </video>
                        </div>
                        <!-- Modal -->
                        <div id="businessVideoModal-{{_id}}" class="modal fade" role="dialog">
                          <div class="modal-dialog">

                            <!-- Modal content-->
                            <div class="modal-content">
                              <div class="modal-body">
                                <div class="alignCenter text-center">
                                    <video controls="controls" width="300" height="200" src="{{fileURL this}}?play=true">
                                    </video>
                              </div>
                              <div class="modal-footer">
                                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                              </div>
                            </div>

                          </div>
                        </div>
                        <!-- End Modal -->
                    </div>
                </div>
            </div>
            {{/each}}
        </div
    </div>

js file code:

    import './videoSteaming.html';
    import { Template } from 'meteor/templating';
    import { ReactiveVar } from 'meteor/reactive-var';
    import { BizVideo } from '/imports/videostreamClient/videoSteaming1.js';

    Template.videoSteaming.onCreated(function() {
        this.currentUpload = new ReactiveVar(false);
        this.subscribe('getBizVideo');
    });

    Template.videoSteaming.helpers({
        currentUpload: function() {
            return Template.instance().currentUpload.get();
        },
        files: function() {
            return BizVideo.find({"_id":"k7csarKda8XoAjK2t"});
        }
    });

    Template.videoSteaming.events({
        'change #fileInput' (e, template) {
            if (e.currentTarget.files && e.currentTarget.files[0]) {
                // We upload only one file, in case
                // multiple files were selected
                const upload = BizVideo.insert({
                file: e.currentTarget.files[0],
                streams: 'dynamic',
                chunkSize: 'dynamic'
            }, false);

            upload.on('start', function() {
                template.currentUpload.set(this);
            });

            upload.on('end', function(error, fileObj) {
                if (error) {
                    alert('Error during upload: ' + error);
                } else {
                    alert('File "' + fileObj.name + '" successfully uploaded');
                    console.log('fileObj ',fileObj._id);
                }
                template.currentUpload.set(false);
            });

            upload.start();

        }
    });
dr-dimitru commented 7 years ago

Hello @anaghakomawar ,

Please enable debug mode in Constructor, then post here full logs from server and client for cases:

Thank you.

anaghakomawar commented 7 years ago

Thanks for the reply... Following Output on Server:

I20170911-09:44:22.985(5.5)? [FilesCollection] [find(undefined)]
I20170911-09:44:24.138(5.5)? [FilesCollection] [find(undefined)]
W20170911-09:53:53.010(5.5)? (STDERR) (node) warning: possible EventEmitter memory leak detected. 11 stored listeners added. Use emitter.setMaxListeners() to increase limit.
W20170911-09:53:54.803(5.5)? (STDERR) Trace
W20170911-09:53:54.804(5.5)? (STDERR)     at EventEmitter.addListener (events.js:239:17)
W20170911-09:53:54.804(5.5)? (STDERR)     at EventEmitter.FS.Collection (packages/cfs_collection.js:173:18)
W20170911-09:53:54.805(5.5)? (STDERR)     at meteorInstall.server.offersImagesS3.js (server/offersImagesS3.js:10:17)
W20170911-09:53:54.806(5.5)? (STDERR)     at fileEvaluate (packages/modules-runtime.js:197:9)
W20170911-09:53:54.806(5.5)? (STDERR)     at require (packages/modules-runtime.js:120:16)
W20170911-09:53:54.807(5.5)? (STDERR)     at /home/iassureit-21/iAssureIT/meteor/rightnxt/.meteor/local/build/programs/server/app/app.js:11241:1
W20170911-09:53:54.809(5.5)? (STDERR)     at /home/iassureit-21/iAssureIT/meteor/rightnxt/.meteor/local/build/programs/server/boot.js:303:34
W20170911-09:53:54.810(5.5)? (STDERR)     at Array.forEach (native)
W20170911-09:53:54.810(5.5)? (STDERR)     at Function._.each._.forEach (/home/iassureit-21/.meteor/packages/meteor-tool/.1.4.4_3.1dgsj0t++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20170911-09:53:54.811(5.5)? (STDERR)     at /home/iassureit-21/iAssureIT/meteor/rightnxt/.meteor/local/build/programs/server/boot.js:128:5
W20170911-09:53:54.812(5.5)? (STDERR) (node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
W20170911-09:53:54.824(5.5)? (STDERR) Trace
W20170911-09:53:54.824(5.5)? (STDERR)     at EventEmitter.addListener (events.js:239:17)
W20170911-09:53:54.825(5.5)? (STDERR)     at EventEmitter.FS.Collection (packages/cfs_collection.js:183:18)
W20170911-09:53:54.826(5.5)? (STDERR)     at meteorInstall.server.offersImagesS3.js (server/offersImagesS3.js:10:17)
W20170911-09:53:54.827(5.5)? (STDERR)     at fileEvaluate (packages/modules-runtime.js:197:9)
W20170911-09:53:54.828(5.5)? (STDERR)     at require (packages/modules-runtime.js:120:16)
W20170911-09:53:54.829(5.5)? (STDERR)     at /home/iassureit-21/iAssureIT/meteor/rightnxt/.meteor/local/build/programs/server/app/app.js:11241:1
W20170911-09:53:54.830(5.5)? (STDERR)     at /home/iassureit-21/iAssureIT/meteor/rightnxt/.meteor/local/build/programs/server/boot.js:303:34
W20170911-09:53:54.830(5.5)? (STDERR)     at Array.forEach (native)
W20170911-09:53:54.832(5.5)? (STDERR)     at Function._.each._.forEach (/home/iassureit-21/.meteor/packages/meteor-tool/.1.4.4_3.1dgsj0t++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20170911-09:53:54.832(5.5)? (STDERR)     at /home/iassureit-21/iAssureIT/meteor/rightnxt/.meteor/local/build/programs/server/boot.js:128:5
I20170911-09:53:55.130(5.5)? ** You are using the appcache package but the total size of the
I20170911-09:53:55.131(5.5)? ** cached resources is 99.8MB.
I20170911-09:53:55.131(5.5)? **
I20170911-09:53:55.132(5.5)? ** This is over the recommended maximum of 5 MB and may break your
I20170911-09:53:55.133(5.5)? ** app in some browsers! See http://docs.meteor.com/#appcache
I20170911-09:53:55.134(5.5)? ** for more information and fixes.
I20170911-09:53:55.135(5.5)? 
=> Meteor server restarted
I20170911-09:53:56.650(5.5)? [FilesCollection] [find(undefined)]
I20170911-09:54:20.019(5.5)? [FilesCollection] [find(undefined)]
I20170911-09:54:30.211(5.5)? [FilesCollection] [Write Method] [DDP] Got #1/4 chunks, dst: SampleVideo_1280x720_1mb.mp4
I20170911-09:54:30.267(5.5)? [FilesCollection] [Write Method] [DDP] Got #2/4 chunks, dst: SampleVideo_1280x720_1mb.mp4
I20170911-09:54:30.326(5.5)? [FilesCollection] [Write Method] [DDP] Got #3/4 chunks, dst: SampleVideo_1280x720_1mb.mp4
I20170911-09:54:30.334(5.5)? [FilesCollection] [Write Method] [DDP] Got #4/4 chunks, dst: SampleVideo_1280x720_1mb.mp4
I20170911-09:54:30.340(5.5)? [FilesCollection] [Write Method] [DDP] Got #-1/4 chunks, dst: SampleVideo_1280x720_1mb.mp4
I20170911-09:54:30.345(5.5)? [FilesCollection] [Write Method] [finishUpload] -> bizVideos/rJW4fgQMFTj9vpuBg.mp4
I20170911-09:54:32.152(5.5)? [FilesCollection] [findOne("rJW4fgQMFTj9vpuBg")]
I20170911-09:54:32.162(5.5)? [FilesCollection] [download(/cdn/storage/bussVideo/rJW4fgQMFTj9vpuBg/original/rJW4fgQMFTj9vpuBg.mp4?play=true, original)]
I20170911-09:54:32.168(5.5)? [FilesCollection] [download(bizVideos/rJW4fgQMFTj9vpuBg.mp4, original)] [206]
I20170911-09:54:32.194(5.5)? [FilesCollection] [findOne("rJW4fgQMFTj9vpuBg")]
I20170911-09:54:32.201(5.5)? [FilesCollection] [download(/cdn/storage/bussVideo/rJW4fgQMFTj9vpuBg/original/rJW4fgQMFTj9vpuBg.mp4?play=true, original)]
I20170911-09:54:32.204(5.5)? [FilesCollection] [download(bizVideos/rJW4fgQMFTj9vpuBg.mp4, original)] [206]
I20170911-09:54:32.243(5.5)? [FilesCollection] [findOne("rJW4fgQMFTj9vpuBg")]
I20170911-09:54:32.249(5.5)? [FilesCollection] [download(/cdn/storage/bussVideo/rJW4fgQMFTj9vpuBg/original/rJW4fgQMFTj9vpuBg.mp4?play=true, original)]
I20170911-09:54:32.249(5.5)? [FilesCollection] [download(bizVideos/rJW4fgQMFTj9vpuBg.mp4, original)] [206]
I20170911-09:54:32.262(5.5)? [FilesCollection] [findOne("rJW4fgQMFTj9vpuBg")]
I20170911-09:54:32.266(5.5)? [FilesCollection] [download(/cdn/storage/bussVideo/rJW4fgQMFTj9vpuBg/original/rJW4fgQMFTj9vpuBg.mp4?play=true, original)]
I20170911-09:54:32.272(5.5)? [FilesCollection] [download(bizVideos/rJW4fgQMFTj9vpuBg.mp4, original)] [206]
I20170911-09:54:32.297(5.5)? [FilesCollection] [findOne("rJW4fgQMFTj9vpuBg")]
I20170911-09:54:32.300(5.5)? [FilesCollection] [download(/cdn/storage/bussVideo/rJW4fgQMFTj9vpuBg/original/rJW4fgQMFTj9vpuBg.mp4?play=true, original)]
I20170911-09:54:32.303(5.5)? [FilesCollection] [download(bizVideos/rJW4fgQMFTj9vpuBg.mp4, original)] [206]
I20170911-09:54:49.296(5.5)? [FilesCollection] [unlink(rJW4fgQMFTj9vpuBg, original)]
I20170911-09:55:46.763(5.5)? [FilesCollection] [findOne("rJW4fgQMFTj9vpuBg")]
I20170911-09:55:46.765(5.5)? [FilesCollection] [download(/cdn/storage/bussVideo/rJW4fgQMFTj9vpuBg/original/rJW4fgQMFTj9vpuBg.mp4?play=true, original)]
W20170911-09:55:48.726(5.5)? (STDERR) /home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/request.js:31
W20170911-09:55:48.727(5.5)? (STDERR)             throw err;
W20170911-09:55:48.728(5.5)? (STDERR)             ^
W20170911-09:55:48.729(5.5)? (STDERR) 
W20170911-09:55:48.729(5.5)? (STDERR) TypeError: fileColl.serve is not a function
W20170911-09:55:48.730(5.5)? (STDERR)     at Response.<anonymous> (imports/videoUploadserver/videoUpload.js:161:38)
W20170911-09:55:48.730(5.5)? (STDERR)     at Request.<anonymous> (/home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/request.js:364:18)
W20170911-09:55:48.731(5.5)? (STDERR)     at Request.callListeners (/home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/sequential_executor.js:105:20)
W20170911-09:55:48.732(5.5)? (STDERR)     at Request.emit (/home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
W20170911-09:55:48.732(5.5)? (STDERR)     at Request.emit (/home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/request.js:683:14)
W20170911-09:55:48.733(5.5)? (STDERR)     at Request.transition (/home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/request.js:22:10)
W20170911-09:55:48.734(5.5)? (STDERR)     at AcceptorStateMachine.runTo (/home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/state_machine.js:14:12)
W20170911-09:55:48.735(5.5)? (STDERR)     at /home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/state_machine.js:26:10
W20170911-09:55:48.736(5.5)? (STDERR)     at Request.<anonymous> (/home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/request.js:38:9)
W20170911-09:55:48.737(5.5)? (STDERR)     at Request.<anonymous> (/home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/request.js:685:12)
=> Exited with code: 1
W20170911-09:56:03.170(5.5)? (STDERR) (node) warning: possible EventEmitter memory leak detected. 11 stored listeners added. Use emitter.setMaxListeners() to increase limit.
W20170911-09:56:06.088(5.5)? (STDERR) Trace
W20170911-09:56:06.088(5.5)? (STDERR)     at EventEmitter.addListener (events.js:239:17)
W20170911-09:56:06.089(5.5)? (STDERR)     at EventEmitter.FS.Collection (packages/cfs_collection.js:173:18)
W20170911-09:56:06.090(5.5)? (STDERR)     at meteorInstall.server.offersImagesS3.js (server/offersImagesS3.js:10:17)
W20170911-09:56:06.091(5.5)? (STDERR)     at fileEvaluate (packages/modules-runtime.js:197:9)
W20170911-09:56:06.092(5.5)? (STDERR)     at require (packages/modules-runtime.js:120:16)
W20170911-09:56:06.094(5.5)? (STDERR)     at /home/iassureit-21/iAssureIT/meteor/rightnxt/.meteor/local/build/programs/server/app/app.js:11241:1
W20170911-09:56:06.095(5.5)? (STDERR)     at /home/iassureit-21/iAssureIT/meteor/rightnxt/.meteor/local/build/programs/server/boot.js:303:34
W20170911-09:56:06.096(5.5)? (STDERR)     at Array.forEach (native)
W20170911-09:56:06.098(5.5)? (STDERR)     at Function._.each._.forEach (/home/iassureit-21/.meteor/packages/meteor-tool/.1.4.4_3.1dgsj0t++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20170911-09:56:06.103(5.5)? (STDERR)     at /home/iassureit-21/iAssureIT/meteor/rightnxt/.meteor/local/build/programs/server/boot.js:128:5
W20170911-09:56:06.114(5.5)? (STDERR) (node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
W20170911-09:56:06.123(5.5)? (STDERR) Trace
W20170911-09:56:06.125(5.5)? (STDERR)     at EventEmitter.addListener (events.js:239:17)
W20170911-09:56:06.128(5.5)? (STDERR)     at EventEmitter.FS.Collection (packages/cfs_collection.js:183:18)
W20170911-09:56:06.128(5.5)? (STDERR)     at meteorInstall.server.offersImagesS3.js (server/offersImagesS3.js:10:17)
W20170911-09:56:06.129(5.5)? (STDERR)     at fileEvaluate (packages/modules-runtime.js:197:9)
W20170911-09:56:06.130(5.5)? (STDERR)     at require (packages/modules-runtime.js:120:16)
W20170911-09:56:06.131(5.5)? (STDERR)     at /home/iassureit-21/iAssureIT/meteor/rightnxt/.meteor/local/build/programs/server/app/app.js:11241:1
W20170911-09:56:06.132(5.5)? (STDERR)     at /home/iassureit-21/iAssureIT/meteor/rightnxt/.meteor/local/build/programs/server/boot.js:303:34
W20170911-09:56:06.132(5.5)? (STDERR)     at Array.forEach (native)
W20170911-09:56:06.133(5.5)? (STDERR)     at Function._.each._.forEach (/home/iassureit-21/.meteor/packages/meteor-tool/.1.4.4_3.1dgsj0t++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20170911-09:56:06.134(5.5)? (STDERR)     at /home/iassureit-21/iAssureIT/meteor/rightnxt/.meteor/local/build/programs/server/boot.js:128:5
I20170911-09:56:06.705(5.5)? ** You are using the appcache package but the total size of the
I20170911-09:56:06.706(5.5)? ** cached resources is 99.8MB.
I20170911-09:56:06.707(5.5)? **
I20170911-09:56:06.708(5.5)? ** This is over the recommended maximum of 5 MB and may break your
I20170911-09:56:06.708(5.5)? ** app in some browsers! See http://docs.meteor.com/#appcache
I20170911-09:56:06.709(5.5)? ** for more information and fixes.
I20170911-09:56:06.709(5.5)? 
=> Meteor server restarted
I20170911-09:56:06.953(5.5)? [FilesCollection] [findOne("rJW4fgQMFTj9vpuBg")]
I20170911-09:56:06.960(5.5)? [FilesCollection] [download(/cdn/storage/bussVideo/rJW4fgQMFTj9vpuBg/original/rJW4fgQMFTj9vpuBg.mp4?play=true, original)]
W20170911-09:56:07.477(5.5)? (STDERR) /home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/request.js:31
W20170911-09:56:07.478(5.5)? (STDERR)             throw err;
W20170911-09:56:07.478(5.5)? (STDERR)             ^
W20170911-09:56:07.479(5.5)? (STDERR) 
W20170911-09:56:07.479(5.5)? (STDERR) TypeError: fileColl.serve is not a function
W20170911-09:56:07.480(5.5)? (STDERR)     at Response.<anonymous> (imports/videoUploadserver/videoUpload.js:161:38)
W20170911-09:56:07.480(5.5)? (STDERR)     at Request.<anonymous> (/home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/request.js:364:18)
W20170911-09:56:07.480(5.5)? (STDERR)     at Request.callListeners (/home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/sequential_executor.js:105:20)
W20170911-09:56:07.482(5.5)? (STDERR)     at Request.emit (/home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
W20170911-09:56:07.483(5.5)? (STDERR)     at Request.emit (/home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/request.js:683:14)
W20170911-09:56:07.486(5.5)? (STDERR)     at Request.transition (/home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/request.js:22:10)
W20170911-09:56:07.487(5.5)? (STDERR)     at AcceptorStateMachine.runTo (/home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/state_machine.js:14:12)
W20170911-09:56:07.489(5.5)? (STDERR)     at /home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/state_machine.js:26:10
W20170911-09:56:07.490(5.5)? (STDERR)     at Request.<anonymous> (/home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/request.js:38:9)
W20170911-09:56:07.496(5.5)? (STDERR)     at Request.<anonymous> (/home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/request.js:685:12)
=> Exited with code: 1
W20170911-09:56:21.500(5.5)? (STDERR) (node) warning: possible EventEmitter memory leak detected. 11 stored listeners added. Use emitter.setMaxListeners() to increase limit.
W20170911-09:56:23.645(5.5)? (STDERR) Trace
W20170911-09:56:23.646(5.5)? (STDERR)     at EventEmitter.addListener (events.js:239:17)
W20170911-09:56:23.647(5.5)? (STDERR)     at EventEmitter.FS.Collection (packages/cfs_collection.js:173:18)
W20170911-09:56:23.647(5.5)? (STDERR)     at meteorInstall.server.offersImagesS3.js (server/offersImagesS3.js:10:17)
W20170911-09:56:23.648(5.5)? (STDERR)     at fileEvaluate (packages/modules-runtime.js:197:9)
W20170911-09:56:23.649(5.5)? (STDERR)     at require (packages/modules-runtime.js:120:16)
W20170911-09:56:23.652(5.5)? (STDERR)     at /home/iassureit-21/iAssureIT/meteor/rightnxt/.meteor/local/build/programs/server/app/app.js:11241:1
W20170911-09:56:23.654(5.5)? (STDERR)     at /home/iassureit-21/iAssureIT/meteor/rightnxt/.meteor/local/build/programs/server/boot.js:303:34
W20170911-09:56:23.663(5.5)? (STDERR)     at Array.forEach (native)
W20170911-09:56:23.665(5.5)? (STDERR)     at Function._.each._.forEach (/home/iassureit-21/.meteor/packages/meteor-tool/.1.4.4_3.1dgsj0t++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20170911-09:56:23.667(5.5)? (STDERR)     at /home/iassureit-21/iAssureIT/meteor/rightnxt/.meteor/local/build/programs/server/boot.js:128:5
W20170911-09:56:23.670(5.5)? (STDERR) (node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
W20170911-09:56:23.696(5.5)? (STDERR) Trace
W20170911-09:56:23.699(5.5)? (STDERR)     at EventEmitter.addListener (events.js:239:17)
W20170911-09:56:23.701(5.5)? (STDERR)     at EventEmitter.FS.Collection (packages/cfs_collection.js:183:18)
W20170911-09:56:23.706(5.5)? (STDERR)     at meteorInstall.server.offersImagesS3.js (server/offersImagesS3.js:10:17)
W20170911-09:56:23.707(5.5)? (STDERR)     at fileEvaluate (packages/modules-runtime.js:197:9)
W20170911-09:56:23.707(5.5)? (STDERR)     at require (packages/modules-runtime.js:120:16)
W20170911-09:56:23.712(5.5)? (STDERR)     at /home/iassureit-21/iAssureIT/meteor/rightnxt/.meteor/local/build/programs/server/app/app.js:11241:1
W20170911-09:56:23.717(5.5)? (STDERR)     at /home/iassureit-21/iAssureIT/meteor/rightnxt/.meteor/local/build/programs/server/boot.js:303:34
W20170911-09:56:23.717(5.5)? (STDERR)     at Array.forEach (native)
W20170911-09:56:23.721(5.5)? (STDERR)     at Function._.each._.forEach (/home/iassureit-21/.meteor/packages/meteor-tool/.1.4.4_3.1dgsj0t++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20170911-09:56:23.722(5.5)? (STDERR)     at /home/iassureit-21/iAssureIT/meteor/rightnxt/.meteor/local/build/programs/server/boot.js:128:5
I20170911-09:56:24.427(5.5)? ** You are using the appcache package but the total size of the
I20170911-09:56:24.428(5.5)? ** cached resources is 99.8MB.
I20170911-09:56:24.429(5.5)? **
I20170911-09:56:24.429(5.5)? ** This is over the recommended maximum of 5 MB and may break your
I20170911-09:56:24.430(5.5)? ** app in some browsers! See http://docs.meteor.com/#appcache
I20170911-09:56:24.430(5.5)? ** for more information and fixes.
I20170911-09:56:24.431(5.5)? 
=> Meteor server restarted
I20170911-09:56:31.747(5.5)? [FilesCollection] [find(undefined)]

client Side output:

2:3000/cdn/storage/bussVideo/rJW4fgQMFTj9vpuBg/original/rJW4fgQMFTj9vpuBg.mp4?play=true Failed to load resource: the server responded with a status of 503 (Service Unavailable)
dr-dimitru commented 7 years ago

@anaghakomawar thank you.

  1. Are any CFS packages installed? If so, remove, if you're not using any of them.
  2. AppCache is deprecated.
  3. Could you please console.log(fileColl) right before calling .serve() method, looks like context is missed. Do console.log(fileColl) before this line:
    console.log(fileColl);
    fileColl.serve(http, fileRef, fileRef.versions[version], version, dataStream);
anaghakomawar commented 7 years ago

@dr-dimitru thank you.

  1. I am using CFS package for images. If I succeed in Meteor-Files. I might remove it.
  2. AppCache - thanks for information.
  3. Following Output I got on Server:
    I20170911-16:57:49.145(5.5)? [FilesCollection] [find(undefined)]
    I20170911-16:57:52.695(5.5)? [FilesCollection] [find(undefined)]
    I20170911-16:58:11.847(5.5)? [FilesCollection] [Write Method] [DDP] Got #1/4 chunks, dst: SampleVideo_1280x720_1mb.mp4
    I20170911-16:58:11.898(5.5)? [FilesCollection] [Write Method] [DDP] Got #2/4 chunks, dst: SampleVideo_1280x720_1mb.mp4
    I20170911-16:58:11.907(5.5)? [FilesCollection] [Write Method] [DDP] Got #4/4 chunks, dst: SampleVideo_1280x720_1mb.mp4
    I20170911-16:58:11.952(5.5)? [FilesCollection] [Write Method] [DDP] Got #3/4 chunks, dst: SampleVideo_1280x720_1mb.mp4
    I20170911-16:58:11.966(5.5)? [FilesCollection] [Write Method] [DDP] Got #-1/4 chunks, dst: SampleVideo_1280x720_1mb.mp4
    I20170911-16:58:12.020(5.5)? [FilesCollection] [Write Method] [finishUpload] -> bizVideos/oMsgbCpS6Ptopmb9Q.mp4
    I20170911-16:58:14.172(5.5)? [FilesCollection] [findOne("oMsgbCpS6Ptopmb9Q")]
    I20170911-16:58:14.183(5.5)? [FilesCollection] [download(/cdn/storage/bussVideo/oMsgbCpS6Ptopmb9Q/original/oMsgbCpS6Ptopmb9Q.mp4?play=true, original)]
    I20170911-16:58:14.268(5.5)? [FilesCollection] [download(bizVideos/oMsgbCpS6Ptopmb9Q.mp4, original)] [206]
    I20170911-16:58:14.296(5.5)? [FilesCollection] [findOne("oMsgbCpS6Ptopmb9Q")]
    I20170911-16:58:14.300(5.5)? [FilesCollection] [download(/cdn/storage/bussVideo/oMsgbCpS6Ptopmb9Q/original/oMsgbCpS6Ptopmb9Q.mp4?play=true, original)]
    I20170911-16:58:14.305(5.5)? [FilesCollection] [download(bizVideos/oMsgbCpS6Ptopmb9Q.mp4, original)] [206]
    I20170911-16:58:14.338(5.5)? [FilesCollection] [findOne("oMsgbCpS6Ptopmb9Q")]
    I20170911-16:58:14.341(5.5)? [FilesCollection] [download(/cdn/storage/bussVideo/oMsgbCpS6Ptopmb9Q/original/oMsgbCpS6Ptopmb9Q.mp4?play=true, original)]
    I20170911-16:58:14.345(5.5)? [FilesCollection] [download(bizVideos/oMsgbCpS6Ptopmb9Q.mp4, original)] [206]
    I20170911-16:58:14.374(5.5)? [FilesCollection] [findOne("oMsgbCpS6Ptopmb9Q")]
    I20170911-16:58:14.377(5.5)? [FilesCollection] [download(/cdn/storage/bussVideo/oMsgbCpS6Ptopmb9Q/original/oMsgbCpS6Ptopmb9Q.mp4?play=true, original)]
    I20170911-16:58:14.384(5.5)? [FilesCollection] [download(bizVideos/oMsgbCpS6Ptopmb9Q.mp4, original)] [206]
    I20170911-16:58:14.402(5.5)? [FilesCollection] [findOne("oMsgbCpS6Ptopmb9Q")]
    I20170911-16:58:14.410(5.5)? [FilesCollection] [download(/cdn/storage/bussVideo/oMsgbCpS6Ptopmb9Q/original/oMsgbCpS6Ptopmb9Q.mp4?play=true, original)]
    I20170911-16:58:14.412(5.5)? [FilesCollection] [download(bizVideos/oMsgbCpS6Ptopmb9Q.mp4, original)] [206]
    I20170911-16:58:30.064(5.5)? [FilesCollection] [unlink(oMsgbCpS6Ptopmb9Q, original)]
    I20170911-17:00:00.945(5.5)? [FilesCollection] [find(undefined)]
    I20170911-17:00:01.566(5.5)? [FilesCollection] [findOne("oMsgbCpS6Ptopmb9Q")]
    I20170911-17:00:01.566(5.5)? [FilesCollection] [download(/cdn/storage/bussVideo/oMsgbCpS6Ptopmb9Q/original/oMsgbCpS6Ptopmb9Q.mp4?play=true, original)]
    I20170911-17:00:01.583(5.5)? [FilesCollection] [findOne("oMsgbCpS6Ptopmb9Q")]
    I20170911-17:00:01.586(5.5)? [FilesCollection] [download(/cdn/storage/bussVideo/oMsgbCpS6Ptopmb9Q/original/oMsgbCpS6Ptopmb9Q.mp4?play=true, original)]
    W20170911-17:00:12.153(5.5)? (STDERR) /home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/request.js:31
    W20170911-17:00:12.154(5.5)? (STDERR)             throw err;
    W20170911-17:00:12.154(5.5)? (STDERR)             ^
    W20170911-17:00:12.155(5.5)? (STDERR) 
    W20170911-17:00:12.156(5.5)? (STDERR) TypeError: fileColl.serve is not a function
    W20170911-17:00:12.159(5.5)? (STDERR)     at Response.<anonymous> (imports/videoUploadserver/videoUpload.js:161:38)
    W20170911-17:00:12.164(5.5)? (STDERR)     at Request.<anonymous> (/home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/request.js:364:18)
    W20170911-17:00:12.169(5.5)? (STDERR)     at Request.callListeners (/home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/sequential_executor.js:105:20)
    W20170911-17:00:12.170(5.5)? (STDERR)     at Request.emit (/home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
    W20170911-17:00:12.171(5.5)? (STDERR)     at Request.emit (/home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/request.js:683:14)
    W20170911-17:00:12.171(5.5)? (STDERR)     at Request.transition (/home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/request.js:22:10)
    W20170911-17:00:12.171(5.5)? (STDERR)     at AcceptorStateMachine.runTo (/home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/state_machine.js:14:12)
    W20170911-17:00:12.172(5.5)? (STDERR)     at /home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/state_machine.js:26:10
    W20170911-17:00:12.172(5.5)? (STDERR)     at Request.<anonymous> (/home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/request.js:38:9)
    W20170911-17:00:12.173(5.5)? (STDERR)     at Request.<anonymous> (/home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/request.js:685:12)
    => Exited with code: 1
    W20170911-17:00:22.224(5.5)? (STDERR) (node) warning: possible EventEmitter memory leak detected. 11 stored listeners added. Use emitter.setMaxListeners() to increase limit.
    W20170911-17:00:23.903(5.5)? (STDERR) Trace
    W20170911-17:00:23.904(5.5)? (STDERR)     at EventEmitter.addListener (events.js:239:17)
    W20170911-17:00:23.905(5.5)? (STDERR)     at EventEmitter.FS.Collection (packages/cfs_collection.js:173:18)
    W20170911-17:00:23.906(5.5)? (STDERR)     at meteorInstall.server.offersImagesS3.js (server/offersImagesS3.js:10:17)
    W20170911-17:00:23.907(5.5)? (STDERR)     at fileEvaluate (packages/modules-runtime.js:197:9)
    W20170911-17:00:23.908(5.5)? (STDERR)     at require (packages/modules-runtime.js:120:16)
    W20170911-17:00:23.909(5.5)? (STDERR)     at /home/iassureit-21/iAssureIT/meteor/rightnxt/.meteor/local/build/programs/server/app/app.js:11241:1
    W20170911-17:00:23.911(5.5)? (STDERR)     at /home/iassureit-21/iAssureIT/meteor/rightnxt/.meteor/local/build/programs/server/boot.js:303:34
    W20170911-17:00:23.913(5.5)? (STDERR)     at Array.forEach (native)
    W20170911-17:00:23.914(5.5)? (STDERR)     at Function._.each._.forEach (/home/iassureit-21/.meteor/packages/meteor-tool/.1.4.4_3.1dgsj0t++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
    W20170911-17:00:23.921(5.5)? (STDERR)     at /home/iassureit-21/iAssureIT/meteor/rightnxt/.meteor/local/build/programs/server/boot.js:128:5
    W20170911-17:00:23.924(5.5)? (STDERR) (node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
    W20170911-17:00:23.941(5.5)? (STDERR) Trace
    W20170911-17:00:23.942(5.5)? (STDERR)     at EventEmitter.addListener (events.js:239:17)
    W20170911-17:00:23.943(5.5)? (STDERR)     at EventEmitter.FS.Collection (packages/cfs_collection.js:183:18)
    W20170911-17:00:23.944(5.5)? (STDERR)     at meteorInstall.server.offersImagesS3.js (server/offersImagesS3.js:10:17)
    W20170911-17:00:23.951(5.5)? (STDERR)     at fileEvaluate (packages/modules-runtime.js:197:9)
    W20170911-17:00:23.951(5.5)? (STDERR)     at require (packages/modules-runtime.js:120:16)
    W20170911-17:00:23.952(5.5)? (STDERR)     at /home/iassureit-21/iAssureIT/meteor/rightnxt/.meteor/local/build/programs/server/app/app.js:11241:1
    W20170911-17:00:23.953(5.5)? (STDERR)     at /home/iassureit-21/iAssureIT/meteor/rightnxt/.meteor/local/build/programs/server/boot.js:303:34
    W20170911-17:00:23.953(5.5)? (STDERR)     at Array.forEach (native)
    W20170911-17:00:23.954(5.5)? (STDERR)     at Function._.each._.forEach (/home/iassureit-21/.meteor/packages/meteor-tool/.1.4.4_3.1dgsj0t++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
    W20170911-17:00:23.955(5.5)? (STDERR)     at /home/iassureit-21/iAssureIT/meteor/rightnxt/.meteor/local/build/programs/server/boot.js:128:5
    I20170911-17:00:24.302(5.5)? ** You are using the appcache package but the total size of the
    I20170911-17:00:24.302(5.5)? ** cached resources is 99.8MB.
    I20170911-17:00:24.311(5.5)? **
    I20170911-17:00:24.312(5.5)? ** This is over the recommended maximum of 5 MB and may break your
    I20170911-17:00:24.318(5.5)? ** app in some browsers! See http://docs.meteor.com/#appcache
    I20170911-17:00:24.319(5.5)? ** for more information and fixes.
    I20170911-17:00:24.320(5.5)? 
    => Meteor server restarted
    I20170911-17:00:26.062(5.5)? [FilesCollection] [find(undefined)]
dr-dimitru commented 7 years ago
  1. Don't see any output of console.log(fileColl); - please make sure Meteor picked those changes, or use warn - console.warn(fileColl); sot it will be coloured and you won't miss it.
  2. Feels like CFS interfere with Meteor-Files, could you remove it temporary?
anaghakomawar commented 7 years ago

@dr-dimitru Thanks...

Sorry this is huge project, so its difficult to remove the cfs package. I will implement in some other temporary project, and let you know the things if required. Sorry I changed the code in other project, and gave you the output of current project. Anyways you can check the output now:

I20170911-17:27:51.567(5.5)? [FilesCollection] [find(undefined)]
I20170911-17:27:54.763(5.5)? [FilesCollection] [find(undefined)]
I20170911-17:28:06.790(5.5)? [FilesCollection] [Write Method] [DDP] Got #1/4 chunks, dst: SampleVideo_1280x720_1mb.mp4
I20170911-17:28:06.827(5.5)? [FilesCollection] [Write Method] [DDP] Got #2/4 chunks, dst: SampleVideo_1280x720_1mb.mp4
I20170911-17:28:06.845(5.5)? [FilesCollection] [Write Method] [DDP] Got #4/4 chunks, dst: SampleVideo_1280x720_1mb.mp4
I20170911-17:28:06.873(5.5)? [FilesCollection] [Write Method] [DDP] Got #3/4 chunks, dst: SampleVideo_1280x720_1mb.mp4
I20170911-17:28:06.883(5.5)? [FilesCollection] [Write Method] [DDP] Got #-1/4 chunks, dst: SampleVideo_1280x720_1mb.mp4
I20170911-17:28:06.893(5.5)? [FilesCollection] [Write Method] [finishUpload] -> bizVideos/Wsr3PznKGAjCQZYXk.mp4
I20170911-17:28:08.735(5.5)? [FilesCollection] [findOne("Wsr3PznKGAjCQZYXk")]
I20170911-17:28:08.742(5.5)? [FilesCollection] [download(/cdn/storage/bussVideo/Wsr3PznKGAjCQZYXk/original/Wsr3PznKGAjCQZYXk.mp4?play=true, original)]
I20170911-17:28:08.749(5.5)? [FilesCollection] [download(bizVideos/Wsr3PznKGAjCQZYXk.mp4, original)] [206]
I20170911-17:28:08.769(5.5)? [FilesCollection] [findOne("Wsr3PznKGAjCQZYXk")]
I20170911-17:28:08.777(5.5)? [FilesCollection] [download(/cdn/storage/bussVideo/Wsr3PznKGAjCQZYXk/original/Wsr3PznKGAjCQZYXk.mp4?play=true, original)]
I20170911-17:28:08.785(5.5)? [FilesCollection] [download(bizVideos/Wsr3PznKGAjCQZYXk.mp4, original)] [206]
I20170911-17:28:08.793(5.5)? [FilesCollection] [findOne("Wsr3PznKGAjCQZYXk")]
I20170911-17:28:08.804(5.5)? [FilesCollection] [download(/cdn/storage/bussVideo/Wsr3PznKGAjCQZYXk/original/Wsr3PznKGAjCQZYXk.mp4?play=true, original)]
I20170911-17:28:08.815(5.5)? [FilesCollection] [download(bizVideos/Wsr3PznKGAjCQZYXk.mp4, original)] [206]
I20170911-17:28:08.837(5.5)? [FilesCollection] [findOne("Wsr3PznKGAjCQZYXk")]
I20170911-17:28:08.850(5.5)? [FilesCollection] [download(/cdn/storage/bussVideo/Wsr3PznKGAjCQZYXk/original/Wsr3PznKGAjCQZYXk.mp4?play=true, original)]
I20170911-17:28:08.855(5.5)? [FilesCollection] [download(bizVideos/Wsr3PznKGAjCQZYXk.mp4, original)] [206]
I20170911-17:28:08.872(5.5)? [FilesCollection] [findOne("Wsr3PznKGAjCQZYXk")]
I20170911-17:28:08.876(5.5)? [FilesCollection] [download(/cdn/storage/bussVideo/Wsr3PznKGAjCQZYXk/original/Wsr3PznKGAjCQZYXk.mp4?play=true, original)]
I20170911-17:28:08.877(5.5)? [FilesCollection] [download(bizVideos/Wsr3PznKGAjCQZYXk.mp4, original)] [206]
I20170911-17:28:23.955(5.5)? [FilesCollection] [unlink(Wsr3PznKGAjCQZYXk, original)]
I20170911-17:29:38.316(5.5)? [FilesCollection] [find(undefined)]
I20170911-17:31:12.269(5.5)? [FilesCollection] [find(undefined)]
I20170911-17:31:12.835(5.5)? [FilesCollection] [findOne("Wsr3PznKGAjCQZYXk")]
I20170911-17:31:12.837(5.5)? [FilesCollection] [download(/cdn/storage/bussVideo/Wsr3PznKGAjCQZYXk/original/Wsr3PznKGAjCQZYXk.mp4?play=true, original)]
I20170911-17:31:12.858(5.5)? [FilesCollection] [findOne("Wsr3PznKGAjCQZYXk")]
I20170911-17:31:12.889(5.5)? [FilesCollection] [download(/cdn/storage/bussVideo/Wsr3PznKGAjCQZYXk/original/Wsr3PznKGAjCQZYXk.mp4?play=true, original)]
W20170911-17:31:26.380(5.5)? (STDERR) fileColl  FilesCollection {
W20170911-17:31:26.383(5.5)? (STDERR)   domain: null,
W20170911-17:31:26.383(5.5)? (STDERR)   _events: { handleUpload: [Function], finishUpload: [Function] },
W20170911-17:31:26.386(5.5)? (STDERR)   _eventsCount: 2,
W20170911-17:31:26.387(5.5)? (STDERR)   _maxListeners: undefined,
W20170911-17:31:26.387(5.5)? (STDERR)   storagePath: 'bizVideos',
W20170911-17:31:26.388(5.5)? (STDERR)   collectionName: 'bussVideo',
W20170911-17:31:26.389(5.5)? (STDERR)   downloadRoute: '/cdn/storage',
W20170911-17:31:26.392(5.5)? (STDERR)   schema: 
W20170911-17:31:26.392(5.5)? (STDERR)    { size: { type: [Function: Number] },
W20170911-17:31:26.396(5.5)? (STDERR)      name: { type: [Function: String] },
W20170911-17:31:26.397(5.5)? (STDERR)      type: { type: [Function: String] },
W20170911-17:31:26.398(5.5)? (STDERR)      path: { type: [Function: String] },
W20170911-17:31:26.401(5.5)? (STDERR)      isVideo: { type: [Function: Boolean] },
W20170911-17:31:26.402(5.5)? (STDERR)      isAudio: { type: [Function: Boolean] },
W20170911-17:31:26.403(5.5)? (STDERR)      isImage: { type: [Function: Boolean] },
W20170911-17:31:26.404(5.5)? (STDERR)      isText: { type: [Function: Boolean] },
W20170911-17:31:26.412(5.5)? (STDERR)      isJSON: { type: [Function: Boolean] },
W20170911-17:31:26.415(5.5)? (STDERR)      _prefix: { type: [Function: String] },
W20170911-17:31:26.419(5.5)? (STDERR)      extension: { type: [Function: String], optional: true },
W20170911-17:31:26.420(5.5)? (STDERR)      _storagePath: { type: [Function: String] },
W20170911-17:31:26.423(5.5)? (STDERR)      _downloadRoute: { type: [Function: String] },
W20170911-17:31:26.423(5.5)? (STDERR)      _collectionName: { type: [Function: String] },
W20170911-17:31:26.424(5.5)? (STDERR)      public: { type: [Function: Boolean], optional: true },
W20170911-17:31:26.427(5.5)? (STDERR)      meta: { type: [Function: Object], blackbox: true, optional: true },
W20170911-17:31:26.428(5.5)? (STDERR)      userId: { type: [Function: String], optional: true },
W20170911-17:31:26.433(5.5)? (STDERR)      updatedAt: { type: [Function: Date], autoValue: [Function] },
W20170911-17:31:26.433(5.5)? (STDERR)      versions: { type: [Function: Object], blackbox: true } },
W20170911-17:31:26.436(5.5)? (STDERR)   chunkSize: 1048576,
W20170911-17:31:26.437(5.5)? (STDERR)   namingFunction: false,
W20170911-17:31:26.437(5.5)? (STDERR)   debug: true,
W20170911-17:31:26.438(5.5)? (STDERR)   onbeforeunloadMessage: undefined,
W20170911-17:31:26.439(5.5)? (STDERR)   permissions: 420,
W20170911-17:31:26.439(5.5)? (STDERR)   parentDirPermissions: 493,
W20170911-17:31:26.440(5.5)? (STDERR)   allowClientCode: false,
W20170911-17:31:26.440(5.5)? (STDERR)   onBeforeUpload: false,
W20170911-17:31:26.441(5.5)? (STDERR)   integrityCheck: true,
W20170911-17:31:26.441(5.5)? (STDERR)   protected: false,
W20170911-17:31:26.442(5.5)? (STDERR)   public: false,
W20170911-17:31:26.442(5.5)? (STDERR)   strict: true,
W20170911-17:31:26.443(5.5)? (STDERR)   downloadCallback: false,
W20170911-17:31:26.444(5.5)? (STDERR)   cacheControl: 'public, max-age=31536000, s-maxage=31536000',
W20170911-17:31:26.444(5.5)? (STDERR)   throttle: false,
W20170911-17:31:26.447(5.5)? (STDERR)   onAfterUpload: [Function],
W20170911-17:31:26.447(5.5)? (STDERR)   interceptDownload: [Function],
W20170911-17:31:26.448(5.5)? (STDERR)   onBeforeRemove: false,
W20170911-17:31:26.449(5.5)? (STDERR)   _writableStreams: {},
W20170911-17:31:26.449(5.5)? (STDERR)   cursor: null,
W20170911-17:31:26.450(5.5)? (STDERR)   search: { _id: 'Wsr3PznKGAjCQZYXk' },
W20170911-17:31:26.451(5.5)? (STDERR)   collection: 
W20170911-17:31:26.453(5.5)? (STDERR)    { _makeNewID: [Function],
W20170911-17:31:26.454(5.5)? (STDERR)      _transform: null,
W20170911-17:31:26.454(5.5)? (STDERR)      _connection: 
W20170911-17:31:26.455(5.5)? (STDERR)       { options: [Object],
W20170911-17:31:26.459(5.5)? (STDERR)         onConnectionHook: [Object],
W20170911-17:31:26.459(5.5)? (STDERR)         onMessageHook: [Object],
W20170911-17:31:26.459(5.5)? (STDERR)         publish_handlers: [Object],
W20170911-17:31:26.461(5.5)? (STDERR)         universal_publish_handlers: [Object],
W20170911-17:31:26.461(5.5)? (STDERR)         method_handlers: [Object],
W20170911-17:31:26.463(5.5)? (STDERR)         sessions: [Object],
W20170911-17:31:26.464(5.5)? (STDERR)         stream_server: [Object] },
W20170911-17:31:26.464(5.5)? (STDERR)      _collection: 
W20170911-17:31:26.465(5.5)? (STDERR)       { find: [Function: bound ],
W20170911-17:31:26.465(5.5)? (STDERR)         findOne: [Function: bound ],
W20170911-17:31:26.466(5.5)? (STDERR)         insert: [Function: bound ],
W20170911-17:31:26.466(5.5)? (STDERR)         update: [Function: bound ],
W20170911-17:31:26.467(5.5)? (STDERR)         upsert: [Function: bound ],
W20170911-17:31:26.468(5.5)? (STDERR)         remove: [Function: bound ],
W20170911-17:31:26.468(5.5)? (STDERR)         _ensureIndex: [Function: bound ],
W20170911-17:31:26.468(5.5)? (STDERR)         _dropIndex: [Function: bound ],
W20170911-17:31:26.469(5.5)? (STDERR)         _createCappedCollection: [Function: bound ],
W20170911-17:31:26.470(5.5)? (STDERR)         dropCollection: [Function: bound ],
W20170911-17:31:26.470(5.5)? (STDERR)         rawCollection: [Function: bound ] },
W20170911-17:31:26.471(5.5)? (STDERR)      _name: 'bussVideo',
W20170911-17:31:26.472(5.5)? (STDERR)      _driver: { mongo: [Object] },
W20170911-17:31:26.472(5.5)? (STDERR)      _restricted: false,
W20170911-17:31:26.474(5.5)? (STDERR)      _insecure: undefined,
W20170911-17:31:26.474(5.5)? (STDERR)      _validators: 
W20170911-17:31:26.476(5.5)? (STDERR)       { insert: [Object],
W20170911-17:31:26.477(5.5)? (STDERR)         update: [Object],
W20170911-17:31:26.477(5.5)? (STDERR)         remove: [Object],
W20170911-17:31:26.479(5.5)? (STDERR)         upsert: [Object],
W20170911-17:31:26.479(5.5)? (STDERR)         fetch: [],
W20170911-17:31:26.480(5.5)? (STDERR)         fetchAllFields: false },
W20170911-17:31:26.480(5.5)? (STDERR)      _prefix: '/bussVideo/' },
W20170911-17:31:26.481(5.5)? (STDERR)   currentFile: 
W20170911-17:31:26.482(5.5)? (STDERR)    { _id: 'Wsr3PznKGAjCQZYXk',
W20170911-17:31:26.482(5.5)? (STDERR)      name: 'SampleVideo_1280x720_1mb.mp4',
W20170911-17:31:26.484(5.5)? (STDERR)      extension: 'mp4',
W20170911-17:31:26.485(5.5)? (STDERR)      path: 'bizVideos/Wsr3PznKGAjCQZYXk.mp4',
W20170911-17:31:26.485(5.5)? (STDERR)      meta: {},
W20170911-17:31:26.486(5.5)? (STDERR)      type: 'video/mp4',
W20170911-17:31:26.489(5.5)? (STDERR)      size: 1055736,
W20170911-17:31:26.489(5.5)? (STDERR)      versions: { original: [Object] },
W20170911-17:31:26.492(5.5)? (STDERR)      isVideo: true,
W20170911-17:31:26.494(5.5)? (STDERR)      isAudio: false,
W20170911-17:31:26.494(5.5)? (STDERR)      isImage: false,
W20170911-17:31:26.496(5.5)? (STDERR)      isText: false,
W20170911-17:31:26.496(5.5)? (STDERR)      isJSON: false,
W20170911-17:31:26.498(5.5)? (STDERR)      _prefix: 'c03ef76052782345845306e35fcb39824acae43d85d3e0a94cf7387d5303d37b',
W20170911-17:31:26.498(5.5)? (STDERR)      _storagePath: 'bizVideos',
W20170911-17:31:26.499(5.5)? (STDERR)      _downloadRoute: '/cdn/storage',
W20170911-17:31:26.501(5.5)? (STDERR)      _collectionName: 'bussVideo',
W20170911-17:31:26.501(5.5)? (STDERR)      userId: 'PPbXbkLHP7NCWtHqk',
W20170911-17:31:26.503(5.5)? (STDERR)      public: false },
W20170911-17:31:26.504(5.5)? (STDERR)   _prefix: 'c03ef76052782345845306e35fcb39824acae43d85d3e0a94cf7387d5303d37b',
W20170911-17:31:26.505(5.5)? (STDERR)   checkAccess: [Function],
W20170911-17:31:26.506(5.5)? (STDERR)   methodNames: 
W20170911-17:31:26.506(5.5)? (STDERR)    { MeteorFileAbort: 'MeteorFileAbortc03ef76052782345845306e35fcb39824acae43d85d3e0a94cf7387d5303d37b',
W20170911-17:31:26.508(5.5)? (STDERR)      MeteorFileWrite: 'MeteorFileWritec03ef76052782345845306e35fcb39824acae43d85d3e0a94cf7387d5303d37b',
W20170911-17:31:26.509(5.5)? (STDERR)      MeteorFileUnlink: 'MeteorFileUnlinkc03ef76052782345845306e35fcb39824acae43d85d3e0a94cf7387d5303d37b' },
W20170911-17:31:26.510(5.5)? (STDERR)   remove: [Function] }
W20170911-17:31:26.593(5.5)? (STDERR) /home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/request.js:31
W20170911-17:31:26.595(5.5)? (STDERR)             throw err;
W20170911-17:31:26.595(5.5)? (STDERR)             ^
W20170911-17:31:26.597(5.5)? (STDERR) 
W20170911-17:31:26.597(5.5)? (STDERR) TypeError: fileColl.serve is not a function
W20170911-17:31:26.599(5.5)? (STDERR)     at Response.<anonymous> (imports/videoUploadserver/videoUpload.js:162:38)
W20170911-17:31:26.599(5.5)? (STDERR)     at Request.<anonymous> (/home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/request.js:364:18)
W20170911-17:31:26.599(5.5)? (STDERR)     at Request.callListeners (/home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/sequential_executor.js:105:20)
W20170911-17:31:26.601(5.5)? (STDERR)     at Request.emit (/home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
W20170911-17:31:26.601(5.5)? (STDERR)     at Request.emit (/home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/request.js:683:14)
W20170911-17:31:26.602(5.5)? (STDERR)     at Request.transition (/home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/request.js:22:10)
W20170911-17:31:26.602(5.5)? (STDERR)     at AcceptorStateMachine.runTo (/home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/state_machine.js:14:12)
W20170911-17:31:26.605(5.5)? (STDERR)     at /home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/state_machine.js:26:10
W20170911-17:31:26.605(5.5)? (STDERR)     at Request.<anonymous> (/home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/request.js:38:9)
W20170911-17:31:26.607(5.5)? (STDERR)     at Request.<anonymous> (/home/iassureit-21/iAssureIT/meteor/rightnxt/node_modules/aws-sdk/lib/request.js:685:12)
=> Exited with code: 1
W20170911-17:31:52.705(5.5)? (STDERR) (node) warning: possible EventEmitter memory leak detected. 11 stored listeners added. Use emitter.setMaxListeners() to increase limit.
W20170911-17:31:54.578(5.5)? (STDERR) Trace
W20170911-17:31:54.579(5.5)? (STDERR)     at EventEmitter.addListener (events.js:239:17)
W20170911-17:31:54.580(5.5)? (STDERR)     at EventEmitter.FS.Collection (packages/cfs_collection.js:173:18)
W20170911-17:31:54.580(5.5)? (STDERR)     at meteorInstall.server.offersImagesS3.js (server/offersImagesS3.js:10:17)
W20170911-17:31:54.581(5.5)? (STDERR)     at fileEvaluate (packages/modules-runtime.js:197:9)
W20170911-17:31:54.581(5.5)? (STDERR)     at require (packages/modules-runtime.js:120:16)
W20170911-17:31:54.582(5.5)? (STDERR)     at /home/iassureit-21/iAssureIT/meteor/rightnxt/.meteor/local/build/programs/server/app/app.js:11242:1
W20170911-17:31:54.582(5.5)? (STDERR)     at /home/iassureit-21/iAssureIT/meteor/rightnxt/.meteor/local/build/programs/server/boot.js:303:34
W20170911-17:31:54.583(5.5)? (STDERR)     at Array.forEach (native)
W20170911-17:31:54.583(5.5)? (STDERR)     at Function._.each._.forEach (/home/iassureit-21/.meteor/packages/meteor-tool/.1.4.4_3.1dgsj0t++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20170911-17:31:54.584(5.5)? (STDERR)     at /home/iassureit-21/iAssureIT/meteor/rightnxt/.meteor/local/build/programs/server/boot.js:128:5
W20170911-17:31:54.599(5.5)? (STDERR) (node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
W20170911-17:31:54.600(5.5)? (STDERR) Trace
W20170911-17:31:54.603(5.5)? (STDERR)     at EventEmitter.addListener (events.js:239:17)
W20170911-17:31:54.603(5.5)? (STDERR)     at EventEmitter.FS.Collection (packages/cfs_collection.js:183:18)
W20170911-17:31:54.604(5.5)? (STDERR)     at meteorInstall.server.offersImagesS3.js (server/offersImagesS3.js:10:17)
W20170911-17:31:54.604(5.5)? (STDERR)     at fileEvaluate (packages/modules-runtime.js:197:9)
W20170911-17:31:54.605(5.5)? (STDERR)     at require (packages/modules-runtime.js:120:16)
W20170911-17:31:54.608(5.5)? (STDERR)     at /home/iassureit-21/iAssureIT/meteor/rightnxt/.meteor/local/build/programs/server/app/app.js:11242:1
W20170911-17:31:54.608(5.5)? (STDERR)     at /home/iassureit-21/iAssureIT/meteor/rightnxt/.meteor/local/build/programs/server/boot.js:303:34
W20170911-17:31:54.609(5.5)? (STDERR)     at Array.forEach (native)
W20170911-17:31:54.611(5.5)? (STDERR)     at Function._.each._.forEach (/home/iassureit-21/.meteor/packages/meteor-tool/.1.4.4_3.1dgsj0t++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20170911-17:31:54.612(5.5)? (STDERR)     at /home/iassureit-21/iAssureIT/meteor/rightnxt/.meteor/local/build/programs/server/boot.js:128:5
I20170911-17:31:55.125(5.5)? ** You are using the appcache package but the total size of the
I20170911-17:31:55.126(5.5)? ** cached resources is 99.7MB.
I20170911-17:31:55.126(5.5)? **
I20170911-17:31:55.127(5.5)? ** This is over the recommended maximum of 5 MB and may break your
I20170911-17:31:55.128(5.5)? ** app in some browsers! See http://docs.meteor.com/#appcache
I20170911-17:31:55.133(5.5)? ** for more information and fixes.
I20170911-17:31:55.133(5.5)? 
=> Meteor server restarted
I20170911-17:32:07.113(5.5)? [FilesCollection] [find(undefined)]
dr-dimitru commented 7 years ago

Looks like you're on the old package version.

  1. What Meteor version you're on? meteor --version
  2. What Meteor-Files version you're on? meteor list
anaghakomawar commented 7 years ago

Meteor 1.4.4.3

ostrio:files 1.5.6*

dr-dimitru commented 7 years ago

I'm afraid you have to update. Is it possible?

anaghakomawar commented 7 years ago

Thanks @dr-dimitru. The issues is resolved it was version problem. Thanks for your Support..

dr-dimitru commented 7 years ago

@anaghakomawar great, I'm glad it helped you.

Please, support this project by: