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

Failed To Start -- No such file or directory #25

Closed
ckiszka opened this issue Jan 25, 2017 · 17 comments
Closed

Failed To Start -- No such file or directory #25

ckiszka opened this issue Jan 25, 2017 · 17 comments

Comments

@ckiszka
Copy link

ckiszka commented Jan 25, 2017

This docker will not start for me. However, if I use

militellovinx/mssql-server-linux:latest

then it will run. Not sure why. I would prefer to use the latest release from MS.

Command

root@localhost:#
/usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name="KE-MSSQL" --net="bridge" -e TZ="America/New_York" -e HOST_OS="unRAID" -e "ACCEPT_EULA"="Y" -e "SA_PASSWORD"="password" -p 1433:1433/tcp -v "/var/dockers/ke/sql/":"/var/opt/mssql":rw -m 4GB microsoft/mssql-server-linux:latest
8619b44395377d22250742557e1f586ec4e2cbab6de91f716d7c194f96b53738

The command finished successfully!

Log

Configuring Microsoft(R) SQL Server(R)...
sqlservr: vm.cpp:38: BOOLEAN IsPossiblyValidPalAddress(const void *): Assertion `result' failed.

cat: /proc/22/sched: No such file or directory
No journal files were found.
No journal files were found.
ls: cannot access '/var/opt/mssql/log/errorlog*': No such file or directory
ls: cannot access '/var/opt/mssql/log/exception.log': No such file or directory
ls: cannot access '/var/opt/mssql/log/SQLDu*.txt': No such file or directory
ls: cannot access '/var/opt/mssql/log/SQLDu*.mdmp': No such file or directory
ls: cannot access '/var/opt/mssql/log/system_health*': No such file or directory
Configuration complete.
paltelemetry: Loading the directory /var/opt/mssql/.system/.system/telemetry failed. Errno [2]

This is an evaluation version. There are [174] days left in the evaluation period.

sqlservr: vm.cpp:38: BOOLEAN IsPossiblyValidPalAddress(const void *): Assertion `result' failed.

Capturing core dump and information for sqlservr (pid 151)...
cat: /proc/151/sched: No such file or directory
No journal files were found.
No journal files were found.
SQL Log Directory /var/opt/mssql/log
ls: cannot access '/var/opt/mssql/log/errorlog*': No such file or directory
ls: cannot access '/var/opt/mssql/log/exception.log': No such file or directory
ls: cannot access '/var/opt/mssql/log/SQLDu*.txt': No such file or directory
ls: cannot access '/var/opt/mssql/log/SQLDu*.mdmp': No such file or directory
ls: cannot access '/var/opt/mssql/log/system_health*': No such file or directory
Packaging core dump and information into compressed files.
Core dump and information will be written to /var/opt/mssql/log/core.sqlservr.01_24_2017_23_34_22.151 and logs in /var/opt/mssql/log/core.sqlservr.01_24_2017_23_34_22.151.log

@twright-msft
Copy link
Collaborator

What OS distro, version, and file system do you have on the host?

@ckiszka
Copy link
Author

ckiszka commented Jan 25, 2017 via email

@twright-msft
Copy link
Collaborator

We think this is the assert that happens when the container starts up and has less than the required 4 GB of RAM. It looks like you are trying to limit the container to -m 4GB, but does Docker Engine itself have at least 4 GB of available capacity for hosting containers? We see this kind of thing quite often when people are using Docker for Mac or Docker for Windows which default to Docker Engine only have 2 GB by default.

@ckiszka
Copy link
Author

ckiszka commented Jan 26, 2017

The server has 24 GB of RAM, 16 GB available for use. Its weird. The other docker image, referenced above, works (except volume mapping). I think its based off your older image. Thanks for your assistance. Im trying to test the potential of moving away from MySql and start using MSSQL and NET Core. Any help and or direction with this SQL matter is greatly appreciated.

@twright-msft
Copy link
Collaborator

Can you please try without the -m 4GB and without the volume mapping?

@ckiszka
Copy link
Author

ckiszka commented Jan 26, 2017

Command

root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name="KE-MSSQL" --net="bridge" -e TZ="America/New_York" -e HOST_OS="unRAID" -e "ACCEPT_EULA"="Y" -e "SA_PASSWORD"="password" microsoft/mssql-server-linux:latest
191c66324a91a13bfa06957bd8596c5a85db6fbd2554614a36f3842f416d773c

The command finished successfully!

Log

Configuring Microsoft(R) SQL Server(R)...
sqlservr: vm.cpp:38: BOOLEAN IsPossiblyValidPalAddress(const void *): Assertion `result' failed.

cat: /proc/21/sched: No such file or directory
No journal files were found.
No journal files were found.
ls: cannot access '/var/opt/mssql/log/errorlog*': No such file or directory
ls: cannot access '/var/opt/mssql/log/exception.log': No such file or directory
ls: cannot access '/var/opt/mssql/log/SQLDu*.txt': No such file or directory
ls: cannot access '/var/opt/mssql/log/SQLDu*.mdmp': No such file or directory
ls: cannot access '/var/opt/mssql/log/system_health*': No such file or directory
Configuration complete.
paltelemetry: Loading the directory /var/opt/mssql/.system/.system/telemetry failed. Errno [2]

This is an evaluation version. There are [173] days left in the evaluation period.

sqlservr: vm.cpp:38: BOOLEAN IsPossiblyValidPalAddress(const void *): Assertion `result' failed.

Capturing core dump and information for sqlservr (pid 150)...
cat: /proc/150/sched: No such file or directory
No journal files were found.
No journal files were found.
SQL Log Directory /var/opt/mssql/log
ls: cannot access '/var/opt/mssql/log/errorlog*': No such file or directory
ls: cannot access '/var/opt/mssql/log/exception.log': No such file or directory
ls: cannot access '/var/opt/mssql/log/SQLDu*.txt': No such file or directory
ls: cannot access '/var/opt/mssql/log/SQLDu*.mdmp': No such file or directory
ls: cannot access '/var/opt/mssql/log/system_health*': No such file or directory
Packaging core dump and information into compressed files.
Core dump and information will be written to /var/opt/mssql/log/core.sqlservr.01_25_2017_21_30_57.150 and logs in /var/opt/mssql/log/core.sqlservr.01_25_2017_21_30_57.150.log

@twright-msft
Copy link
Collaborator

OK, thanks. Same result. We made some changes in between 1.1 and 1.2 in how we manage memory so there could be an undiscovered bug here. Could we trouble you to upload the dump so we can take a look at it? If so, please contact me via email at twright a t microsoft and I'll provide you the instructions on how to upload to our secure upload store.

@ckiszka
Copy link
Author

ckiszka commented Jan 26, 2017

Will do thanks.

@hcgonzalezpr
Copy link

Exactly same issue here. I'm using Unraid 6.3.2

Attached the logs : https://drive.google.com/open?id=0B2l7au-TREeXYzJYVjJxVURldFk

@ckiszka
Copy link
Author

ckiszka commented Feb 20, 2017

@hcgonzalezpr -- I created an lean Ubuntu VM in UnRaid with docker installed and it ran fine. Currently that is how I am operating with this docker image to date.

@hcgonzalezpr
Copy link

Thanks I'll got that route for now. Sadly this defeats the purpose of using docker to stay away from spinning up a whole a VM.

@diggforbeer
Copy link

Any chance for a fix to this, I would really like to use this docker on my unraid system directly.

@alebeta90
Copy link

Hello all,

I have same issue, it is possible to be related with the filesystem of our storage? in my case I have GlusterFS running on XFS, but if I run in a EXT4 filesystem the container works properly.

I see something similar here #126

@ckiszka
Copy link
Author

ckiszka commented Jun 20, 2019

@twright-msft -- Its been a couple years and I wanted to circle back and see if running mssql in a docker on Unraid has been updated? Thanks in advance.

@tjb-altf4
Copy link

@ckiszka I came across a solution a few days ago from another user, I'm up and running in unraid now.
Try adding the parameters -m 8g --ulimit stack=8192000:8192000 (based on 8GB allocation)
Reasons explained in detail here: https://support.microsoft.com/hr-ba/help/4134638/sql-server-2017-terminates-and-generates-a-core-dump-on-rhel-7-4-when

@ckiszka
Copy link
Author

ckiszka commented Oct 3, 2019

@tjb-altf4 -- Great find. I read the post.

I think the minimum memory requirement for Linux based Sql is 3GB. I am going to try your discovered solution with that to see if it solves the persistent storage blocker for me in unraid.

Again, great find man! Thanks!

@ckiszka
Copy link
Author

ckiszka commented Oct 3, 2019

Just tested @tjb-altf4 solution in my docker compose file with 3GB. All works.

FYI -- @twright-msft

@ckiszka ckiszka closed this as completed Oct 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants