Opened 15 months ago

Last modified 10 months ago

#18600 new bug

Failed full-sync/update leaves behind duplicated "transaction-n" folders/content

Reported by: bipolar Owned by: bonefish
Priority: normal Milestone: Unscheduled
Component: Servers/package_daemon Version: R1/beta4
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description (last modified by bipolar)

Situation:

Ran pkgman full. Had to Ctrl-C due to stalled downloads. administrative/transaction-3 ended up with 66 packages (150 MB).

Ran pkgman full again, it downloaded all needed packages under administrative/transaction-4 dir, but failed to apply changes due to, this time, #15068.

Ran pkgman full again. Got the same failure, but now I have administrative/transaction-5 with the same 163 packages (around 316 MB total) that are present under transaction-4

As in... all the content was duplicated on the new folder.

Can repeat the last two steps ad-nauseum or until I get disk full, whichever comes first :-D

Of note, got an activated-packages.tmp with the same datetime as transaction-5 there too.

transaction-1 and transaction-2 where empty dirs (I've just removed them after the fact).

---

I've seen similar in the past, but couldn't reproduce it before nuking the administrative folder, and rebooting, in order to be able to use pkgman normally again.

This time, I've kept copies of:

  • syslog
  • activated_packages / activated_packages.tmp
  • output of ls -l1 for /system/packages/ and the transaction-n folders.

Before nuking things back to order. Hope that's enough. Let me know if I should attach the 100 KB .zip of all of them, or just specific files.

Change History (4)

comment:1 by waddlesplash, 15 months ago

Component: - GeneralServers/package_daemon
Owner: changed from nobody to bonefish

comment:2 by bipolar, 15 months ago

Description: modified (diff)

comment:3 by bipolar, 10 months ago

Hitting this one again, and ended up with zero space left on the HDD, which causes pkgman update to seemingly hang :-/

comment:4 by bipolar, 10 months ago

Why does it copies files to new "transaction-n" directory when "Re-using download xxx.hpkg"? Wouldn't be possible to use symlinks to the previous files instead?

Note: See TracTickets for help on using tickets.