Public bug reported:

During a routine "apt-get update; apt-get upgrade" of an Ubuntu Trusty
machine, the update failed with the error "sudo: unknown uid 4000: who
are you?".

After this error has occurred the machine is sluggish, and all attempts
to fork a process fail with "-bash: fork: Cannot allocate memory".

A forced reboot of the machine causes the machine to come back up, but
SSH is now no longer in a working state, triggering various low level
TCP errors, including "connection reset by peer".

Given this is an AWS machine, and given that ssh is the only way in,
this causes a fatal outage on the machine.

This has happened on two separate machines so far.

minfrin@syslog01:~$ sudo apt-get update; sudo apt-get upgrade; sudo apt-get 
autoremove; sudo shutdown -r now
Ign http://eu-west-1.ec2.archive.ubuntu.com trusty InRelease
Get:1 http://eu-west-1.ec2.archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty-backports InRelease
Get:2 http://security.ubuntu.com trusty-security InRelease [65.9 kB]
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty Release.gpg                 
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty Release                     
Get:3 http://eu-west-1.ec2.archive.ubuntu.com trusty-updates/main Sources [400 
kB]
Get:4 http://eu-west-1.ec2.archive.ubuntu.com trusty-updates/restricted Sources 
[6,331 B]
Get:5 http://eu-west-1.ec2.archive.ubuntu.com trusty-updates/universe Sources 
[184 kB]
Get:6 http://eu-west-1.ec2.archive.ubuntu.com trusty-updates/multiverse Sources 
[7,747 B]
Get:7 http://eu-west-1.ec2.archive.ubuntu.com trusty-updates/main amd64 
Packages [995 kB]
Get:8 http://security.ubuntu.com trusty-security/main Sources [133 kB]         
Get:9 http://eu-west-1.ec2.archive.ubuntu.com trusty-updates/restricted amd64 
Packages [17.1 kB]
Get:10 http://eu-west-1.ec2.archive.ubuntu.com trusty-updates/universe amd64 
Packages [417 kB]
Get:11 http://security.ubuntu.com trusty-security/universe Sources [59.4 kB]   
Get:12 http://security.ubuntu.com trusty-security/main amd64 Packages [628 kB] 
Get:13 http://eu-west-1.ec2.archive.ubuntu.com trusty-updates/multiverse amd64 
Packages [14.3 kB]
Get:14 http://eu-west-1.ec2.archive.ubuntu.com trusty-updates/main 
Translation-en [489 kB]
Get:15 http://eu-west-1.ec2.archive.ubuntu.com trusty-updates/multiverse 
Translation-en [7,430 B]
Get:16 http://eu-west-1.ec2.archive.ubuntu.com trusty-updates/restricted 
Translation-en [3,978 B]
Get:17 http://eu-west-1.ec2.archive.ubuntu.com trusty-updates/universe 
Translation-en [223 kB]
Get:18 http://security.ubuntu.com trusty-security/universe amd64 Packages [172 
kB]
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty-backports/main Sources      
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty-backports/restricted Sources
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty-backports/universe Sources
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty-backports/multiverse Sources
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty-backports/main amd64 Packages
Hit http://security.ubuntu.com trusty-security/main Translation-en    
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty-backports/restricted amd64 
Packages
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty-backports/universe amd64 
Packages
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty-backports/multiverse amd64 
Packages
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty-backports/main Translation-en
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty-backports/multiverse 
Translation-en
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty-backports/restricted 
Translation-en
Hit http://security.ubuntu.com trusty-security/universe Translation-en         
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty-backports/universe 
Translation-en
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty/main Sources    
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty/restricted Sources
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty/universe Sources
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty/multiverse Sources
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty/main amd64 Packages
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty/universe amd64 Packages
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty/multiverse amd64 Packages
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty/main Translation-en    
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty/multiverse Translation-en
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty/restricted Translation-en
Hit http://eu-west-1.ec2.archive.ubuntu.com trusty/universe Translation-en
Ign http://eu-west-1.ec2.archive.ubuntu.com trusty/main Translation-en_US 
Ign http://eu-west-1.ec2.archive.ubuntu.com trusty/multiverse Translation-en_US
Ign http://eu-west-1.ec2.archive.ubuntu.com trusty/restricted Translation-en_US
Ign http://eu-west-1.ec2.archive.ubuntu.com trusty/universe Translation-en_US
Get:19 https://repo.hogarthww.com testing InRelease                       
Get:20 https://repo.hogarthww.com testing InRelease                            
Get:21 https://repo.hogarthww.com testing/main amd64 Packages                  
Get:22 https://repo.hogarthww.com testing/main Translation-en_US        
Get:23 https://repo.hogarthww.com testing/main Translation-en_US        
Ign https://repo.hogarthww.com testing/main Translation-en_US              
Ign https://repo.hogarthww.com testing/main Translation-en
Ign https://repo.hogarthww.com testing/main Translation-en_US
Ign https://repo.hogarthww.com testing/main Translation-en
Fetched 3,957 kB in 3s (1,191 kB/s)                   
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  linux-headers-3.13.0-106 linux-headers-3.13.0-106-generic
  linux-headers-3.13.0-116 linux-headers-3.13.0-116-generic
  linux-headers-3.13.0-119 linux-headers-3.13.0-119-generic
  linux-image-3.13.0-106-generic linux-image-3.13.0-116-generic
  linux-image-3.13.0-119-generic
Use 'apt-get autoremove' to remove them.
The following packages will be upgraded:
  apport cloud-init grub-legacy-ec2 isc-dhcp-client isc-dhcp-common
  klibc-utils libipa-hbac0 libklibc libnss-sss libpam-sss libpq5 libsss-idmap0
  libsss-sudo logrotate overlayroot python-sss python3-apport
  python3-problem-report python3-software-properties
  software-properties-common sssd sssd-ad sssd-ad-common sssd-common sssd-ipa
  sssd-krb5 sssd-krb5-common sssd-ldap sssd-proxy sssd-tools
  unattended-upgrades
31 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/3,283 kB of archives.
After this operation, 16.4 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 185967 files and directories currently installed.)
Preparing to unpack .../libnss-sss_1.11.8-0ubuntu0.7_amd64.deb ...
Unpacking libnss-sss:amd64 (1.11.8-0ubuntu0.7) over (1.11.8-0ubuntu0.5) ...
Preparing to unpack .../isc-dhcp-client_4.2.4-7ubuntu12.10_amd64.deb ...
Unpacking isc-dhcp-client (4.2.4-7ubuntu12.10) over (4.2.4-7ubuntu12.8) ...
Preparing to unpack .../isc-dhcp-common_4.2.4-7ubuntu12.10_amd64.deb ...
Unpacking isc-dhcp-common (4.2.4-7ubuntu12.10) over (4.2.4-7ubuntu12.8) ...
Preparing to unpack .../logrotate_3.8.7-1ubuntu1.1_amd64.deb ...
Unpacking logrotate (3.8.7-1ubuntu1.1) over (3.8.7-1ubuntu1) ...
Preparing to unpack .../klibc-utils_2.0.3-0ubuntu1.14.04.3_amd64.deb ...
Unpacking klibc-utils (2.0.3-0ubuntu1.14.04.3) over (2.0.3-0ubuntu1.14.04.2) ...
Preparing to unpack .../libklibc_2.0.3-0ubuntu1.14.04.3_amd64.deb ...
Unpacking libklibc (2.0.3-0ubuntu1.14.04.3) over (2.0.3-0ubuntu1.14.04.2) ...
Preparing to unpack .../python3-problem-report_2.14.1-0ubuntu3.24_all.deb ...
Unpacking python3-problem-report (2.14.1-0ubuntu3.24) over (2.14.1-0ubuntu3.23) 
...
Preparing to unpack .../python3-apport_2.14.1-0ubuntu3.24_all.deb ...
Unpacking python3-apport (2.14.1-0ubuntu3.24) over (2.14.1-0ubuntu3.23) ...
Preparing to unpack .../apport_2.14.1-0ubuntu3.24_all.deb ...
apport stop/waiting
Unpacking apport (2.14.1-0ubuntu3.24) over (2.14.1-0ubuntu3.23) ...
Preparing to unpack .../libpq5_9.3.17-0ubuntu0.14.04_amd64.deb ...
Unpacking libpq5 (9.3.17-0ubuntu0.14.04) over (9.3.16-0ubuntu0.14.04) ...
Preparing to unpack .../software-properties-common_0.92.37.8_all.deb ...
Unpacking software-properties-common (0.92.37.8) over (0.92.37.7) ...
Preparing to unpack .../unattended-upgrades_0.82.1ubuntu2.5_all.deb ...
Unpacking unattended-upgrades (0.82.1ubuntu2.5) over (0.82.1ubuntu2.4) ...
Preparing to unpack .../python3-software-properties_0.92.37.8_all.deb ...
Unpacking python3-software-properties (0.92.37.8) over (0.92.37.7) ...
Preparing to unpack .../cloud-init_0.7.5-0ubuntu1.22_all.deb ...
Unpacking cloud-init (0.7.5-0ubuntu1.22) over (0.7.5-0ubuntu1.21) ...
Preparing to unpack .../grub-legacy-ec2_0.7.5-0ubuntu1.22_all.deb ...
Leaving 'diversion of /usr/sbin/grub-set-default to 
/usr/sbin/grub-set-default.real by grub-legacy-ec2'
Unpacking grub-legacy-ec2 (0.7.5-0ubuntu1.22) over (0.7.5-0ubuntu1.21) ...
Preparing to unpack .../sssd-ldap_1.11.8-0ubuntu0.7_amd64.deb ...
Unpacking sssd-ldap (1.11.8-0ubuntu0.7) over (1.11.8-0ubuntu0.5) ...
Preparing to unpack .../sssd-krb5_1.11.8-0ubuntu0.7_amd64.deb ...
Unpacking sssd-krb5 (1.11.8-0ubuntu0.7) over (1.11.8-0ubuntu0.5) ...
Preparing to unpack .../sssd-ipa_1.11.8-0ubuntu0.7_amd64.deb ...
Unpacking sssd-ipa (1.11.8-0ubuntu0.7) over (1.11.8-0ubuntu0.5) ...
Preparing to unpack .../sssd-krb5-common_1.11.8-0ubuntu0.7_amd64.deb ...
Unpacking sssd-krb5-common (1.11.8-0ubuntu0.7) over (1.11.8-0ubuntu0.5) ...
Preparing to unpack .../sssd-proxy_1.11.8-0ubuntu0.7_amd64.deb ...
Unpacking sssd-proxy (1.11.8-0ubuntu0.7) over (1.11.8-0ubuntu0.5) ...
Preparing to unpack .../sssd-tools_1.11.8-0ubuntu0.7_amd64.deb ...
Unpacking sssd-tools (1.11.8-0ubuntu0.7) over (1.11.8-0ubuntu0.5) ...
Preparing to unpack .../sssd-common_1.11.8-0ubuntu0.7_amd64.deb ...
Unpacking sssd-common (1.11.8-0ubuntu0.7) over (1.11.8-0ubuntu0.5) ...
Preparing to unpack .../sssd_1.11.8-0ubuntu0.7_amd64.deb ...
Unpacking sssd (1.11.8-0ubuntu0.7) over (1.11.8-0ubuntu0.5) ...
Preparing to unpack .../sssd-ad_1.11.8-0ubuntu0.7_amd64.deb ...
Unpacking sssd-ad (1.11.8-0ubuntu0.7) over (1.11.8-0ubuntu0.5) ...
Preparing to unpack .../sssd-ad-common_1.11.8-0ubuntu0.7_amd64.deb ...
Unpacking sssd-ad-common (1.11.8-0ubuntu0.7) over (1.11.8-0ubuntu0.5) ...
Preparing to unpack .../python-sss_1.11.8-0ubuntu0.7_amd64.deb ...
Unpacking python-sss (1.11.8-0ubuntu0.7) over (1.11.8-0ubuntu0.5) ...
Preparing to unpack .../libsss-idmap0_1.11.8-0ubuntu0.7_amd64.deb ...
Unpacking libsss-idmap0 (1.11.8-0ubuntu0.7) over (1.11.8-0ubuntu0.5) ...
Preparing to unpack .../libipa-hbac0_1.11.8-0ubuntu0.7_amd64.deb ...
Unpacking libipa-hbac0 (1.11.8-0ubuntu0.7) over (1.11.8-0ubuntu0.5) ...
Preparing to unpack .../libpam-sss_1.11.8-0ubuntu0.7_amd64.deb ...
Unpacking libpam-sss:amd64 (1.11.8-0ubuntu0.7) over (1.11.8-0ubuntu0.5) ...
Preparing to unpack .../libsss-sudo_1.11.8-0ubuntu0.7_amd64.deb ...
Unpacking libsss-sudo (1.11.8-0ubuntu0.7) over (1.11.8-0ubuntu0.5) ...
Preparing to unpack .../overlayroot_0.25ubuntu1.14.04.2_all.deb ...
Unpacking overlayroot (0.25ubuntu1.14.04.2) over (0.25ubuntu1.14.04.1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up libnss-sss:amd64 (1.11.8-0ubuntu0.7) ...
Setting up isc-dhcp-common (4.2.4-7ubuntu12.10) ...
Setting up isc-dhcp-client (4.2.4-7ubuntu12.10) ...
Setting up logrotate (3.8.7-1ubuntu1.1) ...
Setting up libklibc (2.0.3-0ubuntu1.14.04.3) ...
Setting up klibc-utils (2.0.3-0ubuntu1.14.04.3) ...
Setting up python3-problem-report (2.14.1-0ubuntu3.24) ...
Setting up python3-apport (2.14.1-0ubuntu3.24) ...
Setting up apport (2.14.1-0ubuntu3.24) ...
apport start/running
Setting up libpq5 (9.3.17-0ubuntu0.14.04) ...
Setting up unattended-upgrades (0.82.1ubuntu2.5) ...
Installing new version of config file /etc/apt/apt.conf.d/50unattended-upgrades 
...
Setting up python3-software-properties (0.92.37.8) ...
Setting up software-properties-common (0.92.37.8) ...
Setting up cloud-init (0.7.5-0ubuntu1.22) ...
Leaving 'diversion of /etc/init/ureadahead.conf to 
/etc/init/ureadahead.conf.disabled by cloud-init'
Setting up grub-legacy-ec2 (0.7.5-0ubuntu1.22) ...
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-3.13.0-123-generic
Found kernel: /boot/vmlinuz-3.13.0-121-generic
Found kernel: /boot/vmlinuz-3.13.0-119-generic
Found kernel: /boot/vmlinuz-3.13.0-117-generic
Found kernel: /boot/vmlinuz-3.13.0-116-generic
Found kernel: /boot/vmlinuz-3.13.0-106-generic
Updating /boot/grub/menu.lst ... done

Setting up libsss-idmap0 (1.11.8-0ubuntu0.7) ...
Setting up python-sss (1.11.8-0ubuntu0.7) ...
Setting up sssd-common (1.11.8-0ubuntu0.7) ...
Installing new version of config file /etc/init/sssd.conf ...
Warning: found usr.sbin.sssd in /etc/apparmor.d/force-complain, forcing 
complain mode
Warning failed to create cache: usr.sbin.sssd
sssd start/running, process 14232
sssd-autofs stop/waiting
Setting up libipa-hbac0 (1.11.8-0ubuntu0.7) ...
Setting up libpam-sss:amd64 (1.11.8-0ubuntu0.7) ...
Setting up libsss-sudo (1.11.8-0ubuntu0.7) ...
Setting up overlayroot (0.25ubuntu1.14.04.2) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up sssd-ad-common (1.11.8-0ubuntu0.7) ...
Setting up sssd-proxy (1.11.8-0ubuntu0.7) ...
Setting up sssd-tools (1.11.8-0ubuntu0.7) ...
Setting up sssd-krb5-common (1.11.8-0ubuntu0.7) ...
Setting up sssd-ldap (1.11.8-0ubuntu0.7) ...
Setting up sssd-krb5 (1.11.8-0ubuntu0.7) ...
Setting up sssd-ipa (1.11.8-0ubuntu0.7) ...
Setting up sssd-ad (1.11.8-0ubuntu0.7) ...
Setting up sssd (1.11.8-0ubuntu0.7) ...
Processing triggers for libc-bin (2.19-0ubuntu6.13) ...
Processing triggers for initramfs-tools (0.103ubuntu4.7) ...
update-initramfs: Generating /boot/initrd.img-3.13.0-123-generic
sudo: unknown uid 4000: who are you?
sudo: unknown uid 4000: who are you?
minfrin@syslog01:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            492M   12K  492M   1% /dev
tmpfs           100M  364K   99M   1% /run
/dev/xvda1      7.8G  2.9G  4.6G  39% /
none            4.0K     0  4.0K   0% /sys/fs/cgroup
none            5.0M     0  5.0M   0% /run/lock
none            497M     0  497M   0% /run/shm
none            100M     0  100M   0% /run/user
/dev/xvde       493G  272M  467G   1% /mnt/log-overlay
overlayfs       493G  272M  467G   1% /var/log
minfrin@syslog01:~$ less /etc/passwd
passwd   passwd-  
minfrin@syslog01:~$ less /etc/passwd
passwd   passwd-  
minfrin@syslog01:~$ less /etc/passwd
passwd   passwd-  
minfrin@syslog01:~$ less /etc/passwd
minfrin@syslog01:~$ htop
-bash: fork: Cannot allocate memory
minfrin@syslog01:~$ htop
-bash: fork: Cannot allocate memory
minfrin@syslog01:~$ ps
-bash: fork: Cannot allocate memory

** Affects: ubuntu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1701751

Title:
  During routine apt-get update/upgrade: sudo: unknown uid 4000: who are
  you?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1701751/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to