Cannot find a valid baseurl for repo: base/7/x86_64

Issues related to applications and software problems
User avatar
avij
Forum Moderator
Posts: 2618
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Cannot find a valid baseurl for repo: base/7/x86_64

Post by avij » 2018/07/09 11:39:52

How about these:

rpm -qa '*-release'
cat /etc/yum.conf

nike
Posts: 12
Joined: 2018/05/07 14:05:24

Re: Cannot find a valid baseurl for repo: base/7/x86_64

Post by nike » 2018/07/09 11:51:29

avij wrote:
2018/07/09 11:39:52
How about these:

rpm -qa '*-release'
cat /etc/yum.conf
sorry ..sorry...extremely sorry ...
nothing found with rpm -qa '*-release'
do you want to know about ?
Linux myserver 7.3.10.0-514.el7.x86_64 #1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
[root@myserver oracle]# cat /etc/yum.conf
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=5
bugtracker_url=http://bugs.centos.org/set_project.php? ... tegory=yum
distroverpkg=centos-release


# This is the default, if you make this bigger yum won't see if the metadata
# is newer on the remote and so you'll "gain" the bandwidth of not having to
# download the new metadata and "pay" for it by yum not having correct
# information.
# It is esp. important, to have correct metadata, for distributions like
# Fedora which don't keep old packages around. If you don't like this checking
# interupting your command line usage, it's much better to have something
# manually check the metadata once an hour (yum-updatesd will do this).
# metadata_expire=90m

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

User avatar
avij
Forum Moderator
Posts: 2618
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Cannot find a valid baseurl for repo: base/7/x86_64

Post by avij » 2018/07/09 12:04:55

I would like to know how you managed to install CentOS without having the centos-release package installed.

I also wonder about 7.3.10.0-514.el7.x86_64. It does not look like a standard CentOS kernel version. Any explanation for that?

User avatar
TrevorH
Forum Moderator
Posts: 23203
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Cannot find a valid baseurl for repo: base/7/x86_64

Post by TrevorH » 2018/07/09 12:10:22

Do you get lots of output from rpm -qa or does it give an error message?
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

User avatar
TrevorH
Forum Moderator
Posts: 23203
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Cannot find a valid baseurl for repo: base/7/x86_64

Post by TrevorH » 2018/07/09 12:12:32

I also wonder about 7.3.10.0-514.el7.x86_64. It does not look like a standard CentOS kernel version. Any explanation for that?
I think was hand copied not cut and pasted and the 7 got put in by mistake. The date on that does correspond with the one from the base 7.3 kernel package.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

nike
Posts: 12
Joined: 2018/05/07 14:05:24

Re: Cannot find a valid baseurl for repo: base/7/x86_64

Post by nike » 2018/07/09 12:20:32

TrevorH wrote:
2018/07/09 12:10:22
Do you get lots of output from rpm -qa or does it give an error message?
this is out put of that
[root@myserver oracle]# rpm -qa '*-release'
[root@myserver oracle]#

nike
Posts: 12
Joined: 2018/05/07 14:05:24

Re: Cannot find a valid baseurl for repo: base/7/x86_64

Post by nike » 2018/07/09 12:21:10

TrevorH wrote:
2018/07/09 12:12:32
I also wonder about 7.3.10.0-514.el7.x86_64. It does not look like a standard CentOS kernel version. Any explanation for that?
I think was hand copied not cut and pasted and the 7 got put in by mistake. The date on that does correspond with the one from the base 7.3 kernel package.
this is out put of

[root@myserver oracle]# uname -a
Linux myserver 3.10.0-514.el7.x86_64 #1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

User avatar
avij
Forum Moderator
Posts: 2618
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Cannot find a valid baseurl for repo: base/7/x86_64

Post by avij » 2018/07/09 13:10:20

In this case TrevorH is likely interested in the output of rpm -qa without any other parameters.

Related to this, have there been any incidents with the server recently? Storage issues, or package database issues that have required some sort of maintenance?

nike
Posts: 12
Joined: 2018/05/07 14:05:24

Re: Cannot find a valid baseurl for repo: base/7/x86_64

Post by nike » 2018/07/10 05:07:06

avij wrote:
2018/07/09 13:10:20
In this case TrevorH is likely interested in the output of rpm -qa without any other parameters.

Related to this, have there been any incidents with the server recently? Storage issues, or package database issues that have required some sort of maintenance?
I have told you before sir that oracle 11g database, openvpn, httpd and php has been installed on server.
when i was going to connect through ssh it was not working . but other working fine .I found httpd and sshd service are not working on that server . I am giving you that report
[root@myserver oracle]# systemctl status httpd -l
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2018-07-10 10:07:37 IST; 17min ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 3258 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 1130 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 1130 (code=exited, status=1/FAILURE)

Jul 10 10:07:15 myserver systemd[1]: Starting The Apache HTTP Server...
Jul 10 10:07:37 myserver httpd[1130]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::e2d5:5eff:fe32:b83e. Set the 'ServerName' directive globally to suppress this message
Jul 10 10:07:37 myserver httpd[1130]: (20)Not a directory: AH02291: Cannot access directory '/etc/httpd/logs/' for main error log
Jul 10 10:07:37 myserver httpd[1130]: AH00014: Configuration check failed
Jul 10 10:07:37 myserver systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Jul 10 10:07:37 myserver kill[3258]: kill: cannot find process ""
Jul 10 10:07:37 myserver systemd[1]: httpd.service: control process exited, code=exited status=1
Jul 10 10:07:37 myserver systemd[1]: Failed to start The Apache HTTP Server.
Jul 10 10:07:37 myserver systemd[1]: Unit httpd.service entered failed state.
Jul 10 10:07:37 myserver systemd[1]: httpd.service failed.

[root@myserver oracle]# systemctl status sshd
● sshd.service - OpenSSH server daemon
Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Tue 2018-07-10 10:25:34 IST; 33s ago
Docs: man:sshd(8)
man:sshd_config(5)
Process: 4280 ExecStart=/usr/sbin/sshd $OPTIONS (code=exited, status=255)

Jul 10 10:25:34 myserver systemd[1]: Failed to start OpenSSH server daemon.
Jul 10 10:25:34 myserver systemd[1]: Unit sshd.service entered failed state.
Jul 10 10:25:34 myserver systemd[1]: sshd.service failed.

User avatar
avij
Forum Moderator
Posts: 2618
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Cannot find a valid baseurl for repo: base/7/x86_64

Post by avij » 2018/07/10 06:19:30

Yes, but we would still need to know why your RPM database does not seem to have centos-release installed. At this point, the following information may help:

rpm -qa
ls -ld /etc/httpd/logs
systemctl restart sshd.service
(this will likely output "Job for sshd.service failed because the control process exited with error code. See "systemctl status sshd.service" and "journalctl -xe" for details", but is needed for the following command)
grep sshd /var/log/messages

Post Reply