I have Spring Boot java (Gradle) application deployed on Pivotal Cloud Foundry and I have Database connection with local Oracle SQL developer which is 18.2.0.183 version. After deploying the service to Cloud Foundry and creating user provided service in PCF to connect to my local DB, Cloud Foundry doesn't let me connect to my local Oracle Sql Developer DB. It throws this error:
org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection
So How can I properly send a Oracle config in user provided service so that it connects.
Related
I have a server available at AWS and the client is asking to connect to their MariaDB database remotely which is available on their server that is accessible via VPN.
So, how is it possible to connect to a remote database from the web application hosted on my AWS server?
Thanks in advance.
I have an issue with postgres database in cloud foundry. Created service using cloud foundry market place. Application worked good until yesterday, and today not able to connect to database or ping it. I am not sure where to check service logs or how to restart postgres service in cloud foundry. Any one have some ideas please respond to this thread. Thanks. I can see below error in application logs.
Caused by: org.postgresql.util.PSQLException: The connection attempt failed.
Tried to ping database host IP address, but shows down.
Can I access a PostgreSQL instance set up on Google Cloud Engine from my local host via Cloud SQL Proxy or another way?
I'm trying to move a PostgreSQL database from Cloud SQL to Compute Engine for testing purposes. So far, I 've been using Cloud SQL Proxy to run Django migrations on Cloud SQL from my local host, and I'd like to do the same with the database set up on GCE.
Yes you can access a postgresl instance set on Google Cloud Engine form local host.
You need to follow these steps:
Install PostgreSQL on a Compute Engine instance.
Configure PostgreSQL for remote access.
Configure a Cloud Platform firewall to open a port.
Connect to PostgreSQL from a remote computer.
How to set up PostgreSQL on Compute Engine
Independent Azure Web job is not able to connect to SQL Server hosted in an Azure VM.
But we are able to connect to the same SQL SERVER from our local computers.
Error details :
The underlying provider failed on Open.
The job failed with exception :
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - No such host is known.)
Is the webjob able to connect to the SQL DB hosted in Azure VM now? Also, is the Azure VM hosted in west Europe? If yes, you might have received a message on the Azure portal and Service Health Dashboard (banner).
I deployed spring cloud data flow server cloud foundry to PCF (with cf push SPRING_CLOUD_DATA_FLOW_SERVER_CLOUD_FOUNDRY JAR).When i run it it try to connect to http://localhost:8888 as a config server.
I'm using my own config sever and in manifest file i'am using services: config-service (as a user provided service).But even with this config it will try to connect http://localhost:8888.
This is my manifest file:
Thanks
It is most likely that you haven't bound your Config server service config-service to the SCDF cf server. You can either edit your SCDF server manifest YAML to add config-service into services or do the binding explicitly as cf bind-service <scdf-cf-server> <config-service>.