Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

216
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda