Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

ubuntu16.04: Freezing execution on mac #124

Closed
kongslund opened this issue Apr 7, 2019 · 9 comments
Closed

ubuntu16.04: Freezing execution on mac #124

kongslund opened this issue Apr 7, 2019 · 9 comments
Labels
help wanted Extra attention is needed kind/bug Something isn't working
Milestone

Comments

@kongslund
Copy link
Contributor

I am unable to successfully start quay.io/footloose/ubuntu16.04:(0.3.0|latest) on my Mac using Docker Desktop Community 2.0.0.3 (Engine 18.09.2). For comparison, it works just fine when using quay.io/footloose/centos7:0.3.0.

$ footloose create
INFO[0000] Image: quay.io/footloose/ubuntu16.04:latest present locally
INFO[0000] Creating machine: cluster-node0 ...
$ docker logs cluster-node0
Failed to determine whether /sys is a mount point: Operation not permitted
Failed to determine whether /proc is a mount point: Operation not permitted
Failed to determine whether /dev is a mount point: Operation not permitted
Failed to determine whether /dev/shm is a mount point: Operation not permitted
Failed to determine whether /run is a mount point: Operation not permitted
Failed to determine whether /run/lock is a mount point: Operation not permitted
Failed to determine whether /sys/fs/cgroup is a mount point: Operation not permitted
Failed to determine whether /sys/fs/cgroup/systemd is a mount point: Operation not permitted
[!!!!!!] Failed to mount API filesystems, freezing.
Freezing execution.

My footloose.yaml:

cluster:
  name: cluster
  privateKey: cluster-key
machines:
- count: 1
  spec:
    image: quay.io/footloose/ubuntu16.04:latest
    name: node%d
    portMappings:
    - containerPort: 22
@dlespiau dlespiau added the kind/bug Something isn't working label Apr 7, 2019
@dlespiau
Copy link
Contributor

dlespiau commented Apr 7, 2019

Hello Jonas! Thanks for trying footloose and taking the time to file that bug report. I don't have a machine with macOS myself, but hopefully someone using mac can have a look.

@dlespiau dlespiau added the help wanted Extra attention is needed label Apr 7, 2019
@dlespiau dlespiau changed the title ubuntu16.04: Freezing execution ubuntu16.04: Freezing execution on mac Apr 7, 2019
@Skarlso
Copy link
Contributor

Skarlso commented Apr 7, 2019

@kongslund @dlespiau I'll take a look. I'm on a mac and 16.04 is my baby. :D

@Skarlso
Copy link
Contributor

Skarlso commented Apr 7, 2019

@kongslund Ah! It's a subtle issue, but you are missing privileged: true from your config file. :)

@Skarlso
Copy link
Contributor

Skarlso commented Apr 7, 2019

~/goprojects/footloose master*
❯ ./footloose create
INFO[0000] Image: docker.io/skarlso/footloose:ubuntu16 present locally
INFO[0000] Creating machine: cluster-node0 ...

~/goprojects/footloose master*
❯ docker logs cluster-node0
Failed to insert module 'autofs4': No such file or directory
systemd 229 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN)
Detected virtualization docker.
Detected architecture x86-64.

Welcome to Ubuntu 16.04.5 LTS!

Set hostname to <node0>.
[  OK  ] Reached target Swap.
[  OK  ] Listening on Journal Audit Socket.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Reached target Paths.
[  OK  ] Reached target Local File Systems.
[  OK  ] Listening on Journal Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Created slice System Slice.
         Starting Journal Service...
[  OK  ] Reached target Slices.
         Starting Create Static Device Nodes in /dev...
[  OK  ] Started Create Static Device Nodes in /dev.
[  OK  ] Started Journal Service.
[  OK  ] Reached target System Initialization.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target Timers.
[  OK  ] Reached target Basic System.
         Starting Permit User Sessions...
         Starting LSB: Set the CPU Frequency Scaling governor to "ondemand"...
         Starting /etc/rc.local Compatibility...
         Starting OpenBSD Secure Shell server...
[  OK  ] Started Permit User Sessions.
[  OK  ] Started /etc/rc.local Compatibility.
[  OK  ] Started OpenBSD Secure Shell server.
[  OK  ] Started LSB: Set the CPU Frequency Scaling governor to "ondemand".
[  OK  ] Reached target Multi-User System.

@Skarlso
Copy link
Contributor

Skarlso commented Apr 7, 2019

Footloose file:

❯ cat footloose.yaml
cluster:
  name: cluster
  privateKey: cluster-key
machines:
- count: 1
  spec:
    image: docker.io/skarlso/footloose:ubuntu16
    name: node%d
    portMappings:
    - containerPort: 22
    privileged: true

@Skarlso
Copy link
Contributor

Skarlso commented Apr 7, 2019

@dlespiau There might be a gap of documentation here, or at least some example, or something telling the user that you'd have to set this value. 🤔

@kongslund
Copy link
Contributor Author

Thanks, that helped tremendously :)

@laixintao
Copy link

laixintao commented Dec 14, 2021

Hi I still got the same issue even with --privileged:

footloose1 ➜ footloose config create --replicas 1 --image quay.io/footloose/ubuntu16.04 --privileged

footloose1 ➜ cat footloose.yaml
cluster:
  name: cluster
  privateKey: cluster-key
machines:
- count: 1
  spec:
    backend: docker
    image: quay.io/footloose/ubuntu16.04
    name: node%d
    portMappings:
    - containerPort: 22
    privileged: true
footloose1 ➜ footloose create
INFO[0000] Docker Image: quay.io/footloose/ubuntu16.04 present locally
INFO[0000] Creating machine: cluster-node0 ...
footloose1 ➜ footloose ssh root@node0
kex_exchange_identification: Connection closed by remote host
FATA[0000] exit status 255
footloose1 ➜ docker logs cluster-node0
Failed to insert module 'autofs4': No such file or directory
Failed to mount cgroup at /sys/fs/cgroup/systemd: No such file or directory
[!!!!!!] Failed to mount API filesystems, freezing.
Freezing execution.

Any ideas?

$ docker version
Client:
 Cloud integration: v1.0.22
 Version:           20.10.11
 API version:       1.41
 Go version:        go1.16.10
 Git commit:        dea9396
 Built:             Thu Nov 18 00:36:09 2021
 OS/Arch:           darwin/amd64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.11
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.16.9
  Git commit:       847da18
  Built:            Thu Nov 18 00:35:39 2021
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.4.12
  GitCommit:        7b11cfaabd73bb80907dd23182b9347b4245eb5d
 runc:
  Version:          1.0.2
  GitCommit:        v1.0.2-0-g52b36a2
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

footloose1 ➜ footloose version
version: 0.6.3

footloose1 ➜ uname -a
Darwin MacBook-Pro.local 20.6.0 Darwin Kernel Version 20.6.0: Tue Oct 12 18:33:42 PDT 2021; root:xnu-7195.141.8~1/RELEASE_X86_64 x86_64 i386 MacBookPro16,1 Darwin

@laixintao
Copy link

may related to docker/for-mac#6073

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants