apache error

Issues related to applications and software problems
hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: apache error

Post by hunter86_bg » 2017/07/25 20:07:19

Ignore the previous one... It seems that 8443 is already defined:
[root@harhel1 man]# semanage port -l | grep 8443
http_port_t tcp 80, 81, 443, 488, 8008, 8009, 8443, 9000
Actually I'm out of ideas. Anything in the logs ?

andrewm659
Posts: 45
Joined: 2014/10/24 16:20:13

Re: apache error

Post by andrewm659 » 2017/07/25 20:09:09

Code: Select all

[root@asm-automation01 ~]# semanage port -l | grep 8443
http_port_t                    tcp      80, 81, 443, 488, 8008, 8009, 8443, 9000
[root@asm-automation01 ~]#

I tried installing the missing rpm file. Couldn't find it in the repo.

Code: Select all

[ 2017-07-24 16:03:45.6399 51667/7fa2d8836700 agents/HelperAgent/RequestHandler.h:2306 ]: [Client 20] Cannot checkout session because a spawning error occurred. The identifier of the error is f42abcd3. Please see earlier logs for details about the error.
App 53121 stdout:
App 53121 stderr:  --> passenger_native_support was compiled for Ruby API version 2.0.0, but you're currently running a Ruby interpreter with API version 1.9.1.
App 53121 stderr:      Refusing to load existing passenger_native_support.
App 53121 stderr:  --> No passenger_native_support.so found for current Ruby interpreter.
App 53121 stderr:      This library provides various optimized routines that make
App 53121 stderr:      Phusion Passenger faster. Please run 'sudo yum install passenger-devel-4.0.53'
App 53121 stderr:      so that Phusion Passenger can compile one on the next run.
App 53121 stderr:  --> Continuing without passenger_native_support.so.
[ 2017-07-24 16:13:26.4253 51667/7fa2dadb0700 Pool2/SmartSpawner.h:298 ]: Preloader for /usr/share/foreman started on PID 53121, listening on unix:/tmp/passenger.1.0.51643/generation-1/backends/preloader.de5kez
App 53156 stdout:
App 53277 stdout:
[ 2017-07-24 16:16:11.3810 51667/7fa2dadb0700 Pool2/SmartSpawner.h:298 ]: Preloader for /etc/puppet/rack started on PID 53277, listening on unix:/tmp/passenger.1.0.51643/generation-1/backends/preloader.19ekyc
App 53294 stdout:
App 53592 stdout:
App 53592 stderr:  --> passenger_native_support was compiled for Ruby API version 2.0.0, but you're currently running a Ruby interpreter with API version 1.9.1.
App 53592 stderr:      Refusing to load existing passenger_native_support.
App 53592 stderr:  --> No passenger_native_support.so found for current Ruby interpreter.
App 53592 stderr:      This library provides various optimized routines that make
App 53592 stderr:      Phusion Passenger faster. Please run 'sudo yum install passenger-devel-4.0.53'
App 53592 stderr:      so that Phusion Passenger can compile one on the next run.
App 53592 stderr:  --> Continuing without passenger_native_support.so.
[ 2017-07-24 16:19:48.2694 51667/7fa2dad1d700 Pool2/SmartSpawner.h:298 ]: Preloader for /usr/share/foreman started on PID 53592, listening on unix:/tmp/passenger.1.0.51643/generation-1/backends/preloader.p5l4tt
App 53633 stdout:
[Mon Jul 24 20:05:13.167226 2017] [mpm_prefork:notice] [pid 51643] AH00170: caught SIGWINCH, shutting down gracefully



andrewm659
Posts: 45
Joined: 2014/10/24 16:20:13

Re: apache error

Post by andrewm659 » 2017/07/26 13:38:15

Disabled SELinux, rebooted all is good.

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

Re: apache error

Post by TrevorH » 2017/07/26 14:19:06

That's not advised. Better to go permissive (setenforce 0) and then examine your audit.log for why it is happening and fix it.

Useful resources for SELinux: http://wiki.centos.org/HowTos/SELinux | http://wiki.centos.org/TipsAndTricks/SelinuxBooleans | http://docs.fedoraproject.org/en-US/Fed ... ced_Linux/ | http://www.youtube.com/watch?v=bQqX3RWn0Yw | http://opensource.com/business/13/11/se ... licy-guide
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

andrewm659
Posts: 45
Joined: 2014/10/24 16:20:13

Re: apache error

Post by andrewm659 » 2017/07/26 14:21:27

I ended up going back and setting to Permissive. Still works.


Thank you for all your help!

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

Re: apache error

Post by TrevorH » 2017/07/26 14:30:56

In permissive mode, it generates logs for all the things that would be denied but then allows them anyway. Those logs can help you to fix the problem and then go back to enforcing. The CentOS wiki article that's the first link I posted above can help you to use those logs to fix the problem properly
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

Post Reply