Can't point shell at local spring cloud data flow server? - spring

I am learning how to use Spring Cloud Data Flow. A lot of the tutorials make use of the shell so I am trying to get that set up. I am able to start the shell but I get server unknown. I have been trying to point the shell at my local running instance of the server (dataflow config server http://localhost:9393)but I keep getting the errors listed below. I am able to navigate to my server and run applications so I know that it is working on port 9393, not sure why the shell can not see it. I am running version 1.0.0.M3 for the shell.
I have tried the following.
server-unknown:>dataflow config server http://localhost:9393
Unable to contact Data Flow Server at 'http://localhost:9393': 'java.lang.IllegalArgumentException: Deployments relation is required'.
server-unknown:>dataflow config server 'http://localhost:9393'
Unable to contact Data Flow Server at 'http://localhost:9393':
'java.lang.IllegalArgumentException: Deployments relation is required'.
server-unknown:>dataflow config server http://localhost:9393
Unable to contact Data Flow Server at 'http://localhost:9393': 'java.lang.IllegalArgumentException: Deployments relation is required'.
server-unknown:>dataflow config server --uri http://localhost:9393
Unable to contact Data Flow Server at 'http://localhost:9393': 'java.lang.IllegalArgumentException: Deployments relation is required'.
server-unknown:>dataflow config server http://localhost:9393/
Unable to contact Data Flow Server at 'http://localhost:9393/': 'java.lang.IllegalArgumentException: Deployments relation is required'.
server-unknown:>dataflow config server \http://localhost:9393/
Unable to contact Data Flow Server at '\http://localhost:9393/': 'java.lang.IllegalArgumentException: Illegal character in scheme name at index 0: \http://localhost:9393/'.
server-unknown:>dataflow config server https://localhost:9393/
Unable to contact Data Flow Server at 'https://localhost:9393/': 'org.springframework.web.client.ResourceAccessException: I/O error on GET request for "https://localhost:9393/": Unrecognized SSL message, plaintext connection?; nested exception is javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?'.
server-unknown:>dataflow config server --uri http://localhost:9393/ --skip-ssl-validation true
Option 'skip-ssl-validation' is not available for this command. Use tab assist or the "help" command to see the legal options

The 1.0.0 M3 version is at least 2yrs old.
Please upgrade to the latest GA release for bot SCDF and the Shell applications. You can get the latest release coordinates for the both from the getting-started guide.

Related

ADF Oracle Service Cloud connector - correct endpoint

In Azure Data Factory, I'm trying to create a linked service by using the Oracle Service Cloud (Preview) connector to connect to my organisation's Oracle HCM instance. I'm generally following this guidance, using the copy data tool, which should be straightforward: https://learn.microsoft.com/en-us/azure/data-factory/connector-oracle-service-cloud?tabs=data-factory
I have tried the following host names...
https://xxxx.xx.xxx.oraclecloud.com/
https://xxxx.xx.xxx.oraclecloud.com/hcmRestApi
https://xxxx.xx.xxx.oraclecloud.com/hcmRestApi/resources/11.13.18.05/grades
https://xxxx.xx.xxx.oraclecloud.com:443/hcmRestApi/resources/11.13.18.05/grades
... but all of the generate the following error...
Error code 9603
ERROR [HY000] [Microsoft][OSvC] (20) Error while attempting to use REST API: Couldn't resolve host name
ERROR [HY000] [Microsoft][OSvC] (20) Error while attempting to use REST API: Couldn't resolve host name
Activity ID: 590c5007-ec6f-4729-9eb2-d05ef779dc0e.
I'm using a username and password that has been tested on Oracle, and have tried various combinations of using encrypted endpoints, host verification and peer verification as true or false.
I believe I'm using the correct endpoints, based on Oracle's guidance:
Oracle REST endpoints
https://docs.oracle.com/en/cloud/saas/human-resources/22c/farws/rest-endpoints.html
I'm not sure what else to try to get this connector to work? Has anybody else got it to work, or perhaps noticed something I'm doing wrong with the host name?

AEM XTM Translation Connector needs to be proxied

I am currently working in a AEM 6.5 environment trying to setup the XTM Translation Connector. I have successfully configured this on my local environment by doing the following:
Installing the XTM Translation Connector content package
Configuring credential (Web Service URI, XTM Client Name, User ID, Password) into /mnt/overlay/cq/translation/cloudservices/editor.html/conf/corp/settings/cloudconfigs/translation/xtm/xtm-translation
When I click the Verify button I am prompted with the message:
Connection parameters correct.
That said when I follow these same steps in my dev, stage, prod environments in a different network than my local, I am prompted with the message:
Connection parameters incorrect.
I dove into the logs and found:
[com.xtm.translation.connector.xtm-for-aem.core:1.5.2.SNAPSHOT]
...
Caused by: java.net.SocketTimeoutException: SocketTimeoutException invoking Web_Service_URI: connect timed out
I happen to know that this network uses a proxy server for external connections and reaching out to the internet. So I tried configuring the Apache HTTP Components Proxy Configuration in /system/console/configMgr and then testing the XTM Translation Connector connection again but it doesn't even seems like the XTM Translation Connector is even trying to use the proxy when it tries connecting based on error.log messages.
How can I get this XTM Translation Connector to use this proxy ?
Any thoughts on this are welcomed.
Thanks.

Unable to fetch the metadata : Failed to execute OData Metadata request. error after deploying s4sdk to cloud foundry

I am getting the below response while calling /businesspartners api after deploying s4sdk app to cf.
I was able to test this app by deploying locally (after ALLOW_MOCKED_AUTH_HEADER: true), so i deployed the appl'n to cloud foundry, and tried using destinations service(insted of env), below are the steps that i followed.
step 1: Set up the cloud connector
step 2: Create service instance of xsuaa and destinations
step 3: Refer this in app yaml file
step 4: Push the package to cloud. (mvn clean package; cf push)
step 5: Now i went ahead and configured destinations; (app>> service instance>>destinations)
Here i couldn't test the connectivity, when i pressed "check connection" i was getting the below error:
How do i test this connection?
step 6: With the belief that the connection is working i went ahead and restarted the app, and started testing api's. the app was up but when i was getting above(fig.1) error.
step 7: Tried looking at the logs, and notices the below to errors
could anyone help over here to resolve this issue..?
Tried with setting "ALLOW_MOCKED_AUTH_HEADER" -> same two issue
Tried removing properties in destinations, but same errors.
Could not try with destinations variable in CF, as our S4 system is not publicly opened, so tried it locally it works.
Tried with Neo, it works both locally and on cloud.
But after pushing to CF, couldn't manage to run
Thanks,
Girish
You additionally need to bind your application to an instance of the connnectivity service on Cloud Foundry to communicate via the Cloud Connector. This is mentioned, albeit a bit hidden, in the error message "Failed to get connectivity service credentials: no service binding found".
Create a service instance with cf create-service connectivity lite my-connectivity.
Add the name of this instance to the section services in your manifest.yml file.
If you still face issues afterwards, please also try to remove the proxyPort and proxyHost properties from your destination. Those should not be required.
For more details about on-premise connectivity on SAP Cloud Platform Cloud Foundry, consult the following blog post.

Unable to execute odata calls using S4Hana SDK in cloud foundry environment with oAuth2SAMLBearerAssertion authentication

I'm trying to connect to s4 hana system using s4 sdk. While executing calls via .execute() method in cloud foundry environment, i see below error logs:
Caused by: com.sap.cloud.sdk.cloudplatform.connectivity.exception.DestinationAccessException: Failed to get authentication headers. Destination service returned error: Missing private and public key for subaccount ******-****-****-***-*******.
Note: I've already configured trust between subaccount and S4Hana system and created respective communication and business user. The associated authentication method used in the destination is oAuth2SamlBearerAssertion. Note: The call executes fine in both local and cloud foundry environment with basic authentication.
Can someone please suggest what is wrong here.
As correctly pointed out by #Dennis H there was a problem in trust configuration between my subaccount and S4 Hana system, the configuration wrong in my case :
-> The certificate I downloaded for trust was using this URL:
https://.authentication.eu10.hana.ondemand.com/saml/metadata
This is incorrect we need to get the certificate from download trust button in destination tab at subaccount level
->Provider name was incorrect in the communication system.
We are developing a side-by-side extension app and deploying it to CF. Our app is trying to connect to S4HANA cloud system using oAUTH2SAMLBEARERASSERTION. But facing issues while doing it. We are getting below error in logs. Please be noted, we are able to connect to S4HANA Cloud using basic auth.
com.sap.cloud.sdk.cloudplatform.connectivity.exception.DestinationAccessException: Failed to access the configuration of destination
Our destination parameters look as attached screenshotenter image description here
Thank you.

Issue after informatica installation

After Successful Installation of Informatica 9.6.1 server and client on win-8.1
i am facing the below error while configuring Domain in IPC client Repository Manager tool:
Unable to save information for domain Domain_Hostname.
[PCSF_46026] Unable to find valid TrustStore certificate in PEM format
[ERROR: Cannot connect to Integration Service [xx].][1]
Thank you #user5468563,the solution in mentioned link didn't work,but the idea and key words in the link has made me to find solution
At last i found solution for this question.
Actually i faced this issue because of enabing secure communication for the domain while installing INFA9.6.1 server.
solution is after successful installation log in Administrator console
After successful Creation of Repository service and Integration service,
go to
Integration service --> Edit Advanced Properties --> Trust Store -->
Add value in Trust Store,Enter the value for Trust Store using the following
syntax:
/
for Example:
C:\Informatica\9.6.1\server\samples\WebServices\ssl/wsh.keystore
click OK and restart the service
Now,we can Configure Domain in Repository Manager and can Connect to Repository under respective domain

Resources