Opened 6 years ago

Last modified 6 weeks ago

#10473 assigned bug

[pkgman] failed to create transaction: No such file or directory

Reported by: diver Owned by: leavengood
Priority: normal Milestone: R1
Component: Servers/package_daemon Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

hrev46752, gcc2 hybrid.

Sometimes (possibly after several hours of uptime) pkgman fails to download updated packages. Restarting package_daemon fixes it.

~> pkgman upd -y
Downloading repochecksum-1...
##################################################
Finished downloading repochecksum-1.
Validating checksum for Haiku...
Validating checksum for Haiku complete.
Downloading repocache-2...
##################################################
Finished downloading repocache-2.
Validating checksum for Haiku...
Validating checksum for Haiku complete.
Downloading repochecksum-1...
##################################################
Finished downloading repochecksum-1.
Validating checksum for HaikuPorts...
Validating checksum for HaikuPorts complete.
Downloading repochecksum-1...
##################################################
Finished downloading repochecksum-1.
Validating checksum for haiku...
Validating checksum for haiku complete.
The following changes will be made:
  in system:
    install package haiku-r1~alpha4_pm_hrev46760-1-x86_gcc2.hpkg from repository Haiku
    install package haiku_x86-r1~alpha4_pm_hrev46760-1-x86_gcc2.hpkg from repository Haiku
    install package makefile_engine-r1~alpha4_pm_hrev46760-1-any.hpkg from repository Haiku
    install package webpositive_x86-r1~alpha4_pm_hrev46760-1-x86_gcc2.hpkg from repository Haiku
    install package haiku_loader-r1~alpha4_pm_hrev46760-1-x86_gcc2.hpkg from repository Haiku
    install package haiku_devel-r1~alpha4_pm_hrev46760-1-x86_gcc2.hpkg from repository Haiku
    install package haiku_x86_devel-r1~alpha4_pm_hrev46760-1-x86_gcc2.hpkg from repository Haiku
Continue? [y/n] (y) : y
*** failed to create transaction: No such file or directory

~> hey package_daemon quit ; /system/servers/package_daemon &
Reply BMessage(B_REPLY):
   "result" (B_BOOL_TYPE) : TRUE
   "thread" (B_INT32_TYPE) : 206 (0x00000206)

[1] 5081
~> pkgman upd -y ; sync
Downloading repochecksum-1...
##################################################
Finished downloading repochecksum-1.
Validating checksum for Haiku...
Validating checksum for Haiku complete.
Downloading repochecksum-1...
##################################################
Finished downloading repochecksum-1.
Validating checksum for HaikuPorts...
Validating checksum for HaikuPorts complete.
Downloading repochecksum-1...
##################################################
Finished downloading repochecksum-1.
Validating checksum for haiku...
Validating checksum for haiku complete.
The following changes will be made:
  in system:
    install package haiku-r1~alpha4_pm_hrev46760-1-x86_gcc2.hpkg from repository Haiku
    install package haiku_x86-r1~alpha4_pm_hrev46760-1-x86_gcc2.hpkg from repository Haiku
    install package makefile_engine-r1~alpha4_pm_hrev46760-1-any.hpkg from repository Haiku
    install package webpositive_x86-r1~alpha4_pm_hrev46760-1-x86_gcc2.hpkg from repository Haiku
    install package haiku_loader-r1~alpha4_pm_hrev46760-1-x86_gcc2.hpkg from repository Haiku
    install package haiku_devel-r1~alpha4_pm_hrev46760-1-x86_gcc2.hpkg from repository Haiku
    install package haiku_x86_devel-r1~alpha4_pm_hrev46760-1-x86_gcc2.hpkg from repository Haiku
Continue? [y/n] (y) : y
Downloading haiku-r1~alpha4_pm_hrev46760-1-x86_gcc2.hpkg...

Attachments (1)

syslog (215.6 KB ) - added by diver 6 years ago.

Download all attachments as: .zip

Change History (5)

by diver, 6 years ago

Attachment: syslog added

comment:1 by diver, 5 years ago

Component: Servers/package_daemonApplications/Command Line Tools
Status: newassigned
Summary: [package_daemon] failed to create transaction: No such file or directory[pkgman] failed to create transaction: No such file or directory

It seems that it was because I deleted administrative folder to free up some space since I was in VM. Maybe pkgman should create this directory (when it creates transaction folder) if it's not there?

comment:2 by bonefish, 5 years ago

Yes, pkgman could create it. ATM the package daemon creates it on startup, so, unless the user deletes it afterward, it should always be there.

comment:3 by waddlesplash, 4 months ago

Component: Applications/Command Line ToolsServers/package_daemon

comment:4 by leavengood, 6 weeks ago

Owner: changed from bonefish to leavengood

This seems like an easy fix. Though I also want to add code to automatically clean up the administrative directory so that user's won't be tempted to delete it.

Note: See TracTickets for help on using tickets.