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

Error during startup: /proc/10/maps: Permission denied #538

Open
collinsauve opened this issue Nov 28, 2019 · 3 comments
Open

Error during startup: /proc/10/maps: Permission denied #538

collinsauve opened this issue Nov 28, 2019 · 3 comments

Comments

@collinsauve
Copy link

Hello! I am attempting to update from the microsoft/mssql-server-linux:2017-CU8 image to mcr.microsoft.com/mssql/server:2019-GA-ubuntu-16.04. I get an error during startup that has a lot of "Permission denied" on various /proc files.

I am using Docker for Windows with a Docker Compose file (some paths/password redacted):

version: '3'
services:
  sql:
    image: mcr.microsoft.com/mssql/server:2019-GA-ubuntu-16.04
    restart: always
    environment:
     - ACCEPT_EULA=Y
     - SA_PASSWORD=Password123
     - MSSQL_PID=Developer
    volumes:
     - c:\\ProgramData\\myfolder\\sql\\:/var/opt/mssql/
    ports:
     - "11433:1433"
networks:
  default:
    external:
      name: mynetwork

Full log is attached.

log.txt

@collinsauve
Copy link
Author

collinsauve commented Nov 28, 2019

P.S. in case it is relevant:

$ docker --version
Docker version 19.03.5, build 633a0ea
$ systeminfo | findstr //B //C:"OS Name" //C:"OS Version"
OS Name:                   Microsoft Windows 10 Pro
OS Version:                10.0.18363 N/A Build 18363

@michaelherndon
Copy link

michaelherndon commented Jan 27, 2020

I got this today. I was on the docker tech preview. though it had to do with beta bits since I had edge docker installed. Downgraded docker. Changed to mssql 2017, different errors, dug into the log files found things on Kernel Bug check.

Anyways, It has to do with mounting. You can't mount the /var/opt/mssql volume on Windows. You can only mount to the subfolders e.g.

  • /var/opt/mssql/data
  • /var/opts/mssql/log,
  • /var/opt/mssql/secrects

https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-configure-docker?view=sql-server-ver15#mount-a-host-directory-as-data-volume

@rivaldi8
Copy link

This issue seems to be caused by newer versions of the kernel. Version 6.5 works, but 6.7 and 6.8 don't (I haven't tested with 6.6).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants