Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: mssql module container crashes #2785

Closed
stevenh opened this issue Sep 19, 2024 · 4 comments · Fixed by #2786
Closed

[Bug]: mssql module container crashes #2785

stevenh opened this issue Sep 19, 2024 · 4 comments · Fixed by #2786
Labels
bug An issue with the library

Comments

@stevenh
Copy link
Collaborator

stevenh commented Sep 19, 2024

Testcontainers version

main

Using the latest Testcontainers version?

Yes

Host OS

Linux

Host arch

AMD64

Go version

go version go1.22.7 linux/amd64

Docker version

Unknown in CI

Docker info

Unknown in CI

What happened?

Container tests fail with an abort

https://github.com/testcontainers/testcontainers-go/actions/runs/10941914684/job/30378453839?pr=2728

Relevant log output

2024/09/19 13:38:34 container logs (wait until ready: container exited with code 1):
  SQL Server 2022 will run as non-root by default.
  This container is running as user mssql.
  To learn more visit https://go.microsoft.com/fwlink/?linkid=2099216.
  This program has encountered a fatal error and cannot continue running at Thu Sep 19 13:38:32 2024
  The following diagnostic information is available:
  
           Reason: 0x00000001
  find: '/proc/9/task/51/fdinfo': Permission denied
  find: '/proc/9/task/52/fdinfo': Permission denied
  find: '/proc/9/task/54/fdinfo': Permission denied
  find: '/proc/9/task/55/fdinfo': Permission denied
  find: '/proc/9/task/56/fdinfo': Permission denied
  find: '/proc/9/task/57/fdinfo': Permission denied
  find: '/proc/9/task/58/fdinfo': Permission denied
  find: '/proc/9/task/59/fdinfo': Permission denied
  find: '/proc/9/task/60/fdinfo': Permission denied
  find: '/proc/9/task/61/fdinfo': Permission denied
  find: '/proc/9/task/64/fdinfo': Permission denied
  find: '/proc/9/task/66/fdinfo': Permission denied
  find: '/proc/9/task/67/fdinfo': Permission denied
  find: '/proc/9/task/68/fdinfo': Permission denied
  find: '/proc/9/task/69/fdinfo': Permission denied
  find: '/proc/9/task/70/fdinfo': Permission denied
  find: '/proc/9/task/71/fdinfo': Permission denied
  find: '/proc/9/task/72/fdinfo': Permission denied
  find: '/proc/9/task/73/fdinfo': Permission denied
  find: '/proc/9/task/75/fdinfo': Permission denied
  find: '/proc/9/task/76/fdinfo': Permission denied
  find: '/proc/9/task/77/fdinfo': Permission denied
  find: '/proc/9/task/78/fdinfo': Permission denied
  find: '/proc/9/task/79/fdinfo': Permission denied
  find: '/proc/9/task/80/fdinfo': Permission denied
  find: '/proc/9/task/81/fdinfo': Permission denied
  find: '/proc/9/task/82/fdinfo': Permission denied
  find: '/proc/9/task/84/fdinfo': Permission denied
  find: '/proc/9/task/85/fdinfo': Permission denied
  find: '/proc/9/task/86/fdinfo': Permission denied
  find: '/proc/9/task/88/fdinfo': Permission denied
  find: '/proc/9/task/89/fdinfo': Permission denied
  find: '/proc/9/task/90/fdinfo': Permission denied
  find: '/proc/9/task/91/fdinfo': Permission denied
  find: '/proc/9/task/92/fdinfo': Permission denied
  find: '/proc/9/task/93/fdinfo': Permission denied
  find: '/proc/9/task/94/fdinfo': Permission denied
  find: '/proc/9/task/97/fdinfo': Permission denied
  find: '/proc/9/task/98/fdinfo': Permission denied
  find: '/proc/9/task/100/fdinfo': Permission denied
  find: '/proc/9/task/101/fdinfo': Permission denied
  find: '/proc/9/task/103/fdinfo': Permission denied
  find: '/proc/9/task/105/fdinfo': Permission denied
  find: '/proc/9/task/106/fdinfo': Permission denied
  find: '/proc/9/task/107/fdinfo': Permission denied
  find: '/proc/9/task/108/fdinfo': Permission denied
  find: '/proc/9/map_files': Permission denied
  find: '/proc/9/fdinfo': Permission denied
  dmesg: read kernel buffer failed: Operation not permitted
  timeout: failed to run command 'journalctl': No such file or directory
  timeout: failed to run command 'journalctl': No such file or directory
  Thu Sep 19 13:38:33 UTC 2024 Capturing program information
  Dump already generated: /var/opt/mssql/log/core.sqlservr.9_19_2024_13_38_32.9, moving to /var/opt/mssql/log/core.sqlservr.9.temp/core.sqlservr.9.gdmp
  Moving logs to /var/opt/mssql/log/core.sqlservr.9.temp/log/paldumper-debug.log
  Thu Sep 19 13:38:33 UTC 2024 Capturing program binaries
  Thu Sep 19 13:38:33 UTC 2024 Not compressing the dump files, moving instead to: /var/opt/mssql/log/core.sqlservr.09_19_2024_13_38_32.9.d


### Additional information

_No response_
@stevenh stevenh added the bug An issue with the library label Sep 19, 2024
stevenh added a commit that referenced this issue Sep 19, 2024
Disable all mssql tests as the container is currently crashing, see #2785
@mdelapenya
Copy link
Member

Relates actions/runner-images#10649

mdelapenya added a commit that referenced this issue Sep 19, 2024
* chore: disable mssql tests

Disable all mssql tests as the container is currently crashing, see #2785

* fix: use valid MSSQL image

---------

Co-authored-by: Manuel de la Peña <[email protected]>
@stevenh stevenh reopened this Sep 19, 2024
@stevenh
Copy link
Collaborator Author

stevenh commented Sep 19, 2024

Reopened to track the real fix

@stevenh
Copy link
Collaborator Author

stevenh commented Sep 19, 2024

Think I might have misread this in the phone will check when I'm back at my desk

@stevenh
Copy link
Collaborator Author

stevenh commented Sep 20, 2024

Didn't spot the update to bump the image, which is a proper fix, closing.

@stevenh stevenh closed this as completed Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue with the library
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants