Changing motherboard on centos 7

General support questions
Blisk
Posts: 316
Joined: 2011/07/04 14:49:51
Contact:

Re: Changing motherboard on centos 7

Post by Blisk » 2017/07/17 09:05:38

I have tested ram and it is ok and than also changed ram and it is the same, still can not start apache.
This is log when I started apache, there are some problems with modules so I disable it, first
mod_systemd.so than mod_cgi.so after that I get error with this library libnsl-2.17.so


Jul 17 11:26:23 ej.net httpd[30092]: [Mon Jul 17 11:26:23.505743 2017] [so:warn] [pid 30092] AH01574: module expires_module is already loaded, skipping
Jul 17 11:26:23 ej.net kernel: /usr/sbin/httpd[30092]: segfault at 7fd1841816f0 ip 00007fd1841816f0 sp 00007ffd9d7bf078 error 14 in mod_systemd.so[7fd184190000+2000]
Jul 17 11:26:23 ej.net abrt-hook-ccpp[30094]: Process 30092 (httpd) of user 0 killed by SIGSEGV - dumping core
Jul 17 11:26:23 ej.net abrt-hook-ccpp[30094]: Failed to create core_backtrace: dwfl_getthread_frames failed: No DWARF information found
Jul 17 11:26:23 ej.net systemd[1]: httpd.service: main process exited, code=dumped, status=11/SEGV
Jul 17 11:26:24 ej.net abrtd[868]: Size of '/var/spool/abrt' >= 1000 MB (MaxCrashReportsSize), deleting old directory 'ccpp-2017-07-15-10:30:53-1684'
Jul 17 11:26:24 ej.net kill[30097]: kill: cannot find process ""
Jul 17 11:26:24 ej.net systemd[1]: httpd.service: control process exited, code=exited status=1
Jul 17 11:26:24 ej.net systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed



-- Unit httpd.service has begun starting up.
Jul 17 11:28:13 ej.net httpd[30461]: [Mon Jul 17 11:28:13.216062 2017] [so:warn] [pid 30461] AH01574: module expires_module is already loaded, skipping
Jul 17 11:28:13 ej.net kernel: /usr/sbin/httpd[30461]: segfault at 7fec876f16f0 ip 00007fec876f16f0 sp 00007fffe39da9d8 error 14 in mod_cgi.so[7fec87700000+6000]
Jul 17 11:28:13 ej.net abrt-hook-ccpp[30463]: Process 30461 (httpd) of user 0 killed by SIGSEGV - dumping core
Jul 17 11:28:13 ej.net abrt-hook-ccpp[30463]: Failed to create core_backtrace: dwfl_getthread_frames failed: No DWARF information found
Jul 17 11:28:13 ej.net systemd[1]: httpd.service: main process exited, code=dumped, status=11/SEGV
Jul 17 11:28:13 povej.net abrtd[868]: Size of '/var/spool/abrt' >= 1000 MB (MaxCrashReportsSize), deleting old directory 'ccpp-2017-07-15-11:09:45-1777'
Jul 17 11:28:13 ej.net kill[30466]: kill: cannot find process ""
Jul 17 11:28:13 ej.net systemd[1]: httpd.service: control process exited, code=exited status=1
Jul 17 11:28:13 ej.net systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed


Jul 17 11:29:02 ej.net httpd[30638]: [Mon Jul 17 11:29:02.049795 2017] [so:warn] [pid 30638] AH01574: module expires_module is already loaded, skipping
Jul 17 11:29:02 ej.net kernel: /usr/sbin/httpd[30638]: segfault at 7f37e37e6ca1 ip 00007f38502716f0 sp 00007ffcd6c02148 error 4 in libnsl-2.17.so[7f3850268000+16000]
Jul 17 11:29:02 ej.net abrt-hook-ccpp[30640]: Process 30638 (httpd) of user 0 killed by SIGSEGV - dumping core
Jul 17 11:29:02 ej.net abrt-hook-ccpp[30640]: Failed to create core_backtrace: dwfl_getthread_frames failed: No DWARF information found
Jul 17 11:29:02 ej.net systemd[1]: httpd.service: main process exited, code=dumped, status=11/SEGV
Jul 17 11:29:02 ej.net abrtd[868]: Size of '/var/spool/abrt' >= 1000 MB (MaxCrashReportsSize), deleting old directory 'ccpp-2017-07-14-15:24:23-1392'
Jul 17 11:29:02 ej.net kill[30643]: kill: cannot find process ""
Jul 17 11:29:02 ej.net systemd[1]: httpd.service: control process exited, code=exited status=1
Jul 17 11:29:02 ej.net systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed

Blisk
Posts: 316
Joined: 2011/07/04 14:49:51
Contact:

Re: Changing motherboard on centos 7

Post by Blisk » 2017/07/17 11:26:47

After I changed Motherboard back to old one, apache works again.
Any suggestion what could be wrong????
Can it be related to changed name of network card before it was enp3s0 on new motherboard it was enp10s0?

pjsr2
Posts: 614
Joined: 2014/03/27 20:11:07

Re: Changing motherboard on centos 7

Post by pjsr2 » 2017/07/17 14:28:50

Did you create the /etc/sysconfig/network-scripts/ifcfg-enp10s0 script for configuring your network card?
If not, you can create it by copying/renaming /etc/sysconfig/network-scripts/ifcfg-enp3s0 to /etc/sysconfig/network-scripts/ifcfg-enp10s0
In your new file /etc/sysconfig/network-scripts/ifcfg-enp10s0, you have to change the name on the line with DEVICE to enp10s0.
After that

Code: Select all

sudo systemctl restart network
sudo systemctl restart httpd

Blisk
Posts: 316
Joined: 2011/07/04 14:49:51
Contact:

Re: Changing motherboard on centos 7

Post by Blisk » 2017/07/17 16:47:46

thank you I manage to setup newtork with nmtui.
I can access server from utside, I did that before too on new motherboard.
I will move disk tomorrow again on new motherboard and test.

Blisk
Posts: 316
Joined: 2011/07/04 14:49:51
Contact:

Re: Changing motherboard on centos 7

Post by Blisk » 2017/07/20 10:12:45

Today I teste another motherboard and differend ram and problem is the same.
Apache will not start. Everything else works. Only thing which is differend is nic name, before it was enp3s0 now it is eth0
Any advice how to make apache to work again?

-- Unit httpd.service has begun starting up.
Jul 20 12:10:30 ej.net httpd[11740]: [Thu Jul 20 12:10:30.429729 2017] [so:warn] [pid 11740] AH01574: module expires_module is already loaded, skipping
Jul 20 12:10:30 ej.net kernel: /usr/sbin/httpd[11740]: segfault at 7effe37a56f0 ip 00007effe37a56f0 sp 00007ffca297c828 error 14 in mod_systemd.so[7effe37b4000+2000]
Jul 20 12:10:30 ej.net abrt-hook-ccpp[11742]: Process 11740 (httpd) of user 0 killed by SIGSEGV - dumping core
Jul 20 12:10:31 ej.net abrt-hook-ccpp[11742]: Failed to create core_backtrace: dwfl_getthread_frames failed: No DWARF information found
Jul 20 12:10:31 ej.net systemd[1]: httpd.service: main process exited, code=dumped, status=11/SEGV
Jul 20 12:10:31 ej.net abrtd[874]: Size of '/var/spool/abrt' >= 1000 MB (MaxCrashReportsSize), deleting old directory 'ccpp-2017-07-15-13:06:01-9733'
Jul 20 12:10:31 ej.net kill[11745]: kill: cannot find process ""
Jul 20 12:10:31 ej.net systemd[1]: httpd.service: control process exited, code=exited status=1
Jul 20 12:10:31 ej.net systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit httpd.service has failed.

Blisk
Posts: 316
Joined: 2011/07/04 14:49:51
Contact:

Re: Changing motherboard on centos 7

Post by Blisk » 2017/07/20 10:52:47

After disabling mod_systemd.so
I get this error
-- Unit httpd.service has begun starting up.
Jul 20 12:51:28 ej.net httpd[8552]: [Thu Jul 20 12:51:28.500972 2017] [so:warn] [pid 8552] AH01574: module expires_module is already loaded, skipping
Jul 20 12:51:28 ej.net kernel: /usr/sbin/httpd[8552]: segfault at 7fc125f61d41 ip 00007fc19206f6f0 sp 00007ffff697b608 error 4 in libnsl-2.17.so[7fc192066000+16000]
Jul 20 12:51:28 ej.net abrt-hook-ccpp[8554]: Process 8552 (httpd) of user 0 killed by SIGSEGV - dumping core
Jul 20 12:51:29 ej.net abrt-hook-ccpp[8554]: Failed to create core_backtrace: dwfl_getthread_frames failed: No DWARF information found
Jul 20 12:51:29 ej.net systemd[1]: httpd.service: main process exited, code=dumped, status=11/SEGV
Jul 20 12:51:29 ej.net kill[8557]: kill: cannot find process ""
Jul 20 12:51:29 ej.net systemd[1]: httpd.service: control process exited, code=exited status=1
Jul 20 12:51:29 ej.net systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit httpd.service has failed.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Changing motherboard on centos 7

Post by TrevorH » 2017/07/20 12:55:50

Recheck your hardware.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

pjsr2
Posts: 614
Joined: 2014/03/27 20:11:07

Re: Changing motherboard on centos 7

Post by pjsr2 » 2017/07/20 13:21:09

mod_systemd is responsible for systemd integration. You will need that one.

The libnsl library is handling the name server lookups. Because it is crashing there, I suspect that something is still wrong in your network configuration.
Apache will not start. Everything else works.
Are you sure about the "everything else"? Check the network settings: IP address, DNS servers, DNS name search list, contents of /etc/resolv.conf
Is DNS name resolution working? Does your server have a fully qualified host name? Anything funny in /etc/hosts?

On my system the name of the network device is "eno16780032". "eno16780032" occures in the file /etc/udev/rules.d/90-eno-fix.rules which is according to a comment in it automatically generated on systemd update. Don't know what you find on your computer in /etc/udev/rules.d. I am no systemd expert, but perhaps you need to fix a similar file for the new network device name when you use your new board? Could be created/edited manually or perhaps by yum reinstall systemd?

Blisk
Posts: 316
Joined: 2011/07/04 14:49:51
Contact:

Re: Changing motherboard on centos 7

Post by Blisk » 2017/07/20 17:00:16

TrevorH wrote:Recheck your hardware.
I am now almost 100% that hardware is not a problem. I move disks to 2 differend computers and the same problem still persist.
It must be something else.

Blisk
Posts: 316
Joined: 2011/07/04 14:49:51
Contact:

Re: Changing motherboard on centos 7

Post by Blisk » 2017/07/20 17:10:25

pjsr2 wrote:mod_systemd is responsible for systemd integration. You will need that one.

The libnsl library is handling the name server lookups. Because it is crashing there, I suspect that something is still wrong in your network configuration.
Apache will not start. Everything else works.
Are you sure about the "everything else"? Check the network settings: IP address, DNS servers, DNS name search list, contents of /etc/resolv.conf
Is DNS name resolution working? Does your server have a fully qualified host name? Anything funny in /etc/hosts?

On my system the name of the network device is "eno16780032". "eno16780032" occures in the file /etc/udev/rules.d/90-eno-fix.rules which is according to a comment in it automatically generated on systemd update. Don't know what you find on your computer in /etc/udev/rules.d. I am no systemd expert, but perhaps you need to fix a similar file for the new network device name when you use your new board? Could be created/edited manually or perhaps by yum reinstall systemd?
yes after moving disks to new computer name of nic changes original is enp3s0 and on new computer is enp10s0.
So I changed network card and renamed by this instructions, I didn't manage to rename it to enp3s0 but it was eth0 so I also changed that name in my firewall settings.
http://ask.xmodulo.com/change-network-i ... ntos7.html

I am almost soure problem is related to network card and kernel, maybe it is a bug. I will test again with adding another nic in computer and disabling that one on motherboard and see if I get the same problem, I am almost sure it will be.
All other things on server works like mail server, file server and other things.
I checked IP address, DNS, DNS name, everything is ok. And soon as I move disks to old computer apache works with no problems.

so as I said it must be sometrhing related kernel and nic. When I do the same on centos 6, I naver have any problems and did that twice.

Post Reply