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 support for diskDriver

See original GitHub issue

By attemping to run a Gaia server on Windows 10 machine with default config.json (copy of config.sample.disk.json) following error shows up: src\server\server.js -> lib\server\server.js

"function":"Module._load","line":489,"method":"_load","native":false}],"stack":["Error: UNKNOWN: unknown error, lstat '\\\\Users\\home\\'"," at Object.fs.lstatSync (fs.js:941:11)"," at DiskDriver.mkdirs (C:\\Users\\home\\dev\\gaia\\hub\\lib\\server\\drivers\\diskDriver.js:56:39)"," at new DiskDriver (C:\\Users\\home\\dev\\gaia\\hub\\lib\\server\\drivers\\diskDriver.js:41:10)"," at makeHttpServer (C:\\Users\\home\\dev\\gaia\\hub\\lib\\server\\http.js:51:14)"," at Object.<anonymous> (C:\\Users\\home\\dev\\gaia\\hub\\lib\\index.js:15:36)"," at Module._compile (module.js:635:30)"," at Object.Module._extensions..js (module.js:646:10)"," at Module.load (module.js:554:32)"," at tryModuleLoad (module.js:497:12)"," at Function.Module._load (module.js:489:3)"],"level":"error","message":"uncaughtException: UNKNOWN: unknown error, lstat '\\\\Users\\home\\'","timestamp":"2018-07-21T08:04:56.676Z"

Tried creating the /tmp/gaia-data folder on main drive manually, that did not seem to help. Neither did changing paths in config.json have any positive results, always ending up with the same error, but with different paths.

Mac OS did not seem to have this issue, I’m not sure if Gaia server is even supposed to run on Windows, if not it would be a good idea to mention that in README file.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
zone117xcommented, Dec 11, 2018

From what I can tell it is trivial (unless there related code that I’ve not seen):

  • Get AppVeyor setup alongside CircleCI for tests on Windows (pretty easy - have set these integrations up on countless other repos).
  • Address any remaining pathing issues (partially done now by using the fs-extra package)
  • There are some package.json scripts that need to use use shx (shx rm -rf ... vs rm -rf ...) for cross platform unix commands.
0reactions
zone117xcommented, Feb 20, 2020

It is likely this was fixed with changes from around a year ago, but hasn’t been tested. Closing this issue due to lack of activity. Please feel free to comment if this should be re-opened.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Defragment your Windows 10 PC - Microsoft Support
Defragment your Windows 10 PC · Select the search bar on the taskbar and enter defrag. · Select Defragment and Optimize Drives. ·...
Read more >
Help in Disk Management - Microsoft Support
Disk Management in Windows helps you perform advanced storage tasks like initializing a new drive and extending or shrinking volumes.
Read more >
Ways to improve your computer's performance
Learn how defragmentation can reduce computer performance and what to do about it.
Read more >
"A media driver your computer needs is missing" or "A ...
A media driver your computer needs is missing. This could be a DVD, USB, or Hard disk driver. If you have a CD,...
Read more >
Check your hard disk for errors in Windows 7 - Microsoft Support
This problem might occur because there are errors on your hard disk drive. You can troubleshoot the problem by using the Disk Check...
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