I want to set up my private SearXNG instance and I have been following this guide:
https://github.com/searxng/searxng-docker.
However, when I try to run SearXNG in the background I get this:
sudo docker-compose up -d
....
Cannot connect to the docker daemon at unix:///var/run/docker.sock
The dockerd service is already enabled and up, however it looks like docker can't see it.
What else could I try? Thanks in advance.
Please share the log of the docker daemon
# 66-inservice -o status,logfile -p 100 dockerd # this print the last 100 line and the state of the dockerd daemon
Status                : enabled, up (pid 2783) 0 seconds
Log file              : 
2022-07-10 12:52:01.485654099  time="2022-07-10T12:52:01.485585155+02:00" level=info msg="loading plugin \"io.containerd.tracing.processor.v1.otlp\"..." type=io.containerd.tracing.processor.v1
2022-07-10 12:52:01.485657650  time="2022-07-10T12:52:01.485607665+02:00" level=info msg="skip loading plugin \"io.containerd.tracing.processor.v1.otlp\"..." error="no OpenTelemetry endpoint: skip plugin" type=io.containerd.tracing.processor.v1
2022-07-10 12:52:01.485672907  time="2022-07-10T12:52:01.485626340+02:00" level=info msg="loading plugin \"io.containerd.internal.v1.tracing\"..." type=io.containerd.internal.v1
2022-07-10 12:52:01.485734891  time="2022-07-10T12:52:01.485657269+02:00" level=error msg="failed to initialize a tracing processor \"otlp\"" error="no OpenTelemetry endpoint: skip plugin"
2022-07-10 12:52:01.485965355  time="2022-07-10T12:52:01.485895751+02:00" level=info msg=serving... address=/var/run/docker/containerd/containerd-debug.sock
2022-07-10 12:52:01.486007256  time="2022-07-10T12:52:01.485957050+02:00" level=info msg=serving... address=/var/run/docker/containerd/containerd.sock.ttrpc
2022-07-10 12:52:01.486161419  time="2022-07-10T12:52:01.486014940+02:00" level=info msg=serving... address=/var/run/docker/containerd/containerd.sock
2022-07-10 12:52:01.486205320  time="2022-07-10T12:52:01.486038335+02:00" level=info msg="containerd successfully booted in 0.031208s"
2022-07-10 12:52:01.501247695  time="2022-07-10T12:52:01.501114510+02:00" level=info msg="parsed scheme: \"unix\"" module=grpc
2022-07-10 12:52:01.501284481  time="2022-07-10T12:52:01.501143333+02:00" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
2022-07-10 12:52:01.501287779  time="2022-07-10T12:52:01.501169788+02:00" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock  <nil> 0 <nil>}] <nil> <nil>}" module=grpc
2022-07-10 12:52:01.501304624  time="2022-07-10T12:52:01.501185543+02:00" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
2022-07-10 12:52:01.502904347  time="2022-07-10T12:52:01.502828502+02:00" level=info msg="parsed scheme: \"unix\"" module=grpc
2022-07-10 12:52:01.502972440  time="2022-07-10T12:52:01.502920882+02:00" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
2022-07-10 12:52:01.503072011  time="2022-07-10T12:52:01.503017784+02:00" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock  <nil> 0 <nil>}] <nil> <nil>}" module=grpc
2022-07-10 12:52:01.503129924  time="2022-07-10T12:52:01.503080376+02:00" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
2022-07-10 12:52:01.516387000  time="2022-07-10T12:52:01.516276135+02:00" level=info msg="[graphdriver] using prior storage driver: overlay2"
2022-07-10 12:52:01.522076014  time="2022-07-10T12:52:01.521972712+02:00" level=warning msg="Your kernel does not support cgroup memory limit"
2022-07-10 12:52:01.522095759  time="2022-07-10T12:52:01.522069011+02:00" level=warning msg="Unable to find cpu cgroup in mounts"
2022-07-10 12:52:01.522190000  time="2022-07-10T12:52:01.522107861+02:00" level=warning msg="Unable to find blkio cgroup in mounts"
2022-07-10 12:52:01.522290410  time="2022-07-10T12:52:01.522148723+02:00" level=warning msg="Unable to find cpuset cgroup in mounts"
2022-07-10 12:52:01.522317798  time="2022-07-10T12:52:01.522250825+02:00" level=warning msg="Unable to find pids cgroup in mounts"
2022-07-10 12:52:01.523085317  time="2022-07-10T12:52:01.523056069+02:00" level=info msg="stopping event stream following graceful shutdown" error="context canceled" module=libcontainerd namespace=plugins.moby
2022-07-10 12:52:01.523181907  time="2022-07-10T12:52:01.523135516+02:00" level=info msg="stopping healthcheck following graceful shutdown" module=libcontainerd
2022-07-10 12:52:02.524411631  failed to start daemon: Devices cgroup isn't mounted
2022-07-10 12:52:02.587644685  time="2022-07-10T12:52:02.587486715+02:00" level=info msg="Starting up"
2022-07-10 12:52:02.589906784  time="2022-07-10T12:52:02.589040813+02:00" level=info msg="libcontainerd: started new containerd process" pid=2791
2022-07-10 12:52:02.589927579  time="2022-07-10T12:52:02.589098987+02:00" level=info msg="parsed scheme: \"unix\"" module=grpc
2022-07-10 12:52:02.589944669  time="2022-07-10T12:52:02.589111532+02:00" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
2022-07-10 12:52:02.589960557  time="2022-07-10T12:52:02.589139149+02:00" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock  <nil> 0 <nil>}] <nil> <nil>}" module=grpc
2022-07-10 12:52:02.589962625  time="2022-07-10T12:52:02.589156878+02:00" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
2022-07-10 12:52:02.645903371  time="2022-07-10T12:52:02+02:00" level=warning msg="containerd config version `1` has been deprecated and will be removed in containerd v2.0, please switch to version `2`, see https://github.com/containerd/containerd/blob/main/docs/PLUGINS.md# version-header"
2022-07-10 12:52:02.646446122  time="2022-07-10T12:52:02.646394200+02:00" level=info msg="starting containerd" revision=10c12954828e7c7c9b6e0ea9b0c02b01407d3ae1.m version=v1.6.6
2022-07-10 12:52:02.670546217  time="2022-07-10T12:52:02.670423714+02:00" level=info msg="loading plugin \"io.containerd.content.v1.content\"..." type=io.containerd.content.v1
2022-07-10 12:52:02.670568933  time="2022-07-10T12:52:02.670502036+02:00" level=info msg="loading plugin \"io.containerd.snapshotter.v1.aufs\"..." type=io.containerd.snapshotter.v1
2022-07-10 12:52:02.673741790  time="2022-07-10T12:52:02.673443693+02:00" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.aufs\"..." error="aufs is not supported (modprobe aufs failed: exit status 1 \"modprobe: FATAL: Module aufs not found in directory /lib/modules/5.10.121-01-lts\\n\"): skip plugin" type=io.containerd.snapshotter.v1
2022-07-10 12:52:02.673810731  time="2022-07-10T12:52:02.673758082+02:00" level=info msg="loading plugin \"io.containerd.snapshotter.v1.btrfs\"..." type=io.containerd.snapshotter.v1
2022-07-10 12:52:02.674543153  time="2022-07-10T12:52:02.674478881+02:00" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.btrfs\"..." error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.btrfs (ext4) must be a btrfs filesystem to be used with the btrfs snapshotter: skip plugin" type=io.containerd.snapshotter.v1
2022-07-10 12:52:02.674626210  time="2022-07-10T12:52:02.674553154+02:00" level=info msg="loading plugin \"io.containerd.snapshotter.v1.devmapper\"..." type=io.containerd.snapshotter.v1
2022-07-10 12:52:02.674759296  time="2022-07-10T12:52:02.674690155+02:00" level=warning msg="failed to load plugin io.containerd.snapshotter.v1.devmapper" error="devmapper not configured"
2022-07-10 12:52:02.674819177  time="2022-07-10T12:52:02.674768729+02:00" level=info msg="loading plugin \"io.containerd.snapshotter.v1.native\"..." type=io.containerd.snapshotter.v1
2022-07-10 12:52:02.674993767  time="2022-07-10T12:52:02.674940757+02:00" level=info msg="loading plugin \"io.containerd.snapshotter.v1.overlayfs\"..." type=io.containerd.snapshotter.v1
2022-07-10 12:52:02.675528379  time="2022-07-10T12:52:02.675458061+02:00" level=info msg="loading plugin \"io.containerd.snapshotter.v1.zfs\"..." type=io.containerd.snapshotter.v1
2022-07-10 12:52:02.676076044  time="2022-07-10T12:52:02.675984941+02:00" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.zfs\"..." error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.zfs must be a zfs filesystem to be used with the zfs snapshotter: skip plugin" type=io.containerd.snapshotter.v1
2022-07-10 12:52:02.676139930  time="2022-07-10T12:52:02.676100751+02:00" level=info msg="loading plugin \"io.containerd.metadata.v1.bolt\"..." type=io.containerd.metadata.v1
2022-07-10 12:52:02.676259865  time="2022-07-10T12:52:02.676191292+02:00" level=warning msg="could not use snapshotter devmapper in metadata plugin" error="devmapper not configured"
2022-07-10 12:52:02.676336427  time="2022-07-10T12:52:02.676287161+02:00" level=info msg="metadata content store policy set" policy=shared
2022-07-10 12:52:02.676766131  time="2022-07-10T12:52:02.676714734+02:00" level=info msg="loading plugin \"io.containerd.differ.v1.walking\"..." type=io.containerd.differ.v1
2022-07-10 12:52:02.676898465  time="2022-07-10T12:52:02.676844048+02:00" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1
2022-07-10 12:52:02.676996967  time="2022-07-10T12:52:02.676943281+02:00" level=info msg="loading plugin \"io.containerd.gc.v1.scheduler\"..." type=io.containerd.gc.v1
2022-07-10 12:52:02.677213133  time="2022-07-10T12:52:02.677156002+02:00" level=info msg="loading plugin \"io.containerd.service.v1.introspection-service\"..." type=io.containerd.service.v1
2022-07-10 12:52:02.677307402  time="2022-07-10T12:52:02.677244765+02:00" level=info msg="loading plugin \"io.containerd.service.v1.containers-service\"..." type=io.containerd.service.v1
2022-07-10 12:52:02.677426397  time="2022-07-10T12:52:02.677357851+02:00" level=info msg="loading plugin \"io.containerd.service.v1.content-service\"..." type=io.containerd.service.v1
2022-07-10 12:52:02.677544791  time="2022-07-10T12:52:02.677477150+02:00" level=info msg="loading plugin \"io.containerd.service.v1.diff-service\"..." type=io.containerd.service.v1
2022-07-10 12:52:02.677680264  time="2022-07-10T12:52:02.677578830+02:00" level=info msg="loading plugin \"io.containerd.service.v1.images-service\"..." type=io.containerd.service.v1
2022-07-10 12:52:02.677818581  time="2022-07-10T12:52:02.677748713+02:00" level=info msg="loading plugin \"io.containerd.service.v1.leases-service\"..." type=io.containerd.service.v1
2022-07-10 12:52:02.677917917  time="2022-07-10T12:52:02.677851045+02:00" level=info msg="loading plugin \"io.containerd.service.v1.namespaces-service\"..." type=io.containerd.service.v1
2022-07-10 12:52:02.677985919  time="2022-07-10T12:52:02.677949104+02:00" level=info msg="loading plugin \"io.containerd.service.v1.snapshots-service\"..." type=io.containerd.service.v1
2022-07-10 12:52:02.678067456  time="2022-07-10T12:52:02.678033042+02:00" level=info msg="loading plugin \"io.containerd.runtime.v1.linux\"..." type=io.containerd.runtime.v1iao
2022-07-10 12:52:02.678389702  time="2022-07-10T12:52:02.678335387+02:00" level=info msg="loading plugin \"io.containerd.runtime.v2.task\"..." type=io.containerd.runtime.v2
2022-07-10 12:52:02.678661958  time="2022-07-10T12:52:02.678610659+02:00" level=info msg="loading plugin \"io.containerd.monitor.v1.cgroups\"..." type=io.containerd.monitor.v1
2022-07-10 12:52:02.680629835  time="2022-07-10T12:52:02.680531054+02:00" level=info msg="loading plugin \"io.containerd.service.v1.tasks-service\"..." type=io.containerd.service.v1
2022-07-10 12:52:02.680816455  time="2022-07-10T12:52:02.680729558+02:00" level=info msg="loading plugin \"io.containerd.grpc.v1.introspection\"..." type=io.containerd.grpc.v1
2022-07-10 12:52:02.680940263  time="2022-07-10T12:52:02.680838594+02:00" level=info msg="loading plugin \"io.containerd.internal.v1.restart\"..." type=io.containerd.internal.v1
2022-07-10 12:52:02.681216378  time="2022-07-10T12:52:02.681134821+02:00" level=info msg="loading plugin \"io.containerd.grpc.v1.containers\"..." type=io.containerd.grpc.v1
2022-07-10 12:52:02.681391347  time="2022-07-10T12:52:02.681316526+02:00" level=info msg="loading plugin \"io.containerd.grpc.v1.content\"..." type=io.containerd.grpc.v1
2022-07-10 12:52:02.681509595  time="2022-07-10T12:52:02.681406187+02:00" level=info msg="loading plugin \"io.containerd.grpc.v1.diff\"..." type=io.containerd.grpc.v1
2022-07-10 12:52:02.681654548  time="2022-07-10T12:52:02.681573025+02:00" level=info msg="loading plugin \"io.containerd.grpc.v1.events\"..." type=io.containerd.grpc.v1
2022-07-10 12:52:02.681796364  time="2022-07-10T12:52:02.681746809+02:00" level=info msg="loading plugin \"io.containerd.grpc.v1.healthcheck\"..." type=io.containerd.grpc.v1
2022-07-10 12:52:02.681879595  time="2022-07-10T12:52:02.681827023+02:00" level=info msg="loading plugin \"io.containerd.grpc.v1.images\"..." type=io.containerd.grpc.v1
2022-07-10 12:52:02.681981437  time="2022-07-10T12:52:02.681944826+02:00" level=info msg="loading plugin \"io.containerd.grpc.v1.leases\"..." type=io.containerd.grpc.v1
2022-07-10 12:52:02.682076144  time="2022-07-10T12:52:02.682028963+02:00" level=info msg="loading plugin \"io.containerd.grpc.v1.namespaces\"..." type=io.containerd.grpc.v1
2022-07-10 12:52:02.682246588  time="2022-07-10T12:52:02.682197403+02:00" level=info msg="loading plugin \"io.containerd.internal.v1.opt\"..." type=io.containerd.internal.v1
2022-07-10 12:52:02.682523079  time="2022-07-10T12:52:02.682458092+02:00" level=info msg="loading plugin \"io.containerd.grpc.v1.snapshots\"..." type=io.containerd.grpc.v1
2022-07-10 12:52:02.682602808  time="2022-07-10T12:52:02.682555592+02:00" level=info msg="loading plugin \"io.containerd.grpc.v1.tasks\"..." type=io.containerd.grpc.v1
2022-07-10 12:52:02.682709617  time="2022-07-10T12:52:02.682635708+02:00" level=info msg="loading plugin \"io.containerd.grpc.v1.version\"..." type=io.containerd.grpc.v1
2022-07-10 12:52:02.682811183  time="2022-07-10T12:52:02.682739138+02:00" level=info msg="loading plugin \"io.containerd.tracing.processor.v1.otlp\"..." type=io.containerd.tracing.processor.v1
2022-07-10 12:52:02.682921347  time="2022-07-10T12:52:02.682855100+02:00" level=info msg="skip loading plugin \"io.containerd.tracing.processor.v1.otlp\"..." error="no OpenTelemetry endpoint: skip plugin" type=io.containerd.tracing.processor.v1
2022-07-10 12:52:02.683054307  time="2022-07-10T12:52:02.682926443+02:00" level=info msg="loading plugin \"io.containerd.internal.v1.tracing\"..." type=io.containerd.internal.v1
2022-07-10 12:52:02.683181276  time="2022-07-10T12:52:02.683126316+02:00" level=error msg="failed to initialize a tracing processor \"otlp\"" error="no OpenTelemetry endpoint: skip plugin"
2022-07-10 12:52:02.684161452  time="2022-07-10T12:52:02.684120379+02:00" level=info msg=serving... address=/var/run/docker/containerd/containerd-debug.sock
2022-07-10 12:52:02.684497755  time="2022-07-10T12:52:02.684456886+02:00" level=info msg=serving... address=/var/run/docker/containerd/containerd.sock.ttrpc
2022-07-10 12:52:02.684722674  time="2022-07-10T12:52:02.684671783+02:00" level=info msg=serving... address=/var/run/docker/containerd/containerd.sock
2022-07-10 12:52:02.684814878  time="2022-07-10T12:52:02.684776251+02:00" level=info msg="containerd successfully booted in 0.039618s"
2022-07-10 12:52:02.699755426  time="2022-07-10T12:52:02.699626840+02:00" level=info msg="parsed scheme: \"unix\"" module=grpc
2022-07-10 12:52:02.699792637  time="2022-07-10T12:52:02.699657927+02:00" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
2022-07-10 12:52:02.699795978  time="2022-07-10T12:52:02.699683578+02:00" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock  <nil> 0 <nil>}] <nil> <nil>}" module=grpc
2022-07-10 12:52:02.699813516  time="2022-07-10T12:52:02.699failed to start daemon: Devices cgroup isn't mounted699190+02:00" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
2022-07-10 12:52:02.702307931  time="2022-07-10T12:52:02.702245988+02:00" level=info msg="parsed scheme: \"unix\"" module=grpc
2022-07-10 12:52:02.702343687  time="2022-07-10T12:52:02.702267528+02:00" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
2022-07-10 12:52:02.702416843  time="2022-07-10T12:52:02.702287864+02:00" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock  <nil> 0 <nil>}] <nil> <nil>}" module=grpc
2022-07-10 12:52:02.702432926  time="2022-07-10T12:52:02.702309401+02:00" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
2022-07-10 12:52:02.714686206  time="2022-07-10T12:52:02.714550521+02:00" level=info msg="[graphdriver] using prior storage driver: overlay2"
2022-07-10 12:52:02.720629255  time="2022-07-10T12:52:02.720502036+02:00" level=warning msg="Your kernel does not support cgroup memory limit"
2022-07-10 12:52:02.720658930  time="2022-07-10T12:52:02.720619693+02:00" level=warning msg="Unable to find cpu cgroup in mounts"
2022-07-10 12:52:02.720760344  time="2022-07-10T12:52:02.720658541+02:00" level=warning msg="Unable to find blkio cgroup in mounts"
2022-07-10 12:52:02.720789062  time="2022-07-10T12:52:02.720753955+02:00" level=warning msg="Unable to find cpuset cgroup in mounts"
2022-07-10 12:52:02.720889311  time="2022-07-10T12:52:02.720795814+02:00" level=warning msg="Unable to find pids cgroup in mounts"
2022-07-10 12:52:02.722199059  time="2022-07-10T12:52:02.722173859+02:00" level=info msg="stopping healthcheck following graceful shutdown" module=libcontainerd
2022-07-10 12:52:02.722340730  time="2022-07-10T12:52:02.722266321+02:00" level=info msg="stopping event stream following graceful shutdown" error="context canceled" module=libcontainerd namespace=plugins.moby
I'm afraid that the problematic part might be "failed to start daemon: Devices cgroup isn't mounted". BTW installing libcgroup made no difference.
UPDATE: my bad, I had forgot to enable cgroups in the boot conf file, that fixed the issue.

Powered by Obarun