Bug 779506 - curl error notification about repository (HTTP 407)
Summary: curl error notification about repository (HTTP 407)
Status: RESOLVED WONTFIX
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Current
Hardware: x86-64 All
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Simon Lees
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-10 10:33 UTC by denixx baykin
Modified: 2021-03-12 07:19 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
y2logs (2.29 MB, application/x-compressed-tar)
2012-09-10 10:33 UTC, denixx baykin
Details
How it looks (100.28 KB, image/png)
2012-09-10 10:37 UTC, denixx baykin
Details
.curlrc (115 bytes, application/octet-stream)
2012-09-10 16:32 UTC, denixx baykin
Details
y2logs3 (2.59 MB, application/x-compressed-tar)
2012-09-11 12:03 UTC, denixx baykin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description denixx baykin 2012-09-10 10:33:02 UTC
Created attachment 505004 [details]
y2logs

User-Agent:       Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1

We use corporative proxy.
Proxy is configured in yast.
System can work with all repos when I launch application management.
But I see this notification periodically.
I copied the contents of /root/.curlrc to /home/denixx/.curlrc - all the same.

Reproducible: Always

Steps to Reproduce:
1. Be behind proxy that needs authentication.
2. Maybe you need to add KDE Extra repo.
Actual Results:  
Notification with error.

Expected Results:  
Silence.

openSUSE 12.2 x64, installed, updated.
Now I will try to drop the KDE Extra repo from list.
Comment 1 denixx baykin 2012-09-10 10:37:42 UTC
Created attachment 505006 [details]
How it looks
Comment 2 denixx baykin 2012-09-10 10:46:10 UTC
Deleted the KDE Extra - now it complains on Pacman :(
Comment 3 Arvin Schnell 2012-09-10 14:56:27 UTC
AFAIS curl downloads an empty file:

MediaCurl.cc(doGetFileCopyFile):1417 curl error: 22: The requested URL returned error: 407, temp file size 0 bytes.
Comment 4 denixx baykin 2012-09-10 15:23:54 UTC
when I start curl for that url without .curlrc in my /home/denixx,
it downloads error page ("You cannot download from cache without authentication").
I think it's a 407 code.
After I copied .curlrc from root to homedir - it downloads a file.
Comment 5 denixx baykin 2012-09-10 15:25:45 UTC
maybe it do not load the /root/.curlrc?
Comment 6 denixx baykin 2012-09-10 15:34:19 UTC
HTTP 407 is a " Proxy Authentication Required".
But if curl do not load .curlrc, how it know proxy address? :)
Comment 7 Michael Andres 2012-09-10 15:52:06 UTC
It does, but there seems to be something wrong with the file or the parser. A 'proxy-user' option is expected, but not found (just a 'proxy' option).

@denixx: Could you attach a copy of your /root/.curlrc BUT REPLACE ALL usernames with 'USER' and passwords with 'PASSW' before attaching.
Comment 8 denixx baykin 2012-09-10 16:32:14 UTC
Created attachment 505070 [details]
.curlrc
Comment 9 denixx baykin 2012-09-10 16:36:24 UTC
I also tried '--proxy "http://user:passw@proxy.ourdomain.com.ua:8080"', but YaST do not understand that format.
Comment 10 Michael Andres 2012-09-11 11:35:02 UTC
Sorry, but checking the file and the attached logs I can't spot an error. You can grep for 'parseConfig' in yast and zypper logs and you see the parser finding the proxy and proxy-user entry as it is expected to do:

  CurlConfig.cc(parseConfig):44 Going to parse /root/.curlrc
  CurlConfig.cc(parseConfig):106 GOT: proxy-user
  CurlConfig.cc(parseConfig):106 GOT: proxy


The only exception is the single invocation of YaST, which also got the 407 errors. Within this run no proxy-user entry is present:

   2012-09-10 10:49:45 <1> denixxwork(24801) [liby2] 
     genericfrontend.cc(main):575 
     Launched YaST2 component 'y2base' 'sw_single' 'qt'
  ...
  CurlConfig.cc(parseConfig):44 Going to parse /root/.curlrc
  CurlConfig.cc(parseConfig):106 GOT: proxy


At 2012-09-10 09:42:58 the file was seen ok, and
at 2012-09-10 10:52:50 the file is again ok.


To me it looks like some other program or admin changed the .curlrc behind yasts back.
Comment 11 denixx baykin 2012-09-11 12:03:10 UTC
Created attachment 505203 [details]
y2logs3

2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] RepoManager.cc(repositories_in_file):226 repo file: /etc/zypp/repos.d/KDE_Extra.repo
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] IniParser.cc(parse):69 Start parsing /etc/zypp/repos.d/KDE_Extra.repo[g___]
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] IniParser.cc(parse):119 Done parsing /etc/zypp/repos.d/KDE_Extra.repo[_eF_]
2012-09-11 14:46:09 <1> denixxwork(5751) [Progress++] ProgressData.cc(report):86 {#211|/etc/zypp/repos.d/KDE_Extra.repo}END
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] RepoFileReader.cc(repositories_in_stream):100 --------------------------------------
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] RepoFileReader.cc(repositories_in_stream):100 - alias       : KDE_Extra
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] RepoFileReader.cc(repositories_in_stream):100 - name        : KDE Extra
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] RepoFileReader.cc(repositories_in_stream):100 - enabled     : 1
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] RepoFileReader.cc(repositories_in_stream):100 - autorefresh : 1
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] RepoFileReader.cc(repositories_in_stream):100 - url         : http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_12.2/
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] RepoFileReader.cc(repositories_in_stream):100 - path        : /
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] RepoFileReader.cc(repositories_in_stream):100 - type        : rpm-md
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] RepoFileReader.cc(repositories_in_stream):100 - priority    : 99
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] RepoFileReader.cc(repositories_in_stream):100 - gpgcheck    : 1
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] RepoFileReader.cc(repositories_in_stream):100 - keeppackages: 0
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] RepoFileReader.cc(repositories_in_stream):100 
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] PathInfo.cc(dirForEach):564 readdir /var/cache/zypp/raw 
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] RepoManager.cc(init_knownRepositories):589 end construct known repos
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] MediaAccess.cc(open):118 Trying scheme 'http'
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] MediaCurl.cc(MediaCurl):446 MediaCurl::MediaCurl(http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_12.2/, )
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] MediaMultiCurl.cc(MediaMultiCurl):1158 MediaMultiCurl::MediaMultiCurl(http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_12.2/, )
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] MediaAccess.cc(open):234 Opened: http(http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_12.2/ not attached; localRoot "")
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaManager.cc(open):277 Opened new media access using id 25 to http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_12.2/
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaManager.cc(close):309 Close to access handler using id 25 requested
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaHandler.cc(release):716 Request to release media - not attached; eject ''
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] MediaAccess.cc(close):285 Close: http(http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_12.2/ not attached; localRoot "") (OK)
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaHandler.cc(release):716 Request to release media - not attached; eject ''
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaHandler.cc(removeAttachPoint):179 MediaHandler - checking if to remove attach point
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] RepoManager.cc(checkIfToRefreshMetadata):766 Going to try to check whether refresh is needed for http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_12.2/
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaSetAccess.cc(rewriteUrl):392 Rewriting url http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_12.2/
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] MediaAccess.cc(open):118 Trying scheme 'http'
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] MediaCurl.cc(MediaCurl):446 MediaCurl::MediaCurl(http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_12.2/, )
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] MediaMultiCurl.cc(MediaMultiCurl):1158 MediaMultiCurl::MediaMultiCurl(http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_12.2/, )
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] MediaAccess.cc(open):234 Opened: http(http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_12.2/ not attached; localRoot "")
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaManager.cc(open):277 Opened new media access using id 26 to http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_12.2/
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaSetAccess.cc(provide):203 Going to try to provide  file /repodata/repomd.xml from media number 1
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaManager.cc(attach):413 attach(id=26)
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] MediaHandler.cc(createAttachPoint):371 Created default attach point /var/adm/mount/AP_0xvwPSmk
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaCurl.cc(setupEasy):638 Proxy: 'http://proxy.pbank.com.ua:8080'
2012-09-11 14:46:09 <2> denixxwork(5751) [zypp] CurlConfig.cc(parseConfig):49 Not allowed to parse '': dir/file owner: 0/0, process uid: 0 ()
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaCurl.cc(setupEasy):655 Proxy: ~/.curlrc does not contain the proxy-user option
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] MediaCurl.cc(setupEasy):714 HEADER X-ZYpp-AnonymousId: 43dcf1c3-3098-471d-a39b-c2b13e4479f3
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] MediaCurl.cc(setupEasy):714 HEADER X-ZYpp-DistributionFlavor: dvd
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] MediaCurl.cc(setupEasy):714 HEADER Pragma:
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] MediaHandler.cc(attach):663 Attached: http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_12.2/ attached; localRoot "/var/adm/mount/AP_0xvwPSmk"
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaManager.cc(checkDesired):109 checkDesired(26): desired (report by zypp::media::NoVerifier)
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaManager.cc(checkDesired):112 checkDesired(26): desired (cached)
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaManager.cc(checkDesired):112 checkDesired(26): desired (cached)
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] PathInfo.cc(assert_dir):359 mkdir /var/adm/mount/AP_0xvwPSmk/repodata 00755
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaMultiCurl.cc(doGetFileCopy):1266 dest: /var/adm/mount/AP_0xvwPSmk/repodata/repomd.xml
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaMultiCurl.cc(doGetFileCopy):1267 temp: /var/adm/mount/AP_0xvwPSmk/repodata/repomd.xml.new.zypp.W8lwYf
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaCurl.cc(doGetFileCopyFile):1343 /repodata/repomd.xml
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaCurl.cc(doGetFileCopyFile):1353 URL: http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_12.2/repodata/repomd.xml
2012-09-11 14:46:09 <3> denixxwork(5751) [zypp] MediaCurl.cc(doGetFileCopyFile):1417 curl error: 22: The requested URL returned error: 407, temp file size 0 bytes.
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaCurl.cc(evaluateCurlCode):970 HTTP response: 407 (URL: http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_12.2/repodata/repomd.xml)
2012-09-11 14:46:09 <5> denixxwork(5751) [zypp] Exception.cc(log):137 MediaCurl.cc(evaluateCurlCode):971 THROW:    Download (curl) error for 'http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_12.2/repodata/repomd.xml':
2012-09-11 14:46:09 <5> denixxwork(5751) [zypp] Exception.cc(log):137 Error code: HTTP response: 407
2012-09-11 14:46:09 <5> denixxwork(5751) [zypp] Exception.cc(log):137 Error message: The requested URL returned error: 407
2012-09-11 14:46:09 <5> denixxwork(5751) [zypp] Exception.cc(log):137 
2012-09-11 14:46:09 <5> denixxwork(5751) [zypp] Exception.cc(log):137 MediaCurl.cc(evaluateCurlCode):1026 RETHROW:  Download (curl) error for 'http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_12.2/repodata/repomd.xml':
2012-09-11 14:46:09 <5> denixxwork(5751) [zypp] Exception.cc(log):137 Error code: HTTP response: 407
2012-09-11 14:46:09 <5> denixxwork(5751) [zypp] Exception.cc(log):137 Error message: The requested URL returned error: 407
2012-09-11 14:46:09 <5> denixxwork(5751) [zypp] Exception.cc(log):137 
2012-09-11 14:46:09 <5> denixxwork(5751) [zypp] Exception.cc(log):137 MediaCurl.cc(doGetFileCopyFile):1429 RETHROW:  Download (curl) error for 'http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_12.2/repodata/repomd.xml':
2012-09-11 14:46:09 <5> denixxwork(5751) [zypp] Exception.cc(log):137 Error code: HTTP response: 407
2012-09-11 14:46:09 <5> denixxwork(5751) [zypp] Exception.cc(log):137 Error message: The requested URL returned error: 407
2012-09-11 14:46:09 <5> denixxwork(5751) [zypp] Exception.cc(log):137 
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] PathInfo.cc(unlink):667 unlink /var/adm/mount/AP_0xvwPSmk/repodata/repomd.xml.new.zypp.W8lwYf
2012-09-11 14:46:09 <5> denixxwork(5751) [zypp] Exception.cc(log):137 MediaMultiCurl.cc(doGetFileCopy):1293 RETHROW:  Download (curl) error for 'http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_12.2/repodata/repomd.xml':
2012-09-11 14:46:09 <5> denixxwork(5751) [zypp] Exception.cc(log):137 Error code: HTTP response: 407
2012-09-11 14:46:09 <5> denixxwork(5751) [zypp] Exception.cc(log):137 Error message: The requested URL returned error: 407
2012-09-11 14:46:09 <5> denixxwork(5751) [zypp] Exception.cc(log):137 
2012-09-11 14:46:09 <5> denixxwork(5751) [zypp] Exception.cc(log):137 MediaCurl.cc(getFileCopy):866 RETHROW:  Download (curl) error for 'http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_12.2/repodata/repomd.xml':
2012-09-11 14:46:09 <5> denixxwork(5751) [zypp] Exception.cc(log):137 Error code: HTTP response: 407
2012-09-11 14:46:09 <5> denixxwork(5751) [zypp] Exception.cc(log):137 Error message: The requested URL returned error: 407
2012-09-11 14:46:09 <5> denixxwork(5751) [zypp] Exception.cc(log):137 
2012-09-11 14:46:09 <5> denixxwork(5751) [zypp] Exception.cc(log):137 MediaSetAccess.cc(provide):216 CAUGHT:   Download (curl) error for 'http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_12.2/repodata/repomd.xml':
2012-09-11 14:46:09 <5> denixxwork(5751) [zypp] Exception.cc(log):137 Error code: HTTP response: 407
2012-09-11 14:46:09 <5> denixxwork(5751) [zypp] Exception.cc(log):137 Error message: The requested URL returned error: 407
2012-09-11 14:46:09 <5> denixxwork(5751) [zypp] Exception.cc(log):137 
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaManager.cc(checkDesired):112 checkDesired(26): desired (cached)
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaHandler.cc(getDetectedDevices):1370 No devices for this medium
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaSetAccess.cc(provide):228 Media couldn't provide file /repodata/repomd.xml , releasing.
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaManager.cc(release):486 release(id=26)
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaHandler.cc(release):723 Request to release attached media http<http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_12.2/>, use count=1
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaHandler.cc(release):730 Releasing media http<http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_12.2/>
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] MediaHandler.cc(disconnect):702 Disconnected: http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_12.2/ attached; localRoot "/var/adm/mount/AP_0xvwPSmk"
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaHandler.cc(removeAttachPoint):179 MediaHandler - checking if to remove attach point
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] PathInfo.cc(recursive_rmdir):431 recursive_rmdir /var/adm/mount/AP_0xvwPSmk 
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] MediaHandler.cc(removeAttachPoint):191 Deleted default attach point /var/adm/mount/AP_0xvwPSmk
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] MediaHandler.cc(release):784 Released: http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_12.2/ not attached; localRoot ""
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] MediaManager.cc(releaseAll):525 Releasing all attached media
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaManager.cc(releaseAll):543 Media id 2 not attached 
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaManager.cc(releaseAll):543 Media id 4 not attached 
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaManager.cc(releaseAll):543 Media id 6 not attached 
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaManager.cc(releaseAll):543 Media id 8 not attached 
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaManager.cc(releaseAll):543 Media id 10 not attached 
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaManager.cc(releaseAll):543 Media id 12 not attached 
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaManager.cc(releaseAll):543 Media id 14 not attached 
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaManager.cc(releaseAll):543 Media id 16 not attached 
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaManager.cc(releaseAll):543 Media id 18 not attached 
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaManager.cc(releaseAll):543 Media id 20 not attached 
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaManager.cc(releaseAll):543 Media id 22 not attached 
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaManager.cc(releaseAll):543 Media id 24 not attached 
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaManager.cc(releaseAll):543 Media id 26 not attached 
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] MediaManager.cc(releaseAll):553 Exit
Comment 12 denixx baykin 2012-09-11 12:05:58 UTC
See the lines
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaCurl.cc(setupEasy):638
Proxy: 'http://proxy.pbank.com.ua:8080'
2012-09-11 14:46:09 <2> denixxwork(5751) [zypp] CurlConfig.cc(parseConfig):49
Not allowed to parse '': dir/file owner: 0/0, process uid: 0 ()
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp++] MediaCurl.cc(setupEasy):655
Proxy: ~/.curlrc does not contain the proxy-user option
2012-09-11 14:46:09 <1> denixxwork(5751) [zypp] MediaCurl.cc(setupEasy):714

It can't find the proxy-user line :)
Comment 13 denixx baykin 2012-09-11 12:07:24 UTC
I found this in a "pk_backend_zypp" file.
Comment 14 denixx baykin 2012-09-11 12:29:51 UTC
http://doc.opensuse.org/projects/libzypp/12.2/CurlConfig_8cc_source.html
-=-=-
   20   //
   21   //  METHOD NAME : CurlConfig::parseConfig
   22   //  METHOD TYPE : int
   23   //
   24   int CurlConfig::parseConfig(CurlConfig & config, const std::string & filename)
   25   {
   26     Pathname curlrcFile;
   27 
   28     if(filename.empty())
   29     {
   30       // attempts to load .curlrc from the homedir
   31       char *home = getenv("HOME");
   32       if(home)
   33         curlrcFile = string( home ) + string( "/.curlrc" );
   34     }
   35     else
   36       curlrcFile = filename;
   37 
   38     PathInfo h_info(curlrcFile.dirname(), PathInfo::LSTAT);
   39     PathInfo c_info(curlrcFile,           PathInfo::LSTAT);
   40 
   41     if( h_info.isDir()  && h_info.owner() == getuid() &&
   42         c_info.isFile() && c_info.owner() == getuid())
   43     {
   44       MIL << "Going to parse " << curlrcFile << endl;
   45     }
   46     else
   47     {
   48       char buf[32] = "";
   49       WAR << "Not allowed to parse '" << curlrcFile
   50           << "': dir/file owner: " << h_info.owner() << "/" << c_info.owner()
   51           << ", process uid: " << getuid()
   52           << " (" << (!getlogin_r(buf, 31) ? buf : "") << ")" << std::endl;
   53 
   54       return 1;
   55     }
-=-=-

I tried to set a /home/denixx/.curlrc to root,root - maybe it tries to verify .curlrc at my homedir :) But it's do not help.
What file it try to parse?
Comment 15 denixx baykin 2012-09-11 12:45:16 UTC
I think I need a libzypp with
'WAR << "Filename is: " << curlrcFile <<std::endl;'
after line 36...
Comment 16 denixx baykin 2012-09-11 12:49:50 UTC
And additionally inform you, that I reinstalled openSUSE from 12.1 to 12.2 (both x64). When installing openSUSE 12.2 I leave "/home" as is and format "/".
Comment 17 Michael Andres 2012-09-11 12:51:22 UTC
"Not allowed to parse '':" (line 49) means $HOME is unset (line 31..). That's the only way to get an empty curlrcFile.
Comment 18 Michael Andres 2012-09-11 12:56:27 UTC
@GnomeMaintainers:
It looks like the packagekit packend is running as root (uid0) but in an environment where $HHOME is not set. Is this intended?

~root/.curlrc contains credentials for proxy authentication. Zypp dooes not find them without $HOME.
Comment 19 Vincent Untz 2012-09-11 13:08:33 UTC
PackageKit is started by dbus (via dbus activation). So the question is whether dbus sets $HOME or not. I don't know about that...
Comment 20 denixx baykin 2012-09-12 13:49:26 UTC
Am I right?
PackageKit searches for package updates?
If updates was found - PackageKit shows an icon in system tray?

Why I ask: on openSUSE 12.1 I've never seen this icon.
Maybe because PackageKit was silent about repos.
Comment 21 denixx baykin 2012-09-17 13:20:20 UTC
/var/log/messages contains this:
Sep 17 16:11:23 denixxwork dbus-daemon[1786]: dbus[1786]: [system] Activating service name='org.freedesktop.PackageKit' (using servicehelper)
Sep 17 16:11:23 denixxwork dbus[1786]: [system] Activating service name='org.freedesktop.PackageKit' (using servicehelper)
Sep 17 16:11:23 denixxwork dbus-daemon[1786]: dbus[1786]: [system] Activating via systemd: service name='org.freedesktop.NetworkManager' unit='dbus-org.freedesktop.NetworkManager.service'
Sep 17 16:11:23 denixxwork dbus[1786]: [system] Activating via systemd: service name='org.freedesktop.NetworkManager' unit='dbus-org.freedesktop.NetworkManager.service'
Sep 17 16:11:23 denixxwork dbus[1786]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.NetworkManager.service': Unit dbus-org.freedesktop.NetworkManager.service failed to load: No such file or directory. See system logs and 'systemctl status dbus-org.freedesktop.NetworkManager.service' for details.
Sep 17 16:11:23 denixxwork dbus-daemon[1786]: dbus[1786]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.NetworkManager.service': Unit dbus-org.freedesktop.NetworkManager.service failed to load: No such file or directory. See system logs and 'systemctl status dbus-org.freedesktop.NetworkManager.service' for details.
Sep 17 16:11:23 denixxwork dbus-daemon[1786]: (packagekitd:14206): GLib-GObject-WARNING **: invalid (NULL) pointer instance
Sep 17 16:11:23 denixxwork dbus-daemon[1786]: (packagekitd:14206): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
Sep 17 16:11:23 denixxwork dbus-daemon[1786]: dbus[1786]: [system] Successfully activated service 'org.freedesktop.PackageKit'
Sep 17 16:11:23 denixxwork dbus[1786]: [system] Successfully activated service 'org.freedesktop.PackageKit'
Sep 17 16:11:25 denixxwork dbus-daemon[1786]: (packagekitd:14206): PkPlugin-WARNING **: failed to clear /var/run/PackageKit/udev
Sep 17 16:11:26 denixxwork dbus-daemon[1786]: (packagekitd:14206): PkPlugin-WARNING **: search-file failed with exit code: failed
Sep 17 16:11:26 denixxwork dbus-daemon[1786]: (packagekitd:14206): PkPlugin-WARNING **: not correct size, 0
Sep 17 16:11:26 denixxwork dbus-daemon[1786]: (packagekitd:14206): PkPlugin-WARNING **: failed to get list
Sep 17 16:11:27 denixxwork dbus-daemon[1786]: (packagekitd:14206): PkPlugin-WARNING **: search-file failed with exit code: failed
Sep 17 16:11:27 denixxwork dbus-daemon[1786]: (packagekitd:14206): PkPlugin-WARNING **: not correct size, 0
Sep 17 16:11:27 denixxwork dbus-daemon[1786]: (packagekitd:14206): PkPlugin-WARNING **: failed to get list
[...]
Sep 17 16:14:20 denixxwork dbus-daemon[1786]: (packagekitd:14206): PkPlugin-WARNING **: search-file failed with exit code: failed
Sep 17 16:14:20 denixxwork dbus-daemon[1786]: (packagekitd:14206): PkPlugin-WARNING **: not correct size, 0
Sep 17 16:14:20 denixxwork dbus-daemon[1786]: (packagekitd:14206): PkPlugin-WARNING **: failed to get list
Sep 17 16:14:20 denixxwork dbus-daemon[1786]: (packagekitd:14206): PkPlugin-WARNING **: search-file failed with exit code: failed
Sep 17 16:14:20 denixxwork dbus-daemon[1786]: (packagekitd:14206): PkPlugin-WARNING **: not correct size, 0
Sep 17 16:14:20 denixxwork dbus-daemon[1786]: (packagekitd:14206): PkPlugin-WARNING **: failed to get list
Sep 17 16:14:39 denixxwork dbus-daemon[1786]: (packagekitd:14206): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
Comment 22 Gabriele Mohr 2012-09-25 09:02:11 UTC
(In reply to comment #19)
> PackageKit is started by dbus (via dbus activation). So the question is whether
> dbus sets $HOME or not. I don't know about that...

To answer this question, I am assigning the bug to the maintainer of 'dbus-1'.
Comment 23 denixx baykin 2012-10-15 05:37:46 UTC
Do you have some info about this issue?
Is it correctable?
Comment 24 Timo Hoenig 2012-10-15 06:43:39 UTC
I haven't checked the source, but HOME is not set for the system bus.

100        413  0.0  0.0   4128  2268 ?        Ss   Oct14   0:01 /bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation

$ cat /proc/413/environ | grep HOME
$ (empty)
Comment 25 denixx baykin 2013-01-23 09:52:01 UTC
ping
Comment 26 denixx baykin 2013-01-23 09:54:37 UTC
I have one question: maybe we have to change priority for this issue? :)
Comment 27 denixx baykin 2013-05-27 05:43:03 UTC
Does someone have info about this issue?
Comment 28 Michal Marek 2013-09-30 07:49:56 UTC
(In reply to comment #24)
> I haven't checked the source, but HOME is not set for the system bus.
> 
> 100        413  0.0  0.0   4128  2268 ?        Ss   Oct14   0:01
> /bin/dbus-daemon --system --address=systemd: --nofork --nopidfile
> --systemd-activation
> 
> $ cat /proc/413/environ | grep HOME
> $ (empty)

So the dbus init script should set HOME=/root when starting dbus, shouldn't it?
Comment 29 Tomáš Chvátal 2017-08-11 18:06:02 UTC
Reassign to current dbus maintainer. The HOME is still not set so I suppose the issue is still present.
Comment 30 Simon Lees 2021-03-12 07:19:56 UTC
Hi, if there is still a good reason to follow different behavior to upstream in 2021 feel free to reopen this bug