Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dpkg lockf during dist-upgrade, not nice #23

Open
wdoekes opened this issue Jan 27, 2017 · 3 comments
Open

dpkg lockf during dist-upgrade, not nice #23

wdoekes opened this issue Jan 27, 2017 · 3 comments
Labels

Comments

@wdoekes
Copy link
Member

wdoekes commented Jan 27, 2017

root      1269  0.0  2.3 427356 93296 pts/4    S+   15:51   0:00                                  \_ /usr/bin/python3 /tmp/ubuntu-release-upgrader-8fr77y46/xenial --mode=server --frontend=DistUpgradeViewT
root      1361  0.0  0.0   4508   792 pts/4    S+   15:51   0:00                                      \_ sh -c service gocollect status >/dev/null && if ! service gocollect restart; then echo '(suppressin
root      1372  0.0  0.0   4508  1708 pts/4    S+   15:51   0:00                                          \_ /bin/sh /etc/init.d/gocollect restart
root      1401  0.2  0.2  14928 11380 pts/4    Sl+  15:51   0:00                                              \_ /usr/sbin/gocollect
root      1647  0.0  0.0   8648   784 pts/4    S    15:51   0:00                                                  \_ timeout 180s /usr/share/gocollect/collectors/os.pkg
root      1648  0.0  0.0   4508   696 pts/4    S    15:51   0:00                                                      \_ /bin/sh /usr/share/gocollect/collectors/os.pkg
root      1649  0.0  0.1  30148  6524 pts/4    S    15:51   0:00                                                          \_ python /usr/share/gocollect/collectors/util/lockf.py 120 /var/lib/dpkg/lock /va
root      1650  0.0  0.0   4508   104 pts/4    S    15:51   0:00                                                          \_ /bin/sh /usr/share/gocollect/collectors/os.pkg
@wdoekes
Copy link
Member Author

wdoekes commented Jan 27, 2017

That wasn't enough. Apparently the gocollect was run in the foreground too (for some reason).

Had to kill it. Had to do it. It's true.

@wdoekes
Copy link
Member Author

wdoekes commented Jul 4, 2017

Can't we just fix this by using a sleep? It shouldn't be in the foreground when it's doing os.pkg...
Why was this never backgrounded?

@wdoekes wdoekes added the bug label Jul 4, 2017
@wdoekes
Copy link
Member Author

wdoekes commented Jul 14, 2017

Or. We can fix this by not doing a restart after post-install? We already have a post-apt-run-restart hook anyway....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant