Skip to content

bug: PDOException on local Linux host #274

@darcywong00

Description

@darcywong00

On my local Linux configuration with the master branch, I'm getting PDOException error which kills the db Docker app.

Error

(line number off by 1 for adding a diagnostic line)

$mssql->setAttribute(PDO::SQLSRV_ATTR_QUERY_TIMEOUT, 1000);
Running /var/www/html/.data/langtags.json.sql
Array
(
    [0] => 08S01
    [1] => 10054
    [2] => [Microsoft][ODBC Driver 18 for SQL Server]TCP Provider: Error code 0x2746
    [3] => 08S01
    [4] => 10054
    [5] => [Microsoft][ODBC Driver 18 for SQL Server]Communication link failure
)
...

Failure: PDOException: SQLSTATE[08S01]: [Microsoft][ODBC Driver 18 for SQL Server]TCP Provider: Error code 0x2746 in /var/www/html/tools/db/build/build.inc.php:163
Stack trace:
#0 /var/www/html/tools/db/build/build.inc.php(163): PDO->exec()
#1 /var/www/html/tools/db/build/build.inc.php(61): BuildDatabaseClass->sqlrun()
#2 /var/www/html/tools/db/build/build_cli.php(30): BuildDatabaseClass->BuildDatabase()
#3 {main}

Configuration

Host: Ubuntu 22.04
Docker Desktop Linux 4.39.0 (184744)
Image has
Linux 0d541bb09692 6.10.14-linuxkit #1 SMP PREEMPT_DYNAMIC Mon Feb 24 16:37:44 UTC 2025 x86_64 GNU/Linux
OpenSSL 1.1.1n 15 Mar 2022


Things tried (still getting same exception)

  • Adding this line to the Dockerfiles
RUN sed -i -E 's/(CipherString\s*=\s*DEFAULT@SECLEVEL=)2/\10/' /etc/ssl/openssl.cnf

based on this SO thread
https://stackoverflow.com/a/61111267/1836776

FROM mcr.microsoft.com/mssql/server:2022-latest@sha256:ea73825f3d88a23c355ac2f9fdc6bd960fec90171c12c572109b36a558f77bb8

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions