IBM Internet of Things Platform Starter application create fails with BXNUI0005E - ibm-cloud

I am trying to create an application in IBM Internet of Things Platform Starter and getting following message:
BXNUI0005E: The 'xxxxxx' app wasn't created because a problem occurred contacting Cloud Foundry.
Try again later. If you see this message again, go to the IBM Cloud status page to check whether a service or component has an issue. If the problem continues, go to IBM Cloud Support.

I've had exactly the same problem. It's usually because you've gone over the limit of app / database instances for your account.
In my case, I was using NodeRed. I created one instance successfully, deleted it, but then couldn't create another. It turned out that the first app had created an empty database instance and the second one was trying to do the same. Deleting the database from my dashboard resolved the problem.

Related

"DatastoreException: Missing or insufficient permissions" on superseded Cloud Datastore

We have an older application based on the AppEngine SDK (now deprecated) and the superseded Cloud Datastore.
In the process of migrating to Google Cloud SDK we also decided to move from JPA/Datanucleus to Objectify.
Given that the Cloud Datastore will be automatically upgraded to Cloud Firestore in Datastore mode sometime in the future, we decided to test our application as described at the bottom of this page:
https://cloud.google.com/datastore/docs/upgrade-to-firestore#testing_an_existing_application
1) Create a new project. In this project, create a Cloud Firestore in Datastore mode database.
2) Using the managed export service, export some of your application's data to Cloud Storage.
3) Using the managed import service, import your application's data to your new project.
4) Copy app logic you want to test to the new project or simulate app behaviour against the new project.
That's what we did and after some issues we could make a portion of our application run fine with the new datastore in a separate test project.
Now to the actual issue...
We wanted to test if the updated application could also run with the superseded Cloud Datastore, so we won't have to worry when the automatic upgrade occurs (as our app will be already ready).
So we deployed it as a new version of the existing AppEngine project (v2-dot-.....): unfortunately running the new version throws a permission error as soon as the app tries to read the datastore:
com.google.cloud.datastore.DatastoreException: Missing or insufficient permissions
So the questions are:
- could this be related to the Cloud Datastore not being upgraded to Cloud Firestore in Datastore mode for our project yet?
- is there anything we can do (add specific permissions maybe) to make it work anyway?
Our concern is that we need to have the new version of the app deployed before July 2020 (that's when the older AppEngine SDK will stop working), and we are worried that the automatic upgrade of the datastore will occur later.
Thank you for your help.
Turned out our project doesn't have the PROJECT_ID#appspot.gserviceaccount.com member in IAM.
It has a pletora of other members (for example: PROJECT_NUMBER-compute#developer.gserviceaccount.com, PROJECT_NUMBER#cloudservices.gserviceaccount.com, service-PROJECT_NUMBER#compute-system.iam.gserviceaccount.com, etc) which I guess are legacy members used in previous versions of Google App Engine.
Adding PROJECT_ID#appspot.gserviceaccount.com with the role Editor fixed the issue: now the new version can be deployed to the old projects and it works fine even if the datastore has not yet been converted to Cloud Firestore in Datastore Mode.
I just ran into this issue and spent way too much time troubleshooting it. Nine times out of ten if you're running into this issue it's because the default App Engine service account doesn't have permission to edit Cloud Datastore. The default App Engine service account is used by default if you're doing a simple gcloud app deploy and nothing else fancy. I solved the problem by giving the default App Engine service account the roles/datastore.owner role with the following:
gcloud projects add-iam-policy-binding PROJECT_ID \
--member="serviceAccount:PROJECT_ID#appspot.gserviceaccount.com" \
--role="roles/datastore.owner"

Error Accessing Bluemix Node-RED Editor

I'm using Node-RED Starter to build my app. My app URL can be accessed here.
should appear on my browser, but I got an
instead.
The app however seems to be working fine on my dashboard. Can anyone point me in the right direction? Thank you.
Your app is throwing a 500 error which basically means that your app is very much broken. How did you build it? Which starter did you use?
As you are running in the IBM Cloud, I would drop what you already have, and recreate using the starter from the IBM Cloud catalog. Unless of course if that is what you used to create it in the first place. In which case as per the other suggestions look at the server side logs, from the options on IBM Cloud for your application.

Swisscom Cloud DB Backup fails

We are using a MariaDB and a MongoDB (single instance) service in the Swisscom App Cloud.
If i try to create a backup with the backup button, it starts to create one, but fails after a few minutes.
Also, if i try to delete the failed entry, the deletion fails as well.
The interface provides no further information about the reason.
This happens for MariaDB as well as for MongoDB.
What could be a possible reason and how am I able to debug this error? Where can I get further information about the error?
screenshot of Portal:
Simon here from the App Cloud Team.
There was an issue in the backend which we fixed this morning, so your backups should now work again.
Sorry for the inconvenience.
I developed a CF CLI plugin for DB backups (MariaDB) in Cloud Foundry, called "cf-mariadb-backup-plugin", that also works in the Swisscom App Cloud. Check it out here, and give it a star. ;-)
If you use such plugin it presents the error message catch directly from the Cloud Foundry API. This might provide you, at least, better reasons on why such actions are failing.

Getting BXNUI0005E error while trying to create a new app

I am trying to create a sample app using the Liberty Java API but I am getting following error:
BXNUI0005E: The 'SampleJavaApp' application could not be added. See
the Troubleshooting topics in the IBM Bluemix Documentation to check
service status, review troubleshooting information, or for information
about getting help.
My dashboard is showing that more than 1GB of space is available in my workspace. It seems to be an issue at Bluemix end. Please help in resolving it.
Thanks & Regards,
Prerna
Usually this problem occurs when an application with the same name already exists. SampleJavaApp is quite generic. Try to choose a unique name.

Bluemix Create App Error

Getting the below error while creating app on Bluemix dashboard, irrespective of using unique App names
BXNUI0005E: The 'MyFirstMobileAppTest' application could not be added.
See the Troubleshooting topics in the IBM Bluemix Documentation to
check service status, review troubleshooting information, or for
information about getting help.
I have been able to create a mobile application without any problems. This issue was most likely due a temporary outage.
If you experience this again, be sure check the Bluemix status page for any known issues and/or try again in a few minutes.