[Touch-packages] [Bug 1943189] Re: "cannot refresh whilst network offline" bug

2021-09-27 Thread Launchpad Bug Tracker
This bug was fixed in the package packagekit - 1.2.2-2ubuntu3

---
packagekit (1.2.2-2ubuntu3) impish; urgency=medium

  * Refresh wait-until-online-to-activate-systemd-service.patch with fixes
(LP: #1943189)

packagekit (1.2.2-2ubuntu2) impish; urgency=medium

  * Add wait-until-online-to-activate-systemd-service.patch: Wait until
after network-online.target to start packagekitd so it knows if it is
online, thanks to Erich Eickmeyer for the patch (LP: #1943189)

 -- Julian Andres Klode   Mon, 27 Sep 2021 10:15:19
+0200

** Changed in: packagekit (Ubuntu Impish)
   Status: Fix Committed => Fix Released

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

Title:
  "cannot refresh whilst network offline" bug

Status in packagekit package in Ubuntu:
  Fix Released
Status in packagekit source package in Focal:
  Confirmed
Status in packagekit source package in Hirsute:
  Confirmed
Status in packagekit source package in Impish:
  Fix Released

Bug description:
  [Impact]

  In Ubuntu Impish, an issue has been noted in regards to refreshing
  packages in Plasma Discover for upgrade or installation. An error
  appears upon initialization of the Discover interface:

  "cannot refresh whilst network offline"

  This will happen regardless of if a system is online or not.

  I identified a race condition in which this is occurring on systems
  where packagekitd is initialized before the network service is online.
  This was a relatively easy fix and required adding one line to the
  packagekit.service file:

  Wants=network-online.target

  This ensures that packagekitd is not initialized prior to being
  online. If the 90 second deadline isn't met, then packagekitd will
  simply not start as a background process until the user connects to
  the network and initializes it via a graphical utility, such as with
  GNOME Software or Plasma Discover, both of which initialize
  packagekitd on a user level.

  The attached patch will easily apply the fix via normal Debian
  packaging methods.

  [Test Plan]

   * Install Kubuntu or Ubuntu Studio

   * While connected to network, Run Discover

   * Discover will complain about "cannot refresh whilst offline", which
  is being communicated from PackageKit. All functionality in Discover
  is hindered from this point forward. This is due to a hung packagekitd
  process which sees the network offline, even though this is false.

  [Where problems could occur]

   * packagekitd's systemd service will time-out after 90 seconds if
  systemd finds no network, which means any update notifications will
  not automatically start until packagekitd is manually started.
  Luckily, Discover and GNOME Software both attempt to start packagekitd
  for the user when run. I'd consider this to be expected behavior for
  an offline system. The fix is mostly to prevent the false-negative of
  the system being offline when it's really not.

  [Other Info]

   * This fix has been accepted upstream by the PackageKit maintainers
  as a sane workaround for when gio misbehaves or otherwise. It's a
  decent safety net. https://github.com/PackageKit/PackageKit/pull/506

  ProblemType: Bug
  DistroRelease: Ubuntu 21.10
  Package: packagekit 1.2.2-2ubuntu1 [modified: 
lib/systemd/system/packagekit.service]
  ProcVersionSignature: Ubuntu 5.13.0-14.14-lowlatency 5.13.1
  Uname: Linux 5.13.0-14-lowlatency x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset 
nvidia
  ApportVersion: 2.20.11-0ubuntu68
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: KDE
  Date: Thu Sep  9 16:34:12 2021
  InstallationDate: Installed on 2021-03-20 (172 days ago)
  InstallationMedia: Ubuntu-Studio 21.04 "Hirsute Hippo" - Alpha amd64 
(20210320)
  SourcePackage: packagekit
  UpgradeStatus: Upgraded to impish on 2021-06-13 (88 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/packagekit/+bug/1943189/+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 1943189] Re: "cannot refresh whilst network offline" bug

2021-09-27 Thread Julian Andres Klode
** Changed in: packagekit (Ubuntu Impish)
   Status: In Progress => Fix Committed

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

Title:
  "cannot refresh whilst network offline" bug

Status in packagekit package in Ubuntu:
  Fix Committed
Status in packagekit source package in Focal:
  Confirmed
Status in packagekit source package in Hirsute:
  Confirmed
Status in packagekit source package in Impish:
  Fix Committed

Bug description:
  [Impact]

  In Ubuntu Impish, an issue has been noted in regards to refreshing
  packages in Plasma Discover for upgrade or installation. An error
  appears upon initialization of the Discover interface:

  "cannot refresh whilst network offline"

  This will happen regardless of if a system is online or not.

  I identified a race condition in which this is occurring on systems
  where packagekitd is initialized before the network service is online.
  This was a relatively easy fix and required adding one line to the
  packagekit.service file:

  Wants=network-online.target

  This ensures that packagekitd is not initialized prior to being
  online. If the 90 second deadline isn't met, then packagekitd will
  simply not start as a background process until the user connects to
  the network and initializes it via a graphical utility, such as with
  GNOME Software or Plasma Discover, both of which initialize
  packagekitd on a user level.

  The attached patch will easily apply the fix via normal Debian
  packaging methods.

  [Test Plan]

   * Install Kubuntu or Ubuntu Studio

   * While connected to network, Run Discover

   * Discover will complain about "cannot refresh whilst offline", which
  is being communicated from PackageKit. All functionality in Discover
  is hindered from this point forward. This is due to a hung packagekitd
  process which sees the network offline, even though this is false.

  [Where problems could occur]

   * packagekitd's systemd service will time-out after 90 seconds if
  systemd finds no network, which means any update notifications will
  not automatically start until packagekitd is manually started.
  Luckily, Discover and GNOME Software both attempt to start packagekitd
  for the user when run. I'd consider this to be expected behavior for
  an offline system. The fix is mostly to prevent the false-negative of
  the system being offline when it's really not.

  [Other Info]

   * This fix has been accepted upstream by the PackageKit maintainers
  as a sane workaround for when gio misbehaves or otherwise. It's a
  decent safety net. https://github.com/PackageKit/PackageKit/pull/506

  ProblemType: Bug
  DistroRelease: Ubuntu 21.10
  Package: packagekit 1.2.2-2ubuntu1 [modified: 
lib/systemd/system/packagekit.service]
  ProcVersionSignature: Ubuntu 5.13.0-14.14-lowlatency 5.13.1
  Uname: Linux 5.13.0-14-lowlatency x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset 
nvidia
  ApportVersion: 2.20.11-0ubuntu68
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: KDE
  Date: Thu Sep  9 16:34:12 2021
  InstallationDate: Installed on 2021-03-20 (172 days ago)
  InstallationMedia: Ubuntu-Studio 21.04 "Hirsute Hippo" - Alpha amd64 
(20210320)
  SourcePackage: packagekit
  UpgradeStatus: Upgraded to impish on 2021-06-13 (88 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/packagekit/+bug/1943189/+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 1943189] Re: "cannot refresh whilst network offline" bug

2021-09-23 Thread Jeremy Soller
Ok, that sounds good. I'm just curious because I'm on Impish and
experiencing issues with PackageKit due to this bug. So far I've been
restarting the service after I boot.

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

Title:
  "cannot refresh whilst network offline" bug

Status in packagekit package in Ubuntu:
  In Progress
Status in packagekit source package in Focal:
  Confirmed
Status in packagekit source package in Hirsute:
  Confirmed
Status in packagekit source package in Impish:
  In Progress

Bug description:
  [Impact]

  In Ubuntu Impish, an issue has been noted in regards to refreshing
  packages in Plasma Discover for upgrade or installation. An error
  appears upon initialization of the Discover interface:

  "cannot refresh whilst network offline"

  This will happen regardless of if a system is online or not.

  I identified a race condition in which this is occurring on systems
  where packagekitd is initialized before the network service is online.
  This was a relatively easy fix and required adding one line to the
  packagekit.service file:

  Wants=network-online.target

  This ensures that packagekitd is not initialized prior to being
  online. If the 90 second deadline isn't met, then packagekitd will
  simply not start as a background process until the user connects to
  the network and initializes it via a graphical utility, such as with
  GNOME Software or Plasma Discover, both of which initialize
  packagekitd on a user level.

  The attached patch will easily apply the fix via normal Debian
  packaging methods.

  [Test Plan]

   * Install Kubuntu or Ubuntu Studio

   * While connected to network, Run Discover

   * Discover will complain about "cannot refresh whilst offline", which
  is being communicated from PackageKit. All functionality in Discover
  is hindered from this point forward. This is due to a hung packagekitd
  process which sees the network offline, even though this is false.

  [Where problems could occur]

   * packagekitd's systemd service will time-out after 90 seconds if
  systemd finds no network, which means any update notifications will
  not automatically start until packagekitd is manually started.
  Luckily, Discover and GNOME Software both attempt to start packagekitd
  for the user when run. I'd consider this to be expected behavior for
  an offline system. The fix is mostly to prevent the false-negative of
  the system being offline when it's really not.

  [Other Info]

   * This fix has been accepted upstream by the PackageKit maintainers
  as a sane workaround for when gio misbehaves or otherwise. It's a
  decent safety net. https://github.com/PackageKit/PackageKit/pull/506

  ProblemType: Bug
  DistroRelease: Ubuntu 21.10
  Package: packagekit 1.2.2-2ubuntu1 [modified: 
lib/systemd/system/packagekit.service]
  ProcVersionSignature: Ubuntu 5.13.0-14.14-lowlatency 5.13.1
  Uname: Linux 5.13.0-14-lowlatency x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset 
nvidia
  ApportVersion: 2.20.11-0ubuntu68
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: KDE
  Date: Thu Sep  9 16:34:12 2021
  InstallationDate: Installed on 2021-03-20 (172 days ago)
  InstallationMedia: Ubuntu-Studio 21.04 "Hirsute Hippo" - Alpha amd64 
(20210320)
  SourcePackage: packagekit
  UpgradeStatus: Upgraded to impish on 2021-06-13 (88 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/packagekit/+bug/1943189/+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 1943189] Re: "cannot refresh whilst network offline" bug

2021-09-23 Thread Erich Eickmeyer 
Standard SRU procedure is that it gets into Impish, then it gets
reviewed by the SRU team. If accepted, it gets backported into the
proposed queue where it waits for one week for verification and testing.
If it's verified in that week, it gets backported into the release
updates. See https://wiki.ubuntu.com/StableReleaseUpdates for more
information.

Probably about a week out for Impish due to the beta freeze, so that
should give a timeline.

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

Title:
  "cannot refresh whilst network offline" bug

Status in packagekit package in Ubuntu:
  In Progress
Status in packagekit source package in Focal:
  Confirmed
Status in packagekit source package in Hirsute:
  Confirmed
Status in packagekit source package in Impish:
  In Progress

Bug description:
  [Impact]

  In Ubuntu Impish, an issue has been noted in regards to refreshing
  packages in Plasma Discover for upgrade or installation. An error
  appears upon initialization of the Discover interface:

  "cannot refresh whilst network offline"

  This will happen regardless of if a system is online or not.

  I identified a race condition in which this is occurring on systems
  where packagekitd is initialized before the network service is online.
  This was a relatively easy fix and required adding one line to the
  packagekit.service file:

  Wants=network-online.target

  This ensures that packagekitd is not initialized prior to being
  online. If the 90 second deadline isn't met, then packagekitd will
  simply not start as a background process until the user connects to
  the network and initializes it via a graphical utility, such as with
  GNOME Software or Plasma Discover, both of which initialize
  packagekitd on a user level.

  The attached patch will easily apply the fix via normal Debian
  packaging methods.

  [Test Plan]

   * Install Kubuntu or Ubuntu Studio

   * While connected to network, Run Discover

   * Discover will complain about "cannot refresh whilst offline", which
  is being communicated from PackageKit. All functionality in Discover
  is hindered from this point forward. This is due to a hung packagekitd
  process which sees the network offline, even though this is false.

  [Where problems could occur]

   * packagekitd's systemd service will time-out after 90 seconds if
  systemd finds no network, which means any update notifications will
  not automatically start until packagekitd is manually started.
  Luckily, Discover and GNOME Software both attempt to start packagekitd
  for the user when run. I'd consider this to be expected behavior for
  an offline system. The fix is mostly to prevent the false-negative of
  the system being offline when it's really not.

  [Other Info]

   * This fix has been accepted upstream by the PackageKit maintainers
  as a sane workaround for when gio misbehaves or otherwise. It's a
  decent safety net. https://github.com/PackageKit/PackageKit/pull/506

  ProblemType: Bug
  DistroRelease: Ubuntu 21.10
  Package: packagekit 1.2.2-2ubuntu1 [modified: 
lib/systemd/system/packagekit.service]
  ProcVersionSignature: Ubuntu 5.13.0-14.14-lowlatency 5.13.1
  Uname: Linux 5.13.0-14-lowlatency x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset 
nvidia
  ApportVersion: 2.20.11-0ubuntu68
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: KDE
  Date: Thu Sep  9 16:34:12 2021
  InstallationDate: Installed on 2021-03-20 (172 days ago)
  InstallationMedia: Ubuntu-Studio 21.04 "Hirsute Hippo" - Alpha amd64 
(20210320)
  SourcePackage: packagekit
  UpgradeStatus: Upgraded to impish on 2021-06-13 (88 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/packagekit/+bug/1943189/+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 1943189] Re: "cannot refresh whilst network offline" bug

2021-09-23 Thread Jeremy Soller
Nice! When do you think the Ubuntu package will be updated?

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

Title:
  "cannot refresh whilst network offline" bug

Status in packagekit package in Ubuntu:
  In Progress
Status in packagekit source package in Focal:
  Confirmed
Status in packagekit source package in Hirsute:
  Confirmed
Status in packagekit source package in Impish:
  In Progress

Bug description:
  [Impact]

  In Ubuntu Impish, an issue has been noted in regards to refreshing
  packages in Plasma Discover for upgrade or installation. An error
  appears upon initialization of the Discover interface:

  "cannot refresh whilst network offline"

  This will happen regardless of if a system is online or not.

  I identified a race condition in which this is occurring on systems
  where packagekitd is initialized before the network service is online.
  This was a relatively easy fix and required adding one line to the
  packagekit.service file:

  Wants=network-online.target

  This ensures that packagekitd is not initialized prior to being
  online. If the 90 second deadline isn't met, then packagekitd will
  simply not start as a background process until the user connects to
  the network and initializes it via a graphical utility, such as with
  GNOME Software or Plasma Discover, both of which initialize
  packagekitd on a user level.

  The attached patch will easily apply the fix via normal Debian
  packaging methods.

  [Test Plan]

   * Install Kubuntu or Ubuntu Studio

   * While connected to network, Run Discover

   * Discover will complain about "cannot refresh whilst offline", which
  is being communicated from PackageKit. All functionality in Discover
  is hindered from this point forward. This is due to a hung packagekitd
  process which sees the network offline, even though this is false.

  [Where problems could occur]

   * packagekitd's systemd service will time-out after 90 seconds if
  systemd finds no network, which means any update notifications will
  not automatically start until packagekitd is manually started.
  Luckily, Discover and GNOME Software both attempt to start packagekitd
  for the user when run. I'd consider this to be expected behavior for
  an offline system. The fix is mostly to prevent the false-negative of
  the system being offline when it's really not.

  [Other Info]

   * This fix has been accepted upstream by the PackageKit maintainers
  as a sane workaround for when gio misbehaves or otherwise. It's a
  decent safety net. https://github.com/PackageKit/PackageKit/pull/506

  ProblemType: Bug
  DistroRelease: Ubuntu 21.10
  Package: packagekit 1.2.2-2ubuntu1 [modified: 
lib/systemd/system/packagekit.service]
  ProcVersionSignature: Ubuntu 5.13.0-14.14-lowlatency 5.13.1
  Uname: Linux 5.13.0-14-lowlatency x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset 
nvidia
  ApportVersion: 2.20.11-0ubuntu68
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: KDE
  Date: Thu Sep  9 16:34:12 2021
  InstallationDate: Installed on 2021-03-20 (172 days ago)
  InstallationMedia: Ubuntu-Studio 21.04 "Hirsute Hippo" - Alpha amd64 
(20210320)
  SourcePackage: packagekit
  UpgradeStatus: Upgraded to impish on 2021-06-13 (88 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/packagekit/+bug/1943189/+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 1943189] Re: "cannot refresh whilst network offline" bug

2021-09-23 Thread Erich Eickmeyer 
Yes, merged yesterday: https://github.com/PackageKit/PackageKit/pull/508

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

Title:
  "cannot refresh whilst network offline" bug

Status in packagekit package in Ubuntu:
  In Progress
Status in packagekit source package in Focal:
  Confirmed
Status in packagekit source package in Hirsute:
  Confirmed
Status in packagekit source package in Impish:
  In Progress

Bug description:
  [Impact]

  In Ubuntu Impish, an issue has been noted in regards to refreshing
  packages in Plasma Discover for upgrade or installation. An error
  appears upon initialization of the Discover interface:

  "cannot refresh whilst network offline"

  This will happen regardless of if a system is online or not.

  I identified a race condition in which this is occurring on systems
  where packagekitd is initialized before the network service is online.
  This was a relatively easy fix and required adding one line to the
  packagekit.service file:

  Wants=network-online.target

  This ensures that packagekitd is not initialized prior to being
  online. If the 90 second deadline isn't met, then packagekitd will
  simply not start as a background process until the user connects to
  the network and initializes it via a graphical utility, such as with
  GNOME Software or Plasma Discover, both of which initialize
  packagekitd on a user level.

  The attached patch will easily apply the fix via normal Debian
  packaging methods.

  [Test Plan]

   * Install Kubuntu or Ubuntu Studio

   * While connected to network, Run Discover

   * Discover will complain about "cannot refresh whilst offline", which
  is being communicated from PackageKit. All functionality in Discover
  is hindered from this point forward. This is due to a hung packagekitd
  process which sees the network offline, even though this is false.

  [Where problems could occur]

   * packagekitd's systemd service will time-out after 90 seconds if
  systemd finds no network, which means any update notifications will
  not automatically start until packagekitd is manually started.
  Luckily, Discover and GNOME Software both attempt to start packagekitd
  for the user when run. I'd consider this to be expected behavior for
  an offline system. The fix is mostly to prevent the false-negative of
  the system being offline when it's really not.

  [Other Info]

   * This fix has been accepted upstream by the PackageKit maintainers
  as a sane workaround for when gio misbehaves or otherwise. It's a
  decent safety net. https://github.com/PackageKit/PackageKit/pull/506

  ProblemType: Bug
  DistroRelease: Ubuntu 21.10
  Package: packagekit 1.2.2-2ubuntu1 [modified: 
lib/systemd/system/packagekit.service]
  ProcVersionSignature: Ubuntu 5.13.0-14.14-lowlatency 5.13.1
  Uname: Linux 5.13.0-14-lowlatency x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset 
nvidia
  ApportVersion: 2.20.11-0ubuntu68
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: KDE
  Date: Thu Sep  9 16:34:12 2021
  InstallationDate: Installed on 2021-03-20 (172 days ago)
  InstallationMedia: Ubuntu-Studio 21.04 "Hirsute Hippo" - Alpha amd64 
(20210320)
  SourcePackage: packagekit
  UpgradeStatus: Upgraded to impish on 2021-06-13 (88 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/packagekit/+bug/1943189/+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 1943189] Re: "cannot refresh whilst network offline" bug

2021-09-23 Thread Jeremy Soller
Did you also submit this fix for the previous patch upstream?

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

Title:
  "cannot refresh whilst network offline" bug

Status in packagekit package in Ubuntu:
  In Progress
Status in packagekit source package in Focal:
  Confirmed
Status in packagekit source package in Hirsute:
  Confirmed
Status in packagekit source package in Impish:
  In Progress

Bug description:
  [Impact]

  In Ubuntu Impish, an issue has been noted in regards to refreshing
  packages in Plasma Discover for upgrade or installation. An error
  appears upon initialization of the Discover interface:

  "cannot refresh whilst network offline"

  This will happen regardless of if a system is online or not.

  I identified a race condition in which this is occurring on systems
  where packagekitd is initialized before the network service is online.
  This was a relatively easy fix and required adding one line to the
  packagekit.service file:

  Wants=network-online.target

  This ensures that packagekitd is not initialized prior to being
  online. If the 90 second deadline isn't met, then packagekitd will
  simply not start as a background process until the user connects to
  the network and initializes it via a graphical utility, such as with
  GNOME Software or Plasma Discover, both of which initialize
  packagekitd on a user level.

  The attached patch will easily apply the fix via normal Debian
  packaging methods.

  [Test Plan]

   * Install Kubuntu or Ubuntu Studio

   * While connected to network, Run Discover

   * Discover will complain about "cannot refresh whilst offline", which
  is being communicated from PackageKit. All functionality in Discover
  is hindered from this point forward. This is due to a hung packagekitd
  process which sees the network offline, even though this is false.

  [Where problems could occur]

   * packagekitd's systemd service will time-out after 90 seconds if
  systemd finds no network, which means any update notifications will
  not automatically start until packagekitd is manually started.
  Luckily, Discover and GNOME Software both attempt to start packagekitd
  for the user when run. I'd consider this to be expected behavior for
  an offline system. The fix is mostly to prevent the false-negative of
  the system being offline when it's really not.

  [Other Info]

   * This fix has been accepted upstream by the PackageKit maintainers
  as a sane workaround for when gio misbehaves or otherwise. It's a
  decent safety net. https://github.com/PackageKit/PackageKit/pull/506

  ProblemType: Bug
  DistroRelease: Ubuntu 21.10
  Package: packagekit 1.2.2-2ubuntu1 [modified: 
lib/systemd/system/packagekit.service]
  ProcVersionSignature: Ubuntu 5.13.0-14.14-lowlatency 5.13.1
  Uname: Linux 5.13.0-14-lowlatency x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset 
nvidia
  ApportVersion: 2.20.11-0ubuntu68
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: KDE
  Date: Thu Sep  9 16:34:12 2021
  InstallationDate: Installed on 2021-03-20 (172 days ago)
  InstallationMedia: Ubuntu-Studio 21.04 "Hirsute Hippo" - Alpha amd64 
(20210320)
  SourcePackage: packagekit
  UpgradeStatus: Upgraded to impish on 2021-06-13 (88 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/packagekit/+bug/1943189/+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 1943189] Re: "cannot refresh whilst network offline" bug

2021-09-23 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

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

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

Title:
  "cannot refresh whilst network offline" bug

Status in packagekit package in Ubuntu:
  In Progress
Status in packagekit source package in Focal:
  Confirmed
Status in packagekit source package in Hirsute:
  Confirmed
Status in packagekit source package in Impish:
  In Progress

Bug description:
  [Impact]

  In Ubuntu Impish, an issue has been noted in regards to refreshing
  packages in Plasma Discover for upgrade or installation. An error
  appears upon initialization of the Discover interface:

  "cannot refresh whilst network offline"

  This will happen regardless of if a system is online or not.

  I identified a race condition in which this is occurring on systems
  where packagekitd is initialized before the network service is online.
  This was a relatively easy fix and required adding one line to the
  packagekit.service file:

  Wants=network-online.target

  This ensures that packagekitd is not initialized prior to being
  online. If the 90 second deadline isn't met, then packagekitd will
  simply not start as a background process until the user connects to
  the network and initializes it via a graphical utility, such as with
  GNOME Software or Plasma Discover, both of which initialize
  packagekitd on a user level.

  The attached patch will easily apply the fix via normal Debian
  packaging methods.

  [Test Plan]

   * Install Kubuntu or Ubuntu Studio

   * While connected to network, Run Discover

   * Discover will complain about "cannot refresh whilst offline", which
  is being communicated from PackageKit. All functionality in Discover
  is hindered from this point forward. This is due to a hung packagekitd
  process which sees the network offline, even though this is false.

  [Where problems could occur]

   * packagekitd's systemd service will time-out after 90 seconds if
  systemd finds no network, which means any update notifications will
  not automatically start until packagekitd is manually started.
  Luckily, Discover and GNOME Software both attempt to start packagekitd
  for the user when run. I'd consider this to be expected behavior for
  an offline system. The fix is mostly to prevent the false-negative of
  the system being offline when it's really not.

  [Other Info]

   * This fix has been accepted upstream by the PackageKit maintainers
  as a sane workaround for when gio misbehaves or otherwise. It's a
  decent safety net. https://github.com/PackageKit/PackageKit/pull/506

  ProblemType: Bug
  DistroRelease: Ubuntu 21.10
  Package: packagekit 1.2.2-2ubuntu1 [modified: 
lib/systemd/system/packagekit.service]
  ProcVersionSignature: Ubuntu 5.13.0-14.14-lowlatency 5.13.1
  Uname: Linux 5.13.0-14-lowlatency x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset 
nvidia
  ApportVersion: 2.20.11-0ubuntu68
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: KDE
  Date: Thu Sep  9 16:34:12 2021
  InstallationDate: Installed on 2021-03-20 (172 days ago)
  InstallationMedia: Ubuntu-Studio 21.04 "Hirsute Hippo" - Alpha amd64 
(20210320)
  SourcePackage: packagekit
  UpgradeStatus: Upgraded to impish on 2021-06-13 (88 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/packagekit/+bug/1943189/+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 1943189] Re: "cannot refresh whilst network offline" bug

2021-09-23 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

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

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

Title:
  "cannot refresh whilst network offline" bug

Status in packagekit package in Ubuntu:
  In Progress
Status in packagekit source package in Focal:
  Confirmed
Status in packagekit source package in Hirsute:
  Confirmed
Status in packagekit source package in Impish:
  In Progress

Bug description:
  [Impact]

  In Ubuntu Impish, an issue has been noted in regards to refreshing
  packages in Plasma Discover for upgrade or installation. An error
  appears upon initialization of the Discover interface:

  "cannot refresh whilst network offline"

  This will happen regardless of if a system is online or not.

  I identified a race condition in which this is occurring on systems
  where packagekitd is initialized before the network service is online.
  This was a relatively easy fix and required adding one line to the
  packagekit.service file:

  Wants=network-online.target

  This ensures that packagekitd is not initialized prior to being
  online. If the 90 second deadline isn't met, then packagekitd will
  simply not start as a background process until the user connects to
  the network and initializes it via a graphical utility, such as with
  GNOME Software or Plasma Discover, both of which initialize
  packagekitd on a user level.

  The attached patch will easily apply the fix via normal Debian
  packaging methods.

  [Test Plan]

   * Install Kubuntu or Ubuntu Studio

   * While connected to network, Run Discover

   * Discover will complain about "cannot refresh whilst offline", which
  is being communicated from PackageKit. All functionality in Discover
  is hindered from this point forward. This is due to a hung packagekitd
  process which sees the network offline, even though this is false.

  [Where problems could occur]

   * packagekitd's systemd service will time-out after 90 seconds if
  systemd finds no network, which means any update notifications will
  not automatically start until packagekitd is manually started.
  Luckily, Discover and GNOME Software both attempt to start packagekitd
  for the user when run. I'd consider this to be expected behavior for
  an offline system. The fix is mostly to prevent the false-negative of
  the system being offline when it's really not.

  [Other Info]

   * This fix has been accepted upstream by the PackageKit maintainers
  as a sane workaround for when gio misbehaves or otherwise. It's a
  decent safety net. https://github.com/PackageKit/PackageKit/pull/506

  ProblemType: Bug
  DistroRelease: Ubuntu 21.10
  Package: packagekit 1.2.2-2ubuntu1 [modified: 
lib/systemd/system/packagekit.service]
  ProcVersionSignature: Ubuntu 5.13.0-14.14-lowlatency 5.13.1
  Uname: Linux 5.13.0-14-lowlatency x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset 
nvidia
  ApportVersion: 2.20.11-0ubuntu68
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: KDE
  Date: Thu Sep  9 16:34:12 2021
  InstallationDate: Installed on 2021-03-20 (172 days ago)
  InstallationMedia: Ubuntu-Studio 21.04 "Hirsute Hippo" - Alpha amd64 
(20210320)
  SourcePackage: packagekit
  UpgradeStatus: Upgraded to impish on 2021-06-13 (88 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/packagekit/+bug/1943189/+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 1943189] Re: "cannot refresh whilst network offline" bug

2021-09-21 Thread Erich Eickmeyer 
** Patch added: "Fix for previous patch"
   
https://bugs.launchpad.net/ubuntu/impish/+source/packagekit/+bug/1943189/+attachment/5526756/+files/11-fix-network-online-patch.patch

** Changed in: packagekit (Ubuntu Impish)
 Assignee: Erich Eickmeyer  (eeickmeyer) => Julian Andres Klode (juliank)

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

Title:
  "cannot refresh whilst network offline" bug

Status in packagekit package in Ubuntu:
  In Progress
Status in packagekit source package in Focal:
  New
Status in packagekit source package in Hirsute:
  New
Status in packagekit source package in Impish:
  In Progress

Bug description:
  [Impact]

  In Ubuntu Impish, an issue has been noted in regards to refreshing
  packages in Plasma Discover for upgrade or installation. An error
  appears upon initialization of the Discover interface:

  "cannot refresh whilst network offline"

  This will happen regardless of if a system is online or not.

  I identified a race condition in which this is occurring on systems
  where packagekitd is initialized before the network service is online.
  This was a relatively easy fix and required adding one line to the
  packagekit.service file:

  Wants=network-online.target

  This ensures that packagekitd is not initialized prior to being
  online. If the 90 second deadline isn't met, then packagekitd will
  simply not start as a background process until the user connects to
  the network and initializes it via a graphical utility, such as with
  GNOME Software or Plasma Discover, both of which initialize
  packagekitd on a user level.

  The attached patch will easily apply the fix via normal Debian
  packaging methods.

  [Test Plan]

   * Install Kubuntu or Ubuntu Studio

   * While connected to network, Run Discover

   * Discover will complain about "cannot refresh whilst offline", which
  is being communicated from PackageKit. All functionality in Discover
  is hindered from this point forward. This is due to a hung packagekitd
  process which sees the network offline, even though this is false.

  [Where problems could occur]

   * packagekitd's systemd service will time-out after 90 seconds if
  systemd finds no network, which means any update notifications will
  not automatically start until packagekitd is manually started.
  Luckily, Discover and GNOME Software both attempt to start packagekitd
  for the user when run. I'd consider this to be expected behavior for
  an offline system. The fix is mostly to prevent the false-negative of
  the system being offline when it's really not.

  [Other Info]

   * This fix has been accepted upstream by the PackageKit maintainers
  as a sane workaround for when gio misbehaves or otherwise. It's a
  decent safety net. https://github.com/PackageKit/PackageKit/pull/506

  ProblemType: Bug
  DistroRelease: Ubuntu 21.10
  Package: packagekit 1.2.2-2ubuntu1 [modified: 
lib/systemd/system/packagekit.service]
  ProcVersionSignature: Ubuntu 5.13.0-14.14-lowlatency 5.13.1
  Uname: Linux 5.13.0-14-lowlatency x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset 
nvidia
  ApportVersion: 2.20.11-0ubuntu68
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: KDE
  Date: Thu Sep  9 16:34:12 2021
  InstallationDate: Installed on 2021-03-20 (172 days ago)
  InstallationMedia: Ubuntu-Studio 21.04 "Hirsute Hippo" - Alpha amd64 
(20210320)
  SourcePackage: packagekit
  UpgradeStatus: Upgraded to impish on 2021-06-13 (88 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/packagekit/+bug/1943189/+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 1943189] Re: "cannot refresh whilst network offline" bug

2021-09-21 Thread Erich Eickmeyer 
Thanks, @Kai. I can confirm that I put that in the wrong location in the
patch (but not on my system). Working on a new patch now.

@Julian, I'll add a new patch momentarily. In the meantime, I'm
reopening this.

** Changed in: packagekit (Ubuntu Impish)
   Status: Fix Released => In Progress

** Changed in: packagekit (Ubuntu Impish)
 Assignee: (unassigned) => Erich Eickmeyer  (eeickmeyer)

** Description changed:

- Impact]
+ [Impact]
  
  In Ubuntu Impish, an issue has been noted in regards to refreshing
  packages in Plasma Discover for upgrade or installation. An error
  appears upon initialization of the Discover interface:
  
  "cannot refresh whilst network offline"
  
  This will happen regardless of if a system is online or not.
  
  I identified a race condition in which this is occurring on systems
  where packagekitd is initialized before the network service is online.
  This was a relatively easy fix and required adding one line to the
  packagekit.service file:
  
  Wants=network-online.target
  
  This ensures that packagekitd is not initialized prior to being online.
  If the 90 second deadline isn't met, then packagekitd will simply not
  start as a background process until the user connects to the network and
  initializes it via a graphical utility, such as with GNOME Software or
  Plasma Discover, both of which initialize packagekitd on a user level.
  
  The attached patch will easily apply the fix via normal Debian packaging
  methods.
  
  [Test Plan]
  
-  * Install Kubuntu or Ubuntu Studio
+  * Install Kubuntu or Ubuntu Studio
  
-  * While connected to network, Run Discover
+  * While connected to network, Run Discover
  
-  * Discover will complain about "cannot refresh whilst offline", which
+  * Discover will complain about "cannot refresh whilst offline", which
  is being communicated from PackageKit. All functionality in Discover is
  hindered from this point forward. This is due to a hung packagekitd
  process which sees the network offline, even though this is false.
  
  [Where problems could occur]
  
-  * packagekitd's systemd service will time-out after 90 seconds if
+  * packagekitd's systemd service will time-out after 90 seconds if
  systemd finds no network, which means any update notifications will not
  automatically start until packagekitd is manually started. Luckily,
  Discover and GNOME Software both attempt to start packagekitd for the
  user when run. I'd consider this to be expected behavior for an offline
  system. The fix is mostly to prevent the false-negative of the system
  being offline when it's really not.
  
  [Other Info]
-  
-  * This fix has been accepted upstream by the PackageKit maintainers as a 
sane workaround for when gio misbehaves or otherwise. It's a decent safety net. 
https://github.com/PackageKit/PackageKit/pull/506
+ 
+  * This fix has been accepted upstream by the PackageKit maintainers as
+ a sane workaround for when gio misbehaves or otherwise. It's a decent
+ safety net. https://github.com/PackageKit/PackageKit/pull/506
  
  ProblemType: Bug
  DistroRelease: Ubuntu 21.10
  Package: packagekit 1.2.2-2ubuntu1 [modified: 
lib/systemd/system/packagekit.service]
  ProcVersionSignature: Ubuntu 5.13.0-14.14-lowlatency 5.13.1
  Uname: Linux 5.13.0-14-lowlatency x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset 
nvidia
  ApportVersion: 2.20.11-0ubuntu68
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: KDE
  Date: Thu Sep  9 16:34:12 2021
  InstallationDate: Installed on 2021-03-20 (172 days ago)
  InstallationMedia: Ubuntu-Studio 21.04 "Hirsute Hippo" - Alpha amd64 
(20210320)
  SourcePackage: packagekit
  UpgradeStatus: Upgraded to impish on 2021-06-13 (88 days ago)

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

Title:
  "cannot refresh whilst network offline" bug

Status in packagekit package in Ubuntu:
  In Progress
Status in packagekit source package in Focal:
  New
Status in packagekit source package in Hirsute:
  New
Status in packagekit source package in Impish:
  In Progress

Bug description:
  [Impact]

  In Ubuntu Impish, an issue has been noted in regards to refreshing
  packages in Plasma Discover for upgrade or installation. An error
  appears upon initialization of the Discover interface:

  "cannot refresh whilst network offline"

  This will happen regardless of if a system is online or not.

  I identified a race condition in which this is occurring on systems
  where packagekitd is initialized before the network service is online.
  This was a relatively easy fix and required adding one line to the
  packagekit.service file:

  Wants=network-online.target

  This ensures that packagekitd is not initialized prior to being
  online. If the 90 second deadline isn't met, then packagekitd will
  simply not start as a backgro

[Touch-packages] [Bug 1943189] Re: "cannot refresh whilst network offline" bug

2021-09-21 Thread Kai Kasurinen
/lib/systemd/system/packagekit.service:13: Unknown key name 'Wants' in
section 'Service', ignoring.

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

Title:
  "cannot refresh whilst network offline" bug

Status in packagekit package in Ubuntu:
  Fix Released
Status in packagekit source package in Focal:
  New
Status in packagekit source package in Hirsute:
  New
Status in packagekit source package in Impish:
  Fix Released

Bug description:
  Impact]

  In Ubuntu Impish, an issue has been noted in regards to refreshing
  packages in Plasma Discover for upgrade or installation. An error
  appears upon initialization of the Discover interface:

  "cannot refresh whilst network offline"

  This will happen regardless of if a system is online or not.

  I identified a race condition in which this is occurring on systems
  where packagekitd is initialized before the network service is online.
  This was a relatively easy fix and required adding one line to the
  packagekit.service file:

  Wants=network-online.target

  This ensures that packagekitd is not initialized prior to being
  online. If the 90 second deadline isn't met, then packagekitd will
  simply not start as a background process until the user connects to
  the network and initializes it via a graphical utility, such as with
  GNOME Software or Plasma Discover, both of which initialize
  packagekitd on a user level.

  The attached patch will easily apply the fix via normal Debian
  packaging methods.

  [Test Plan]

   * Install Kubuntu or Ubuntu Studio

   * While connected to network, Run Discover

   * Discover will complain about "cannot refresh whilst offline", which
  is being communicated from PackageKit. All functionality in Discover
  is hindered from this point forward. This is due to a hung packagekitd
  process which sees the network offline, even though this is false.

  [Where problems could occur]

   * packagekitd's systemd service will time-out after 90 seconds if
  systemd finds no network, which means any update notifications will
  not automatically start until packagekitd is manually started.
  Luckily, Discover and GNOME Software both attempt to start packagekitd
  for the user when run. I'd consider this to be expected behavior for
  an offline system. The fix is mostly to prevent the false-negative of
  the system being offline when it's really not.

  [Other Info]
   
   * This fix has been accepted upstream by the PackageKit maintainers as a 
sane workaround for when gio misbehaves or otherwise. It's a decent safety net. 
https://github.com/PackageKit/PackageKit/pull/506

  ProblemType: Bug
  DistroRelease: Ubuntu 21.10
  Package: packagekit 1.2.2-2ubuntu1 [modified: 
lib/systemd/system/packagekit.service]
  ProcVersionSignature: Ubuntu 5.13.0-14.14-lowlatency 5.13.1
  Uname: Linux 5.13.0-14-lowlatency x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset 
nvidia
  ApportVersion: 2.20.11-0ubuntu68
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: KDE
  Date: Thu Sep  9 16:34:12 2021
  InstallationDate: Installed on 2021-03-20 (172 days ago)
  InstallationMedia: Ubuntu-Studio 21.04 "Hirsute Hippo" - Alpha amd64 
(20210320)
  SourcePackage: packagekit
  UpgradeStatus: Upgraded to impish on 2021-06-13 (88 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/packagekit/+bug/1943189/+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 1943189] Re: "cannot refresh whilst network offline" bug

2021-09-17 Thread Launchpad Bug Tracker
This bug was fixed in the package packagekit - 1.2.2-2ubuntu2

---
packagekit (1.2.2-2ubuntu2) impish; urgency=medium

  * Add wait-until-online-to-activate-systemd-service.patch: Wait until
after network-online.target to start packagekitd so it knows if it is
online, thanks to Erich Eickmeyer for the patch (LP: #1943189)

 -- Julian Andres Klode   Fri, 17 Sep 2021 17:40:40
+0200

** Changed in: packagekit (Ubuntu Impish)
   Status: Fix Committed => Fix Released

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

Title:
  "cannot refresh whilst network offline" bug

Status in packagekit package in Ubuntu:
  Fix Released
Status in packagekit source package in Focal:
  New
Status in packagekit source package in Hirsute:
  New
Status in packagekit source package in Impish:
  Fix Released

Bug description:
  Impact]

  In Ubuntu Impish, an issue has been noted in regards to refreshing
  packages in Plasma Discover for upgrade or installation. An error
  appears upon initialization of the Discover interface:

  "cannot refresh whilst network offline"

  This will happen regardless of if a system is online or not.

  I identified a race condition in which this is occurring on systems
  where packagekitd is initialized before the network service is online.
  This was a relatively easy fix and required adding one line to the
  packagekit.service file:

  Wants=network-online.target

  This ensures that packagekitd is not initialized prior to being
  online. If the 90 second deadline isn't met, then packagekitd will
  simply not start as a background process until the user connects to
  the network and initializes it via a graphical utility, such as with
  GNOME Software or Plasma Discover, both of which initialize
  packagekitd on a user level.

  The attached patch will easily apply the fix via normal Debian
  packaging methods.

  [Test Plan]

   * Install Kubuntu or Ubuntu Studio

   * While connected to network, Run Discover

   * Discover will complain about "cannot refresh whilst offline", which
  is being communicated from PackageKit. All functionality in Discover
  is hindered from this point forward. This is due to a hung packagekitd
  process which sees the network offline, even though this is false.

  [Where problems could occur]

   * packagekitd's systemd service will time-out after 90 seconds if
  systemd finds no network, which means any update notifications will
  not automatically start until packagekitd is manually started.
  Luckily, Discover and GNOME Software both attempt to start packagekitd
  for the user when run. I'd consider this to be expected behavior for
  an offline system. The fix is mostly to prevent the false-negative of
  the system being offline when it's really not.

  [Other Info]
   
   * This fix has been accepted upstream by the PackageKit maintainers as a 
sane workaround for when gio misbehaves or otherwise. It's a decent safety net. 
https://github.com/PackageKit/PackageKit/pull/506

  ProblemType: Bug
  DistroRelease: Ubuntu 21.10
  Package: packagekit 1.2.2-2ubuntu1 [modified: 
lib/systemd/system/packagekit.service]
  ProcVersionSignature: Ubuntu 5.13.0-14.14-lowlatency 5.13.1
  Uname: Linux 5.13.0-14-lowlatency x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset 
nvidia
  ApportVersion: 2.20.11-0ubuntu68
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: KDE
  Date: Thu Sep  9 16:34:12 2021
  InstallationDate: Installed on 2021-03-20 (172 days ago)
  InstallationMedia: Ubuntu-Studio 21.04 "Hirsute Hippo" - Alpha amd64 
(20210320)
  SourcePackage: packagekit
  UpgradeStatus: Upgraded to impish on 2021-06-13 (88 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/packagekit/+bug/1943189/+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 1943189] Re: "cannot refresh whilst network offline" bug

2021-09-17 Thread Erich Eickmeyer 
** Description changed:

+ Impact]
+ 
  In Ubuntu Impish, an issue has been noted in regards to refreshing
  packages in Plasma Discover for upgrade or installation. An error
  appears upon initialization of the Discover interface:
  
  "cannot refresh whilst network offline"
  
  This will happen regardless of if a system is online or not.
  
  I identified a race condition in which this is occurring on systems
  where packagekitd is initialized before the network service is online.
  This was a relatively easy fix and required adding one line to the
  packagekit.service file:
  
  Wants=network-online.target
  
  This ensures that packagekitd is not initialized prior to being online.
  If the 90 second deadline isn't met, then packagekitd will simply not
  start as a background process until the user connects to the network and
  initializes it via a graphical utility, such as with GNOME Software or
  Plasma Discover, both of which initialize packagekitd on a user level.
  
  The attached patch will easily apply the fix via normal Debian packaging
  methods.
  
- Unfortunately, the upstream PackageKit maintainers seem to be unwilling
- to apply this fix themselves, seeing it as not an issue per
- https://github.com/PackageKit/PackageKit/issues/336
+ [Test Plan]
+ 
+  * Install Kubuntu or Ubuntu Studio
+ 
+  * While connected to network, Run Discover
+ 
+  * Discover will complain about "cannot refresh whilst offline", which
+ is being communicated from PackageKit. All functionality in Discover is
+ hindered from this point forward. This is due to a hung packagekitd
+ process which sees the network offline, even though this is false.
+ 
+ [Where problems could occur]
+ 
+  * packagekitd's systemd service will time-out after 90 seconds if
+ systemd finds no network, which means any update notifications will not
+ automatically start until packagekitd is manually started. Luckily,
+ Discover and GNOME Software both attempt to start packagekitd for the
+ user when run. I'd consider this to be expected behavior for an offline
+ system. The fix is mostly to prevent the false-negative of the system
+ being offline when it's really not.
+ 
+ [Other Info]
+  
+  * This fix has been accepted upstream by the PackageKit maintainers as a 
sane workaround for when gio misbehaves or otherwise. It's a decent safety net. 
https://github.com/PackageKit/PackageKit/pull/506
  
  ProblemType: Bug
  DistroRelease: Ubuntu 21.10
  Package: packagekit 1.2.2-2ubuntu1 [modified: 
lib/systemd/system/packagekit.service]
  ProcVersionSignature: Ubuntu 5.13.0-14.14-lowlatency 5.13.1
  Uname: Linux 5.13.0-14-lowlatency x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset 
nvidia
  ApportVersion: 2.20.11-0ubuntu68
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: KDE
  Date: Thu Sep  9 16:34:12 2021
  InstallationDate: Installed on 2021-03-20 (172 days ago)
  InstallationMedia: Ubuntu-Studio 21.04 "Hirsute Hippo" - Alpha amd64 
(20210320)
  SourcePackage: packagekit
  UpgradeStatus: Upgraded to impish on 2021-06-13 (88 days ago)

** Also affects: packagekit (Ubuntu Focal)
   Importance: Undecided
   Status: New

** Also affects: packagekit (Ubuntu Hirsute)
   Importance: Undecided
   Status: New

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

Title:
  "cannot refresh whilst network offline" bug

Status in packagekit package in Ubuntu:
  Fix Committed
Status in packagekit source package in Focal:
  New
Status in packagekit source package in Hirsute:
  New
Status in packagekit source package in Impish:
  Fix Committed

Bug description:
  Impact]

  In Ubuntu Impish, an issue has been noted in regards to refreshing
  packages in Plasma Discover for upgrade or installation. An error
  appears upon initialization of the Discover interface:

  "cannot refresh whilst network offline"

  This will happen regardless of if a system is online or not.

  I identified a race condition in which this is occurring on systems
  where packagekitd is initialized before the network service is online.
  This was a relatively easy fix and required adding one line to the
  packagekit.service file:

  Wants=network-online.target

  This ensures that packagekitd is not initialized prior to being
  online. If the 90 second deadline isn't met, then packagekitd will
  simply not start as a background process until the user connects to
  the network and initializes it via a graphical utility, such as with
  GNOME Software or Plasma Discover, both of which initialize
  packagekitd on a user level.

  The attached patch will easily apply the fix via normal Debian
  packaging methods.

  [Test Plan]

   * Install Kubuntu or Ubuntu Studio

   * While connected to network, Run Discover

   * Discover will complain about "cannot refresh whilst offline", which
  is being communi

[Touch-packages] [Bug 1943189] Re: "cannot refresh whilst network offline" bug

2021-09-17 Thread Erich Eickmeyer 
@Julian I can definitely convert this to an SRU. I haven't seen it in
Hirsute or Focal, but it's a decent safety net for when things get stuck
(gio or otherwise).

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

Title:
  "cannot refresh whilst network offline" bug

Status in packagekit package in Ubuntu:
  Fix Committed
Status in packagekit source package in Impish:
  Fix Committed

Bug description:
  In Ubuntu Impish, an issue has been noted in regards to refreshing
  packages in Plasma Discover for upgrade or installation. An error
  appears upon initialization of the Discover interface:

  "cannot refresh whilst network offline"

  This will happen regardless of if a system is online or not.

  I identified a race condition in which this is occurring on systems
  where packagekitd is initialized before the network service is online.
  This was a relatively easy fix and required adding one line to the
  packagekit.service file:

  Wants=network-online.target

  This ensures that packagekitd is not initialized prior to being
  online. If the 90 second deadline isn't met, then packagekitd will
  simply not start as a background process until the user connects to
  the network and initializes it via a graphical utility, such as with
  GNOME Software or Plasma Discover, both of which initialize
  packagekitd on a user level.

  The attached patch will easily apply the fix via normal Debian
  packaging methods.

  Unfortunately, the upstream PackageKit maintainers seem to be
  unwilling to apply this fix themselves, seeing it as not an issue per
  https://github.com/PackageKit/PackageKit/issues/336

  ProblemType: Bug
  DistroRelease: Ubuntu 21.10
  Package: packagekit 1.2.2-2ubuntu1 [modified: 
lib/systemd/system/packagekit.service]
  ProcVersionSignature: Ubuntu 5.13.0-14.14-lowlatency 5.13.1
  Uname: Linux 5.13.0-14-lowlatency x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset 
nvidia
  ApportVersion: 2.20.11-0ubuntu68
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: KDE
  Date: Thu Sep  9 16:34:12 2021
  InstallationDate: Installed on 2021-03-20 (172 days ago)
  InstallationMedia: Ubuntu-Studio 21.04 "Hirsute Hippo" - Alpha amd64 
(20210320)
  SourcePackage: packagekit
  UpgradeStatus: Upgraded to impish on 2021-06-13 (88 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/packagekit/+bug/1943189/+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 1943189] Re: "cannot refresh whilst network offline" bug

2021-09-17 Thread Julian Andres Klode
** Changed in: packagekit (Ubuntu Impish)
   Status: New => Fix Committed

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

Title:
  "cannot refresh whilst network offline" bug

Status in packagekit package in Ubuntu:
  Fix Committed
Status in packagekit source package in Impish:
  Fix Committed

Bug description:
  In Ubuntu Impish, an issue has been noted in regards to refreshing
  packages in Plasma Discover for upgrade or installation. An error
  appears upon initialization of the Discover interface:

  "cannot refresh whilst network offline"

  This will happen regardless of if a system is online or not.

  I identified a race condition in which this is occurring on systems
  where packagekitd is initialized before the network service is online.
  This was a relatively easy fix and required adding one line to the
  packagekit.service file:

  Wants=network-online.target

  This ensures that packagekitd is not initialized prior to being
  online. If the 90 second deadline isn't met, then packagekitd will
  simply not start as a background process until the user connects to
  the network and initializes it via a graphical utility, such as with
  GNOME Software or Plasma Discover, both of which initialize
  packagekitd on a user level.

  The attached patch will easily apply the fix via normal Debian
  packaging methods.

  Unfortunately, the upstream PackageKit maintainers seem to be
  unwilling to apply this fix themselves, seeing it as not an issue per
  https://github.com/PackageKit/PackageKit/issues/336

  ProblemType: Bug
  DistroRelease: Ubuntu 21.10
  Package: packagekit 1.2.2-2ubuntu1 [modified: 
lib/systemd/system/packagekit.service]
  ProcVersionSignature: Ubuntu 5.13.0-14.14-lowlatency 5.13.1
  Uname: Linux 5.13.0-14-lowlatency x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset 
nvidia
  ApportVersion: 2.20.11-0ubuntu68
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: KDE
  Date: Thu Sep  9 16:34:12 2021
  InstallationDate: Installed on 2021-03-20 (172 days ago)
  InstallationMedia: Ubuntu-Studio 21.04 "Hirsute Hippo" - Alpha amd64 
(20210320)
  SourcePackage: packagekit
  UpgradeStatus: Upgraded to impish on 2021-06-13 (88 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/packagekit/+bug/1943189/+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 1943189] Re: "cannot refresh whilst network offline" bug

2021-09-17 Thread Julian Andres Klode
@Erich Does this need fixing in older releases as well? The description
reads like it just affects impish, but I don't see why that would be the
case. If so, can you provide the necessary info for an SRU as in
https://wiki.ubuntu.com/StableReleaseUpdates#SRU_Bug_Template

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

Title:
  "cannot refresh whilst network offline" bug

Status in packagekit package in Ubuntu:
  Fix Committed
Status in packagekit source package in Impish:
  Fix Committed

Bug description:
  In Ubuntu Impish, an issue has been noted in regards to refreshing
  packages in Plasma Discover for upgrade or installation. An error
  appears upon initialization of the Discover interface:

  "cannot refresh whilst network offline"

  This will happen regardless of if a system is online or not.

  I identified a race condition in which this is occurring on systems
  where packagekitd is initialized before the network service is online.
  This was a relatively easy fix and required adding one line to the
  packagekit.service file:

  Wants=network-online.target

  This ensures that packagekitd is not initialized prior to being
  online. If the 90 second deadline isn't met, then packagekitd will
  simply not start as a background process until the user connects to
  the network and initializes it via a graphical utility, such as with
  GNOME Software or Plasma Discover, both of which initialize
  packagekitd on a user level.

  The attached patch will easily apply the fix via normal Debian
  packaging methods.

  Unfortunately, the upstream PackageKit maintainers seem to be
  unwilling to apply this fix themselves, seeing it as not an issue per
  https://github.com/PackageKit/PackageKit/issues/336

  ProblemType: Bug
  DistroRelease: Ubuntu 21.10
  Package: packagekit 1.2.2-2ubuntu1 [modified: 
lib/systemd/system/packagekit.service]
  ProcVersionSignature: Ubuntu 5.13.0-14.14-lowlatency 5.13.1
  Uname: Linux 5.13.0-14-lowlatency x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset 
nvidia
  ApportVersion: 2.20.11-0ubuntu68
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: KDE
  Date: Thu Sep  9 16:34:12 2021
  InstallationDate: Installed on 2021-03-20 (172 days ago)
  InstallationMedia: Ubuntu-Studio 21.04 "Hirsute Hippo" - Alpha amd64 
(20210320)
  SourcePackage: packagekit
  UpgradeStatus: Upgraded to impish on 2021-06-13 (88 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/packagekit/+bug/1943189/+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 1943189] Re: "cannot refresh whilst network offline" bug

2021-09-16 Thread Brian Murray
** Tags added: fr-1721

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

Title:
  "cannot refresh whilst network offline" bug

Status in packagekit package in Ubuntu:
  New
Status in packagekit source package in Impish:
  New

Bug description:
  In Ubuntu Impish, an issue has been noted in regards to refreshing
  packages in Plasma Discover for upgrade or installation. An error
  appears upon initialization of the Discover interface:

  "cannot refresh whilst network offline"

  This will happen regardless of if a system is online or not.

  I identified a race condition in which this is occurring on systems
  where packagekitd is initialized before the network service is online.
  This was a relatively easy fix and required adding one line to the
  packagekit.service file:

  Wants=network-online.target

  This ensures that packagekitd is not initialized prior to being
  online. If the 90 second deadline isn't met, then packagekitd will
  simply not start as a background process until the user connects to
  the network and initializes it via a graphical utility, such as with
  GNOME Software or Plasma Discover, both of which initialize
  packagekitd on a user level.

  The attached patch will easily apply the fix via normal Debian
  packaging methods.

  Unfortunately, the upstream PackageKit maintainers seem to be
  unwilling to apply this fix themselves, seeing it as not an issue per
  https://github.com/PackageKit/PackageKit/issues/336

  ProblemType: Bug
  DistroRelease: Ubuntu 21.10
  Package: packagekit 1.2.2-2ubuntu1 [modified: 
lib/systemd/system/packagekit.service]
  ProcVersionSignature: Ubuntu 5.13.0-14.14-lowlatency 5.13.1
  Uname: Linux 5.13.0-14-lowlatency x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset 
nvidia
  ApportVersion: 2.20.11-0ubuntu68
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: KDE
  Date: Thu Sep  9 16:34:12 2021
  InstallationDate: Installed on 2021-03-20 (172 days ago)
  InstallationMedia: Ubuntu-Studio 21.04 "Hirsute Hippo" - Alpha amd64 
(20210320)
  SourcePackage: packagekit
  UpgradeStatus: Upgraded to impish on 2021-06-13 (88 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/packagekit/+bug/1943189/+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 1943189] Re: "cannot refresh whilst network offline" bug

2021-09-16 Thread Brian Murray
** Also affects: packagekit (Ubuntu Impish)
   Importance: Medium
   Status: New

** Tags removed: rls-ii-incoming

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

Title:
  "cannot refresh whilst network offline" bug

Status in packagekit package in Ubuntu:
  New
Status in packagekit source package in Impish:
  New

Bug description:
  In Ubuntu Impish, an issue has been noted in regards to refreshing
  packages in Plasma Discover for upgrade or installation. An error
  appears upon initialization of the Discover interface:

  "cannot refresh whilst network offline"

  This will happen regardless of if a system is online or not.

  I identified a race condition in which this is occurring on systems
  where packagekitd is initialized before the network service is online.
  This was a relatively easy fix and required adding one line to the
  packagekit.service file:

  Wants=network-online.target

  This ensures that packagekitd is not initialized prior to being
  online. If the 90 second deadline isn't met, then packagekitd will
  simply not start as a background process until the user connects to
  the network and initializes it via a graphical utility, such as with
  GNOME Software or Plasma Discover, both of which initialize
  packagekitd on a user level.

  The attached patch will easily apply the fix via normal Debian
  packaging methods.

  Unfortunately, the upstream PackageKit maintainers seem to be
  unwilling to apply this fix themselves, seeing it as not an issue per
  https://github.com/PackageKit/PackageKit/issues/336

  ProblemType: Bug
  DistroRelease: Ubuntu 21.10
  Package: packagekit 1.2.2-2ubuntu1 [modified: 
lib/systemd/system/packagekit.service]
  ProcVersionSignature: Ubuntu 5.13.0-14.14-lowlatency 5.13.1
  Uname: Linux 5.13.0-14-lowlatency x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset 
nvidia
  ApportVersion: 2.20.11-0ubuntu68
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: KDE
  Date: Thu Sep  9 16:34:12 2021
  InstallationDate: Installed on 2021-03-20 (172 days ago)
  InstallationMedia: Ubuntu-Studio 21.04 "Hirsute Hippo" - Alpha amd64 
(20210320)
  SourcePackage: packagekit
  UpgradeStatus: Upgraded to impish on 2021-06-13 (88 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/packagekit/+bug/1943189/+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 1943189] Re: "cannot refresh whilst network offline" bug

2021-09-10 Thread Erich Eickmeyer 
Pull request has been merged.
https://github.com/PackageKit/PackageKit/pull/506

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

Title:
  "cannot refresh whilst network offline" bug

Status in packagekit package in Ubuntu:
  New

Bug description:
  In Ubuntu Impish, an issue has been noted in regards to refreshing
  packages in Plasma Discover for upgrade or installation. An error
  appears upon initialization of the Discover interface:

  "cannot refresh whilst network offline"

  This will happen regardless of if a system is online or not.

  I identified a race condition in which this is occurring on systems
  where packagekitd is initialized before the network service is online.
  This was a relatively easy fix and required adding one line to the
  packagekit.service file:

  Wants=network-online.target

  This ensures that packagekitd is not initialized prior to being
  online. If the 90 second deadline isn't met, then packagekitd will
  simply not start as a background process until the user connects to
  the network and initializes it via a graphical utility, such as with
  GNOME Software or Plasma Discover, both of which initialize
  packagekitd on a user level.

  The attached patch will easily apply the fix via normal Debian
  packaging methods.

  Unfortunately, the upstream PackageKit maintainers seem to be
  unwilling to apply this fix themselves, seeing it as not an issue per
  https://github.com/PackageKit/PackageKit/issues/336

  ProblemType: Bug
  DistroRelease: Ubuntu 21.10
  Package: packagekit 1.2.2-2ubuntu1 [modified: 
lib/systemd/system/packagekit.service]
  ProcVersionSignature: Ubuntu 5.13.0-14.14-lowlatency 5.13.1
  Uname: Linux 5.13.0-14-lowlatency x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset 
nvidia
  ApportVersion: 2.20.11-0ubuntu68
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: KDE
  Date: Thu Sep  9 16:34:12 2021
  InstallationDate: Installed on 2021-03-20 (172 days ago)
  InstallationMedia: Ubuntu-Studio 21.04 "Hirsute Hippo" - Alpha amd64 
(20210320)
  SourcePackage: packagekit
  UpgradeStatus: Upgraded to impish on 2021-06-13 (88 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/packagekit/+bug/1943189/+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 1943189] Re: "cannot refresh whilst network offline" bug

2021-09-10 Thread Erich Eickmeyer 
The packagekit maintainer (Richard Hughes) has requested this patch as a
pull request, so this will be in packagekit upstream very, very soon.
https://github.com/PackageKit/PackageKit/issues/336#issuecomment-91713

** Bug watch added: github.com/PackageKit/PackageKit/issues #336
   https://github.com/PackageKit/PackageKit/issues/336

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

Title:
  "cannot refresh whilst network offline" bug

Status in packagekit package in Ubuntu:
  New

Bug description:
  In Ubuntu Impish, an issue has been noted in regards to refreshing
  packages in Plasma Discover for upgrade or installation. An error
  appears upon initialization of the Discover interface:

  "cannot refresh whilst network offline"

  This will happen regardless of if a system is online or not.

  I identified a race condition in which this is occurring on systems
  where packagekitd is initialized before the network service is online.
  This was a relatively easy fix and required adding one line to the
  packagekit.service file:

  Wants=network-online.target

  This ensures that packagekitd is not initialized prior to being
  online. If the 90 second deadline isn't met, then packagekitd will
  simply not start as a background process until the user connects to
  the network and initializes it via a graphical utility, such as with
  GNOME Software or Plasma Discover, both of which initialize
  packagekitd on a user level.

  The attached patch will easily apply the fix via normal Debian
  packaging methods.

  Unfortunately, the upstream PackageKit maintainers seem to be
  unwilling to apply this fix themselves, seeing it as not an issue per
  https://github.com/PackageKit/PackageKit/issues/336

  ProblemType: Bug
  DistroRelease: Ubuntu 21.10
  Package: packagekit 1.2.2-2ubuntu1 [modified: 
lib/systemd/system/packagekit.service]
  ProcVersionSignature: Ubuntu 5.13.0-14.14-lowlatency 5.13.1
  Uname: Linux 5.13.0-14-lowlatency x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset 
nvidia
  ApportVersion: 2.20.11-0ubuntu68
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: KDE
  Date: Thu Sep  9 16:34:12 2021
  InstallationDate: Installed on 2021-03-20 (172 days ago)
  InstallationMedia: Ubuntu-Studio 21.04 "Hirsute Hippo" - Alpha amd64 
(20210320)
  SourcePackage: packagekit
  UpgradeStatus: Upgraded to impish on 2021-06-13 (88 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/packagekit/+bug/1943189/+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 1943189] Re: "cannot refresh whilst network offline" bug

2021-09-09 Thread Brian Murray
** Tags added: rls-ii-incoming

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

Title:
  "cannot refresh whilst network offline" bug

Status in packagekit package in Ubuntu:
  New

Bug description:
  In Ubuntu Impish, an issue has been noted in regards to refreshing
  packages in Plasma Discover for upgrade or installation. An error
  appears upon initialization of the Discover interface:

  "cannot refresh whilst network offline"

  This will happen regardless of if a system is online or not.

  I identified a race condition in which this is occurring on systems
  where packagekitd is initialized before the network service is online.
  This was a relatively easy fix and required adding one line to the
  packagekit.service file:

  Wants=network-online.target

  This ensures that packagekitd is not initialized prior to being
  online. If the 90 second deadline isn't met, then packagekitd will
  simply not start as a background process until the user connects to
  the network and initializes it via a graphical utility, such as with
  GNOME Software or Plasma Discover, both of which initialize
  packagekitd on a user level.

  The attached patch will easily apply the fix via normal Debian
  packaging methods.

  Unfortunately, the upstream PackageKit maintainers seem to be
  unwilling to apply this fix themselves, seeing it as not an issue per
  https://github.com/PackageKit/PackageKit/issues/336

  ProblemType: Bug
  DistroRelease: Ubuntu 21.10
  Package: packagekit 1.2.2-2ubuntu1 [modified: 
lib/systemd/system/packagekit.service]
  ProcVersionSignature: Ubuntu 5.13.0-14.14-lowlatency 5.13.1
  Uname: Linux 5.13.0-14-lowlatency x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset 
nvidia
  ApportVersion: 2.20.11-0ubuntu68
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: KDE
  Date: Thu Sep  9 16:34:12 2021
  InstallationDate: Installed on 2021-03-20 (172 days ago)
  InstallationMedia: Ubuntu-Studio 21.04 "Hirsute Hippo" - Alpha amd64 
(20210320)
  SourcePackage: packagekit
  UpgradeStatus: Upgraded to impish on 2021-06-13 (88 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/packagekit/+bug/1943189/+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 1943189] Re: "cannot refresh whilst network offline" bug

2021-09-09 Thread Ubuntu Foundations Team Bug Bot
** Tags added: patch

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

Title:
  "cannot refresh whilst network offline" bug

Status in packagekit package in Ubuntu:
  New

Bug description:
  In Ubuntu Impish, an issue has been noted in regards to refreshing
  packages in Plasma Discover for upgrade or installation. An error
  appears upon initialization of the Discover interface:

  "cannot refresh whilst network offline"

  This will happen regardless of if a system is online or not.

  I identified a race condition in which this is occurring on systems
  where packagekitd is initialized before the network service is online.
  This was a relatively easy fix and required adding one line to the
  packagekit.service file:

  Wants=network-online.target

  This ensures that packagekitd is not initialized prior to being
  online. If the 90 second deadline isn't met, then packagekitd will
  simply not start as a background process until the user connects to
  the network and initializes it via a graphical utility, such as with
  GNOME Software or Plasma Discover, both of which initialize
  packagekitd on a user level.

  The attached patch will easily apply the fix via normal Debian
  packaging methods.

  Unfortunately, the upstream PackageKit maintainers seem to be
  unwilling to apply this fix themselves, seeing it as not an issue per
  https://github.com/PackageKit/PackageKit/issues/336

  ProblemType: Bug
  DistroRelease: Ubuntu 21.10
  Package: packagekit 1.2.2-2ubuntu1 [modified: 
lib/systemd/system/packagekit.service]
  ProcVersionSignature: Ubuntu 5.13.0-14.14-lowlatency 5.13.1
  Uname: Linux 5.13.0-14-lowlatency x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset 
nvidia
  ApportVersion: 2.20.11-0ubuntu68
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: KDE
  Date: Thu Sep  9 16:34:12 2021
  InstallationDate: Installed on 2021-03-20 (172 days ago)
  InstallationMedia: Ubuntu-Studio 21.04 "Hirsute Hippo" - Alpha amd64 
(20210320)
  SourcePackage: packagekit
  UpgradeStatus: Upgraded to impish on 2021-06-13 (88 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/packagekit/+bug/1943189/+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