You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the published Docker image of MongoDB (latest as of now, so 4.2.2 but I think the problem is the same with previous versions) as a service in Gitlab CI fails because the directory /home/mongodb/ is missing.
Error saving history file: FileOpenFailed: Unable to open() file /home/mongodb/.dbshell: No such file or directory
What's going on here?
Using the published Docker image of MongoDB (latest as of now, so 4.2.2 but I think the problem is the same with previous versions) as a service in Gitlab CI fails because the directory
/home/mongodb/
is missing.Error saving history file: FileOpenFailed: Unable to open() file /home/mongodb/.dbshell: No such file or directory
Proposed fix
See line
mongo/4.2/Dockerfile
Line 4 in fbaaf63
Instead, it should be:
RUN groupadd -r mongodb && useradd -r -m -g mongodb mongodb
so that the home directory is created. Tested, it seemed to fix the issue.
The text was updated successfully, but these errors were encountered: