-
Notifications
You must be signed in to change notification settings - Fork 101
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
memcached:1.6.31-alpine is broken and directly stops with exit code 137 on Ubuntu 20.04 (docker.io 24.0.7-0ubuntu2~20.04.1) #99
Comments
I tried to upgrade the docker.io package, but didn't help, same result.
|
Interesting: After a |
On one of the instances, I'm getting a flaky behavior:
I've updated the same instance to docker.io (24.0.7-0ubuntu2~20.04.1) (no other packages upgraded) + did a reboot -> |
Maybe this helps: [
{
"Id": "26e2673339033fc9365d45295f2be5551f92e0dddcacb151ed49666cda9c0b3b",
"Created": "2024-09-11T11:48:53.694984569Z",
"Path": "docker-entrypoint.sh",
"Args": [
"memcached"
],
"State": {
"Status": "exited",
"Running": false,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 0,
"ExitCode": 137,
"Error": "",
"StartedAt": "2024-09-11T11:48:53.93512905Z",
"FinishedAt": "2024-09-11T11:48:53.936962327Z"
},
"Image": "sha256:2aae0d824f4bc7874b3fd26fc5e61b2fe8c3fc9b58f82f3be24a6010c05ec1c1",
"ResolvConfPath": "/var/lib/docker/containers/26e2673339033fc9365d45295f2be5551f92e0dddcacb151ed49666cda9c0b3b/resolv.conf",
"HostnamePath": "/var/lib/docker/containers/26e2673339033fc9365d45295f2be5551f92e0dddcacb151ed49666cda9c0b3b/hostname",
"HostsPath": "/var/lib/docker/containers/26e2673339033fc9365d45295f2be5551f92e0dddcacb151ed49666cda9c0b3b/hosts",
"LogPath": "/var/lib/docker/containers/26e2673339033fc9365d45295f2be5551f92e0dddcacb151ed49666cda9c0b3b/26e2673339033fc9365d45295f2be5551f92e0dddcacb151ed49666cda9c0b3b-json.log",
"Name": "/quizzical_mayer",
"RestartCount": 0,
"Driver": "overlay2",
"Platform": "linux",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "docker-default",
"ExecIDs": null,
"HostConfig": {
"Binds": null,
"ContainerIDFile": "",
"LogConfig": {
"Type": "json-file",
"Config": {}
},
"NetworkMode": "default",
"PortBindings": {},
"RestartPolicy": {
"Name": "no",
"MaximumRetryCount": 0
},
"AutoRemove": false,
"VolumeDriver": "",
"VolumesFrom": null,
"ConsoleSize": [
57,
199
],
"CapAdd": null,
"CapDrop": null,
"CgroupnsMode": "host",
"Dns": [],
"DnsOptions": [],
"DnsSearch": [],
"ExtraHosts": null,
"GroupAdd": null,
"IpcMode": "private",
"Cgroup": "",
"Links": null,
"OomScoreAdj": 0,
"PidMode": "",
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": null,
"UTSMode": "",
"UsernsMode": "",
"ShmSize": 67108864,
"Runtime": "runc",
"Isolation": "",
"CpuShares": 0,
"Memory": 0,
"NanoCpus": 0,
"CgroupParent": "",
"BlkioWeight": 0,
"BlkioWeightDevice": [],
"BlkioDeviceReadBps": [],
"BlkioDeviceWriteBps": [],
"BlkioDeviceReadIOps": [],
"BlkioDeviceWriteIOps": [],
"CpuPeriod": 0,
"CpuQuota": 0,
"CpuRealtimePeriod": 0,
"CpuRealtimeRuntime": 0,
"CpusetCpus": "",
"CpusetMems": "",
"Devices": [],
"DeviceCgroupRules": null,
"DeviceRequests": null,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": null,
"OomKillDisable": false,
"PidsLimit": null,
"Ulimits": null,
"CpuCount": 0,
"CpuPercent": 0,
"IOMaximumIOps": 0,
"IOMaximumBandwidth": 0,
"MaskedPaths": [
"/proc/asound",
"/proc/acpi",
"/proc/kcore",
"/proc/keys",
"/proc/latency_stats",
"/proc/timer_list",
"/proc/timer_stats",
"/proc/sched_debug",
"/proc/scsi",
"/sys/firmware",
"/sys/devices/virtual/powercap"
],
"ReadonlyPaths": [
"/proc/bus",
"/proc/fs",
"/proc/irq",
"/proc/sys",
"/proc/sysrq-trigger"
]
},
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/7445ac23f0f9d5d24e3f0adfa86ba149e9a066e67d21f8838681af1ae9fbd498-init/diff:/var/lib/docker/overlay2/6b4156e1c73fc9bfe3435e1267bf456b9acc9d3808a59d0f69120505c849b2e9/diff:/var/lib/docker/overlay2/0291d95600090ab3469f937846edda895c5e992e2e30b6c5f62a008ba68f0bea/diff:/var/lib/docker/overlay2/39c2192c4a4ce4e2563fc62d50c6f5bc3d06052844f4c1732265bc6442d9e1a5/diff:/var/lib/docker/overlay2/accd7f99f8d4883549fcae51b44c5fdfe5c5c69a58590f2deace34feace95267/diff:/var/lib/docker/overlay2/f4c5a0c47c04223a936fec8d1ebabeda04c4a349b6c02fe45c7810288119e6f0/diff:/var/lib/docker/overlay2/14ff7ed0dee5f2bbb4ad1d59dd9d4571fcd85f873e2387158e1f95ca89689a23/diff",
"MergedDir": "/var/lib/docker/overlay2/7445ac23f0f9d5d24e3f0adfa86ba149e9a066e67d21f8838681af1ae9fbd498/merged",
"UpperDir": "/var/lib/docker/overlay2/7445ac23f0f9d5d24e3f0adfa86ba149e9a066e67d21f8838681af1ae9fbd498/diff",
"WorkDir": "/var/lib/docker/overlay2/7445ac23f0f9d5d24e3f0adfa86ba149e9a066e67d21f8838681af1ae9fbd498/work"
},
"Name": "overlay2"
},
"Mounts": [],
"Config": {
"Hostname": "26e267333903",
"Domainname": "",
"User": "memcache",
"AttachStdin": true,
"AttachStdout": true,
"AttachStderr": true,
"ExposedPorts": {
"11211/tcp": {}
},
"Tty": true,
"OpenStdin": true,
"StdinOnce": true,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"MEMCACHED_VERSION=1.6.31",
"MEMCACHED_URL=https://memcached.org/files/memcached-1.6.31.tar.gz",
"MEMCACHED_SHA1=85e2cb9520beba71d7fc69f5717208a57facde28"
],
"Cmd": [
"memcached"
],
"Image": "memcached:1.6.31-alpine",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": [
"docker-entrypoint.sh"
],
"OnBuild": null,
"Labels": {}
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "5ae80fd89db380d40f9a3e4ac0530634c549ae7ef8a8111470e248148dce38da",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": {},
"SandboxKey": "/var/run/docker/netns/5ae80fd89db3",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "",
"Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"MacAddress": "",
"Networks": {
"bridge": {
"IPAMConfig": null,
"Links": null,
"Aliases": null,
"NetworkID": "19d8795c83c1d65cdb2a041242daca1a3f36a9007528068ab860c23495558e62",
"EndpointID": "",
"Gateway": "",
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "",
"DriverOpts": null
}
}
}
}
] |
Relevant diffs: |
Maybe this also helps:
When starting memcached:1.6.30-alpine (the version which works correctly for me), the logs look the same - |
It seems like error 137 is commonly associated with running out of memory so maybe you need bigger instances or you need to configure memcache to use less memory. |
This comment was marked as duplicate.
This comment was marked as duplicate.
Thanks for your reply @LaurentGoderre, but not sure if you fully read my bug report ;-) I was using m6i.large with 8 GB of RAM. I think 8 GB is a common configuration for cloud servers, and the image should work on such common configurations with the default config. And as I said, both I see there is now a |
The differences between the 1.6.30 image and the 1.6.31 image are extremely minimal; they should amount to minor updates to the base image/packages and the memcached version bump. If you're having an issue on 1.6.31 that does not exhibit on 1.6.30, the most likely cause is something upstream or something environmental, not something in the image (so not something we are likely to change the image to "fix"), and I would suggest the place to start your debugging would be looking at the changes that went into 1.6.31 to determine whether any of them sound like candidates for causing the behavior you're seeing. Regardless, digging further is going to be most fruitful in a dedicated support forum, especially one with more knowledge/experience running memcached itself (irrespective of Docker). |
Environment
EC2 instance, instance type m6i.large.
Not working
(Adding or removing the
-ti
options makes no difference.)I tested the same on my local WSL2 machine (Ubuntu 20.04 with Docker version 26.1.0, build 9714adc), and there it works fine.
Other versions - working fine
It seems that only the Alpine version of 1.6.31 is broken.
I didn't check if they fully work, but at least they keep running instead of aborting with an error.
The text was updated successfully, but these errors were encountered: