Troubleshooting for Watson Studio
Issues related to Watson Studio:
Issues related to notebooks:
Issues related to RStudio:
Issues related to Watson Studio
UI might not display properly
If the UI does not load properly, the Watson Studio administrator must restart redis.
Resolving the problem
- Log in to the OpenShift cluster.
- Restart the pods for
redisby using the following command:oc delete po -n <project> | oc get po -n <project> -l component=redis -o jsonpath="{.items[*].metadata.name}"
Issues related to notebooks
Notebook returns UTC time and not local time
The Python function datetime returns the date and time for the UTC time zone and not the local time zone where a user is located.
Cause
The default environment runtimes use the time zone where the runtimes are created, which is UTC time.
Resolving the problem
If you want to use your local time, you need to download and modify the runtime configuration file to use your time zone. You don't need to make any changes to the runtime image. After you upload the configuration file again, the runtime will use the time you set in the configuration file.
Required role: You must be a cluster administrator to change the configuration file of a runtime.
To change the time zone:
-
Download the configuration file of the runtime that you are using. Follow the steps in Downloading the runtime configuration.
-
Update the runtime definition JSON file and extend the environment variable section to include your time zone, for example, for Europe/Viena use:
{ "name": "TZ", "value": "Europe/Vienna" } -
Upload the changed JSON file to the IBM Software Hub cluster. You can use the IBM Software Hub Platform API.
-
Upload the JSON file:
Note:To run this script, you must generate and export the token as the
${MY_TOKEN}environment variable. For details, see Generating an API authorization token.curl -X PUT \ 'https://${HOSTNAME}/zen-data/v1/volumes/files/%2F_global_%2Fconfig%2F.runtime-definitions%2Fibm' \ -H 'Authorization: ZenApiKey ${MY_TOKEN}' \ -H 'content-type: multipart/form-data' \ -F upFile=@/path/to/runtime/def/<custom-def-name>-server.jsonImportant: Change the name of the modified JSON file. The file name must end withserver.jsonand the same file name must be used across all clusters to enable exporting and importing projects across cluster boundaries.If the changed JSON file was uploaded successfully, you will see the following response:
{ "_messageCode_": "Success", "message": "Successfully uploaded file and created the necessary directory structure" }
-
-
Restart the notebook runtime.
Issues related to RStudio
To create your own personal access token, see Collaboration in RStudio.
Unable to start RStudio in a project with deprecated Git integration
When you start RStudio in a project with deprecated Git integration, you might see a message that says your Git token could not be found and, as a result RStudio is not launched.
Resolving the problem
To enable RStudio to start, clear your browser cache or open RStudio in a browser with incognito mode enabled.
Corrupted RStudio state from a previous session
Sometimes, when you start an RStudio session, you might experience a corrupted RStudio state from a previous session and your session will not start.
Resolving the problem
After launching the RStudio IDE, at the stage when you select the RStudio environment, select Reset the workspace. RStudio is started using the default settings with a clean RStudio workspace.
RStudio IDE launch might fail when trying to assign memory that is necessary to handle large R objects
RStudio IDE launch might fail when trying to assign memory that is necessary to handle large R objects. The reason for this behavior is that by default RStudio ignores the rlimit_data setting.
Resolving the problem
To enforce memory limits, a Cloud Pak for Data Administrator must patch the RStudio CR with using this code:
For RStudio Server Runtimes 24.1:
oc patch rstudioaddon ibm-cpd-rstudio-241 \
--namespace=${PROJECT_CPD_INST_OPERANDS} \
--type=merge \
--patch='{"spec": {"useRStudioDataLimits"=true}}'
For RStudio Server Runtimes 23.1:
oc patch rstudioaddon ibm-cpd-rstudio-231 \
--namespace=${PROJECT_CPD_INST_OPERANDS} \
--type=merge \
--patch='{"spec": {"useRStudioDataLimits"=true}}'