question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Copy Files Task / Publish Build Artifacts Task copy to invalid UNC OR drive root produces RangeError: Maximum call stack size exceeded Issue

See original GitHub issue

TFS Agent copy files task trying to create a directory on Network Mapped Drive (Z:\Releases, z drive is UNC Path as Mapped Network Drive) but getting this error: copyfiles_stack_size_exceeded

RangeError: Maximum call stack size exceeded String.slice (native) Object.dirname (path.js:795:17) mkdirSyncRecursive (D:\agent\tasks\CopyFiles\1.0.13\node_modules\shelljs\src\mkdir.js:7:22) mkdirSyncRecursive (D:\agent\tasks\CopyFiles\1.0.13\node_modules\shelljs\src\mkdir.js:16:3) mkdirSyncRecursive (D:\agent\tasks\CopyFiles\1.0.13\node_modules\shelljs\src\mkdir.js:16:3) mkdirSyncRecursive (D:\agent\tasks\CopyFiles\1.0.13\node_modules\shelljs\src\mkdir.js:16:3) mkdirSyncRecursive (D:\agent\tasks\CopyFiles\1.0.13\node_modules\shelljs\src\mkdir.js:16:3)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
bryanmacfarlanecommented, Aug 16, 2016

Yep, that is a bad error which essentially means the share doesn’t exist or no permissions (agent runs as). We are changing this task to call robocopy.

0reactions
ericsciplecommented, Sep 7, 2016

Yes the fix for Copy Files will roll out with 106.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Copy Files Task / Publish Build Artifacts Task copy to invalid ...
Copy Files Task / Publish Build Artifacts Task copy to invalid UNC OR drive root produces RangeError: Maximum call stack size exceeded Issue...
Read more >
TFS 2015 Publish Build Artifacts with file share met error
This is a known issue: Copy Files Task / Publish Build Artifacts Task copy to invalid UNC OR drive root produces RangeError: Maximum...
Read more >
Copy and Publish Build Artifacts v1 task | Microsoft Learn
Use this task to copy build artifacts to a staging folder and then publish them to the server or a file share. Files...
Read more >
Publishing build artifacts failed with an error unable to create ...
Publishing build artifacts failed with an error: Unable to create directory '{p}'. Unable to verify the directory exists: '{testDir}'.
Read more >
Remix Documentation - Read the Docs
To interact with a contract using the ABI, create a new file in Remix with extension *.abi and copy the ABI content to....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found