generate-dashboard
json-data
kaakaa /oss-dashboard/generate-dashboard/generate-json-data.rb:116:in `mkdir': No such file or directory @ dir_s_mkdir - html/json-data (Errno::ENOENT)
from /oss-dashboard/generate-dashboard/generate-json-data.rb:116:in `block in generate_json_data'
from /oss-dashboard/generate-dashboard/generate-json-data.rb:111:in `each'
from /oss-dashboard/generate-dashboard/generate-json-data.rb:111:in `generate_json_data'
from refresh-dashboard.rb:237:in `block in <main>'
from refresh-dashboard.rb:193:in `each'
from refresh-dashboard.rb:193:in `<main>'
generate_json_data method needs directory of www_directory.
But Dir.mkdir(www_directory) is called after calling generate_json_data method in refresh-dashboard.rb.
So Dir.mkdir(www_directory) should be called before calling generate_json_data.
I encountered the following error.
In about 10 days ago
generate_json_data
method added in this commit ( Overhaul to the dashboards to a) make charts more pluggable via separ… · amzn/oss-dashboard@8486704)generate_json_data
method needs directory ofwww_directory
. ButDir.mkdir(www_directory)
is called after callinggenerate_json_data
method inrefresh-dashboard.rb
.So
Dir.mkdir(www_directory)
should be called before callinggenerate_json_data
.