LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Cannot load SCTP kernel module on Fedora 21 (https://www.linuxquestions.org/questions/linux-networking-3/cannot-load-sctp-kernel-module-on-fedora-21-a-4175550602/)

tiger762 08-12-2015 02:34 PM

Cannot load SCTP kernel module on Fedora 21
 
Need to add SCTP supprt to the kernel. This used to be painless on older versions of Fedora and CentOS. Now? Painful.

Code:

[root@neutron ~]# uname -a
Linux neutron 4.0.6-200.fc21.x86_64 #1 SMP Tue Jun 23 13:59:12 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

So one theory I've read is to install kernel-modules-extra. Ok...

Code:

[root@neutron ~]# yum install kernel-modules-extra
Loaded plugins: langpacks
Resolving Dependencies
--> Running transaction check
---> Package kernel-modules-extra.x86_64 0:4.1.4-100.fc21 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================================
 Package                                      Arch                            Version                                Repository                        Size
==============================================================================================================================================================
Installing:
 kernel-modules-extra                          x86_64                          4.1.4-100.fc21                          updates                          2.2 M

Transaction Summary
==============================================================================================================================================================
Install  1 Package

Total download size: 2.2 M
Installed size: 2.1 M
Is this ok [y/d/N]: y
Downloading packages:
kernel-modules-extra-4.1.4-100 FAILED                                         
http://mirror.cogentco.com/pub/linux/fedora/linux/updates/21/x86_64/k/kernel-modules-extra-4.1.4-100.fc21.x86_64.rpm: [Errno 14] HTTP Error 404 - Not FoundTA
Trying other mirror.
kernel-modules-extra-4.1.4-100 FAILED                                         
http://repo.atlantic.net/fedora/linux/updates/21/x86_64/k/kernel-modules-extra-4.1.4-100.fc21.x86_64.rpm: [Errno 14] HTTP Error 404 - Not Found  --:--:-- ETA
Trying other mirror.
kernel-modules-extra-4.1.4-100.fc21.x86_64.rpm                                                                                        | 2.2 MB  00:00:02   
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction (shutdown inhibited)
  Installing : kernel-modules-extra-4.1.4-100.fc21.x86_64                                                                                                1/1
  Verifying  : kernel-modules-extra-4.1.4-100.fc21.x86_64                                                                                                1/1

Installed:
  kernel-modules-extra.x86_64 0:4.1.4-100.fc21                                                                                                               

Complete!

I wasn't really expecting it to work, and voila:

Code:

[root@neutron ~]# modprobe sctp
modprobe: FATAL: Module sctp not found.

OK, color me shocked. Does the damn module even exist?

Code:

[root@neutron ~]# find /usr/lib/modules -name 'sctp*'
/usr/lib/modules/4.0.6-200.fc21.x86_64/kernel/net/sctp
/usr/lib/modules/4.1.4-100.fc21.x86_64/kernel/net/sctp
/usr/lib/modules/4.1.4-100.fc21.x86_64/extra/net/sctp
/usr/lib/modules/4.1.4-100.fc21.x86_64/extra/net/sctp/sctp.ko
/usr/lib/modules/4.1.4-100.fc21.x86_64/extra/net/sctp/sctp_probe.ko.xz
/usr/lib/modules/4.1.4-100.fc21.x86_64/extra/net/sctp/sctp.ko.xz
/usr/lib/modules/3.19.5-200.fc21.x86_64/kernel/net/sctp

Hmmm, OK. It's there. Let's load it manually:

Code:

[root@neutron ~]# insmod /usr/lib/modules/4.1.4-100.fc21.x86_64/extra/net/sctp/sctp
insmod: ERROR: could not load module /usr/lib/modules/4.1.4-100.fc21.x86_64/extra/net/sctp/sctp: No such file or directory
[root@neutron ~]# insmod /usr/lib/modules/4.1.4-100.fc21.x86_64/extra/net/sctp/sctp.ko
insmod: ERROR: could not insert module /usr/lib/modules/4.1.4-100.fc21.x86_64/extra/net/sctp/sctp.ko: Invalid module format

OK, that's nice. "Invalid module format"

Another thing I saw suggested to first load ipv6. Okkkkk...

Code:

[root@neutron ~]# modprobe ipv6
[root@neutron ~]# modprobe sctp
modprobe: FATAL: Module sctp not found.

Anyone have any other guesses? Thanks.

smallpond 08-13-2015 12:08 PM

The kernel you are running is 4.0.6-200.fc21.x86_64
The module that you have is for a different kernel 4.1.4-100.fc21.x86_64

It looks like you have installed the updated kernel, but are still running the old one. Reboot and select the new kernel in grub and see if that works. If it does, change to the new kernel as default.

tiger762 08-13-2015 01:29 PM

Thank you! That worked! Will remember that in the future. I had done a "yum update" right before all of this.

Quote:

Originally Posted by smallpond (Post 5405326)
The kernel you are running is 4.0.6-200.fc21.x86_64
The module that you have is for a different kernel 4.1.4-100.fc21.x86_64

It looks like you have installed the updated kernel, but are still running the old one. Reboot and select the new kernel in grub and see if that works. If it does, change to the new kernel as default.



All times are GMT -5. The time now is 12:05 PM.