Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alive check does not work #7

Open
janfejtek opened this issue Jul 3, 2023 · 0 comments
Open

Alive check does not work #7

janfejtek opened this issue Jul 3, 2023 · 0 comments

Comments

@janfejtek
Copy link

timeout in sqlcmd does not work when connection fails.

There would probably need to be another sleep

while [[ $STATUS -ne 0 ]] && [[ $i -lt 30 ]]; do

Until then, this message is not true, because the check runs for about 700ms

echo "Error: MSSQL SERVER took more than thirty seconds to start up."

[service:mcmoe__mssqldocker-mcmoe-mssqldocker-mssql] 2023-07-03T06:57:27.680714189Z Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Login failed for user 'sa'..
[service:mcmoe__mssqldocker-mcmoe-mssqldocker-mssql] 2023-07-03T06:57:27.716829301Z Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Login failed for user 'sa'..
[service:mcmoe__mssqldocker-mcmoe-mssqldocker-mssql] 2023-07-03T06:57:27.751248917Z Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Login failed for user 'sa'..
[service:mcmoe__mssqldocker-mcmoe-mssqldocker-mssql] 2023-07-03T06:57:27.795299490Z Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Login failed for user 'sa'..
[service:mcmoe__mssqldocker-mcmoe-mssqldocker-mssql] 2023-07-03T06:57:27.831082120Z Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Login failed for user 'sa'..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant