Focal: fatal error: mlock failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned |
Bug Description
When testing supporting a release before it's released (re: focal) - I encountered this (see stack trace).
I don't know what to make of it and I've only seen it once.
Note: it was built with go1.14, which I forgot to switch back to go1.11 after doing some personal work.
-------
juju bootstrap lxd test --bootstrap-series focal --config image-stream=daily
Creating Juju controller "test" on lxd/default
Looking for packaged Juju agent version 2.7.5 for amd64
No packaged binary found, preparing local Juju agent binary
To configure your system to better support LXD containers, please see: https:/
Launching controller instance(s) on lxd/default...
- juju-e20d8b-0 (arch=amd64)
Installing Juju agent on bootstrap instance
Fetching Juju GUI 2.15.0
Waiting for address
Attempting to connect to 10.132.183.213:22
Connected to 10.132.183.213
Running machine configuration script...
sudo: setrlimit(
Cloud-init v. 20.1-10-
Cloud-init v. 20.1-10-
ci-info: +++++++
ci-info: +------
ci-info: | Device | Up | Address | Mask | Scope | Hw-Address |
ci-info: +------
ci-info: | eth0 | True | 10.132.183.213 | 255.255.255.0 | global | 00:16:3e:7d:78:14 |
ci-info: | eth0 | True | fe80::216:
ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | host | . |
ci-info: | lo | True | ::1/128 | . | host | . |
ci-info: +------
ci-info: +++++++
ci-info: +------
ci-info: | Route | Destination | Gateway | Genmask | Interface | Flags |
ci-info: +------
ci-info: | 0 | 0.0.0.0 | 10.132.183.1 | 0.0.0.0 | eth0 | UG |
ci-info: | 1 | 10.132.183.0 | 0.0.0.0 | 255.255.255.0 | eth0 | U |
ci-info: | 2 | 10.132.183.1 | 0.0.0.0 | 255.255.255.255 | eth0 | UH |
ci-info: +------
ci-info: +++++++
ci-info: +------
ci-info: | Route | Destination | Gateway | Interface | Flags |
ci-info: +------
ci-info: | 0 | fe80::/64 | :: | eth0 | U |
ci-info: | 2 | local | :: | eth0 | U |
ci-info: | 3 | ff00::/8 | :: | eth0 | U |
ci-info: +------
Cloud-init v. 20.1-10-
+ install -D -m 644 /dev/null /etc/systemd/
+ printf %s\n
[Unit]
Description=Stop all network interfaces on shutdown
DefaultDependen
After=final.target
[Service]
Type=oneshot
ExecStart=
StandardOutput=tty
StandardError=tty
[Install]
WantedBy=
+ /bin/systemctl enable /etc/systemd/
Created symlink /etc/systemd/
+ install -D -m 644 /dev/null /var/lib/
+ printf %s\n user-admin:
Cloud-init v. 20.1-10-
Cloud-init v. 20.1-10-
Logging to /var/log/
Regenerating SSH RSA host key
Generating public/private rsa key pair.
Your identification has been saved in /etc/ssh/
Your public key has been saved in /etc/ssh/
The key fingerprint is:
SHA256:
The key's randomart image is:
+---[RSA 3072]----+
| ... |
| o |
| o . . . |
| . o . o o . |
|o + o = S .. |
|o+ o + = o .. o |
|..o.o B Oo . + |
| .o+.* #.oo E |
| .+= +.+o. |
+----[SHA256]-----+
Generating public/private dsa key pair.
Your identification has been saved in /etc/ssh/
Your public key has been saved in /etc/ssh/
The key fingerprint is:
SHA256:
The key's randomart image is:
+---[DSA 1024]----+
| |
| |
| |
| |
| S |
| . o o. o +|
| . * =.o=o+O|
| ..* B =+=o@O|
| oo+oO*E+BoO|
+----[SHA256]-----+
Generating public/private ecdsa key pair.
Your identification has been saved in /etc/ssh/
Your public key has been saved in /etc/ssh/
The key fingerprint is:
SHA256:
The key's randomart image is:
+---[ECDSA 256]---+
|.. o =B= |
|oo=.=E+. |
| oo+= = + |
| o B * o |
| o . o S |
| . o + |
| . + + |
| +.oo*. |
| oB**oo. |
+----[SHA256]-----+
Running apt-get update
Get:1 http://
Hit:2 http://
Hit:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Fetched 16.1 MB in 3s (5961 kB/s)
Reading package lists...
Running apt-get upgrade
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following package was automatically installed and is no longer required:
libfreetype6
Use 'sudo apt autoremove' to remove it.
The following packages have been kept back:
base-files libc-bin libc6 libperl5.30 libpython3.8 libpython3.
libpython3.
python3.8-minimal
The following packages will be upgraded:
dirmngr gcc-10-base gir1.2-glib-2.0 gnupg gnupg-l10n gnupg-utils gpg
gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm gpgv isc-dhcp-client
isc-dhcp-common kmod libappstream4 libasound2 libasound2-data libgcc-s1
libgcc1 libgirepository
libkmod2 libldap-2.4-2 libldap-common libstdc++6 libx11-6 libx11-data
perl-modules-5.30 python3-gi python3-keyring python3-twisted
python3-
38 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
Need to get 11.7 MB of archives.
After this operation, 584 kB of additional disk space will be used.
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Get:23 http://
Get:24 http://
Get:25 http://
Get:26 http://
Get:27 http://
Get:28 http://
Get:29 http://
Get:30 http://
Get:31 http://
Get:32 http://
Get:33 http://
Get:34 http://
Get:35 http://
Get:36 http://
Get:37 http://
Get:38 http://
Preconfiguring packages ...
Fetched 11.7 MB in 0s (72.9 MB/s)
(Reading database ... 31162 files and directories currently installed.)
Preparing to unpack .../perl-
Unpacking perl-modules-5.30 (5.30.0-9build1) over (5.30.0-9) ...
Preparing to unpack .../gcc-
Unpacking gcc-10-base:amd64 (10-20200307-
Setting up gcc-10-base:amd64 (10-20200307-
(Reading database ... 31162 files and directories currently installed.)
Preparing to unpack .../libstdc+
Unpacking libstdc++6:amd64 (10-20200307-
Setting up libstdc++6:amd64 (10-20200307-
(Reading database ... 31162 files and directories currently installed.)
Preparing to unpack .../libgcc-
Unpacking libgcc-s1:amd64 (10-20200307-
Setting up libgcc-s1:amd64 (10-20200307-
(Reading database ... 31162 files and directories currently installed.)
Preparing to unpack .../libgcc1_
Unpacking libgcc1 (1:10-20200307-
Setting up libgcc1 (1:10-20200307-
(Reading database ... 31162 files and directories currently installed.)
Preparing to unpack .../00-
Unpacking gpg-wks-client (2.2.19-3ubuntu2) over (2.2.17-3ubuntu1) ...
Preparing to unpack .../01-
Unpacking dirmngr (2.2.19-3ubuntu2) over (2.2.17-3ubuntu1) ...
Preparing to unpack .../02-
Unpacking gpg-wks-server (2.2.19-3ubuntu2) over (2.2.17-3ubuntu1) ...
Preparing to unpack .../03-
Unpacking gnupg-utils (2.2.19-3ubuntu2) over (2.2.17-3ubuntu1) ...
Preparing to unpack .../04-
Unpacking gpg-agent (2.2.19-3ubuntu2) over (2.2.17-3ubuntu1) ...
Preparing to unpack .../05-
Unpacking gpg (2.2.19-3ubuntu2) over (2.2.17-3ubuntu1) ...
Preparing to unpack .../06-
Unpacking gpgconf (2.2.19-3ubuntu2) over (2.2.17-3ubuntu1) ...
Preparing to unpack .../07-
Unpacking gnupg-l10n (2.2.19-3ubuntu2) over (2.2.17-3ubuntu1) ...
Preparing to unpack .../08-
Unpacking gnupg (2.2.19-3ubuntu2) over (2.2.17-3ubuntu1) ...
Preparing to unpack .../09-
Unpacking gpgsm (2.2.19-3ubuntu2) over (2.2.17-3ubuntu1) ...
Preparing to unpack .../10-
Unpacking libldap-common (2.4.49+
Preparing to unpack .../11-
Unpacking libldap-2.4-2:amd64 (2.4.49+
Preparing to unpack .../12-
Unpacking gpgv (2.2.19-3ubuntu2) over (2.2.17-3ubuntu1) ...
Setting up gpgv (2.2.19-3ubuntu2) ...
(Reading database ... 31159 files and directories currently installed.)
Preparing to unpack .../00-
Unpacking libglib2.0-data (2.64.1-1) over (2.64.0-1) ...
Preparing to unpack .../01-
Unpacking libglib2.0-bin (2.64.1-1) over (2.64.0-1) ...
Preparing to unpack .../02-
Unpacking libglib2.0-0:amd64 (2.64.1-1) over (2.64.0-1) ...
Preparing to unpack .../03-
Unpacking libgirepository
Preparing to unpack .../04-
Unpacking gir1.2-
Preparing to unpack .../05-
Unpacking isc-dhcp-client (4.4.1-2.1ubuntu3) over (4.4.1-2.1ubuntu2) ...
Preparing to unpack .../06-
Unpacking isc-dhcp-common (4.4.1-2.1ubuntu3) over (4.4.1-2.1ubuntu2) ...
Preparing to unpack .../07-
Unpacking kmod (27-1ubuntu2) over (27-1ubuntu1) ...
Preparing to unpack .../08-
Unpacking libkmod2:amd64 (27-1ubuntu2) over (27-1ubuntu1) ...
Preparing to unpack .../09-
Unpacking python3-gi (3.36.0-1) over (3.34.0-6build1) ...
Preparing to unpack .../10-
Unpacking tzdata (2019c-3ubuntu1) over (2019c-3) ...
Preparing to unpack .../11-
Unpacking libx11-data (2:1.6.9-2ubuntu1) over (2:1.6.9-2) ...
Preparing to unpack .../12-
Unpacking libx11-6:amd64 (2:1.6.9-2ubuntu1) over (2:1.6.9-2) ...
Preparing to unpack .../13-
Unpacking libappstream4:amd64 (0.12.10-2) over (0.12.10-1) ...
Preparing to unpack .../14-
Unpacking libasound2:amd64 (1.2.2-2.1) over (1.2.2-2ubuntu1) ...
Preparing to unpack .../15-
Unpacking libasound2-data (1.2.2-2.1) over (1.2.2-2ubuntu1) ...
Preparing to unpack .../16-
Unpacking python3-keyring (18.0.1-2ubuntu1) over (18.0.1-2) ...
Preparing to unpack .../17-
Unpacking python3-
Preparing to unpack .../18-
Unpacking python3-twisted (18.9.0-6ubuntu1) over (18.9.0-6build1) ...
Preparing to unpack .../19-
Unpacking unattended-upgrades (2.0) over (1.18) ...
Setting up perl-modules-5.30 (5.30.0-9build1) ...
Setting up libglib2.0-0:amd64 (2.64.1-1) ...
Setting up python3-
Setting up isc-dhcp-client (4.4.1-2.1ubuntu3) ...
Installing new version of config file /etc/apparmor.
Setting up libldap-common (2.4.49+
Setting up libappstream4:amd64 (0.12.10-2) ...
Setting up tzdata (2019c-3ubuntu1) ...
Current default time zone: 'Etc/UTC'
Local time is now: Wed Mar 18 11:38:30 UTC 2020.
Universal Time is now: Wed Mar 18 11:38:30 UTC 2020.
Run 'dpkg-reconfigure tzdata' if you wish to change it.
Setting up libasound2-data (1.2.2-2.1) ...
Setting up unattended-upgrades (2.0) ...
Replacing config file /etc/apt/
Setting up libglib2.0-data (2.64.1-1) ...
Setting up libx11-data (2:1.6.9-2ubuntu1) ...
Setting up gnupg-l10n (2.2.19-3ubuntu2) ...
Setting up python3-twisted (18.9.0-6ubuntu1) ...
/usr/lib/
self.stdin = io.open(p2cwrite, 'wb', bufsize)
/usr/lib/
if keytype is "EC":
Setting up libasound2:amd64 (1.2.2-2.1) ...
Setting up gpgconf (2.2.19-3ubuntu2) ...
Setting up python3-keyring (18.0.1-2ubuntu1) ...
/usr/lib/
self.stdin = io.open(p2cwrite, 'wb', bufsize)
Setting up libx11-6:amd64 (2:1.6.9-2ubuntu1) ...
Setting up libgirepository
Setting up isc-dhcp-common (4.4.1-2.1ubuntu3) ...
Setting up gpg (2.2.19-3ubuntu2) ...
Setting up libkmod2:amd64 (27-1ubuntu2) ...
Setting up gnupg-utils (2.2.19-3ubuntu2) ...
Setting up gpg-agent (2.2.19-3ubuntu2) ...
Setting up gpgsm (2.2.19-3ubuntu2) ...
Setting up libglib2.0-bin (2.64.1-1) ...
Setting up libldap-2.4-2:amd64 (2.4.49+
Setting up kmod (27-1ubuntu2) ...
update-initramfs: deferring update (trigger activated)
Setting up dirmngr (2.2.19-3ubuntu2) ...
Setting up gir1.2-
Setting up gpg-wks-server (2.2.19-3ubuntu2) ...
Setting up gpg-wks-client (2.2.19-3ubuntu2) ...
Setting up python3-gi (3.36.0-1) ...
/usr/lib/
self.stdin = io.open(p2cwrite, 'wb', bufsize)
Setting up gnupg (2.2.19-3ubuntu2) ...
Processing triggers for libc-bin (2.30-0ubuntu3) ...
Processing triggers for systemd (244.3-1ubuntu1) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for install-info (6.7.0.dfsg.2-5) ...
Processing triggers for initramfs-tools (0.136ubuntu1) ...
Installing curl, cpu-checker, bridge-utils, tmux, ubuntu-fan
Reading package lists...
Building dependency tree...
Reading state information...
curl is already the newest version (7.68.0-1ubuntu1).
curl set to manually installed.
The following package was automatically installed and is no longer required:
libfreetype6
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
libfreetype6
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
msr-tools
The following NEW packages will be installed:
cpu-checker msr-tools
0 upgraded, 2 newly installed, 0 to remove and 14 not upgraded.
Need to get 16.9 kB of archives.
After this operation, 66.6 kB of additional disk space will be used.
Get:1 http://
Get:2 http://
Fetched 16.9 kB in 0s (1459 kB/s)
Selecting previously unselected package msr-tools.
(Reading database ... 31172 files and directories currently installed.)
Preparing to unpack .../msr-
Unpacking msr-tools (1.3-3) ...
Selecting previously unselected package cpu-checker.
Preparing to unpack .../cpu-
Unpacking cpu-checker (0.7-1.1) ...
Setting up msr-tools (1.3-3) ...
Setting up cpu-checker (0.7-1.1) ...
Processing triggers for man-db (2.9.1-1) ...
Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
libfreetype6
Use 'sudo apt autoremove' to remove it.
Suggested packages:
ifupdown
The following NEW packages will be installed:
bridge-utils
0 upgraded, 1 newly installed, 0 to remove and 14 not upgraded.
Need to get 30.5 kB of archives.
After this operation, 112 kB of additional disk space will be used.
Get:1 http://
Fetched 30.5 kB in 0s (2730 kB/s)
Selecting previously unselected package bridge-utils.
(Reading database ... 31186 files and directories currently installed.)
Preparing to unpack .../bridge-
Unpacking bridge-utils (1.6-2ubuntu1) ...
Setting up bridge-utils (1.6-2ubuntu1) ...
Processing triggers for man-db (2.9.1-1) ...
Reading package lists...
Building dependency tree...
Reading state information...
tmux is already the newest version (3.0a-2).
tmux set to manually installed.
The following package was automatically installed and is no longer required:
libfreetype6
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
libfreetype6
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
dns-root-data dnsmasq-base libidn11
The following NEW packages will be installed:
dns-root-data dnsmasq-base libidn11 ubuntu-fan
0 upgraded, 4 newly installed, 0 to remove and 14 not upgraded.
Need to get 400 kB of archives.
After this operation, 1229 kB of additional disk space will be used.
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Fetched 400 kB in 0s (20.8 MB/s)
Selecting previously unselected package dns-root-data.
(Reading database ... 31214 files and directories currently installed.)
Preparing to unpack .../dns-
Unpacking dns-root-data (2019052802) ...
Selecting previously unselected package libidn11:amd64.
Preparing to unpack .../libidn11_
Unpacking libidn11:amd64 (1.33-2.2ubuntu2) ...
Selecting previously unselected package dnsmasq-base.
Preparing to unpack .../dnsmasq-
Unpacking dnsmasq-base (2.80-1.1ubuntu1) ...
Selecting previously unselected package ubuntu-fan.
Preparing to unpack .../ubuntu-
Unpacking ubuntu-fan (0.12.13) ...
Setting up dns-root-data (2019052802) ...
Setting up libidn11:amd64 (1.33-2.2ubuntu2) ...
Setting up dnsmasq-base (2.80-1.1ubuntu1) ...
Setting up ubuntu-fan (0.12.13) ...
Created symlink /etc/systemd/
Processing triggers for systemd (244.3-1ubuntu1) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for dbus (1.12.16-2ubuntu2) ...
Processing triggers for libc-bin (2.30-0ubuntu3) ...
3c5aadafc30ec7d
ea1d5a41c36521c
Installing Juju machine agent
2020-03-18 11:38:45 INFO juju.cmd supercommand.go:83 running jujud [2.7.5.1 9825e246a9ec70e
runtime: mlock of signal stack failed: 12
runtime: increase the mlock limit (ulimit -l) or
runtime: update your kernel to 5.3.15+, 5.4.2+, or 5.5+
fatal error: mlock failed
runtime stack:
runtime.
/usr/local/
runtime.
/usr/local/
runtime.
/usr/local/
runtime.
/usr/local/
runtime.
/usr/local/
runtime.
/usr/local/
runtime.startm(0x0, 0xc000500301)
/usr/local/
runtime.wakep(...)
/usr/local/
runtime.
/usr/local/
runtime.schedule()
/usr/local/
runtime.
/usr/local/
runtime.
/usr/local/
goroutine 1 [runnable]:
time.Time.date(0x0, 0xef0e0dc0c, 0x0, 0x40b8400, 0x11, 0xc000e059a0, 0xd, 0xef0e0dc0c)
/usr/local/
time.Time.Year(...)
/usr/local/
encoding/
/usr/local/
encoding/
/usr/local/
encoding/
/usr/local/
encoding/
/usr/local/
encoding/
/usr/local/
encoding/
/usr/local/
encoding/
/usr/local/
crypto/
/usr/local/
crypto/
/usr/local/
crypto/
/usr/local/
crypto/
/usr/local/
sync.(*
/usr/local/
sync.(*
/usr/local/
crypto/
/usr/local/
crypto/
/usr/local/
github.
/home/
github.
/home/
github.
/home/
github.
/home/
github.
/home/
github.
/home/
github.
/home/
github.
/home/
github.
/home/
github.
/home/
github.
/home/
github.
/home/
github.
/home/
github.
/home/
github.
/home/
github.
/home/
github.
/home/
github.
/home/
main.jujuDMain(
/home/
main.Main(
/home/
main.MainWrappe
/home/
main.main()
/home/
goroutine 33 [chan receive]:
github.
/home/
created by github.
/home/
goroutine 9 [select]:
github.
/home/
created by github.
/home/
goroutine 98 [select]:
github.
/home/
created by github.
/home/
ERROR failed to bootstrap model: subprocess encountered error code 2
This bug has not been updated in 2 years, so we're marking it Low importance. If you believe this is incorrect, please update the importance.