Bug 154125

Summary: (B5.2) I/O warning : failed to load external entity ""
Product: [openSUSE] SUSE Linux 10.1 Reporter: Marco Michna <mmichna>
Component: libzyppAssignee: Jiri Srain <jsrain>
Status: RESOLVED FIXED QA Contact: Klaus Kämpf <kkaempf>
Severity: Major    
Priority: P5 - None CC: aj, suse-beta
Version: Beta 5   
Target Milestone: ---   
Hardware: All   
OS: SuSE Linux 10.1   
Whiteboard:
Found By: Beta-NTS Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 140732    
Attachments: complete /var/log/Yast2
just after: I/O warning : failed to load external entity ""
strace -s 128 /usr/lib/YaST2/bin/y2base inst_source qt 1>out 2>err

Description Marco Michna 2006-02-28 15:24:33 UTC
When I try to add more sources then I can read (on the console where I started YaST):

     I/O warning : failed to load external entity ""

for every entry that is in there.
Comment 1 Marco Michna 2006-02-28 15:25:16 UTC
Created attachment 70657 [details]
complete /var/log/Yast2
Comment 2 Klaus Kämpf 2006-02-28 15:30:01 UTC
xml parser ?!
Comment 3 Jiri Srain 2006-02-28 19:41:38 UTC
Marco, the log is terribly long, and I can't find adding the installation source in it. Would it be possible to remove contents of /var/log/YaST2 directory, start adding the installation source, and stop YaST when first message appears? I can't even find which source you added...

The message comes from libxml2, I just don't understand why is it not redirected to the log.
Comment 4 Stanislav Visnovsky 2006-03-03 08:17:59 UTC
What about defining a schema for sources?
Comment 5 Stanislav Visnovsky 2006-03-03 08:41:21 UTC
*** Bug 153309 has been marked as a duplicate of this bug. ***
Comment 6 Lukas Ocilka 2006-03-20 14:31:09 UTC
Created attachment 73978 [details]
just after: I/O warning : failed to load external entity ""

liche(14980) [base] Exception.cc(log):94 ProductMetadataParser.cc(parse):61 THROW:    ProductMetadataParser.cc(parse):61: Can't read product file :/var/lib/zypp/cache/0/DATA/content
liche(14980) [susetags] SuseTagsImpl.cc(provideProducts):354 cannot parse content file
liche(14980) [wfm] Source.cc(SourceProductData):379 Product for source '2' not found
Comment 7 Lukas Ocilka 2006-03-20 14:41:21 UTC
Created attachment 73983 [details]
strace -s 128 /usr/lib/YaST2/bin/y2base inst_source qt 1>out 2>err

Search the 'err' log for "failed to load external entity" string and check against the 'y2log' in the same archive.
Comment 8 Lukas Ocilka 2006-03-20 14:53:32 UTC
2006-03-20 15:37:45 <0> liche(15022) [store] XMLFilesBackend.cc(storedSources):1003 [source-list] - 85755354bdec6c14482b519f49dcc1df

...somewhere here...

2006-03-20 15:37:45 <2> liche(15022) [parser] XMLNodeIterator.cc(XMLNodeIteratorBase):138 Could not enable validation of document using

see the strace output for more info
Comment 9 Stanislav Visnovsky 2006-03-27 13:44:08 UTC
*** Bug 160512 has been marked as a duplicate of this bug. ***
Comment 10 Duncan Mac-Vicar 2006-03-27 13:48:49 UTC
Fixed in revision 2700. Note that only works for new added sources as the namespace changed so the schema will not validate. But by default now all source xmls are validated.