LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-12-2015, 09:09 AM   #1
PastulioLive
Member
 
Registered: Nov 2014
Posts: 39

Rep: Reputation: Disabled
yum searches for incorrect sqlite primary database after createrepo


Hi,

At our company we have a local RPM repository with some software and this was working fine.

Today I have added two new RPM packages to the repository and have ran createrepo. After updating the repodata on the server I cleaned the yum cache on a client and try to install one of the new packages:

yum clean all
yum -y install <package>

This produces the following error when updating the repository:
Code:
linuxrepo/primary_db           FAILED                                          
http://puppet.domain.local/repos/linuxrepo/repodata/d70b492c94a02c8d8555441e92d9fe1b44d511570c38e5009531864037c04da7-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found/s |    0 B  --:--:-- ETA 
Trying other mirror.
linuxrepo/primary_db           FAILED                                          
http://puppet.domain.local/repos/linuxrepo/repodata/d70b492c94a02c8d8555441e92d9fe1b44d511570c38e5009531864037c04da7-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found/s |    0 B  --:--:-- ETA 
Trying other mirror.
http://puppet.domain.local/repos/linuxrepo/repodata/d70b492c94a02c8d8555441e92d9fe1b44d511570c38e5009531864037c04da7-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
...
failure: repodata/d70b492c94a02c8d8555441e92d9fe1b44d511570c38e5009531864037c04da7-primary.sqlite.bz2 from linuxrepo: [Errno 256] No more mirrors to try.
http://puppet.domain.local/repos/linuxrepo/repodata/d70b492c94a02c8d8555441e92d9fe1b44d511570c38e5009531864037c04da7-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found

The thing is that this file does actually not exist or and is not created by createrepo.
This is the only existing local repository file:
585257bc207cdf272dcb12b74ca474e4059e919c664ccbacc91ec6e7f7174bd6-primary.sqlite.bz2

Does anybody know why it could be looking for the wrong file or where I could begin looking?

Thanks in advance,
Pascal
 
Old 03-12-2015, 08:39 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Sounds like it didn't clean properly... maybe try:
Code:
yum makecache
 
Old 03-13-2015, 05:10 AM   #3
PastulioLive
Member
 
Registered: Nov 2014
Posts: 39

Original Poster
Rep: Reputation: Disabled
Thanks for the tip kbp,

Unfortunately running yum makecache produces the same errors.

I have tried to copy the repository rpms from linuxrepo to linuxrepo-test on server using the following commands:
Code:
root@server# cd /var/www/html/repos/
mkdir linuxrepo-test
cp linuxrepo/*.rpm linuxrepo-test
cd linuxrepo-test/
createrepo .
On the client I changed the original linuxrepo.repo file to linuxrepo-test.repo.
Next I ran yum clean all followed by yum install <package>. The package installed fine after this.
(Note: I had already tried deleding the repodata directory from linuxrepo and recreating the repository with createrepo before, but this does not work)

I am now sure that the problem is on de clients (Fedora 20).
I would really like to keep the same repository name and not have to change it every time I update the repository.

Does anybody know what I can do to completely reload the settings for the original linuxrepo?

Thanks!
Pascal
 
Old 03-13-2015, 11:04 PM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Are you running a proxy at all?
 
Old 03-16-2015, 08:52 AM   #5
PastulioLive
Member
 
Registered: Nov 2014
Posts: 39

Original Poster
Rep: Reputation: Disabled
We are running a squid proxy server, but I have not configured it for this server.
Also, the proxy server does not have caching setup, it is just used as a gateway.

There is a WPAD DNS record setup for our network, but I doubt a Linux machine checks for this unless explicitly configured?

I will try a different setup where the proxy is not available to make sure, because it does look like a cache issue :-).

Thanks for the input, I will post my findings later.
 
Old 03-17-2015, 10:14 AM   #6
PastulioLive
Member
 
Registered: Nov 2014
Posts: 39

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by kbp View Post
Are you running a proxy at all?
Thanks kbp, the problem was indeed with our proxy server.
I still find it strange because our proxy is not setup for caching.
Perhaps it caches in memory anyway, I am not sure.

The proxy ended up being in the yum.comf because it was configured on our puppet server.
 
Old 03-17-2015, 04:45 PM   #7
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Glad you sorted it
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Sqlite-Commander - A ncurses based tool to display the records and tables of a sqlite database LXer Syndicated Linux News 0 01-02-2011 08:11 AM
what is the use of createrepo ? how to configure yum client & server and usage? raviteja_s Linux - General 1 08-05-2010 01:59 AM
YUM installtion ...createrepo deci007 Linux - Newbie 1 10-31-2009 05:24 PM
yum database incorrect rtaft Linux - Software 4 04-04-2007 12:53 PM
approaches to database searches va1damar Programming 2 10-31-2006 10:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration