[Bug 1269058] Re: connect4 always fails to install

Manuel de la Peña manuel.delapena at canonical.com
Wed Jan 15 10:42:40 UTC 2014


> The UUID is only appended by UDM in two cases: if the app is confined, or if it's unconfined and the client has sent a
> LOCAL_PATH_KEY metadata value.

Partially true, the UUID is used to uniquely indentify the download in
the download manager. It is appended if the file is present in the file
system in any case, even if the LOCAL_PATH_KEY metadata is used.
LOCAL_PATH_KEY is used if you want to specify a diff directory to
perform the download for example rather than to tell if it should be
overwritten. Maybe added an override flag in the metadata of the
download might be a good idea.

> I filed a separate UDM bug to log more errors unconditionally.

Makes perfect sense, I'll try to fix that bug ASAP as well as bug
#1269078 so that the error code is stated in the logs.

> Of course, once pkcon fails one time, UDM won't delete the downloaded
package and we'll get the renaming again.

That is not the case. The emition of the signal is done via the
emitError method. The method does not only emit the error but stops the
QNEtworkRely, disconnects from the signals and DELETES the file.

> However, the real strange thing to me is why the file already exists
in this case.

This is precisely the real issue (at least for UDM), There are several
cases when this can happen, for example, the phone is switched off
during the installation of the package, or while the download is being
processed (and we do not have the full file in the path but part of it).
WE need to think carefully about what to do when the user stops the
process in an unexpected moment.

> As for whose bug it is, I don't care--

I just care so that the bug is fixed correctly rather than not masked
for the time being, I'm really happy to fix bugs in UDM all the time is
just that in this case we are in the middle of nowhere :-)

> Maybe this is essentially what Mozilla calls an "evangelism" bug - that
> is, we need to go and get the relevant third-party developers to update
> their packages. If we killed off all pre-0.3 packages, this bug would
> be irrelevant.
 
Completely agree, if UDM and click are fixed we need to tell the developers to fix the packages. I wonder if there is a script that can be done to do this automaticaly and point to this bug as a reason. By the way, "evangelism" bug is a great term!

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to click in Ubuntu.
https://bugs.launchpad.net/bugs/1269058

Title:
  connect4 always fails to install

Status in Ubuntu Download Manager:
  Invalid
Status in “click” package in Ubuntu:
  Invalid

Bug description:
  Try to install Connect4 and it fails stating to look in ubuntu-download-manager.log for details. Here are those details:
  2014-01-13 20:56:41,631 - DEBUG - Service registered to com.canonical.applications.Downloader
  2014-01-13 20:56:41,632 - DEBUG - true
  2014-01-13 20:56:41,633 - DEBUG - Owner is:  ":1.116"
  2014-01-13 20:56:41,634 - DEBUG - Factory assigns the Download Uuid.
  2014-01-13 20:56:41,635 - DEBUG - UNCONFINED APP
  2014-01-13 20:56:41,635 - DEBUG - Local path is "/home/phablet/.local/share/ubuntu-download-manager/Downloads"
  2014-01-13 20:56:41,637 - DEBUG - Timer must be stopped because we have 1 downloads.
  2014-01-13 20:56:41,648 - DEBUG - Network is accessible, performing download request
  2014-01-13 20:57:36,272 - DEBUG - "Transaction: Installing files
  "
  2014-01-13 20:57:36,340 - DEBUG - "Status:      Waiting in queue
  "
  2014-01-13 20:57:36,357 - DEBUG - "Status:      Starting
  "
  2014-01-13 20:57:36,388 - DEBUG - "Status:      Loading cache
  "
  2014-01-13 20:57:36,412 - DEBUG - "Percentage:  0
  "
  2014-01-13 20:57:37,356 - DEBUG - "Percentage:  10
  "
  2014-01-13 20:57:45,285 - DEBUG - "Percentage:  100
  "
  2014-01-13 20:57:45,329 - DEBUG - "Percentage:  0
  "
  2014-01-13 20:57:45,417 - DEBUG - "Percentage:  50
  "
  2014-01-13 20:57:45,928 - DEBUG - "Percentage:  100
  "
  2014-01-13 20:57:46,195 - DEBUG - "Status:      Querying
  "
  2014-01-13 20:58:05,567 - DEBUG - "Status:      Running
  "
  2014-01-13 20:58:06,069 - DEBUG - "Transaction: Installing files
  "
  2014-01-13 20:58:06,114 - DEBUG - "Status:      Waiting in queue
  "
  2014-01-13 20:58:06,125 - DEBUG - "Status:      Waiting for authentication
  "
  2014-01-13 20:58:06,158 - DEBUG - "Results:
  "
  2014-01-13 20:58:06,161 - DEBUG - "Fatal error: Failed to obtain authentication.
  "
  2014-01-13 20:58:06,167 - WARNING - Error removing "/home/phablet/.local/share/ubuntu-download-manager/Downloads/com.ubuntu.developer.geelen-bram.connect4_0
  .1.3_unknown.click0710607e6a0245a896cc965f613e687f"
  2014-01-13 20:58:06,168 - DEBUG - virtual void Ubuntu::DownloadManager::Download::emitError(const QString&) "COMMAND ERROR"
  2014-01-13 20:58:06,168 - DEBUG - State is CANCEL || FINISH || ERROR
  2014-01-13 20:58:06,168 - DEBUG - void Ubuntu::DownloadManager::Manager::onDownloadsChanged(QString) "/com/canonical/applications/download/0710607e6a0245a89
  6cc965f613e687f"
  2014-01-13 20:58:06,169 - DEBUG - Timer must be started because we have 0 downloads.
  2014-01-13 20:58:36,292 - DEBUG - Timeout reached, shutdown service.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-download-manager/+bug/1269058/+subscriptions



More information about the foundations-bugs mailing list