Page 1 of 2

SSH and Yum don't work in clean CentOS 7

Posted: 2014/07/20 19:40:15
by centosqs
Hi all,

I'm trying out CentOS 7 but am having the dickens of a time getting it to cooperate. Here is the output of 'yum -v upgrade'. Executing 'yum cleanup all' doesn't fix it.

Code: Select all

[user@test ~]# yum -v upgrade
Loading "fastestmirror" plugin
Config time: 0.017
Yum version: 3.4.3
rpmdb time: 0.000
Updating Everything
Building updates object
Setting up Package Sacks


Exiting on user cancel
[user@test ~]#
And what's even more odd is that I can't SSH to the system even though the SSH daemon is running and it's permitted through the firewall. PuTTY just disconnects immediately saying that the connection was aborted. However the system has network connectivity as it pings google.com or 8.8.8.8 just fine and can be pinged without issue.

I've tried re-downloading CentOS-7.0-1406-x86_64-DVD.iso from multiple sources and re-installing it but each time gets me no farther.

Any ideas?

Thanks!

Re: SSH and Yum don't work in clean CentOS 7

Posted: 2014/07/20 20:33:02
by gerald_clark
no, yum and sshd should work out of the box.
Your post indicates you terminated yum at the keyboard.
You post no useful information.
Did you verify the image during the install?
How much RAM do you have?
Did you run memtest86 to check for bad RAM?

Re: SSH and Yum don't work in clean CentOS 7

Posted: 2014/08/10 03:31:26
by westphald
I've been seeing the same YUM results since CentOS 7 was released. I've attempted disabling IPv6 in YUM and the kernel, but it did not change the results.

After a fresh minimal installation from CentOS-7.0-1406-x86_64-DVD.iso onto a VirtualBox 4.1.32 VM, I configure a user with sudo and configure the network. When I attempt to run 'sudo yum update', I get the following results. Note: I did not touch the keyboard during the execution of YUM.

Code: Select all

[westphald@centos7 ~]$ sudo yum update
Loaded plugins: fastestmirror

 Current download cancelled, interrupt (ctrl-c) again within two seconds
to exit.



Exiting on user cancel
[westphald@centos7 ~]$ sudo yum update
Loaded plugins: fastestmirror
extras                                                             | 3.3 kB  00:00:00     

 Current download cancelled, interrupt (ctrl-c) again within two seconds
to exit.

updates                                                            | 3.4 kB  00:00:00     
Traceback (most recent call last):
  File "/usr/libexec/urlgrabber-ext-down", line 75, in <module>
    main()
  File "/usr/libexec/urlgrabber-ext-down", line 61, in main
    fo = PyCurlFileObject(opts.url, opts.filename, opts)
  File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 1258, in __init__
    self._do_open()
  File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 1589, in _do_open
    self._do_grab()
  File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 1723, in _do_grab
    self._do_perform()
  File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 1517, in _do_perform
    raise KeyboardInterrupt
KeyboardInterrupt


Exiting on user cancel
[westphald@centos7 ~]$ sudo yum update
Loaded plugins: fastestmirror
Determining fastest mirrors
 * base: mirrors.cmich.edu
 * extras: mirror.team-cymru.org
 * updates: mirror.symnds.com
(1/3): extras/7/x86_64/primary_db                                  |  15 kB  00:00:00     
(2/3): base/7/x86_64/primary_db                                    | 4.9 MB  00:00:04     
(3/3): updates/7/x86_64/primary_db                                 | 2.7 MB  00:00:06     
Resolving Dependencies
--> Running transaction check
---> Package NetworkManager.x86_64 1:0.9.9.1-13.git20140326.4dba720.el7 will be updated
---> Package NetworkManager.x86_64 1:0.9.9.1-25.git20140326.4dba720.el7_0 will be an update
---> Package NetworkManager-glib.x86_64 1:0.9.9.1-13.git20140326.4dba720.el7 will be updated
---> Package NetworkManager-glib.x86_64 1:0.9.9.1-25.git20140326.4dba720.el7_0 will be an update
---> Package NetworkManager-tui.x86_64 1:0.9.9.1-13.git20140326.4dba720.el7 will be updated
---> Package NetworkManager-tui.x86_64 1:0.9.9.1-25.git20140326.4dba720.el7_0 will be an update
---> Package centos-release.x86_64 0:7-0.1406.el7.centos.2.3 will be updated
---> Package centos-release.x86_64 0:7-0.1406.el7.centos.2.4 will be an update
---> Package gnutls.x86_64 0:3.1.18-8.el7 will be updated
---> Package gnutls.x86_64 0:3.1.18-9.el7_0 will be an update
---> Package json-c.x86_64 0:0.11-3.el7 will be updated
---> Package json-c.x86_64 0:0.11-4.el7_0 will be an update
---> Package kernel.x86_64 0:3.10.0-123.6.3.el7 will be installed
---> Package kernel-tools.x86_64 0:3.10.0-123.el7 will be updated
---> Package kernel-tools.x86_64 0:3.10.0-123.6.3.el7 will be an update
---> Package kernel-tools-libs.x86_64 0:3.10.0-123.el7 will be updated
---> Package kernel-tools-libs.x86_64 0:3.10.0-123.6.3.el7 will be an update
---> Package kexec-tools.x86_64 0:2.0.4-32.el7.centos will be updated
---> Package kexec-tools.x86_64 0:2.0.4-32.el7.centos.2 will be an update
---> Package libdb.x86_64 0:5.3.21-17.el7 will be updated
---> Package libdb.x86_64 0:5.3.21-17.el7_0.1 will be an update
---> Package libdb-utils.x86_64 0:5.3.21-17.el7 will be updated
---> Package libdb-utils.x86_64 0:5.3.21-17.el7_0.1 will be an update
---> Package libgudev1.x86_64 0:208-11.el7 will be updated
---> Package libgudev1.x86_64 0:208-11.el7_0.2 will be an update
---> Package libtasn1.x86_64 0:3.3-3.el7 will be updated
---> Package libtasn1.x86_64 0:3.3-5.el7_0 will be an update
---> Package lzo.x86_64 0:2.06-6.el7 will be updated
---> Package lzo.x86_64 0:2.06-6.el7_0.2 will be an update
---> Package mariadb-libs.x86_64 1:5.5.35-3.el7 will be updated
---> Package mariadb-libs.x86_64 1:5.5.37-1.el7_0 will be an update
---> Package microcode_ctl.x86_64 2:2.1-7.1.el7 will be updated
---> Package microcode_ctl.x86_64 2:2.1-7.1.el7_0.2 will be an update
---> Package nspr.x86_64 0:4.10.2-4.el7 will be updated
---> Package nspr.x86_64 0:4.10.6-1.el7_0 will be an update
---> Package nss.x86_64 0:3.15.4-6.el7 will be updated
---> Package nss.x86_64 0:3.15.4-7.el7_0 will be an update
---> Package nss-sysinit.x86_64 0:3.15.4-6.el7 will be updated
---> Package nss-sysinit.x86_64 0:3.15.4-7.el7_0 will be an update
---> Package nss-tools.x86_64 0:3.15.4-6.el7 will be updated
---> Package nss-tools.x86_64 0:3.15.4-7.el7_0 will be an update
---> Package openssl.x86_64 1:1.0.1e-34.el7 will be updated
---> Package openssl.x86_64 1:1.0.1e-34.el7_0.3 will be an update
---> Package openssl-libs.x86_64 1:1.0.1e-34.el7 will be updated
---> Package openssl-libs.x86_64 1:1.0.1e-34.el7_0.3 will be an update
---> Package selinux-policy.noarch 0:3.12.1-153.el7 will be updated
---> Package selinux-policy.noarch 0:3.12.1-153.el7_0.10 will be an update
---> Package selinux-policy-targeted.noarch 0:3.12.1-153.el7 will be updated
---> Package selinux-policy-targeted.noarch 0:3.12.1-153.el7_0.10 will be an update
---> Package systemd.x86_64 0:208-11.el7 will be updated
---> Package systemd.x86_64 0:208-11.el7_0.2 will be an update
---> Package systemd-libs.x86_64 0:208-11.el7 will be updated
---> Package systemd-libs.x86_64 0:208-11.el7_0.2 will be an update
---> Package systemd-sysv.x86_64 0:208-11.el7 will be updated
---> Package systemd-sysv.x86_64 0:208-11.el7_0.2 will be an update
---> Package tuned.noarch 0:2.3.0-11.el7 will be updated
---> Package tuned.noarch 0:2.3.0-11.el7_0.3 will be an update
---> Package tzdata.noarch 0:2014b-1.el7 will be updated
---> Package tzdata.noarch 0:2014e-1.el7_0 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================
 Package                  Arch    Version                                  Repository
                                                                                     Size
==========================================================================================
Installing:
 kernel                   x86_64  3.10.0-123.6.3.el7                       updates   29 M
Updating:
 NetworkManager           x86_64  1:0.9.9.1-25.git20140326.4dba720.el7_0   updates  1.4 M
 NetworkManager-glib      x86_64  1:0.9.9.1-25.git20140326.4dba720.el7_0   updates  369 k
 NetworkManager-tui       x86_64  1:0.9.9.1-25.git20140326.4dba720.el7_0   updates  191 k
 centos-release           x86_64  7-0.1406.el7.centos.2.4                  updates   21 k
 gnutls                   x86_64  3.1.18-9.el7_0                           updates  609 k
 json-c                   x86_64  0.11-4.el7_0                             updates   31 k
 kernel-tools             x86_64  3.10.0-123.6.3.el7                       updates  673 k
 kernel-tools-libs        x86_64  3.10.0-123.6.3.el7                       updates  612 k
 kexec-tools              x86_64  2.0.4-32.el7.centos.2                    updates  321 k
 libdb                    x86_64  5.3.21-17.el7_0.1                        updates  718 k
 libdb-utils              x86_64  5.3.21-17.el7_0.1                        updates  101 k
 libgudev1                x86_64  208-11.el7_0.2                           updates   48 k
 libtasn1                 x86_64  3.3-5.el7_0                              updates  316 k
 lzo                      x86_64  2.06-6.el7_0.2                           updates   59 k
 mariadb-libs             x86_64  1:5.5.37-1.el7_0                         updates  752 k
 microcode_ctl            x86_64  2:2.1-7.1.el7_0.2                        updates  490 k
 nspr                     x86_64  4.10.6-1.el7_0                           updates  125 k
 nss                      x86_64  3.15.4-7.el7_0                           updates  877 k
 nss-sysinit              x86_64  3.15.4-7.el7_0                           updates   48 k
 nss-tools                x86_64  3.15.4-7.el7_0                           updates  469 k
 openssl                  x86_64  1:1.0.1e-34.el7_0.3                      updates  705 k
 openssl-libs             x86_64  1:1.0.1e-34.el7_0.3                      updates  939 k
 selinux-policy           noarch  3.12.1-153.el7_0.10                      updates  340 k
 selinux-policy-targeted  noarch  3.12.1-153.el7_0.10                      updates  3.8 M
 systemd                  x86_64  208-11.el7_0.2                           updates  2.6 M
 systemd-libs             x86_64  208-11.el7_0.2                           updates  153 k
 systemd-sysv             x86_64  208-11.el7_0.2                           updates   35 k
 tuned                    noarch  2.3.0-11.el7_0.3                         updates  145 k
 tzdata                   noarch  2014e-1.el7_0                            updates  433 k

Transaction Summary
==========================================================================================
Install   1 Package
Upgrade  29 Packages

Total download size: 46 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
Traceback (most recent call last):[                     ]  0.0 B/s |    0 B  --:--:-- ETA 
  File "/usr/libexec/urlgrabber-ext-down", line 75, in <module>
    main()
  File "/usr/libexec/urlgrabber-ext-down", line 61, in main
    fo = PyCurlFileObject(opts.url, opts.filename, opts)
  File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 1258, in __init__
    self._do_open()
  File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 1589, in _do_open
    self._do_grab()
  File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 1723, in _do_grab
    self._do_perform()
  File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 1517, in _do_perform
    raise KeyboardInterrupt
KeyboardInterrupt
Traceback (most recent call last):
  File "/usr/libexec/urlgrabber-ext-down", line 75, in <module>
    main()
  File "/usr/libexec/urlgrabber-ext-down", line 61, in main
    fo = PyCurlFileObject(opts.url, opts.filename, opts)
  File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 1258, in __init__
    self._do_open()
  File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 1589, in _do_open
    self._do_grab()
  File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 1723, in _do_grab
    self._do_perform()
  File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 1517, in _do_perform
    raise KeyboardInterrupt
KeyboardInterrupt


Exiting on user cancel
[westphald@centos7 ~]$ 
I've also tried this with VirtualBox 4.3.14 and received the same, but it seemed to get further. Running directly as root does not change the results either. I was eventually able to get the system to update after attempting to run YUM over 20 times. Running 'yum clean all && sudo yum clean all' did not improve the situation.

Re: SSH and Yum don't work in clean CentOS 7

Posted: 2014/08/10 03:59:59
by westphald
I've found a related bug report for Red Hat, but it hasn't resulted in anything and the suggestions in it do not work for me. https://bugzilla.redhat.com/show_bug.cgi?id=1091740.

Code: Select all

[westphald@centos7 ~]$ sudo bash -c 'yum clean metadata && yum upgrade'
[sudo] password for westphald: 
Loaded plugins: fastestmirror
Cleaning repos: base extras updates
0 metadata files removed
0 sqlite files removed
0 metadata files removed
Loaded plugins: fastestmirror
base                                                               | 3.6 kB  00:00:00     


Exiting on user cancel
[westphald@centos7 ~]$ sudo yum upgrade
Loaded plugins: fastestmirror


Exiting on user cancel
[westphald@centos7 ~]$  

Re: SSH and Yum don't work in clean CentOS 7

Posted: 2014/08/10 10:01:52
by avij
How much RAM do you have? Perhaps yum is getting out-of-memory killed. See also /var/log/messages

Re: SSH and Yum don't work in clean CentOS 7

Posted: 2014/08/10 13:15:21
by westphald
I had not considered that, but I would be surprised. I've provided the VM with 2 GB.

Code: Select all

[westphald@centos7 ~]$ date; sudo yum -y update; date
Sun Aug 10 13:08:50 UTC 2014
Loaded plugins: fastestmirror
base                                                               | 3.6 kB  00:00:00     

 Current download cancelled, interrupt (ctrl-c) again within two seconds
to exit.

extras                                                             | 3.3 kB  00:00:00     


Exiting on user cancel
Sun Aug 10 13:08:53 UTC 2014
[westphald@centos7 ~]$ sudo tail /var/log/messages 
Aug 10 13:07:37 centos7 systemd: Starting Update UTMP about System Runlevel Changes...
Aug 10 13:07:37 centos7 systemd: Started Stop Read-Ahead Data Collection 10s After Completed Startup.
Aug 10 13:07:37 centos7 systemd: Started Update UTMP about System Runlevel Changes.
Aug 10 13:07:37 centos7 systemd: Startup finished in 316ms (kernel) + 10.779s (initrd) + 6.797s (userspace) = 17.893s.
Aug 10 13:07:40 centos7 NetworkManager[764]: <info> startup complete
Aug 10 13:08:17 centos7 systemd: Starting user-1000.slice.
Aug 10 13:08:17 centos7 systemd: Created slice user-1000.slice.
Aug 10 13:08:17 centos7 systemd: Starting Session 1 of user westphald.
Aug 10 13:08:17 centos7 systemd-logind: New session 1 of user westphald.
Aug 10 13:08:17 centos7 systemd: Started Session 1 of user westphald.
[westphald@centos7 ~]$ 

Code: Select all

$ vboxmanage showvminfo "CentOS 7"
Name:            CentOS 7
Guest OS:        Red Hat (64 bit)
UUID:            bd60d671-67a4-4596-bb01-8226dc911ca8
Config file:     /home/westphald/VirtualBox VMs/CentOS 7/CentOS 7.vbox
Snapshot folder: /home/westphald/VirtualBox VMs/CentOS 7/Snapshots
Log folder:      /home/westphald/VirtualBox VMs/CentOS 7/Logs
Hardware UUID:   bd60d671-67a4-4596-bb01-8226dc911ca8
Memory size:     2048MB
Page Fusion:     off
VRAM size:       8MB
CPU exec cap:    100%
HPET:            off
Chipset:         piix3
Firmware:        BIOS
Number of CPUs:  2
Synthetic Cpu:   off
CPUID overrides: None
Boot menu mode:  message and menu
Boot Device (1): HardDisk
Boot Device (2): DVD
Boot Device (3): Not Assigned
Boot Device (4): Not Assigned
ACPI:            on
IOAPIC:          on
PAE:             on
Time offset:     0 ms
RTC:             UTC
Hardw. virt.ext: on
Hardw. virt.ext exclusive: on
Nested Paging:   on
Large Pages:     off
VT-x VPID:       on
State:           running (since 2014-08-10T12:58:42.727000000)
Monitor count:   1
3D Acceleration: off
2D Video Acceleration: off
Teleporter Enabled: off
Teleporter Port: 0
Teleporter Address: 
Teleporter Password: 
Storage Controller Name (0):            IDE Controller
Storage Controller Type (0):            PIIX4
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0):  2
Storage Controller Port Count (0):      2
Storage Controller Bootable (0):        on
Storage Controller Name (1):            SATA Controller
Storage Controller Type (1):            IntelAhci
Storage Controller Instance Number (1): 0
Storage Controller Max Port Count (1):  30
Storage Controller Port Count (1):      30
Storage Controller Bootable (1):        on
IDE Controller (1, 0): Empty (ejected)
SATA Controller (0, 0): /home/westphald/VirtualBox VMs/CentOS 7/CentOS 7.vdi (UUID: cfe2cd27-9f68-4b29-ad7b-0d0993ec9e5e)
NIC 1:           MAC: 0800276B0A74, Attachment: Bridged Interface 'wlan1', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny
NIC 2:           disabled
NIC 3:           disabled
NIC 4:           disabled
NIC 5:           disabled
NIC 6:           disabled
NIC 7:           disabled
NIC 8:           disabled
Pointing Device: PS/2 Mouse
Keyboard Device: PS/2 Keyboard
UART 1:          disabled
UART 2:          disabled
Audio:           disabled
Clipboard Mode:  disabled
Video mode:      720x400x0
VRDE:            enabled (Address 0.0.0.0, Ports 8002, MultiConn: off, ReuseSingleConn: off, Authentication type: null)
VRDE port:       8002
Video redirection: disabled
VRDE property: TCP/Ports  = "8002"
VRDE property: TCP/Address = <not set>
VRDE property: VideoChannel/Enabled = <not set>
VRDE property: VideoChannel/Quality = <not set>
VRDE property: VideoChannel/DownscaleProtection = <not set>
VRDE property: Client/DisableDisplay = <not set>
VRDE property: Client/DisableInput = <not set>
VRDE property: Client/DisableAudio = <not set>
VRDE property: Client/DisableUSB = <not set>
VRDE property: Client/DisableClipboard = <not set>
VRDE property: Client/DisableUpstreamAudio = <not set>
VRDE property: Client/DisableRDPDR = <not set>
VRDE property: H3DRedirect/Enabled = <not set>
VRDE property: Security/Method = <not set>
VRDE property: Security/ServerCertificate = <not set>
VRDE property: Security/ServerPrivateKey = <not set>
VRDE property: Security/CACertificate = <not set>
VRDE property: Audio/RateCorrectionMode = <not set>
USB:             disabled

USB Device Filters:

<none>

Available remote USB devices:

<none>

Currently Attached USB Devices:

<none>

Shared folders:  <none>

VRDE Connection:    active
Clients so far:     1
Start time:         2014/08/10 12:58:44 UTC
Sent:               6174514 Bytes
Average speed:      8640 B/s
Sent total:         6174514 Bytes
Received:           74703 Bytes
Speed:              104 B/s
Received total:     74703 Bytes
User name:          westphald
Domain:             
Client name:        192.168.2.208
Client IP:          192.168.2.208
Client version:     2600
Encryption:         RDP4

Guest:

Configured memory balloon size:      0 MB
OS type:                             RedHat_64
Additions run level:                 0

Guest Facilities:

Facility "Seamless Mode": not active (last update: 2014/08/10 13:03:14 UTC)
Facility "Graphics Mode": active/running (last update: 2014/08/10 13:03:14 UTC)


$ 

Re: SSH and Yum don't work in clean CentOS 7

Posted: 2014/08/10 13:34:27
by bertan
Are you using VirtualBox 4.3.14? There are many reports of problems with VirtualBox 4.3.14:

https://www.virtualbox.org/ticket/13187

https://forums.virtualbox.org/viewtopic.php?f=6&t=62615

Re: SSH and Yum don't work in clean CentOS 7

Posted: 2014/08/10 13:48:11
by westphald
westphald wrote:[...] a fresh minimal installation from CentOS-7.0-1406-x86_64-DVD.iso onto a VirtualBox 4.1.32 VM [...]
I've also tried this with VirtualBox 4.3.14 and received the same [...]
All of the output so far has come from a virtual machine running in VirtualBox 4.1.32. I can reliably reproduce the same results under 4.3.14. I believe that I also tried it under 4.3.12 and updated VirtualBox 4.3.14 hoping to resolve the issue.

Re: SSH and Yum don't work in clean CentOS 7

Posted: 2014/08/11 02:27:30
by westphald
Upon further investigation, the issue appears to be related to bridging to a wireless connection. I was able to reproduce similar results under CentOS 6 with the same VM configuration (though, CentOS 6 reports that it cannot contact mirrors, intermittently). With the network connection set to NAT, 'yum update' operates as expected.

Though I do not know what is causing the issue, it does appear to be outside of CentOS 7. However, CentOS 7 is responding in an unexpected way. I will try to identify what is going wrong with network communications to cause the ctrl-c symptom.

Re: SSH and Yum don't work in clean CentOS 7

Posted: 2014/08/14 09:55:05
by kkyinc
sudo bash -c 'yum clean metadata && yum upgrade'


this command works fine thanks ...............,