microsoft / mssql-docker

Official Microsoft repository for SQL Server in Docker resources
MIT License
1.72k stars 759 forks source link

Loading the directory /var/opt/mssql/.system/.system/telemetry failed #29

Open olegletynain opened 7 years ago

olegletynain commented 7 years ago

With mssql-server-linux I have a problem: when I'm trying to start container, which was created like this one: docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=%PASS%' -p 1433:1433 -d microsoft/mssql-server-linux when I'm tring to start it, it generate an error:

Loading the directory /var/opt/mssql/.system/.system/telemetry failed

I have no idea what to do, could you please help me?

gigatexal commented 7 years ago

What do you mean by starting it? Are you trying to attach to it?

olegletynain commented 7 years ago

@gigatexal yes, I'm trying to run this command: docker start -a %dockerContainerId%

gigatexal commented 7 years ago

I've not had the issue you describe when running it with docker run -e ... -p 1433:1433 ... etc. it's when I tried to do docker attach that I got the error you are showing.

twright-msft commented 7 years ago

Hi @olegletynain - Can you please clarify the repro steps here? Is this right...? You docker run with -e -e -p -d microsoft/mssql-server-linux. That works OK. Then you docker stop the container. That works OK. Then you docker start the container and that is where you get this error about loading the directory?

olegletynain commented 7 years ago

Hi @twright-msft, @gigatexal probably I described my problem not clear, sorry about it. So, first I run this command: docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=%PASS%' -p 1433:1433 -d microsoft/mssql-server-linux And it works OK. Next, I'm trying to start/attach to contaner: docker start -a %dockerContainerId% It start some intall process and in this process it generate this error

Loading the directory /var/opt/mssql/.system/.system/telemetry failed

Is it clear now?

twright-msft commented 7 years ago

As I understand it sounds like what you are doing is trying to start a container that is already running. What it sounds like you want to do is attach to a running container, probably to run some bash commands. Is that right?

If so, you can use this command instead: docker exec -it [container id] bash

Does that help?

jasonchw commented 7 years ago

One of the requirements mentioned at https://github.com/Microsoft/mssql-docker/tree/master/linux/preview

A strong system administrator (SA) password: At least 8 characters including uppercase, lowercase letters, base-10 digits and/or non-alphanumeric symbols.

Hope this help.

twright-msft commented 7 years ago

@olegletynain - Is this issue resolved or do you need further assistance?