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

mssql crash on startup - Permission Denied #116

Open
1 task done
cfis opened this issue Feb 23, 2024 · 3 comments
Open
1 task done

mssql crash on startup - Permission Denied #116

cfis opened this issue Feb 23, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@cfis
Copy link

cfis commented Feb 23, 2024

Steps To Reproduce

This is likely a mssql bug, but will start here.

Try to install bitwarden - the mssql pod crashes and thus fails to start. See the attached error log. A SIGABRT happens with the first few lines of the log:

Ubuntu 22.04.3 LTS
Capturing core dump and information to /var/opt/mssql/log...
/bin/cat: /proc/10/maps: Permission denied
cat: /proc/10/environ: Permission denied
find: '/proc/10/task/10/fdinfo': Permission denied
find: '/proc/10/task/12/fdinfo': Permission denied

I am running Kubernetes 1.29.2 via k0s on Fedora 39. I have been successfully running the 2023.12 release over the last month. Today I upgraded to 2024.2.2 and ran into this error. However, when rolling back to 2023.12 I still get the same error.

Wondering if this was caused by SE linux, I disabled it. That made no difference.

Today I also ran dnf update and noticed I got a new kernel plus other updates. I know wonder if one of those updates is causing this issue.

A few people have reported this issue over the years, usually around mounting volumes into a mssql docker image. For example:

microsoft/mssql-docker#538

bitwarden-self-host-mssql.log

Expected Result

For bitwarden to install correctly

Actual Result

Bitwarden doesn't install

Screenshots or Videos

No response

Additional Context

My values.yaml overrides:

general:
  domain: xx.xx.xx
  ingress:
    ingressClassName: nginx
    annotations:
      nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
      nginx.ingress.kubernetes.io/use-regex: "true"
      nginx.ingress.kubernetes.io/rewrite-target: /$1
 
  # Comma-separated list of email addresses for Admin users
  admins: [email protected]
  email:
    # Email address used for invitations, typically no-reply@smtp-host
    replyToEmail: [email protected]
    # Your SMTP server hostname (recommended) or IP address
    smtpHost: xx.xx.xx
    # The SMTP port used by the SMTP server
    smtpPort: "465"
    # Whether your SMTP server uses an encryption protocol, "true" for SSL, "false" for TLS
    smtpSsl: "false"

  volumeAccessMode: ReadWriteOnce

sharedStorageClassName: openebs-hostpath

# Secrets are required.  Review the chart README on GitHub for details on creating these secrets
secrets:
  secretName: bitwarden-credentials

# Data volume sizes for shared PVCs
volume:
  dataprotection:
    size: "1Gi"
  attachments:
    size: 1Gi
  licenses:
    size: 1Gi
  logs:
    enabled: true
    size: 1Gi

serviceAccount:
  name: bitwarden
  deployRolesOnly: false

database:
  enabled: true
  resources:
    requests:
      memory: "2G"
      cpu: "500m"
    limits:
      memory: "4G"
      cpu:

Chart Version

2024.2.2

Environment Details

k0s
Kubernetes 1.29.2
Fedora 39

Issue Tracking Info

  • I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.
@cfis cfis added the bug Something isn't working label Feb 23, 2024
@cfis
Copy link
Author

cfis commented Mar 5, 2024

Forgot to update this ticket, reverting the kernel fixed this issue. So it looks like mssql is not compatible with the latest Linux kernels. The last version that works for me is 6.6.12-200.fc39

@cfis
Copy link
Author

cfis commented May 5, 2024

See bitwarden/server#3689.

Can the helm chart tag be updated to:

tag: 2022-CU12-ubuntu-22.04

@hkiang01
Copy link

I found using these values in values.yaml to work:

database:
  image:
    name: bitwarden/mssql
    tag: 2024.9.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants