DSX: Cannot edit Jupyter notebook - data-science-experience

When creating a new notebook, dsx fails when trying to connect to the Spark instance with the following error message:
Sorry, we could not start your service. Please contact support with
the following information: The service UUID could not be established.
Description: PUT /analytics/notebooks/reactivate?sparkService=&createTenant=true failed.
What can we do to resolve this?

Contact support. There's no obvious link, but your DSX account is backed by a Bluemix account and an Apache Spark service in Bluemix, so you can use the Bluemix support channels.
In DSX, click on the logged-in symbol in the top right corner. In the menu that opens, select "Settings". In the Settings screen, there's a button "Manage Bluemix Account", and below that a link "Contact Support".
Alternatively, a click on "Manage Bluemix Account" will take you to the Bluemix console, where you can use the "Support" menu.

Related

Attempting to generate & download Google Drive API credentials

I'm currently following a tutorial, and I'm on this step:
Go to https://developers.google.com/drive/api/v3/quickstart/go, click
"Enable the Drive API", select the account with the stash and click
"Download Client Configuration".
I'm assuming Google changed the process for this because these settings aren't here. I also don't see them in the API console. Any suggestions on how I can find this information?
That button used to prompt you a list of existing Google Cloud Platform projects, from which you would have to select one. Then the API would be enabled on the selected project. You can replicate that approach easily by following these steps:
If you need to create a GCP project, adopt this guide. Otherwise you can skip this step.
To enable an API into a GCP project, adhere to those steps.

How to use external identities for authorization on GCloud App Engin

I am trying to create a very simple sign-in page that accepts Google, Microsoft and e-mail/ password for an App Engine application.
I followed this guide:
https://cloud.google.com/iap/docs/cloud-run-sign-in
I managed to get IAP up and running, with a working Google login page. But I couldn't get the login page with External Identity Providers to work.
Ater activating the External Providers, I try to test the IAP, but a page with this error loads:
"A specified resource is not found, or the request is rejected by undisclosed reasons."
Edit with more details:
I followed these two guides:
https://cloud.google.com/iap/docs/enable-external-identities
https://cloud.google.com/iap/docs/cloud-run-sign-in
Steps:
Open the IAP page in the Cloud Console.
Select the same project that you configured Identity Platform with. Using different projects is not supported.
Select the HTTP Resources tab.
Locate the App Engine app or Compute Engine service you want to restrict access to using IAP.
Toggle the switch in the IAP column to On.
In the side panel, click Start in the box labeled Use external identities for authorization.
Confirm your selection.
In the Identity Platform side panel:
a. Choose whether to build your own sign-in page, or have IAP create one for you. Letting IAP create the sign-in page is the fastest way to get started. You don't need to deploy additional services or write any new code, and can specify minor customizations using JSON. See Hosting an authentication UI on Cloud Run to learn more.
c. Select whether to use project providers or tenants.
d. Check the boxes of the providers or tenants to enable. Select Configure providers if you need to modify your providers or tenants.
Click Save.
And from the second guide:
Enable external identities, and select the Host a sign-in page for me option during setup.
Navigate to a resource protected by IAP. You should be automatically redirected to the sign-in page.
I managed to setup the External Identity Providers and GCP says it's status OK.
Th guide says "You don't need to deploy additional services or write any new code", but when I get to thee last step to test the sign-in page, the page only displays this error:
"A specified resource is not found, or the request is rejected by undisclosed reasons."
I found no more explanation about the error, and I can't see any steps missing.
What else needs to be done to get the login page working?

Unable to set up the sign-in for the Cloud Run instance and unable to roll the changes back, lost the access to my Cloud Run URL

I tried different official tutorials but they all ended up to be misleading.
The last one was this: https://cloud.google.com/iap/docs/cloud-run-sign-in -- it ​says:
Enable external identities, and select the Host a sign-in page for me option during setup.
But there was no such option. No new Cloud Run instance was created and so nothing has happened. Then after a while I've updated the source code of my application, redeployed and the blue login button appeared on the Cloud Run instance URL instead. NO documentation tell that "on this step you'll now see the blue button" so I don't know for sure what it is. When I went through the dialog it said I should add the Cloud Run instance URL to the "allowed origins" in the OAuth app I created a week ago by trying different tutorials I mentioned in the first place. Aha! I add the URL as allowed but this does nothing -- it just loops, the dialog leaves me on the same page with the same blue button instead of my Cloud Run instance response that now I effectively have no access to. I am the GCP Project owner and I want this all to check that it's me to invoke the Cloud Run. How does this specific OAuth app blocks this specific Cloud Run instance at all? I have multiple apps made in months or years and multiple Cloud Run instances but only now this blue button appeared.
Being unable to make it work I decided to roll it all back. I allowed the Unauthenticated calls to my Cloud Run instance, disabled the IAP API, deleted the OAuth app, redeployed several times, but the blue button is still there with dialog saying: "The OAuth client was deleted." And I see nothing like my current problem to be described on https://cloud.google.com/run/docs/troubleshooting
So now not only the whole thing didn't work (the "sign-in page" does not deploy, not even if I disable and enable the IAP API again) but I've lost the access to the Cloud Run instance at all -- it's blocked by the blue button that is nowhere to disable. Even when I deploy new services they are behind this broken thing.
UPD: after a while I've realised that I didn't really lose any access -- the "blue button" was an artifact of the failed tryings to setup the auth, a my own copypasted htm page that didn't work, and I was just visiting the wrong path appended to the service URL. So the question is half-invalid. Though the problem of the "create a sign-in page for me" persists.
Currently, IAP is only supported with App Engine, Compute Engine and HTTPs Load balancers. Cloud Run isn't yet supported. It is planned to be supported in the near future.
As a workaround you can check those two options in order to implement with your application:
1 - A similar stackoverflow post where is stated and answer about how to Google Sign in for Cloud Run
2 - A Cloud Run hosted version of an IAP in Terraform config made by the community
Also you can try to Setup a Load Balancer with Cloud Run and see if that solves the issue you're facing.
Enable external identities, and select the Host a sign-in page for me option during setup.
I believe this is referring to - when you turn on IAP and choose 'use external identities for authorization', there is an option that says - 'Create a sign-in page for me' with a note which says - IAP will create a sign-in page for you using Cloud Run and Firebase UI
2.
I tried following the steps and after checking the option to 'create a sign-in page for me', it showed me a popup window with a message that it was creating a Cloud Run instance for me. After about 3 minutes, it said it was done and showed me url for the Cloud Run instance and a link to the page settings
3.
Regarding access to the Cloud Run instance, I think it's best to just delete it from the UI (Google Cloud Console). Redeploying will then recreate the Cloud Run service and you should no longer have the 'blue button' since you say you have disabled it

IIS Manager - Cant start W3SVC and IIS Admin is missing from Service

I am trying to start W3SVC on Windows 10 but I am facing several issues here:
I went to Task Manager and clicked the Services tab then I found the W3SVC service and I right clicked it and choose start but it did not start. I tried to click it several times.
I do have IIS Manager but IIS Admin is missing from Services which I do not know why.
World Wide Web Publishing Service is turned on and it is running automatically The dependencies tab have everything in there as it should be. HTTP Service and Window Process Activation Service
I did try to restart IIS in command prompt iisreset. But it failed and the error appeared:
The IIS Admin Service or the World Wide Web Publishing Service, or a service dependent on them failed to start. The service, or dependent services, may had an error during its startup or may be disabled.
I am trying to run a custom website I created on IIS Manager but it wont start. The error appeared:
Cannot start service w3svc on computer
I tried to start "World wide web publishing service", but I was unable to start it as it said:
Error 1068: The dependency service or group failed to start
I want to start the website that I created in my inetpub and I want this w3svc up and running
open Control Panel->Programs->Programs and Features->Turn windows features on or off -> Uncheck "Internet Information Services" and "Windows Process Activation Service"
Restart your machine.
open Control Panel->Programs->Programs and Features->Turn windows features on or off -> install both "Internet Information Services" and "Windows Process Activation Service"
if you still face issue then check the event viewer log.
Try this commands on cmd:
reg delete HKLM\SYSTEM\CurrentControlSet\Services\WAS\Parameters /v GenerateKeys /f
net start w3svc
net stop apphostsvc
net start apphostsvc

No synapse button in ESB 4.8.1 Management console

I downloaded WSO2 ESB 4.8.1 and started the wso2 server and got the management console up and running. But there does not exist a button called "Synapse" under the configure tab in the top left corner in the management console. I want it to open the synapse-configuration.xml to change the configuration to secure the service. Can anyone tell me why this "Synapse" button is not there in the configure tab in the ESB management console and hoe I can get it?
Use "Source view" menu. It will open the synapse-configuration.xml. See following image.