-
Notifications
You must be signed in to change notification settings - Fork 5
Roadblock crashes when saving #25
Comments
Hey @ruphy - could you share the roadblock.json config (without tokens etc) So I can see what it attempts to run |
Seems like this might be due to a missing github token in the configuration, or that the token does not have the right access, ensure it has acccess to the orgs you want to query and that it has permission to access repo, repo:status, public_repo, read:org, read:user, read:discussion |
Hi,
|
Will see if I can recreate - could you as a quick test, try to create a folder called "export" inside the folder where you have the roadblock.json file - might be a case of a missing folder causing the export to fail. |
I created a directory, no meaningful change.
is it simply possible that /data is simply not writable by the roadblock user? |
Two more pieces of debug information:
|
Updated master and npm with improved token validation and error feedback during data collection - should give you better hints at what is wrong - if everything runs smoothly the end result will be a sqlite file with all the data which you can then query |
I updated roadblock to latest npm version (1.1.0): I confirm I find a roadblock.sqlite file at the end of the run which contains most (all?) of the data but there's still the same error before exiting:
...at this point I am wondering if it's only a false flag? |
Expected Behavior
Success!
Actual Behavior
Console log:
ℹ️ Running 2 post-processing tasks
💾 Exporting statistics as json to /data
ℹ️ Roadblock processing complete
(node:4025) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_CALLBACK]: Callback must be a funcn
at maybeCallback (fs.js:129:9)
at Object.writeFile (fs.js:1156:14)
at saveToFile (/usr/local/lib/node_modules/@zalando/roadblock/export/client.js:11:6)
at ExportClient.export (/usr/local/lib/node_modules/@zalando/roadblock/export/client.js:39:5)
(node:4025) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either)
(node:4025) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, p.
Steps to Reproduce the Problem
Specifications
The text was updated successfully, but these errors were encountered: