[Spacewalk-list] spacewalk 2.6 debian jessie [package not found]

Mark Hlawatschek hlawatschek at atix.de
Mon Jan 9 09:29:34 UTC 2017


Hi Florin,

you also need to patch the file java/code/src/com/redhat/rhn/taskomatic/task/repomd/DebPackageWriter.java and rebuild rhn.jar.
After that you need to completely delete and rebuild your debian channel.

Without the patches, spacewalk cannot distinguish between debian package name and package version (for packages with multiple „-" in the file name). 

Mark
> Am 08.01.2017 um 22:35 schrieb Florin Portase <portase.florin at medianetork.ro>:
> 
> On 2017-01-08 21:22, Mark Hlawatschek wrote:
> 
>> Hi,
>>  
>> please take a look at my pull request. This might solve your issue.
>> https://github.com/spacewalkproject/spacewalk/pull/444 <https://github.com/spacewalkproject/spacewalk/pull/444>
>>  
>> Mark
>>  
>>> Am 08.01.2017 um 21:10 schrieb Florin Portase <portase.florin at medianetork.ro <mailto:portase.florin at medianetork.ro>>:
>>> 
>>> On 2017-01-08 21:04, Robert Paschedag wrote:
>>> 
>>> Am 8. Januar 2017 19:58:11 MEZ schrieb Florin Portase <portase.florin at medianetork.ro <mailto:portase.florin at medianetork.ro>>:
>>> Hello, 
>>> 
>>> I just created a channel for debian 8 [ jessie-main+jessie-updates ] 
>>> 
>>> So far so good, however,  to certain packages apt-get complains can't
>>> find them. 
>>> 
>>> Ex: 
>>> 
>>> apt-get install openjdk-7-jre 
>>> 
>>> Err spacewalk://192.168.50.105/ <spacewalk://192.168.50.105/> channels:/jessie-updates
>>> openjdk-7-jre-headless amd64 7u111-2.6.7-2~deb8u1
>>>  404  Not Found
>>> Err spacewalk://192.168.50.105/ <spacewalk://192.168.50.105/> channels:/jessie-updates openjdk-7-jre
>>> amd64 7u111-2.6.7-2~deb8u1
>>>  404  Not Found
>>> E: Failed to fetch
>>> spacewalk://192.168.50.105/XMLRPC/GET-REQ/jessie-updates/getPackage/openjdk-7-jre-headless-7u111-2.6.7-2~deb8u1.amd64-deb.deb <spacewalk://192.168.50.105/XMLRPC/GET-REQ/jessie-updates/getPackage/openjdk-7-jre-headless-7u111-2.6.7-2~deb8u1.amd64-deb.deb>
>>> 404  Not Found
>>> 
>>> E: Failed to fetch
>>> spacewalk://192.168.50.105/XMLRPC/GET-REQ/jessie-updates/getPackage/openjdk-7-jre-7u111-2.6.7-2~deb8u1.amd64-deb.deb <spacewalk://192.168.50.105/XMLRPC/GET-REQ/jessie-updates/getPackage/openjdk-7-jre-7u111-2.6.7-2~deb8u1.amd64-deb.deb>
>>> 404  Not Found 
>>> 
>>> And here httpd access log 
>>> 
>>> 192.168.50.16 - - [08/Jan/2017:19:48:22 +0100] "POST /XMLRPC HTTP/1.1"
>>> 200 2005 "-" "rhn.rpclib.py/$Revision$"
>>> 192.168.50.16 - - [08/Jan/2017:19:48:22 +0100] "GET
>>> //XMLRPC/GET-REQ/jessie-updates/getPackage/openjdk-7-jre-headless-7u111-2.6.7-2~deb8u1.amd64-deb.deb
>>> HTTP/1.1" 404 - "-" "-"
>>> 192.168.50.16 - - [08/Jan/2017:19:48:22 +0100] "GET
>>> //XMLRPC/GET-REQ/jessie-updates/getPackage/openjdk-7-jre-7u111-2.6.7-2~deb8u1.amd64-deb.deb
>>> HTTP/1.1" 404 - "-" 
>>> 
>>> ========================= 
>>> 
>>> File located on spacewalk server 
>>> 
>>> redhat/1/d54/openjdk-7-jre-headless/7u111-2.6.7-2~deb8u1/amd64-deb/d540e4f7c8da546091c349cefb38d970747050f2f00e3a360ddb11466e7df9c6/openjdk-7-jre-headless-7u111-2.6.7-2~deb8u1.amd64-deb.deb
>>> 
>>> 
>>> redhat/1/3db/openjdk-7-jre/7u111-2.6.7-2~deb8u1/amd64-deb/3db61f01db5861b184385f9bb9e01b251abe912167f51eab4a73aac7e25f24bf/openjdk-7-jre-7u111-2.6.7-2~deb8u1.amd64-deb.deb
>>> 
>>> 
>>> Also, if I go to jessie-updates channel, can find + download them .....
>>> 
>>> 
>>> I deleted the channel+delete the packages but still same issue, EVERY
>>> time apt-get complains about the same packages  ? 
>>> 
>>> Is some other ways to  trace this issue  or anyone faced the same  ?
>>> 
>>> Please also show us the sync logs, where these files have been downloaded from Debian server. 
>>> 
>>> Robert
>>> So, here are
>>> 
>>> 
>>> 
>>> [root at web-satt1 repodata]# grep openjdk-7-jre /var/log/rhn/reposync/jessie-updates.log
>>> 
>>> 
>>> 2016/12/19 13:19:01 +02:00 1689/2118 : openjdk-7-jre-7u111-2.6.7-2~deb8u1.amd64-deb
>>> 2016/12/19 13:19:01 +02:00 1690/2118 : openjdk-7-jre-headless-7u111-2.6.7-2~deb8u1.amd64-deb
>>> 2016/12/19 13:19:23 +02:00 1691/2118 : openjdk-7-jre-lib-7u111-2.6.7-2~deb8u1.all-deb
>>> 2016/12/19 13:19:23 +02:00 1692/2118 : openjdk-7-jre-zero-7u111-2.6.7-2~deb8u1.amd64-deb
>>> 
>>> ......
>>> 
>>> 2017/01/08 06:01:50 +02:00 18/18 : pcscd-1.8.13-1+deb8u1.amd64-deb
>>> 2017/01/08 06:01:51 +02:00 Linking packages to channel.
>>> 2017/01/08 06:01:52 +02:00 Repo http://security.debian.org/dists/jessie/updates/main/binary-amd64/ <http://security.debian.org/dists/jessie/updates/main/binary-amd64/> has 0 errata.
>>> 2017/01/08 06:01:52 +02:00 Sync of channel completed in 0:01:51.
>>> 
>>> _______________________________________________
>>> Spacewalk-list mailing list
>>> Spacewalk-list at redhat.com <mailto:Spacewalk-list at redhat.com>
>>> https://www.redhat.com/mailman/listinfo/spacewalk-list
>> 
>> --
>> Mark Hlawatschek
>>  
>>  
>> ATIX AG
>> http://www.atix.de <http://www.atix.de/>
>> 
>> 
>> _______________________________________________
>> Spacewalk-list mailing list
>> Spacewalk-list at redhat.com <mailto:Spacewalk-list at redhat.com>
>> https://www.redhat.com/mailman/listinfo/spacewalk-list <https://www.redhat.com/mailman/listinfo/spacewalk-list>Hi Mark,
> 
> In fact after patching
> 
> /usr/lib/python2.6/site-packages/spacewalk/common/rhn/Lib.py
> 
> /usr/lib/python2.6/site-packages/spacewalk/rhn_deb.py
> 
> /usr/lib/python2.6/site-packages/spacewalk/server/rhnLib.py
> 
> still no success [ I just deleted all packages in channel and resync ]....
> 
> ++
> 
> Why
> 
> E: Failed to fetch spacewalk://192.168.50.105/XMLRPC/GET-REQ/jessie-main/getPackage/aspell-en-7.1-0-1.1.all-deb.deb  404  Not Found
> 
> but
> 
> apt-get install aspell-de is OK
> 
> both packages being present on the server ?!?!!?
> 



--
Mark Hlawatschek


ATIX AG
http://www.atix.de




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20170109/7d8748e6/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: link_attachment_7.gif
Type: image/gif
Size: 163 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20170109/7d8748e6/attachment.gif>


More information about the Spacewalk-list mailing list