Bug 20476 - up2date RPM should create /var/spool/up2date
Summary: up2date RPM should create /var/spool/up2date
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: up2date
Version: 7.0
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Preston Brown
QA Contact: Aaron Brown
Depends On:
TreeView+ depends on / blocked
Reported: 2000-11-07 17:56 UTC by Dax Kelson
Modified: 2007-04-18 16:29 UTC (History)
0 users

Clone Of:
Last Closed: 2000-11-07 17:56:26 UTC

Attachments (Terms of Use)

Description Dax Kelson 2000-11-07 17:56:24 UTC
Currently, the up2date-gnome RPM has the "/var/spool/up2date" directory. 
If you are running a server with no GNOME or X, and only install up2date,
it when you try to run it, it will fail.

Traceback (innermost last):
  File "/usr/sbin/up2date", line 394, in ?
  File "/usr/sbin/up2date", line 377, in main
    sys.exit(batchRun(onlyList, pkgNames, fullUpdate))
  File "/usr/sbin/up2date", line 190, in batchRun
    if totalSize > up2date.freeDiskSpace():
  File "/usr/share/rhn/up2date/up2date.py", line 925, in freeDiskSpace
    dfInfo = os.statvfs(cfg.readEntry("storageDir"))
OSError: [Errno 2] No such file or directory: '/var/spool/up2date'

The fix:

Have the up2date RPM create/supply the /var/spool/up2date directory instead
of the up2date-gnome RPM.


Comment 1 Preston Brown 2000-11-28 16:36:28 UTC
thanks for the report.  This has been fixed in a forthcoming errata release of
update agent due this week.

Comment 2 Preston Brown 2000-12-08 20:33:44 UTC
*** Bug 21903 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.