Octopus deploy db connection error in linux container - sql-server

I created Octopus with docker-compose.yml and env file as below.
https://hub.docker.com/r/octopusdeploy/octopusdeploy
And built it, but I can't connect with database.
Error: 18456, Severity:14, State: 8.
Login failed for user 'sa'. Reason: Password did not match that for the login provided.
My database connection string in env file is like:
DB_CONNECTION_STRING=Server=db,1433;Database=OctopusDeploy;User=sa;Password=Password_01
Anyone can help me?

Related

How do i create and manage my database for online website?

I imported my Symfony project on heroku to see how it will be on production. But i got this error:
2022-03-18T13:30:30.230251+00:00 app[web.1]: [18-Mar-2022 13:30:30 UTC] [critical] Uncaught PHP Exception Doctrine\DBAL\Exception\ConnectionException: "An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused" at /app/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php line 103
2022-03-18T13:30:30.230298+00:00 app[web.1]
So it means that they can not connect to my database, it seems normal since the DATABASE_URL in the .env file is for the localhost(phpmyadmin, root, pwd ="", etc). I have seen that we can add add-ons and i tried to add one for database(ClearDB) but they asked for Credit card(but my one is not available now). I am now looking for a database manager so that i can create my database, get the database's parameters(username, password, etc.) and add it to the heroku app so that i can do my migrations and launch the wesbite.
Is this possible, with which software ?

Quarkus connect to SQL Server database with kerberos

When I try to run my Quarkus application with below command, the connection is established and working fine.
mvn clean compile quarkus:dev -Djava.security.krb5.conf=<path-to-my-krb5.conf-file>
When I want to deploy the application and package it with mvn package and then want to run the jar file, the connection to the database cannot be established.
java -jar -Djava.security.krb5.conf=<path-to-my-krb5.conf-file>
Can anyone help me with what I am doing wrong?
Error message
"Unable to execute the validation check for the default DataSource: Cannot login with Kerberos principal <DB_USERNAME>, check your credentials. Kerberos Login failed: Integrated authentication failed. ClientConnectionId:ed078e2e-addc-4582-9a83-68ad13040df1 due to javax.security.auth.login.LoginException (KrbException: Cannot locate default realm)"

Flask pyodbc odbc connect to SQL server docker google app engine

After trying several approaches such as this one on Mac and I still get the error below when I do gcloud app deploy. I also tried manually adding the freetds driver to ODBC Manager GUI but once I cick 'Ok' it doesn't show in the list of drivers. Same thing happends for the DSN for both user and system. I would greatly appreciate any help.
Step 6/14 : ADD odbcinst.ini /etc/odbcinst.ini
ADD failed: stat /var/lib/docker/tmp/docker-builder438222044/odbcinst.ini: no such file or directory
ERROR
ERROR: build step 0 "gcr.io/cloud-builders/docker" failed: step exited with non-zero status: 1

Google Cloud SQL: Acess Denied from App Engine only

I'm accessing Cloud SQL from App Engine in the same project. I have set the password to the root user. I'm able to connect from mysql command line remotely thusly:
C:>mysql -u root -h xxx.xxx.xxx.xxx -p <- IP address of my Cloud SQL
Enter password: <--- I supply passw0rd
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 20913
Server version: 5.7.14-google-log (Google)
However, when I try from App Engine:
Code snippet:
url = "jdbc:google:mysql://myproject:us-central1:myinst/mydb?user=root;password=passw0rd";
conn = (Connection) DriverManager.getConnection(url);
The error I get is:
com.google.gae.server.Connect getConnection: ERROR. Could not get connection. Access denied for user 'root;password=passw0rd'#'cloudsqlproxy~xxx.xxx.xxx.xxx' (using password: NO)
I have tried the url with just the user only, but no luck.
Appreciate any suggestions.
Found my error. The Java URL should have been:
url = "jdbc:google:mysql://myproject:us-central1:myinst/mydb?user=root&password=passw0rd";
I replaced the ; with &.
Works now.

SEVERE: Error creating the repository Refer to the logfiles at D:app/hp/cfgtools/logs.. in oracle 11g

SEVERE: Error creating the repository Refer to the logfiles at
When I want to created a repository for start db console following error occured
SEVERE: Error creating the repository Refer to the logfiles at D:app/hp/cfgtoolslogs/ecma/orcl...
.Guide What I do
I Used following steps
emca -repos create
Enter the following information:
Database SID: prod9
Listener port number: 1522
Password for SYS user:
Password for SYSMAN user:
Do you wish to continue? [yes(Y)/no(N)]: Y
But its show error not created a repository guide me what I do in oracle 11g?

Resources