Reinstall plugin: Job failed: File 'R/plugin_time-series-forecast_managed/desc.json' does not exist

pyousefi
Level 2
Reinstall plugin: Job failed: File 'R/plugin_time-series-forecast_managed/desc.json' does not exist

Using the Forecasting Time Series with R tutorial and the Forecast plugin I get the below error.  I believe there was an issue with installing the plugin. How do I reinstall a plugin?

[2020/02/27-08:30:50.263] [FRT-39-FlowRunnable] [WARN] [dku.code.projectLibs] - External libraries file not found: /Users/pyousefi/Library/DataScienceStudio/dss_home/jobs/DKU_TUTORIAL_RTIMESERIES/Build_passengers_cleaned_2020-02-27T07-29-49.231/localconfig/projects/DKU_TUTORIAL_RTIMESERIES/lib/external-libraries.json
[2020/02/27-08:30:50.292] [FRT-39-FlowRunnable] [INFO] [dku.code.envs.resolution] - Executing R activity in env: plugin_time-series-forecast_managed
[2020/02/27-08:30:50.294] [FRT-39-FlowRunnable] [ERROR] [com.dataiku.dip.utils.JSON] - Error while parsing JSON file /Users/pyousefi/Library/DataScienceStudio/dss_home/code-envs/desc/R/plugin_time-series-forecast_managed/desc.json
java.io.FileNotFoundException: File '/Users/pyousefi/Library/DataScienceStudio/dss_home/code-envs/desc/R/plugin_time-series-forecast_managed/desc.json' does not exist
	at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:299)
	at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1711)
	at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1734)
	at com.dataiku.dip.utils.JSON.parseFile(JSON.java:293)
	at com.dataiku.dip.code.CodeEnvResolutionService.getRCmdAndGetBundleIdIfNull(CodeEnvResolutionService.java:292)
	at com.dataiku.dip.code.CodeEnvResolutionService.getRCmd(CodeEnvResolutionService.java:263)
	at com.dataiku.dip.recipes.code.r.AbstractRRecipeRunner.getRCmd(AbstractRRecipeRunner.java:43)
	at com.dataiku.dip.recipes.code.r.AbstractRRecipeRunner.executeScript(AbstractRRecipeRunner.java:32)
	at com.dataiku.dip.recipes.customcode.CustomRRecipeRunner.run(CustomRRecipeRunner.java:66)
	at com.dataiku.dip.dataflow.jobrunner.ActivityRunner$FlowRunnableThread.run(ActivityRunner.java:380)
[2020/02/27-08:30:50.300] [FRT-39-FlowRunnable] [INFO] [dku.flow.activity] - Run thread failed for activity compute_passengers_cleaned_NP
java.io.FileNotFoundException: File '/Users/pyousefi/Library/DataScienceStudio/dss_home/code-envs/desc/R/plugin_time-series-forecast_managed/desc.json' does not exist
	at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:299)
	at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1711)
	at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1734)
	at com.dataiku.dip.utils.JSON.parseFile(JSON.java:293)
	at com.dataiku.dip.code.CodeEnvResolutionService.getRCmdAndGetBundleIdIfNull(CodeEnvResolutionService.java:292)
	at com.dataiku.dip.code.CodeEnvResolutionService.getRCmd(CodeEnvResolutionService.java:263)
	at com.dataiku.dip.recipes.code.r.AbstractRRecipeRunner.getRCmd(AbstractRRecipeRunner.java:43)
	at com.dataiku.dip.recipes.code.r.AbstractRRecipeRunner.executeScript(AbstractRRecipeRunner.java:32)
	at com.dataiku.dip.recipes.customcode.CustomRRecipeRunner.run(CustomRRecipeRunner.java:66)
	at com.dataiku.dip.dataflow.jobrunner.ActivityRunner$FlowRunnableThread.run(ActivityRunner.java:380)
[2020/02/27-08:30:50.430] [ActivityExecutor-34] [INFO] [dku.flow.activity] running compute_passengers_cleaned_NP - activity is finished
[2020/02/27-08:30:50.431] [ActivityExecutor-34] [ERROR] [dku.flow.activity] running compute_passengers_cleaned_NP - Activity failed
java.io.FileNotFoundException: File '/Users/pyousefi/Library/DataScienceStudio/dss_home/code-envs/desc/R/plugin_time-series-forecast_managed/desc.json' does not exist
	at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:299)
	at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1711)
	at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1734)
	at com.dataiku.dip.utils.JSON.parseFile(JSON.java:293)
	at com.dataiku.dip.code.CodeEnvResolutionService.getRCmdAndGetBundleIdIfNull(CodeEnvResolutionService.java:292)
	at com.dataiku.dip.code.CodeEnvResolutionService.getRCmd(CodeEnvResolutionService.java:263)
	at com.dataiku.dip.recipes.code.r.AbstractRRecipeRunner.getRCmd(AbstractRRecipeRunner.java:43)
	at com.dataiku.dip.recipes.code.r.AbstractRRecipeRunner.executeScript(AbstractRRecipeRunner.java:32)
	at com.dataiku.dip.recipes.customcode.CustomRRecipeRunner.run(CustomRRecipeRunner.java:66)
	at com.dataiku.dip.dataflow.jobrunner.ActivityRunner$FlowRunnableThread.run(ActivityRunner.java:380)

 

0 Kudos
1 Reply
ATsao
Dataiker

The issue seems to be that someone has tampered with the config files related to the code environment that's being used by the Forecast plugin. This can be seen with the following error message:

java.io.FileNotFoundException: File '/Users/pyousefi/Library/DataScienceStudio/dss_home/code-envs/desc/R/plugin_time-series-forecast_managed/desc.json' does not exist

The <DSS_DATA_DIR>/code-envs directory contains the metadata/config information for the code environments on your local environment and this desc.json shouldn't be missing for that code environment unless it was somehow removed manually for some reason. I would suggest trying the following:

  1. Try rebuilding the code environment by navigating to Administration > Code Envs > plugin_time-series-forecast_managed, selecting the Rebuild env checkbox, and then clicking Update
    Rebuild code env.png

  2. If that doesn't work, you can always create a new managed plugin code environment to be used by your Forecast plugin by navigating to your plugin (Plugins > Installed > Forecast), clicking on the "Change" button under the Code Environment section, selecti "Create A New One", and then click on the "Build New Environment" button. 
    Create new plugin code env.png

Once your plugin code environment is fixed, the Forecast plugin should work for you.

Also, just to be complete, regarding your other question about reinstalling a plugin, this can be done by "uninstalling" the plugin and then re-installing it. More information about how to do that can be found in the following thread: https://community.dataiku.com/t5/Plugins-Extending-Dataiku-DSS/How-to-uninstall-remove-custom-plugin...

0 Kudos