Bug 298506

Summary: zypper refresh: Cache exception - insuficient error reporting
Product: [openSUSE] openSUSE 10.3 Reporter: Jan Blunck <jblunck>
Component: libzyppAssignee: Jan Kupec <jkupec>
Status: RESOLVED FIXED QA Contact: Klaus Kämpf <kkaempf>
Severity: Blocker    
Priority: P5 - None CC: aschnell, hi-du, jsrain, msvec, nderkach
Version: Alpha 7   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: zypper.log

Description Jan Blunck 2007-08-08 16:20:57 UTC
weierstrass:~ # zypper ref
Refreshing stable-x86
* Cleaning repository 'stable-x86' cache
* Building repository 'stable-x86' cache
Error reading repository 'stable-x86':
Cache exception
Skipping repository 'stable-x86' because of the above error.
Could not refresh the repositories because of errors.
weierstrass:~ #

Removing the cache doesn't help either.
Comment 1 Jan Blunck 2007-08-08 16:23:30 UTC
Created attachment 156280 [details]
zypper.log
Comment 2 Nikolay Derkach 2007-08-08 16:47:01 UTC

*** This bug has been marked as a duplicate of bug 297627 ***
Comment 3 Klaus Kämpf 2007-08-08 16:48:16 UTC
Raising to Blocker because of usability concerns.
Comment 4 Klaus Kämpf 2007-08-08 16:50:07 UTC
Reopening.

zypper must report proper error messages containing information about
- what failed
- why it failed
- how to correct it
Comment 5 Richard Creighton 2007-08-08 17:02:58 UTC
This bug is virtually identical to 

https://bugzilla.novell.com/show_bug.cgi?id=297647#c12

Everything works with the factory repositories but not with external 3rd party repos like Packman or Guru.  The error started between Alpha 5 and 6.
Comment 6 Nikolay Derkach 2007-08-08 17:19:59 UTC
Sorry I've marked it as duplicate because it was later than bug 297627
Comment 7 Richard Creighton 2007-08-08 17:52:05 UTC
(In reply to comment #6 from Nikolay Derkach)
> Sorry I've marked it as duplicate because it was later than bug 297627
> 

I note that bug is marked resolved, however it should NOT be.   It works for FACTORY repos but NOT for any 3rd party repos that I've tested including ones pointed to by the opensuse.org website as additional yast repositories.   These pointes worked until A5 and failed during the A6/7 changes.   

Using the latest version of zypper available on FACTORY:

asus:/usr/src/linux-2.6.22.1-14/drivers/md # zypper ref
Refreshing FACTORY Non OSS
* Building repository 'FACTORY Non OSS' cache
Refreshing openSUSE-10.3-Updates
* Building repository 'openSUSE-10.3-Updates' cache
Refreshing 20070807-100738
* Building repository '20070807-100738' cache
All repositories have been refreshed.
asus:/usr/src/linux-2.6.22.1-14/drivers/md # zypper -V
zypper 0.8.7
asus:/usr/src/linux-2.6.22.1-14/drivers/md # rpm -q zypper
zypper-0.8.7-2
asus:/usr/src/linux-2.6.22.1-14/drivers/md # zypper ref
Refreshing FACTORY Non OSS
* Building repository 'FACTORY Non OSS' cache
Refreshing Guru-RPMs
Not found: Media Exception
Error reading repository 'Guru-RPMs':
Valid metadata not found at specified URL(s)
Skipping repository 'Guru-RPMs' because of the above error.
Refreshing openSUSE-10.3-Updates
* Building repository 'openSUSE-10.3-Updates' cache
Refreshing 20070807-100738
* Building repository '20070807-100738' cache
Refreshing Packman_10.2_1
Not found: Media Exception
Error reading repository 'Packman_10.2_1':
Valid metadata not found at specified URL(s)
Skipping repository 'Packman_10.2_1' because of the above error.
Some of the repositories have not been refreshed because of error.

Comment 8 Jan Kupec 2007-08-09 07:35:24 UTC
Jan, can you please retest with the latest zypper 0.8.9 from stable? It seems to work. In the meantime i will have a look at the problem with packman and guru.
Comment 9 Jan Kupec 2007-08-09 07:58:44 UTC
(In reply to comment #4 from Klaus Kaempf)
> zypper must report proper error messages containing information about
> - what failed
> - why it failed
> - how to correct it

Klaus, about the error reporting, please see https://bugzilla.novell.com/show_bug.cgi?id=294483#c5 (note that it is 0.8.6, the fix did not hit Alpha7), but i will try to improve it like you suggest.
Comment 10 Stanislav Visnovsky 2007-08-10 08:02:20 UTC
*** Bug 299136 has been marked as a duplicate of this bug. ***
Comment 11 Jan Kupec 2007-08-10 08:24:54 UTC
The insufficient error reporting in repository operations should now be fixed. Will be submitted in zypper 0.8.10. The other errors are covered in another bugs (bug 297627, bug 298350, etc...), please continue there.
Comment 12 Jan Kupec 2007-08-12 20:19:15 UTC
submitted in zypper 0.8.10, more output improvements to come with 0.8.11.