Why is the connection to microsoft sql stopped working? - sql-server-2008

I have a service which connects with Ms Sql. The connection is running successfully from local system. But after deployment throws following error.
Could not obtain connection to query metadata : The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "The server selected protocol version TLS10 is not accepted by client preferences [TLS13, TLS12]
The only change that was done in Dockerfile was last 3 lines:
FROM openjdk:11-jre-slim
COPY /target/app-exec.jar /app-exec.jar
RUN apt-get update && apt-get -y install wget
RUN apt-get install curl -y
RUN wget -O dd-java-agent.jar https://dtdg.co/latest-java-tracer
Even after reverting changes I am getting same error.
Could you please help me with this issue?

Recently TLS 1.0/1.1 is not enabled by default in the upcoming versions of OpenJDK updates (since April 20)
Quick solution for me was to downgrade version to following:
FROM openjdk:11.0.6-jre-slim

Related

Unhandled rejection SequelizeConnectionError: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server

Unhandled rejection SequelizeConnectionError: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client
Im on ubuntu with the latest mysql db using node, meteor.js framework and mysql npm package. On suspicion that my app needs administer rights (sudo), since mysql also requires sudo, I try and start the app as sudo which is when I get this warning:
jk#jk-Aspire-E5-521:~/Documents/garlic$ sudo meteor
[sudo] password for jk:
You are attempting to run Meteor as the 'root' superuser. If you are
developing, this is almost certainly not what you want to do and will likely
result in incorrect file permissions. However, if you are running this command
in a build process (CI, etc.), or you are absolutely sure you know what you are
doing, set the METEOR_ALLOW_SUPERUSER environment variable or pass
--allow-superuser to proceed.
Even with METEOR_ALLOW_SUPERUSER or --allow-superuser, permissions in your app
directory will be incorrect if you ever attempt to perform any Meteor tasks as
a normal user. If you need to fix your permissions, run the following command
from the root of your project:
sudo chown -Rh .meteor/local
https://github.com/mysqljs/mysql/issues/1507#issuecomment-242885003
This appears to be mysql bug, restart the server after change. Changing password is unlikely to solve the issue.

Chef server error on create user (/etc/opscode/pivotal.rb does not exist)

I am extremely new to chef and I am attempting to create a chef server running on a Digital Ocean Ubuntu 14.04 droplet. I am using this guide for the install. I download the .deb and installed it fine. I then run chef-server-ctl reconfigure which runs without an issue. When I go to create my user I enter in all the details and run it, it then waits a few seconds and returns the error ERROR: CONFIGURATION ERROR:Specified config file /etc/opscode/pivotal.rb does not exist
I have scoured the internet to try and find a fix but haven't been able to find a thing. I have also tried doing these exact steps on a VPS running Ubuntu 12.04.5 and getting identical results.
For /etc/opscode/pivotal.pem is missing error use following command.
cp /opt/opscode/embedded/service/omnibus-ctl/spec/fixtures/pivotal.pem /etc/opscode/
Ran into the same thing when trying to install chef in an VM.
Expanding the memory (from 512Mb to 1512Mb) and reran reconfigure solved it for me.
Same problem here. An older version, for example 12.03 of chef-server works for me with Ubuntu 14.04
I got this error because my /etc/opscode/chef-server.rb had a syntax error.
The syntax error was displayed earlier in the logs, however my install script has kept going, causing later on this error.
More than likely, you have forgotten to run chef-server-ctl reconfigure. It's ambiguous naming of the command as it's reconfigure, however the installation guide for Chef Server actually states to run it after installing the package.
Why it's not part of the installation process is beyond me.
I had this problem as well. I exited my ssh session to the node I was configuring. I connected again and ran chef-server-ctl reconfigure again. I was able to then create a user without the error. I was using chef-server-core_12.1.0-1_amd64.deb for my install.
I got the same error with Ubuntu trusty 14.04 64 bit
/etc/opscode/pivotal.rb does not exist. I followed what Matthias Said and destroyed my VM ( I'm using Vagrant), then I quickly set up the VM and installed Chef server 12.03. I can now set up users correctly.
Just an FYI I also tried to install the latest version of chef which is 12.2.0 and do this but I also ran into the same error when trying to provision a user account.
Downgrading to 12.03 solved it for me.
I run in the same issue on CentOS 7 and Chef Infra Server 12.19.31; the following steps helped me to get the root cause of the problem.
Re-run the chef-server-ctl reconfigure and check if it gives any error at the end of the run
In my case, I received the error
Chef Client failed. 0 resources updated in 02 minutes 19 seconds
Check the stack trace / output log on
/var/opt/opscode/local-mode-cache/chef-stacktrace.out
I received
Errno::ENOMEM: Cannot allocate memory - ls -1 /opt/opscode/embedded/service/oc_id/db/migrate | tail -n 1 | sed -e "s/_.*//g"
To solve the problem, I upgraded the system with higher memory.
TL;DR;
Rerun the chef-server-ctl reconfigure to get the error
Upgrade the allocated memory to solve the issue
Me too got this error while installing chef infra server pkg in centos 8.
"ERROR: CONFIGURATION ERROR: Specified config file /etc/opscode/pivotal.rb does not exist"
Post Memory up-gradation I re-run below cmd its fixed issue:
sudo chef-server-ctl reconfigure

MySQL Workbench Will not connect to localhost. "Database server instance is unknown"

My MySQL Workbench is not connecting to my local host, and I cannot figure out why exactly it is reacting like this. It just started doing this one day, and randomly it will give me access although it says it is still "unknown", but I am tired of this and would like to fix it.
Since this website reqires that I have a "10" reputation to post images, I will have to describe it.
On the Startup/Shutdown tab in the administration page, it says:
The database server instance is unknown. --The "Start Server" button is faded out so that I cannot click it.
Startup Message Log
2013-07-11 08:57:51 - Workbench will use cmd shell commands to start/stop this instance
2013-07-11 08:57:51 - Status check of service 'MySQL' returned error: Not found
2013-07-11 08:57:51 - Status check of service 'MySQL' returned error: Not found
2013-07-11 09:00:55 - Status check of service 'MySQL' returned error: Not found
2013-07-11 09:00:55 - Status check of service 'MySQL' returned error: Not found
2013-07-11 09:02:01 - Status check of service 'MySQL' returned error: Not found
Then on the server status tab in the administration page, it says:
Name: mysqld#localhost
host: localhost
server:unknown
status: unknown
Connection
There is no connection to the MySQL server. This functionality requires an established connection to a running MySQL server to work.
If anyone can help out, that would be great!
Thanks
I had this problem on my Windows 8.1 machine and it turned out to be problems with the file permissions.
To repair it I went into the folder at "C:\Program Files\MySQL\MySQL Server 5.6" and right clicked on the "data" folder and selected properties. Clicked the security tab and clicked edit. From there click the ADD button then the ADVANCED button and finally the FIND NOW button. In mine I added users, administrators, and "ALL APPLICATION PACKAGES". I granted full control to the users that were already listed for the data folder and the users, administrators, and ALL APPLICATION PACKAGES.
After the permissions were repaired I opened a command prompt as administrator and changed to the "C:\Program Files\MySQL\MySQL Server 5.6\bin" directory cd "C:\Program Files\MySQL\MySQL Server 5.6\bin". From there you can execute mysqld --install which installs the MySQL service.
More information about installing the mysql service on windows can be found at http://dev.mysql.com/doc/refman/5.0/en/windows-start-service.html
[edit] Please note that if you are using a different version of MySQL than the path to the MySQL data directory and bin directory may be different on your windows machine.
The error message says it: the service with the name MySQL cannot be found. So probably your MySQL service has a different name? Do you have a service at all? Starting mysql manually from the bin folder is just that: manual. There is no service involved, hence WB cannot manipulate the run state.
When you install MySQL with the MySQL installer you have everything in place within a couple minutes and it works right from the start.
So first check if you have a service running for your MySQL server and stop starting it manually. If there's a service take its name and enter it in the Windows Service Name field of the configuration manager:
Note that MySQL Workbench can manage your server only if it is installed as a Windows service.
I had this problem on my Windows 8.1, and I solved it updating my workbench to Version6 with "mysql-installer-web-community-5.6.16.0.msi" from the official page of mysql
I have found reinstalling all MySQL products a better alternative, because some of the solutions on the internet will make another instance of your mysql server along with mysql56, which might mess things up for a beginner.
Remember to keep database files and configuration undeleted during the reinstallation.
I had problem on MAC.
Please ensure you have installed mysql and its running. Because installing only workbench app, will not install mysql service. First install mysql and run the service.
In my case, I tried with brew
brew install mysql // installing mysql
brew services restart mysql // restart service after installing
mysql --version // check version

Appfog mysql tunnel error - Encryption not available on this event-machine

We've established a connection to appfog using caldecott and af tunnel command. We try to connect to a mysql service to load and execute a big .sql file to populate the db.
We tried it from 3 different machines Ubuntu on VirtualBox, Feora 18 on VirtualBox and native Ubuntu. We also tried it on another account, but we keep getting this error:
Launching 'mysql --protocol=TCP --host=localhost --port=10000 --user=uZVQhGhbYEzyb --password=pNu1l6xbXVhbj d39d6d0e6344b41a4aaeada16dfca2a46'
terminate called after throwing an instance of 'std::runtime_error'
what(): Encryption not available on this event-machine
ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0
Aborted (core dumped)
Thanks to appfog customer support I managed to solve this problem. My distro lacked an ssl provider.
To solve this on fedora
yum install openssl openssl-devel
gem uninstall eventmachine
gem install eventmachine
However I still had a problem with executing big sql scripts. Does anyone know a neat solution to this issue?
For a Windows system, I got it to run by doing the following:
Install Win32 OpenSSL v1.0.1e Light from here
Install Visual C++ 2008 Redistributables from the same link if not already installed.
Re-install eventmachine in Ruby with the newly installed open-ssl.
gem install eventmachine -- --with-ssl-dir=C:\OpenSSL-Win32
(you might need C:\OpenSSL-Win32\bin)
After the installation is complete, you're ready to tunnel to any service! (In my case postgresql)

Fail configuration of MySQL server installation

I was trying to reinstall MySQLServer on my local machine (Win7 32), using Windows (x86, 32-bit), MSI Installer.
When wizard configure server, after installation, gives the error "Configuration failed", with details:
mysql-server-5.5-win32:6 - Looking for valid template
mysql-server-5.5-win32:13 - Found valid template.
mysql-server-5.5-win32:20 - Attempting to process template.
mysql-server-5.5-win32:26 - Processed template.
mysql-server-5.5-win32:33 - Attempting to configure service.
mysql-server-5.5-win32:40 - Configured service.
mysql-server-5.5-win32:46 - Attempting to start service.
mysql-server-5.5-win32:100 - Unable to configure service.
mysql-server-5.5-win32:100 - Product configuration controller finished configuration.
Why does it happen?
Can it result from using a wrong "old" password that I put in the installation wizard, to set a new password? If yes - How can I clean up ALL previous settings of MySQL server?
Uninstall MySql and all his components excepted Oracle installer, re launch installer, do normally, when your error comes, finish the procedure of installation.
Next step, in start menu search "services", execute services administration tool, right click on the service "MySql Server XX", select "Connexion" tab and check "system account" on start user, launch the process and it would work.
I was struggling with upper problem over 3 days and I think there is a bug when you want to install this with local connection (not tick TCP connection) via .msi installer. After i selected this the configuration passed properly with no fail configuration. My sollution was to run this with set tick on TCP connection and then in server folder in my.ini file just uncomment line # skip-networking .
Other tips:
Turn off the firewall or add rule for installer to accept public/private net connections.
Under admin privileages use netstat -ab | more command to check ports usage
If u fail with earlier installations run services.msc command find your service (installer set is as defauls something like MySQL56,MySQL56_1 - depending on version) get the name of this service and under admin privileage run cmd and type sc stop "coppiedServiceName" if the service is running and later sc delete "coppiedServiceName"
In some forum says that if might be usefull to turn of windows defender or antivirus too
If you change default installation directory after reinstall check for old install files on C:\Program Files C:\ProgramData and get rid of them
Hope somebody find this usefull.
I had the same issue on Windows XP. The problem was caused by the localization. I had to change the path to the All User's AppData folder using regedit. The original path contained a non ANSI character.
The registry key is this:
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"
The value name is this:"Common AppData"
The original value was: "%ALLUSERSPROFILE%\Data aplikací"
I changed it to: "%ALLUSERSPROFILE%\AppData"
Then the installer succeeded.
NOTE: Uninstall MySQL first, then change the path, then install MySQL again.