script hangs and never finishes

Bug #1710296 reported by Jason Grammenos on 2017-08-11
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Undecided
Unassigned

Bug Description

The /usr/bin/python3 /usr/lib/ubuntu-release-upgrader/check-new-release -q
job that runs weekly appears to hang and never complets, slowly building up the number of hanging processes

user@archive:~$ ps -ef | grep check-new
root 1618 1 0 Feb26 ? 00:00:00 /usr/bin/python3 /usr/lib/ubuntu-release-upgrader/check-new-release -q
root 3489 1 0 Jul09 ? 00:00:00 /usr/bin/python3 /usr/lib/ubuntu-release-upgrader/check-new-release -q
root 5951 1 0 Mar19 ? 00:00:00 /usr/bin/python3 /usr/lib/ubuntu-release-upgrader/check-new-release -q
root 14385 1 0 Apr02 ? 00:00:00 /usr/bin/python3 /usr/lib/ubuntu-release-upgrader/check-new-release -q
root 14490 1 0 Jul23 ? 00:00:00 /usr/bin/python3 /usr/lib/ubuntu-release-upgrader/check-new-release -q
root 15157 1 0 Apr30 ? 00:00:00 /usr/bin/python3 /usr/lib/ubuntu-release-upgrader/check-new-release -q
root 17853 1 0 Jun04 ? 00:00:00 /usr/bin/python3 /usr/lib/ubuntu-release-upgrader/check-new-release -q
root 21845 1 0 Jun11 ? 00:00:00 /usr/bin/python3 /usr/lib/ubuntu-release-upgrader/check-new-release -q
root 22240 1 0 May21 ? 00:00:00 /usr/bin/python3 /usr/lib/ubuntu-release-upgrader/check-new-release -q
root 22607 1 0 Jul02 ? 00:00:00 /usr/bin/python3 /usr/lib/ubuntu-release-upgrader/check-new-release -q
root 23452 1 0 Apr16 ? 00:00:00 /usr/bin/python3 /usr/lib/ubuntu-release-upgrader/check-new-release -q
root 27171 1 0 Feb19 ? 00:00:00 /usr/bin/python3 /usr/lib/ubuntu-release-upgrader/check-new-release -q
root 28447 1 0 Jun18 ? 00:00:00 /usr/bin/python3 /usr/lib/ubuntu-release-upgrader/check-new-release -q
root 29531 1 0 Mar05 ? 00:00:00 /usr/bin/python3 /usr/lib/ubuntu-release-upgrader/check-new-release -q
root 30531 1 0 Jun25 ? 00:00:00 /usr/bin/python3 /usr/lib/ubuntu-release-upgrader/check-new-release -q
root 31763 1 0 May14 ? 00:00:00 /usr/bin/python3 /usr/lib/ubuntu-release-upgrader/check-new-release -q
root 32360 1 0 May07 ? 00:00:00 /usr/bin/python3 /usr/lib/ubuntu-release-upgrader/check-new-release -q

user@archive:~$ sudo strace -p 32360
Process 32360 attached
futex(0x27b0fd0, FUTEX_WAIT_PRIVATE, 0, NULL

Running Trusty

user@archive:~$ lsb_release -d
Description: Ubuntu 14.04.5 LTS

user@archive:~$ dpkg -l | grep ubuntu-re
ii ubuntu-release-upgrader-core 1:0.220.9 all manage release upgrades

user@archive:~$ apt-cache policy ubuntu-release-upgrader-core
ubuntu-release-upgrader-core:
  Installed: 1:0.220.9
  Candidate: 1:0.220.9
  Version table:
 *** 1:0.220.9 0
        500 http://ca.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1:0.220.2 0
        500 http://ca.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

Any assistance in resolving these hanging processes that grow for no apparent reason.
I could simply disable the cron job, but i am trying to get to the root of the issues and resolve it.

Expected behaviour:
The script should terminate and close the process.

what happened:
the script hang and runs in background forever.

Brian Murray (brian-murray) wrote :

Thanks for reporting this issue, what does /etc/update-manager/release-upgrades contain?

user@mm02archive:~# cat /etc/update-manager/release-upgrades
# Default behavior for the release upgrader.

[DEFAULT]
# Default prompting behavior, valid options:
#
# never - Never check for a new release.
# normal - Check to see if a new release is available. If more than one new
# release is found, the release upgrader will attempt to upgrade to
# the release that immediately succeeds the currently-running
# release.
# lts - Check to see if a new LTS release is available. The upgrader
# will attempt to upgrade to the first LTS release available after
# the currently-running one. Note that this option should not be
# used if the currently-running release is not itself an LTS
# release, since in that case the upgrader won't be able to
# determine if a newer release is available.
Prompt=lts

Brian Murray (brian-murray) wrote :

Can you connect to the changelog server?

(trusty-amd64)root@impulse:/tmp# wget http://changelogs.ubuntu.com/meta-release-lts
--2017-08-15 08:04:50-- http://changelogs.ubuntu.com/meta-release-lts
Resolving changelogs.ubuntu.com (changelogs.ubuntu.com)... 2001:67c:1560:8008::11, 91.189.95.15
Connecting to changelogs.ubuntu.com (changelogs.ubuntu.com)|2001:67c:1560:8008::11|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3683 (3.6K)
Saving to: 'meta-release-lts'

100%[============================================================================================================================>] 3,683 --.-K/s in 0s

2017-08-15 08:04:51 (728 MB/s) - 'meta-release-lts' saved [3683/3683]

Changed in ubuntu-release-upgrader (Ubuntu):
status: New → Incomplete

Yes i can connect to the changelog server.

user@archive:~$ wget http://changelogs.ubuntu.com/meta-release-lts
--2017-08-15 11:12:37-- http://changelogs.ubuntu.com/meta-release-lts
Resolving changelogs.ubuntu.com (changelogs.ubuntu.com)... 91.189.95.15, 2001:67c:1560:8008::11
Connecting to changelogs.ubuntu.com (changelogs.ubuntu.com)|91.189.95.15|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3683 (3.6K)
Saving to: ‘meta-release-lts’

100%[===============================================================================================================================================>] 3,683 --.-K/s in 0s

2017-08-15 11:12:37 (278 MB/s) - ‘meta-release-lts’ saved [3683/3683]

Hello, the ticket is still marked as incomplete, what additional information do you need from me.

Changed in ubuntu-release-upgrader (Ubuntu):
status: Incomplete → New

user@somenode:~$ ps -ef | grep check-new
root 5102 1 0 Jul30 ? 00:00:00 /usr/bin/python3 /usr/lib/ubuntu-release-upgrader/check-new-release -q
root 9228 1 0 Jul16 ? 00:00:00 /usr/bin/python3 /usr/lib/ubuntu-release-upgrader/check-new-release -q
root 16718 1 0 Jul02 ? 00:00:00 /usr/bin/python3 /usr/lib/ubuntu-release-upgrader/check-new-release -q
root 18286 1 0 Aug20 ? 00:00:00 /usr/bin/python3 /usr/lib/ubuntu-release-upgrader/check-new-release -q
root 40711 1 0 Jun25 ? 00:00:00 /usr/bin/python3 /usr/lib/ubuntu-release-upgrader/check-new-release -q
root 42309 1 0 Jul23 ? 00:00:00 /usr/bin/python3 /usr/lib/ubuntu-release-upgrader/check-new-release -q
root 44891 1 0 Jun18 ? 00:00:00 /usr/bin/python3 /usr/lib/ubuntu-release-upgrader/check-new-release -q
root 49048 1 0 Jun11 ? 00:00:00 /usr/bin/python3 /usr/lib/ubuntu-release-upgrader/check-new-release -q
root 56328 1 0 Aug27 ? 00:00:00 /usr/bin/python3 /usr/lib/ubuntu-release-upgrader/check-new-release -q
root 67336 1 0 Aug06 ? 00:00:00 /usr/bin/python3 /usr/lib/ubuntu-release-upgrader/check-new-release -q
root 89995 1 0 Jul09 ? 00:00:00 /usr/bin/python3 /usr/lib/ubuntu-release-upgrader/check-new-release -q
root 130476 1 0 Aug13 ? 00:00:00 /usr/bin/python3 /usr/lib/ubuntu-release-upgrader/check-new-release -q
user@somenode:~$ lsb_release -d
Description: Ubuntu 16.04.2 LTS

user@somenode:~$ dpkg -l | grep ubuntu-re
ii ubuntu-release-upgrader-core 1:16.04.21 all manage release upgrades

user@somenode:~$ sudo strace -p 130476
strace: Process 130476 attached
futex(0x115c510, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, ffffffff^Cstrace: Process 130476 detached
 <detached ...>

I can now confirm that this also occurs on 16.04

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers