Jamie: I was able to reproduce the issue again. I'm thinking the problem
might be related to Ansible, but not 100% sure.

The output of ps auxww|grep ufw is:

root      247851  0.0  0.0   2608   604 pts/1    S+   10:53   0:00 /bin/sh -c 
ufw enable ufw allow 22 ufw allow 80 ufw allow 443 
root      247852  0.0  0.3  15908 12860 pts/1    S+   10:53   0:00 
/usr/bin/python3 /usr/sbin/ufw enable
admin     247915  0.0  0.0   8160   736 pts/0    S+   11:01   0:00 grep 
--color=auto ufw

The Ansible task is:

    - name: Configure UFW
      shell: |
        ufw enable
        ufw allow 22
        ufw allow 80
        ufw allow 443

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ufw in Ubuntu.
https://bugs.launchpad.net/bugs/1921350

Title:
  UFW hangs indefinitely on any action

Status in ufw package in Ubuntu:
  Incomplete

Bug description:
  When installing a new cloudserver (on Amazon EC2, if it makes a
  difference), UFW completely hangs on any command, for example ufw
  status. Interrupting it with Ctrl+C yields this backtrace:

  Traceback (most recent call last):
    File "/usr/sbin/ufw", line 130, in <module>
      lock = create_lock(lockfile=lockfile, dryrun=pr.dryrun)
    File "/usr/lib/python3/dist-packages/ufw/util.py", line 1112, in create_lock
      fcntl.lockf(lock, fcntl.LOCK_EX)
  KeyboardInterrupt

  The line numbers are always the same.

  The platform is Ubuntu Server 20.04 (Ubuntu 20.04.2 LTS), from the
  Amazon image. I have not seen this bug on other servers. UFW is
  version 0.36.

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to