mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-03-02 22:57:00 -05:00
Microsoft SQL Server - can't log in #2333
Labels
No labels
A:accessibility
A:api
A:cert-expiry
A:core
A:dashboard
A:deployment
A:documentation
A:domain expiry
A:incidents
A:maintenance
A:metrics
A:monitor
A:notifications
A:reports
A:settings
A:status-page
A:ui/ux
A:user-management
Stale
ai-slop
blocked
blocked-upstream
bug
cannot-reproduce
dependencies
discussion
duplicate
feature-request
feature-request
good first issue
hacktoberfest
help
help wanted
house keeping
invalid
invalid-format
invalid-format
question
releaseblocker 🚨
security
spam
type:enhance-existing
type:new
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/uptime-kuma#2333
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @filipdot on GitHub (Jul 5, 2023).
⚠️ Please verify that this bug has NOT been raised before.
🛡️ Security Policy
📝 Describe your problem
Can't login into MSSQL.
I use login sa, add new user uptimekuma and uptimekuma1 with right to read database with password: "password" but can't login into MSSQL. When using SSMS i can log in so login and password are ok. What could be wrong?
Connection string:
Server=192.168.10.201,1434;Database=[DATABASENAME]; User Id=uptimekuma1;Password=[password];Encrypt=true;TrustServerCertificate=Yes;Connection Timeout=30
SELECT TOP (1000) [Name]
,[VersionMajor]
,[VersionMinor]
,[VersionBuild]
,[VersionRevision]
,[DeploymentName]
,[DeploymentManifest]
FROM [DATABASENAME].[Launcher].[InstalledProducts]
📝 Error Message(s) or Log
SSMS logs from SQL:
Message
Login failed for user 'uptimekuma1'. Reason: Password did not match that for the login provided. [CLIENT: 192.168.10.100]
Message
Login failed for user 'uptimekuma'. Reason: Password did not match that for the login provided. [CLIENT: 192.168.10.100]
Uptimekuma logs:
[MONITOR] WARN: Monitor #2 'SQL': Failing: Login failed for user 'uptimekuma1'. | Interval: 60 seconds | Type: sqlserver | Down Count: 0 | Resend Interval: 0
🐻 Uptime-Kuma Version
YARN_VERSION=1.22.19
💻 Operating System and Arch
Docker on Ubuntu 22.04
🌐 Browser
firefox 114.0.2 (64 bity)
🐋 Docker Version
Standalone 24.0.2
🟩 NodeJS Version
No response
@CommanderStorm commented on GitHub (Jul 5, 2023):
@filipdot commented on GitHub (Jul 6, 2023):
i use password as: password and still fail.
yes, as i say i log in using SQL Server Management Studio (SSMS)
something is happening in uptime kuma that change wording of password
@CommanderStorm commented on GitHub (Jul 6, 2023):
Are you certain that
passwordis your password?when I try
sudo docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=password" -p 1433:1433 mcr.microsoft.com/mssql/server:2022-latestI get:
@filipdot commented on GitHub (Jul 6, 2023):
I'm billion % certain. 💯
mate i have already administrative password for admin (SA) and i add new user (second login) uptimekuma and (third login) uptimekuma1 and i set their password using SSMS and password is "password".
As i sayed i can successfully login into my MSSQL using SSMS using uptimekuma as login and password as password. Only UptimeKuma can't handle that and MSSQL logs says that password is wrong. I also try hard password first but because of that bug i try easy one. Login using SA (admin user) doesn't work. IDK why. I think that's bug in formatting connection string but don't know where it it.
@Computroniks commented on GitHub (Aug 9, 2023):
@filipdot I don't seem to be able to reproduce this issue using the following steps:
Connection string Query
This all completes successfully and the monitor is marked as up. Is there any key differences you can spot between how I have tested this and how you run your system?
@filipdot commented on GitHub (Aug 9, 2023):
Server properties in Docker on Ubuntu 1804:

I test my credentials using SSMS Microsoft SQL Server Management Studio where i add new user over "sa" with name "uptimekuma".
Using SSMS i can connect and make query and get response
In uptimekuma connection string look like this:
Server=192.168.100.201,1434;Database=[DATABASENAME ]; User Id=uptimekuma;Password=[password];Encrypt=true;TrustServerCertificate=Yes;Connection Timeout=30
query:
SELECT TOP (1000) [Name]
,[VersionMajor]
,[VersionMinor]
,[VersionBuild]
,[VersionRevision]
,[DeploymentName]
,[DeploymentManifest]
FROM [DATABASENAME ].[InsLauncher].[InstalledProducts]
and it fails

don't know why, don't know what is special in my case.
In SSMS in logs i see that is something with password maching but i change it befor that try to "password" and still.
UPDATE:
new string:
Server=192.168.100.201,1434;Database=[DATABASENAME ]; User Id=uptimekuma;Password=password;Encrypt=true;TrustServerCertificate=Yes;Connection Timeout=30
And it work.
[ and ] next to password in Password make it wrong.
Now it's up.
Thank you for forcing me to do another check and poke it around.