Mailinglist Archive: opensuse-bugs (5410 mails)

< Previous Next >
[Bug 567993] New: zypper refresh fails because aria2 parse error (no proxy used)
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Mon, 4 Jan 2010 13:16:02 +0000
  • Message-id: <bug-567993-21960@xxxxxxxxxxxxxxxxxxxxxxxx/>
http://bugzilla.novell.com/show_bug.cgi?id=567993

http://bugzilla.novell.com/show_bug.cgi?id=567993#c0


Summary: zypper refresh fails because aria2 parse error (no
proxy used)
Classification: openSUSE
Product: openSUSE 11.2
Version: Final
Platform: x86-64
OS/Version: openSUSE 11.2
Status: NEW
Severity: Normal
Priority: P5 - None
Component: libzypp
AssignedTo: zypp-maintainers@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: walter.haidinger@xxxxxx
QAContact: qa@xxxxxxx
Found By: ---
Blocker: ---


User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-DE; rv:1.9.0.16)
Gecko/2009120200 SUSE/3.0.16-0.2.1 Firefox/3.0.16

When trying to refresh a remote (http) repository, zypper fails.
Also, zypper does not handle aria2 download failure.

zypper.log shows (more details below):
aria2c reported: ' [Netrc.cc:103] Netrc:parse error. %s encounterd where
'machine' or 'default' expected.'

Please note that I've found the following errors but they do not seem to match
my bug exactly. Please mark as duplicate to the appropriate bug if otherwise.
bug #552546: curl's proxy-user (not used here)
bug #557790: behind a proxy (I get the message without proxy settings)
bug #555066: with proxy again
bug #564816: most appropriate but different aria2 error message (see below)

At first I thought this is because I've had a proxy configured but for me it
does not work regardless of the proxy settings, i.e. it also fails without any
proxy configured (ENABLE_PROXY="no" and all *_PROXY vars commented).

zypper.log always shows:
[zypp++] Sysconfig.cc(read):31 Load '/etc/sysconfig/proxy'
[zypp] Sysconfig.cc(read):71 done reading '/etc/sysconfig/proxy'
[zypp++] MediaCurl.cc(attachTo):523 Proxy: -none-
[zypp] MediaHandler.cc(attach):647 Attached:
http://download.opensuse.org/repositories/Archiving/openSUSE_11.2/ 002"
[zypp++] MediaManager.cc(checkDesired):109 checkDesired(4): desired (report by
zypp::media::NoVerifier)
[zypp++] MediaManager.cc(checkDesired):112 checkDesired(4): desired (cached)
[zypp++] ExternalProgram.cc(start_program):221 Executing 'aria2c'
'--user-agent=ZYpp 6.21.2 (aria2 version 1.5.2) openSUSE-11.2-x86_64'
'--summary-interval=1' '--follow-metalink=mem' '--check-integrity=true'
'--file-allocation=none' '--server-stat-of=/var/cache/zypp/aria2.stats'
'--server-stat-if=/var/cache/zypp/aria2.stats' '--uri-selector=adaptive'
'--use-head=false' '--max-tries=5' '--max-concurrent-downloads=2'
'--header=X-ZYpp-AnonymousId: 5411846f-ed68-4c68-a6ca-99cd784aaccb'
'--header=X-ZYpp-DistributionFlavor: dvd' '--header=Pragma:'
'--connect-timeout=180' '--dir=/var/adm/mount/AP_0x00000001/repodata'
'http://download.opensuse.org/repositories/Archiving/openSUSE_11.2/repodata/repomd.xml.asc'
[zypp++] ExternalProgram.cc(start_program):373 pid 15004 launched
[zypp++] MediaAria2c.cc(getFileCopy):359 aria2c reported: ' [Netrc.cc:103]
Netrc:parse error. %s encounterd where 'machine' or 'default' expected.'
[zypp++] ExternalProgram.cc(checkStatus):431 Pid 15004 successfully completed
Notes:
* The error message is different from bug #564816.
* zypper treats aria2 failure as success but fails afterwards (like in
bug#564816).
* running aria2 from commandline with the above arguments results in an
"Exception caught" error message with the some parse error above.
* no proxy used here (does not work with one either, identical error message)
* The workaround of bug #552546 of exporting ZYPP_ARIA2C=0 works for me too.
* package versions:
aria2-1.5.2-2.3.1.x86_64
libzypp-6.21.2-1.1.1.x86_64
zypper-1.2.8-0.1.3.x86_64

Just for reference, the logs with a proxy. Same error message:
[zypp++] Sysconfig.cc(read):31 Load '/etc/sysconfig/proxy'
[zypp] Sysconfig.cc(read):71 done reading '/etc/sysconfig/proxy'
[zypp++] MediaCurl.cc(attachTo):523 Proxy: http://proxy.local:8088/
[zypp++] MediaCurl.cc(attachTo):615 ~/.curlrc does not contain the proxy-user
option
[zypp] MediaHandler.cc(attach):647 Attached:
http://download.opensuse.org/repositories/Archiving/openSUSE_11.2/ attached;
localRoot "/var/adm/mount/AP_0x00000002"
[zypp++] MediaManager.cc(checkDesired):109 checkDesired(4): desired (report by
zypp::media::NoVerifier)
[zypp++] MediaManager.cc(checkDesired):112 checkDesired(4): desired (cached)
[zypp++] ExternalProgram.cc(start_program):221 Executing 'aria2c'
'--user-agent=ZYpp 6.21.2 (aria2 version 1.5.2) openSUSE-11.2-x86_64'
'--summary-interval=1' '--follow-metalink=mem' '--check-integrity=true'
'--file-allocation=none' '--server-stat-of=/var/cache/zypp/aria2.stats'
'--server-stat-if=/var/cache/zypp/aria2.stats' '--uri-selector=adaptive'
'--use-head=false' '--max-tries=5' '--max-concurrent-downloads=2'
'--header=X-ZYpp-AnonymousId: 5418846f-ed68-4c78-a6ca-99cd784abddc'
'--header=X-ZYpp-DistributionFlavor: dvd' '--header=Pragma:'
'--connect-timeout=180' '--http-proxy=http://proxy.local:8088/'
'--dir=/var/adm/mount/AP_0x00000001/repodata'
'http://download.opensuse.org/repositories/Archiving/openSUSE_11.2/repodata/repomd.xml.asc'
[zypp++] ExternalProgram.cc(start_program):373 pid 13188 launched
[zypp++] MediaAria2c.cc(getFileCopy):359 aria2c reported: ' [Netrc.cc:103]
Netrc:parse error. %s encounterd where 'machine' or 'default' expected.'
[zypp++] ExternalProgram.cc(checkStatus):431 Pid 13188 successfully completed


Reproducible: Always

Steps to Reproduce:
1. Install a remote repostory, e.g.

http://download.opensuse.org/repositories/Archiving/openSUSE_11.2/Archiving.repo
2. zypper refresh

Actual Results:
Retrieving repository 'Archiving and Compressing (openSUSE_11.2)' metadata
[error]
Repository 'Archiving and Compressing (openSUSE_11.2)' is invalid.
Can't provide /repodata/repomd.xml : Can't hardlink/copy
/var/adm/mount/AP_0x00000001/repodata/repomd.xml to
/var/cache/zypp/raw/ArchivingBQpnWl

Expected Results:
Refreshed repository without an error.

--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
This Thread
  • No further messages