Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

214
Views
Node copyfile hangs inside docker container

I am working on this node function.

  #copyInCommonFile(tmpDir, commonfile) {
    var newfile = path.join(tmpDir, commonfile.fileName);
    
    try {
      fs.copyFileSync(commonfile.commonFilePath, newfile);
      this.logger.info('Copied file from : ' + commonfile.commonFilePath + ' to ' + newfile);
    } catch (err) {
      throw err
    }
  }

My problem is that no matter what I do, this method hangs with no error. I've tried the sync and async methods. This is supposed to copy a file from one directory inside the docker container to another directory. The app just sits there and hangs on the method until it is killed.

The result is that it does create an empty file in the new location.

I have been at this all morning, im out of ideas. do you fine folks have any?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!