Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3424

Off-Topic • [Software] Microsoft SQL Server Not able to Login

$
0
0
I have installed Microsoft SQL Server in my Debian 12 Bookworm. It got installed successfully. I have started and enabled the sql services and also i have installed ODBC. But i was not able to login with the password that i have given during the installation. It shows the below error:

Code:

Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Login timeout expired.Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : TCP Provider: Error code 0x2749.Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online..
When this command is provided it shows as below:

Code:

odbcinst -q -d -n[ODBC Driver 17 for SQL Server][ODBC Driver 18 for SQL Server]
Before Login I have checked the status:
When below command is given:

Code:

sudo systemctl status  mssql-server● mssql-server.service - Microsoft SQL Server Database Engine     Loaded: loaded (/lib/systemd/system/mssql-server.service; enabled; preset: enabled)     Active: active (running) since Sat 2025-02-01 19:22:43 IST; 3s ago       Docs: https://docs.microsoft.com/en-us/sql/linux   Main PID: 9775 (sqlservr)      Tasks: 96     Memory: 1.9G        CPU: 10.068s     CGroup: /system.slice/mssql-server.service             ├─8755 sh /opt/mssql/bin/compress-dump.sh /var/opt/mssql/log/core.sqlservr.7767.temp /var/opt/mssql/log/core.sqlservr.02_01_2025_19_22_30.7767             ├─8756 /bin/tar cjf /var/opt/mssql/log/core.sqlservr.02_01_2025_19_22_30.7767.work -C /var/opt/mssql/log/core.sqlservr.7767.temp .             ├─8757 /bin/sh -c bzip2             ├─8758 bzip2             ├─9771 sh /opt/mssql/bin/compress-dump.sh /var/opt/mssql/log/core.sqlservr.8761.temp /var/opt/mssql/log/core.sqlservr.02_01_2025_19_22_41.8761             ├─9772 /bin/tar cjf /var/opt/mssql/log/core.sqlservr.02_01_2025_19_22_41.8761.work -C /var/opt/mssql/log/core.sqlservr.8761.temp .             ├─9773 /bin/sh -c bzip2             ├─9774 bzip2             ├─9775 /opt/mssql/bin/sqlservr             └─9777 /opt/mssql/bin/sqlservrFeb 01 19:22:43 debian systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.Feb 01 19:22:43 debian systemd[1]: mssql-server.service: Found left-over process 9772 (tar) in control group while starting unit. Ignoring.Feb 01 19:22:43 debian systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.Feb 01 19:22:43 debian systemd[1]: mssql-server.service: Found left-over process 9773 (sh) in control group while starting unit. Ignoring.Feb 01 19:22:43 debian systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.Feb 01 19:22:43 debian systemd[1]: mssql-server.service: Found left-over process 9774 (bzip2) in control group while starting unit. Ignoring.Feb 01 19:22:43 debian systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.Feb 01 19:22:43 debian systemd[1]: Started mssql-server.service - Microsoft SQL Server Database Engine.Feb 01 19:22:47 debian sqlservr[9777]: 2025-02-01 19:22:47.43 Server      Setup step is FORCE copying system data file 'C:\templatedata\model_replicatedmaster.mdf' to '/var/op>Feb 01 19:22:47 debian sqlservr[9777]: [178B blob data]Feb 01 19:22:47 debian sqlservr[9777]: [162B blob data]Feb 01 19:22:47 debian sqlservr[9777]: [160B blob data]
After trying login. the service gets failed. When status is checked it shows below message:

Code:

sudo systemctl status  mssql-server× mssql-server.service - Microsoft SQL Server Database Engine     Loaded: loaded (/lib/systemd/system/mssql-server.service; enabled; preset: enabled)     Active: failed (Result: exit-code) since Sat 2025-02-01 19:23:47 IST; 57s ago   Duration: 22.302s       Docs: https://docs.microsoft.com/en-us/sql/linux    Process: 11759 ExecStart=/opt/mssql/bin/sqlservr (code=exited, status=1/FAILURE)   Main PID: 11759 (code=exited, status=1/FAILURE)      Tasks: 20     Memory: 3.4G        CPU: 4min 43.695s     CGroup: /system.slice/mssql-server.service             ├─ 8755 sh /opt/mssql/bin/compress-dump.sh /var/opt/mssql/log/core.sqlservr.7767.temp /var/opt/mssql/log/core.sqlservr.02_01_2025_19_22_30.7767             ├─ 8756 /bin/tar cjf /var/opt/mssql/log/core.sqlservr.02_01_2025_19_22_30.7767.work -C /var/opt/mssql/log/core.sqlservr.7767.temp .             ├─ 8757 /bin/sh -c bzip2             ├─ 8758 bzip2             ├─ 9771 sh /opt/mssql/bin/compress-dump.sh /var/opt/mssql/log/core.sqlservr.8761.temp /var/opt/mssql/log/core.sqlservr.02_01_2025_19_22_41.8761             ├─ 9772 /bin/tar cjf /var/opt/mssql/log/core.sqlservr.02_01_2025_19_22_41.8761.work -C /var/opt/mssql/log/core.sqlservr.8761.temp .             ├─ 9773 /bin/sh -c bzip2             ├─ 9774 bzip2             ├─10771 sh /opt/mssql/bin/compress-dump.sh /var/opt/mssql/log/core.sqlservr.9777.temp /var/opt/mssql/log/core.sqlservr.02_01_2025_19_22_58.9777             ├─10772 /bin/tar cjf /var/opt/mssql/log/core.sqlservr.02_01_2025_19_22_58.9777.work -C /var/opt/mssql/log/core.sqlservr.9777.temp .             ├─10773 /bin/sh -c bzip2             ├─10774 bzip2             ├─11755 sh /opt/mssql/bin/compress-dump.sh /var/opt/mssql/log/core.sqlservr.10777.temp /var/opt/mssql/log/core.sqlservr.02_01_2025_19_23_16.10777             ├─11756 /bin/tar cjf /var/opt/mssql/log/core.sqlservr.02_01_2025_19_23_16.10777.work -C /var/opt/mssql/log/core.sqlservr.10777.temp .             ├─11757 /bin/sh -c bzip2             ├─11758 bzip2             ├─12752 sh /opt/mssql/bin/compress-dump.sh /var/opt/mssql/log/core.sqlservr.11761.temp /var/opt/mssql/log/core.sqlservr.02_01_2025_19_23_41.11761             ├─12753 /bin/tar cjf /var/opt/mssql/log/core.sqlservr.02_01_2025_19_23_41.11761.work -C /var/opt/mssql/log/core.sqlservr.11761.temp .             ├─12754 /bin/sh -c bzip2             └─12755 bzip2Feb 01 19:23:47 debian systemd[1]: mssql-server.service: Unit process 10774 (bzip2) remains running after unit stopped.Feb 01 19:23:47 debian systemd[1]: mssql-server.service: Unit process 11755 (sh) remains running after unit stopped.Feb 01 19:23:47 debian systemd[1]: mssql-server.service: Unit process 11756 (tar) remains running after unit stopped.Feb 01 19:23:47 debian systemd[1]: mssql-server.service: Unit process 11757 (sh) remains running after unit stopped.Feb 01 19:23:47 debian systemd[1]: mssql-server.service: Unit process 11758 (bzip2) remains running after unit stopped.Feb 01 19:23:47 debian systemd[1]: mssql-server.service: Unit process 12752 (sh) remains running after unit stopped.

Code:

sudo ufw statusStatus: activeTo                         Action      From--                         ------      ----OpenSSH                    ALLOW       Anywhere                  1433/tcp                   ALLOW       Anywhere                  1434/udp                   ALLOW       Anywhere                  1433/udp                   ALLOW       Anywhere                  OpenSSH (v6)               ALLOW       Anywhere (v6)             1433/tcp (v6)              ALLOW       Anywhere (v6)             1434/udp (v6)              ALLOW       Anywhere (v6)             1433/udp (v6)              ALLOW       Anywhere (v6)    
Please help me to overcome this issue and to install mssql.

Statistics: Posted by BrittoT — 2025-02-01 13:59 — Replies 3 — Views 139



Viewing all articles
Browse latest Browse all 3424

Trending Articles