atomist / sdm-local

Local software delivery machine support
Apache License 2.0
13 stars 4 forks source link

No such file or directory `~/.atomist.log` #174

Closed cdupuis closed 6 years ago

cdupuis commented 6 years ago

Issue originated from atomist/sdm#514

Created by @snicoll at 2018-09-06T09:03:44Z:

I've followed the instructions to install a SDM

Whatever command I run next ends up with

{ errno: -2,
  code: 'ENOENT',
  syscall: 'mkdir',
  path: '/Users/snicoll/.atomist/log',
  name: 'Error',
  message: 'ENOENT: no such file or directory, mkdir \'/Users/snicoll/.atomist/log\'',
  stack: 'Error: ENOENT: no such file or directory, mkdir \'/Users/snicoll/.atomist/log\'\n    at Object.fs.mkdirSync (fs.js:887:18)\n    at addFileTransport (/usr/local/lib/node_modules/@atomist/cli/node_modules/src/internal/util/logger.ts:23:12)\n    at initLogging (/usr/local/lib/node_modules/@atomist/cli/node_modules/src/internal/util/logger.ts:159:9)\n    at Object.<anonymous> (/usr/local/lib/node_modules/@atomist/cli/node_modules/src/internal/util/logger.ts:194:1)\n    at Module._compile (module.js:612:30)\n    at Object.Module._extensions..js (module.js:623:10)\n    at Module.load (module.js:531:32)\n    at tryModuleLoad (module.js:494:12)\n    at Function.Module._load (module.js:486:3)\n    at Module.require (module.js:556:17)' }

If I create /Users/snicoll/.atomist/log manually, the error goes away.

cdupuis commented 6 years ago

Verified that there is no issue with the simple goals log here.