overleaf / overleaf/toolkit

Container mongo Started - Error response from daemon on kernel 7.0.13

Open Beginner friendly
#431 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
1.3k
Forks
310
Avg merge
3d 12h
Merged PRs (30d)
1

Description

I tried installing the newest version on my Fedora 44 with kernel 7.0.13. I know there is a issue (#322) with the almost same name and description but i think those are two separate problems.

Steps to Reproduce

Using:

  1. bin/up
    Initiating Mongo replica set...
    [+] up 1/1
    ✔ Container mongo Started
    Error response from daemon: Container <container_id> is restarting, wait until the container is running

  2. bin/start
    [+] start 1/1
    ✘ Container mongo Error dependency mongo failed to start
    dependency failed to start: container mongo is unhealthy

Analysis

The logs from mongodb container:
MongoDB cannot start: Linux kernel versions 6.19 and newer has a known incompatibility with this version of MongoDB. See https://jira.mongodb.org/browse/SERVER-121912 for more information.

Solution

I've found this post (https://www.mongodb.com/community/forums/t/mongodb-8-x-and-linux-kernel-6-19/337547) on the mongodb forum indicating the fix for the issue is upgrading to version 8.0.4.

I've tried and tested it a little and it looks like it works.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with bin/up and bin/start, then locate the MongoDB image or version configuration they use. Reproduce the failure on Fedora 44 with kernel 7.0.13 and verify that the configured MongoDB version starts successfully and the replica set initialization completes without an unhealthy container.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, mongodb, shell
Domain
database, devops
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.