Windows support for diskDriver
See original GitHub issueBy 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:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top GitHub Comments
From what I can tell it is trivial (unless there related code that I’ve not seen):
fs-extra
package)shx rm -rf ...
vsrm -rf ...
) for cross platform unix commands.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.