SQL Server 2019 Linux docker bug

GuestMS 36 Reputation points
2020-10-09T16:31:58.917+00:00

Hi,

I'm creating a docker image over the official SQL Server 2019 linux image (Express edition).
The process is quite simple and as follow:

  • pull the official MS linux image
    docker pull mcr.microsoft.com/mssql/server:2019-latest)
  • run a docker container

docker run
--rm
-v <mypath_on_host>:<mypath_in_container>
--name sqlserver
-e "MSSQL_PID=Express"
-e "ACCEPT_EULA=Y"
-e "MSSQL_SA_PASSWORD=<my_super_password>"
-e "MSSQL_BACKUP_DIR=/var/opt/mssql/backup"
-e "MSSQL_MEMORY_LIMIT_MB=8192"
-p 1433:1433
-d mcr.microsoft.com/mssql/server:2019-latest

  • create an image from the container
    docker commit -p sqlserver sqlserver-image
  • create a new container from the new image
    docker run --name sqlserver2 -e "MSSQL_PID" -e "MSSQL_SA_PASSWORD" -p 5000:1433 -d sqlserver-image

Once the new container is running the following error message related to polybase is shown in the log:

2020-xx-xx xx:xx:xx.xx spid13s Error: 46906, Severity: 16, State: 1.
2020-xx-xx xx:xx:xx.xx spid13s Unable to retrieve registry value 'NodeRole' from Windows registry key 'Software\Microsoft\Microsoft SQL Server\MSSQL\Polybase\Configuration': (null).

First, Express edition does not support Polybase so why is it trying to configure it.
Second the error message is related to Windows registry but I'm running a linux container....!!!

Any idea as to what this is related ?
It really looks like a bug...

Thanks.

SQL Server Other
{count} votes

Accepted answer
  1. m 4,276 Reputation points
    2020-10-13T01:41:41.707+00:00

    Hi @GuestMS ,

    If you are sure this is one bug, I recommend you to submit your issue to the Microsoft feedback at this link : https://feedback.azure.com/forums/908035-sql-server .
    This site will serve as a connecting point between you and Microsoft, and ultimately the large community for you and Microsoft to interact with. Your feedback enables Microsoft to offer the best software and deliver superior services, meanwhile you can learn more about and contribute to the exciting projects on Microsoft feedback.

    BR,
    Mia


    If the answer is helpful, please click "Accept Answer" and upvote it.


3 additional answers

Sort by: Most helpful
  1. GuestMS 36 Reputation points
    2020-10-12T19:04:17.74+00:00

    Hi Mia,

    It's definitely a bug that was introduced with CU8 of SQL Server 2019 (and thus also existing in the image with the latest tag).

    Indeed, I've tried to use the "Developer" edition and the error message appears as well in the log of SQL Server.
    But the message does not show up with CU6, nor with the Global Availability image.

    As a side note, all official images of SQL Server 2019 on DockerHub are built with Ubuntu 16.04.
    I'm not building linux docker from scratch (issues with OpenSSL version).

    Regards.

    1 person found this answer helpful.

  2. m 4,276 Reputation points
    2020-10-12T02:28:16.983+00:00

    Hi @GuestMS ,

    First, Express edition does not support Polybase so why is it trying to configure it.
    Second the error message is related to Windows registry but I'm running a linux container....!!!
    Any idea as to what this is related ?

    What is your linux OS? Please install the SQL2019 developer and the latest CU to test again.

    Quote from this doc.: quickstart-install-connect-docker:

    ...
    Starting with SQL Server 2019 CU3, Ubuntu 18.04 is supported.
    ...

    By default, this creates a container with the Developer edition of SQL Server 2019.
    ...

    BR,
    Mia


    If the answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

  3. Ivan Carrazana 1 Reputation point
    2021-02-04T21:53:22.247+00:00

    Hi

    I had the same error log when doing a step-by-step installation on RH8. I solved it by installing the mssql-server-polybase package. I have no experience with containers but this is the way to not see that log error anymore

    Regards

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.