[Touch-packages] [Bug 2014031] Re: ufw fails trying to enable

2023-04-30 Thread Jibrille Valenda
*** This bug is a duplicate of bug 2015645 ***
https://bugs.launchpad.net/bugs/2015645

-- 
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/2014031

Title:
  ufw fails trying to enable

Status in ufw package in Ubuntu:
  Confirmed

Bug description:
  root@SW556127-UY:~# sudo ufw enable
  Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/ufw/util.py", line 427, in under_ssh
  ppid = get_ppid(pid)
File "/usr/lib/python3/dist-packages/ufw/util.py", line 419, in get_ppid
  ppid = open(name).readlines()[0].split(')')[1].split()[1]
  IndexError: list index out of range

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
File "/usr/sbin/ufw", line 138, in 
  not ui.continue_under_ssh():
File "/usr/lib/python3/dist-packages/ufw/frontend.py", line 901, in 
continue_under_ssh
  if self.backend.do_checks and ufw.util.under_ssh(): # pragma: no cover
File "/usr/lib/python3/dist-packages/ufw/util.py", line 457, in under_ssh
  return under_ssh(ppid)
File "/usr/lib/python3/dist-packages/ufw/util.py", line 457, in under_ssh
  return under_ssh(ppid)
File "/usr/lib/python3/dist-packages/ufw/util.py", line 457, in under_ssh
  return under_ssh(ppid)
[Previous line repeated 1 more time]
File "/usr/lib/python3/dist-packages/ufw/util.py", line 434, in under_ssh
  raise ValueError(err_msg)
  ValueError: Couldn't find parent pid for '257'


  root@SW556127-UY:~# lsb_release -rd
  Description:Ubuntu 22.04.2 LTS
  Release:22.04

  
  root@SW556127-UY:~# apt-cache policy ufw
  ufw:
Installed: 0.36.1-4build1
Candidate: 0.36.1-4build1
Version table:
   *** 0.36.1-4build1 500
  500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
  100 /var/lib/dpkg/status

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


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 2014031] Re: ufw fails trying to enable

2023-04-22 Thread Jamie Strandboge
*** This bug is a duplicate of bug 2015645 ***
https://bugs.launchpad.net/bugs/2015645

This looks like it may be a dupe of
https://bugs.launchpad.net/bugs/2015645 (the fix for it should fix
this).

** Changed in: ufw (Ubuntu)
   Status: New => Confirmed

** This bug has been marked a duplicate of bug 2015645
   ufw crashes in wsl2

-- 
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/2014031

Title:
  ufw fails trying to enable

Status in ufw package in Ubuntu:
  Confirmed

Bug description:
  root@SW556127-UY:~# sudo ufw enable
  Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/ufw/util.py", line 427, in under_ssh
  ppid = get_ppid(pid)
File "/usr/lib/python3/dist-packages/ufw/util.py", line 419, in get_ppid
  ppid = open(name).readlines()[0].split(')')[1].split()[1]
  IndexError: list index out of range

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
File "/usr/sbin/ufw", line 138, in 
  not ui.continue_under_ssh():
File "/usr/lib/python3/dist-packages/ufw/frontend.py", line 901, in 
continue_under_ssh
  if self.backend.do_checks and ufw.util.under_ssh(): # pragma: no cover
File "/usr/lib/python3/dist-packages/ufw/util.py", line 457, in under_ssh
  return under_ssh(ppid)
File "/usr/lib/python3/dist-packages/ufw/util.py", line 457, in under_ssh
  return under_ssh(ppid)
File "/usr/lib/python3/dist-packages/ufw/util.py", line 457, in under_ssh
  return under_ssh(ppid)
[Previous line repeated 1 more time]
File "/usr/lib/python3/dist-packages/ufw/util.py", line 434, in under_ssh
  raise ValueError(err_msg)
  ValueError: Couldn't find parent pid for '257'


  root@SW556127-UY:~# lsb_release -rd
  Description:Ubuntu 22.04.2 LTS
  Release:22.04

  
  root@SW556127-UY:~# apt-cache policy ufw
  ufw:
Installed: 0.36.1-4build1
Candidate: 0.36.1-4build1
Version table:
   *** 0.36.1-4build1 500
  500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
  100 /var/lib/dpkg/status

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


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 2014031] Re: ufw fails trying to enable

2023-03-31 Thread Jamie Strandboge
Thanks for the report. Does this happen every time of just occasionally?
It's clear that the open(name).readlines() isn't returning anything,
which is interesting. Do you have any other information on what might be
causing this? (the fix should be straightforward without it though)

-- 
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/2014031

Title:
  ufw fails trying to enable

Status in ufw package in Ubuntu:
  New

Bug description:
  root@SW556127-UY:~# sudo ufw enable
  Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/ufw/util.py", line 427, in under_ssh
  ppid = get_ppid(pid)
File "/usr/lib/python3/dist-packages/ufw/util.py", line 419, in get_ppid
  ppid = open(name).readlines()[0].split(')')[1].split()[1]
  IndexError: list index out of range

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
File "/usr/sbin/ufw", line 138, in 
  not ui.continue_under_ssh():
File "/usr/lib/python3/dist-packages/ufw/frontend.py", line 901, in 
continue_under_ssh
  if self.backend.do_checks and ufw.util.under_ssh(): # pragma: no cover
File "/usr/lib/python3/dist-packages/ufw/util.py", line 457, in under_ssh
  return under_ssh(ppid)
File "/usr/lib/python3/dist-packages/ufw/util.py", line 457, in under_ssh
  return under_ssh(ppid)
File "/usr/lib/python3/dist-packages/ufw/util.py", line 457, in under_ssh
  return under_ssh(ppid)
[Previous line repeated 1 more time]
File "/usr/lib/python3/dist-packages/ufw/util.py", line 434, in under_ssh
  raise ValueError(err_msg)
  ValueError: Couldn't find parent pid for '257'


  root@SW556127-UY:~# lsb_release -rd
  Description:Ubuntu 22.04.2 LTS
  Release:22.04

  
  root@SW556127-UY:~# apt-cache policy ufw
  ufw:
Installed: 0.36.1-4build1
Candidate: 0.36.1-4build1
Version table:
   *** 0.36.1-4build1 500
  500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
  100 /var/lib/dpkg/status

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


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp