> On 02/ 5/10 09:51 PM, Gary Gendel wrote:
> > <snip>
> >> Your "cron" job on phoenix
> >> /usr/lib/update-manager/update-refresh.sh
> >>
> >> produced the following output:
> >>
> >> Traceback (most recent call last):
> >> File "/usr/lib/pm-checkforupdates", line 197, in
> >> <module>
> >> return_value = main(image_dir, set_nice)
> >> ile "/usr/lib/pm-checkforupdates", line 172, in
> main
> >> return __check_for_updates(image_directory,
> >> nice)
> >> File "/usr/lib/pm-checkforupdates", line 66, in
> >> __check_for_updates
> >> ret = __check_last_refresh(api_obj)
> >> ile "/usr/lib/pm-checkforupdates", line 102, in
> >> __check_last_refresh
> >> if info.get("version") != CACHE_VERSION:
> >> ibuteError: 'list' object has no attribute 'get'
> > <snip>
> >
> > I see the problem.... I seem to be missing the
> file /var/pkg/gui_cache/.last_refresh_cache.cpl
> >
> > Anyone know how to regenerate it?
>
> This is supposed to be re-created as needed. It's
> probably easier to
> just destroy /var/pkg/gui_cache as you won't lose
> anything of value if
> you do. Be careful you only remove the gui_cache
> directory!
>
> --
> Shawn Walker
> _______________________________________________
> install-discuss mailing list
> install-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/install-d
> iscuss
Shawn,
I deleted the directory, but pm-checkforupdates failed in the same place. I
ended up hacking up the script to add "return
enumerations.UPDATES_UNDETERMINED" in the first line of
check_last_refresh(api_obj), ran it to generate the file and then removed that
line. Now things are working as they should. Some things to note:
* The gui_cache directory was created prior to the crash. My guess is the
gui_misc.get_cache_dir() did that.
* Even though the cache file didn't exist, gui_misc.read_cache_file() did not
throw an exception. Instead, it returned an empty list which was the root of
the crash.
I hope this information helps track down the issue for others, but I've hacked
my way past this problem.
Gary
--
This message posted from opensolaris.org