C3 provisioner issue on ubuntu


Since 2 days i’m trying to install the C3 provisioner unsuccesffuly…

I’m on a virtual machine ubuntu under node v6.12.3 and npm 5.6.0…

the provisionner installation process pass without issues… the problem came after excuting my prov cmd:

sudo c3-prov tag --tenant engie-mastermind --tag hedi --url https://engie-mastermind-stage2.c3iot.com --auth-token 3033e2b120c40e032e53221af35141469a92af83cc9552840d2769c809304207b58044fbd8dc28316be1790a8fae40baba782f965a2e9005ad0e052216ceb9ad5dc6 --user hedi.mellekh@engie.com --c3apps ~/mastermind/c3

the Error message:

chdir.call(process, d)

Error: ENOENT: no such file or directory, uv_chdir
at Error (native)
at process.chdir (/home/hedi/c3/nodeapps/prov/node_modules/graceful-fs/polyfills.js:18:9)
at process.chdir (/home/hedi/c3/nodeapps/prov/node_modules/readdirp/node_modules/graceful-fs/polyfills.js:20:9)
at eval (git.js:17:15)
at /home/hedi/c3/nodeapps/prov/node_modules/async/lib/async.js:607:21
at /home/hedi/c3/nodeapps/prov/node_modules/async/lib/async.js:246:17
at iterate (/home/hedi/c3/nodeapps/prov/node_modules/async/lib/async.js:146:13)
at async.eachSeries (/home/hedi/c3/nodeapps/prov/node_modules/async/lib/async.js:162:9)
at _asyncMap (/home/hedi/c3/nodeapps/prov/node_modules/async/lib/async.js:245:13)
at Object.mapSeries (/home/hedi/c3/nodeapps/prov/node_modules/async/lib/async.js:228:23)

Thanks for helping!

I don’t know if it’ll help much, but I found this issue with the graceful-fs node package: https://github.com/isaacs/node-graceful-fs/issues/115

Maybe you need to uninstall and reinstall the provisioner? Could be that the node_modules need to be refreshed.

I notice that you are using the tool c3-prov this tool is deprecated in favor of the new C3 CLI.

You can install this by following the documentation in “C3 CLI”. From console go to Help -> Documentation and looking for the doc titled “C3 CLI”