microsoft / microsoft/aspire-samples

SQL Server startup failing on DatabaseContainers sample

Open
#591 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-samples
Dominant language
C#
Stars
1.2k
Forks
345
Avg merge
3d 13h
Merged PRs (30d)
30

Description

Visual Studio 2022 Community 17.12.0
Docker desktop version 4.35.1
When starting up the DatabaseContainers sample DatabaseContainers.AppHost, I get the following:

AppHost:

...
fail: Aspire.Hosting.Dcp.dcpctrl.ContainerReconciler[0]
      could not determine host address and port for container port      {"Container": {"name":"sqlserver"}, "Reconciliation": 13, "error": "container '/sqlserver-r93j77hv3c' is not running: exited"}
fail: Aspire.Hosting.Dcp.dcpctrl.ContainerReconciler[0]
      could not create Endpoint object  {"Container": {"name":"sqlserver"}, "Reconciliation": 13, "ServiceName": "sqlserver", "Workload": "/sqlserver", "error": "container '/sqlserver-r93j77hv3c' is not running: exited"}

SqlServer Container:
/opt/mssql/bin/sqlservr: error while loading shared libraries: /lib/x86_64-linux-gnu/libnuma.so.1: invalid ELF header

Any ideas would be appreciated

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the DatabaseContainers sample and reproduce the failure using the reported Visual Studio, Docker Desktop, and SQL Server container setup. Read the AppHost and SQL Server container logs, especially the libnuma.so.1 invalid ELF header error. Done means the SQL Server container starts and the sample runs without the container reconciliation errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, sql
Domain
databases, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.