Why is the UI displaying a message that a bucket isn't connected?
The IBM® Cloud Logs UI displays an error message that a bucket is not connected when a bucket is connected to the IBM Cloud Logs instance.
You get the following error message: You haven't connected a bucket yet
.
After a recent update to the IBM Cloud Logs service broker and UI, you might encounter an issue where the UI incorrectly shows "You haven't connected a bucket yet" for existing instances that have IBM Cloud Object Storage (COS) buckets attached.
To resolve this issue for affected instances, you can run a set of commands to update the instance, ensuring the correct values are reflected in the UI.
Follow the steps below to resolve this issue for existing instances with attached COS buckets.
-
Log in to your IBM Cloud account through the CLI.
- If you don’t have the CLI installed, refer to Installing the IBM Cloud CLI.
-
Install
jq
to parse the JSON response from the CLI:- On macOS:
brew install jq
- On Ubuntu/Debian:
sudo apt-get install jq
- On RHEL/CentOS:
sudo yum install jq
- On macOS:
-
Retrieve the currently configured retention period for the instance by running the following command:
ibmcloud resource service-instance $GUID --output json | jq '.[].extensions.retention_period'
Replace
$GUID
with the actual instance GUID. -
Update the instance by using the following command:
ibmcloud resource service-instance-update $GUID -p '{"retention_period": "<retention_period>"}'
Replace
<retention_period>
with the value retrieved in step 3. -
Verify that the UI now displays the correct bucket attachment status.
Next steps
After running the above commands, the UI will correctly reflect the bucket. If further issues persist, Contact IBM Support for assistance.