Meteor-Files: ENOENT: no such file or directory, mkdir

I’m having an issue uploading a file, after the file upload begins I get an exception on the server with an error in the mkdirSync in write-stream.js, I’m using ostrio:files@2.3.0 and my Meteor is .2.8.0, I’m developing on windows 11 and using chrome Version 107.0.5304.87 (Official Build) (64-bit), this is clearly a Server issue, this is the log on the server:

I20221102-21:45:49.168(2)? [FilesCollection] [File Start Method] output3.wav - KEL7EyEGCN9eA4p2m
I20221102-21:45:49.168(2)? [FilesCollection] [Upload] [DDP Start Method] Got #-1/1 chunks, dst: output3.wav
I20221102-21:45:49.199(2)? Exception in callback of async function: Error: ENOENT: no such file or directory, mkdir
I20221102-21:45:49.200(2)?     at Object.mkdirSync (fs.js:1014:3)
I20221102-21:45:49.201(2)?     at packages/ostrio:files/write-stream.js:47:16
I20221102-21:45:49.205(2)?     at packages/ostrio:files/write-stream.js:10:50
I20221102-21:45:49.206(2)?     at runWithEnvironment (packages\meteor.js:1347:24) {
I20221102-21:45:49.206(2)?   errno: -4058,
I20221102-21:45:49.207(2)?   syscall: 'mkdir',
I20221102-21:45:49.207(2)?   code: 'ENOENT'
I20221102-21:45:49.208(2)? }
I20221102-21:45:49.221(2)? [FilesCollection] [Upload] [DDP] Got #1/1 chunks, dst: output3.wav
I20221102-21:45:49.226(2)? [FilesCollection] [Upload] [DDP] Got #-1/1 chunks, dst: output3.wav

My storagePath is set to a directory outside the project, if that matters.

This is the log from the client:

[FilesCollection] [insert()]
core.js:108 [FilesCollection] [FileUpload] [constructor]
core.js:108 [FilesCollection] [insert] using WebWorkers
upload.js:368 loadFile output3.wav: 49.4609375 ms
core.js:108 [FilesCollection] [UploadInstance] [sendEOF] false
Hello.jsx:13 {outputFile: File}
core.js:108 [FilesCollection] [insert()]
upload.js:197 Timer 'insert output3.wav' already exists
UploadInstance @ upload.js:197
insert @ client.js:258
onComplete @ Hello.jsx:14
(anonymous) @ Hello.jsx:30
invokePassiveEffectCreate @ modules.js?hash=2bdaaa6ac539e0da317c883b0d42b092fade204e:27450
callCallback @ modules.js?hash=2bdaaa6ac539e0da317c883b0d42b092fade204e:7908
invokeGuardedCallbackDev @ modules.js?hash=2bdaaa6ac539e0da317c883b0d42b092fade204e:7957
invokeGuardedCallback @ modules.js?hash=2bdaaa6ac539e0da317c883b0d42b092fade204e:8019
flushPassiveEffectsImpl @ modules.js?hash=2bdaaa6ac539e0da317c883b0d42b092fade204e:27537
unstable_runWithPriority @ modules.js?hash=2bdaaa6ac539e0da317c883b0d42b092fade204e:30769
runWithPriority$1 @ modules.js?hash=2bdaaa6ac539e0da317c883b0d42b092fade204e:15239
flushPassiveEffects @ modules.js?hash=2bdaaa6ac539e0da317c883b0d42b092fade204e:27410
performSyncWorkOnRoot @ modules.js?hash=2bdaaa6ac539e0da317c883b0d42b092fade204e:26232
(anonymous) @ modules.js?hash=2bdaaa6ac539e0da317c883b0d42b092fade204e:15290
unstable_runWithPriority @ modules.js?hash=2bdaaa6ac539e0da317c883b0d42b092fade204e:30769
runWithPriority$1 @ modules.js?hash=2bdaaa6ac539e0da317c883b0d42b092fade204e:15239
flushSyncCallbackQueueImpl @ modules.js?hash=2bdaaa6ac539e0da317c883b0d42b092fade204e:15285
flushSyncCallbackQueue @ modules.js?hash=2bdaaa6ac539e0da317c883b0d42b092fade204e:15272
scheduleUpdateOnFiber @ modules.js?hash=2bdaaa6ac539e0da317c883b0d42b092fade204e:25856
dispatchAction @ modules.js?hash=2bdaaa6ac539e0da317c883b0d42b092fade204e:20102
(anonymous) @ modules.js?hash=2bdaaa6ac539e0da317c883b0d42b092fade204e:32283
core.js:108 [FilesCollection] [FileUpload] [constructor]
core.js:108 [FilesCollection] [insert] using WebWorkers
upload.js:368 loadFile output3.wav: 45.8408203125 ms
core.js:108 [FilesCollection] [UploadInstance] [sendEOF] false

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 18 (8 by maintainers)

Commits related to this issue

Most upvoted comments

@onurcansevinc is the issue fixed for you too?

I changed version, it solved. Thanks!

@Leekao try v2.3.2

Yes! It’s working now! thank you very much for your patience!