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.

[Windows] Network drive - Unexpected error - path is on mount ...

See original GitHub issue

Hi, I work on Windows in corporate environment on network drive, so my working directory in explorer looks like: Home (\aaa.bbb.ccc.net\UserData\User1) (P:) In conda prompt it look like ordinary P: folder. I create folder like test_DVC. In this folder: git init, dvc init works fine, but when I do dvc add somefile.txt, I get: ERROR: Unexpected error - path is on mount '\\\\aaa.bbb.ccc.net\\UserData, start on ‘\\\\AD3AB.AAA.BBB.CCC.NET\\UserData’ I’ve tried also: dvc add P:\test_DVC\somefile.txt, I get: ERROR: Output(s) outside of DVC project: P:\test_DVC\somefile.txt I’ve also tried without git, by dvc init --no-scm but result is the same

DVC version: 2.11.0 Is it expected and I miss something obvious, or bug?

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:10

github_iconTop GitHub Comments

2reactions
pmrowlacommented, Jun 23, 2022

@mglowacki100 are you able to try changing your mapped network drive so that you mount \\AD3AB.AAA.BBB.CCC.NET\... (instead of the shortened \\AAA.BBB.CCC.net\...)? It looks like your network/system may configured so that the shorter hostname is always resolved into the full AD3... hostname in UNC paths, which causes issues when DVC tries to compare the two

0reactions
mglowacki100commented, Aug 24, 2022

@a-orn It was some time ago , but IIRC:

  1. You need to add drive with full path, beware that “hidden parts” like to change from time to time by sys admins and this fix stop to work, (update of full drive path is required). Let’s call this new drive N:
  2. In command line you need to change drive without hidden parts to N
  3. next create test dir: mkdir dvc_test, cd dvc_test, git init
  4. now dvc init probably will fail (dvc is not recognized as internal or external command…). You need to locate dvc.exe, if you installed it with conda it should be in conda folder …\envs\your_env\Scripts\dvc.exe, so you can run this as absolute path C:.…\dvc.exe init or make a shortcut
  5. now dvc add sample_file.txt should work (shortcut version)

If you’ve this basic test configuration up and running, then check your specific case. Hope this helps.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mounting from File Explorer Fails With "An Unexpected Error ...
Troubleshooting file storage - this topic provides guidance when mounting with Windows File Explorer fails with an unexpected error.
Read more >
How to Fix the "Network Path Was Not Found" Error on Windows
1. Double-Check the Path Names ; Right-click on the targeted drive and choose Properties from the context menu. drive-properties ; If it says...
Read more >
Error 51 or 53 when you access shared resources - Windows ...
Error when you try to access shared resources on a computer: System error ... System error 53 has occurred. The network path was...
Read more >
Can't copy files from mapped drive to local directory
The user has mapped a drive using either the Map Network Drive option in Windows Explorer or by running the net use command...
Read more >
Drive mapping - extended error - TechNet - Microsoft
SOLUTION: Press your Windows' Start / Launch, in "Search programs and files" field type "Credential Manager" and you should see it shows up...
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