Hi all,

I'm still trying to install PF on CentOS7, with no luck. After having resolved the httpd.admin problem with Ludovic Zammit help (https://sourceforge.net/p/packetfence/mailman/message/35915274/), I cannot finalize the first configuration because httpd.graphite service is failing to start.


I try to start it manually using pfcmd command:


[ root@... ]# ./pfcmd service httpd.graphite restart
service|command
httpd.graphite|already stopped
Job for packetfence-httpd.graphite.service failed because a fatal signal was delivered to the control process. See "systemctl status packetfence-httpd.graphite.service" and "journalctl -xe" for details.
httpd.graphite|not started

Here's the content of packetfence.log

Jun 28 14:28:05 infnwebgw packetfence: INFO pfcmd.pl(15995): Connecting to MySQL database (pfconfig::backend::mysql::_get_db) Jun 28 14:28:05 infnwebgw packetfence: INFO pfcmd.pl(15995): Instantiate profile default (pf::Connection::ProfileFactory::_from_profile)

Jun 28 14:28:09 infnwebgw packetfence: INFO pfcmd.pl(15995): Connecting to MySQL database (pfconfig::backend::mysql::_get_db)
WARNING - internal network(s) not defined!
WARNING - networks.conf is empty but services.dhcpd is enabled. Disable it to remove this warning. Jun 28 14:29:50 infnwebgw packetfence: INFO pfcmd.pl(15995): Daemon httpd.graphite took 99.573 seconds to start. (pf::services::manager::launchService)


I also try to run the httpd command directly:


[root@... bin]# /usr/sbin/httpd -f /usr/local/pf/var/conf/httpd.conf.d/httpd.graphite -DFORGROUND -Drhel


Here's the httpd.graphite.error:


Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.009504 2017] [mpm_prefork:notice] [pid 19471] AH00163: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.009564 2017] [core:notice] [pid 19471] AH00094: Command line: '/usr/sbin/httpd -f /usr/local/pf/var/conf/httpd.conf.d/httpd.graphite -D FORGROUND -D rhel' Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.324337 2017] [:error] [pid 19476] Could not import graphite.local_settings, using defaults! Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.324571 2017] [:error] [pid 19476] /usr/lib/python2.7/site-packages/graphite/settings.py:246: UserWarning: SECRET_KEY is set to an unsafe default. This should be set in local_settings.py for better security Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.324576 2017] [:error] [pid 19476] warn('SECRET_KEY is set to an unsafe default. This should be set in local_settings.py for better security') Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.334696 2017] [:error] [pid 19477] Could not import graphite.local_settings, using defaults! Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.334916 2017] [:error] [pid 19477] /usr/lib/python2.7/site-packages/graphite/settings.py:246: UserWarning: SECRET_KEY is set to an unsafe default. This should be set in local_settings.py for better security Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.334921 2017] [:error] [pid 19477] warn('SECRET_KEY is set to an unsafe default. This should be set in local_settings.py for better security') Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.335930 2017] [:error] [pid 19475] Could not import graphite.local_settings, using defaults! Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.336139 2017] [:error] [pid 19475] /usr/lib/python2.7/site-packages/graphite/settings.py:246: UserWarning: SECRET_KEY is set to an unsafe default. This should be set in local_settings.py for better security Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.336143 2017] [:error] [pid 19475] warn('SECRET_KEY is set to an unsafe default. This should be set in local_settings.py for better security') Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.337569 2017] [:error] [pid 19474] Could not import graphite.local_settings, using defaults! Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.337764 2017] [:error] [pid 19474] /usr/lib/python2.7/site-packages/graphite/settings.py:246: UserWarning: SECRET_KEY is set to an unsafe default. This should be set in local_settings.py for better security Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.337768 2017] [:error] [pid 19474] warn('SECRET_KEY is set to an unsafe default. This should be set in local_settings.py for better security') Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.360240 2017] [:error] [pid 19474] mod_wsgi (pid=19474): Target WSGI script '/usr/local/pf/conf/httpd.conf.d/graphite-web.wsgi' cannot be loaded as Python module. Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.360253 2017] [:error] [pid 19474] mod_wsgi (pid=19474): Exception occurred processing WSGI script '/usr/local/pf/conf/httpd.conf.d/graphite-web.wsgi'. Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.360255 2017] [:error] [pid 19475] mod_wsgi (pid=19475): Target WSGI script '/usr/local/pf/conf/httpd.conf.d/graphite-web.wsgi' cannot be loaded as Python module. Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.360263 2017] [:error] [pid 19475] mod_wsgi (pid=19475): Exception occurred processing WSGI script '/usr/local/pf/conf/httpd.conf.d/graphite-web.wsgi'. Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.360267 2017] [:error] [pid 19474] Traceback (most recent call last): Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.360276 2017] [:error] [pid 19475] Traceback (most recent call last): Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.360279 2017] [:error] [pid 19474] File "/usr/local/pf/conf/httpd.conf.d/graphite-web.wsgi", line 18, in <module> Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.360289 2017] [:error] [pid 19475] File "/usr/local/pf/conf/httpd.conf.d/graphite-web.wsgi", line 18, in <module> Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.360326 2017] [:error] [pid 19474] from graphite.logger import log Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.360333 2017] [:error] [pid 19474] File "/usr/lib/python2.7/site-packages/graphite/logger.py", line 84, in <module> Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.360335 2017] [:error] [pid 19475] from graphite.logger import log Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.360341 2017] [:error] [pid 19475] File "/usr/lib/python2.7/site-packages/graphite/logger.py", line 84, in <module> Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.360370 2017] [:error] [pid 19474] log = GraphiteLogger() # import-shared logger instance Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.360373 2017] [:error] [pid 19475] log = GraphiteLogger() # import-shared logger instance Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.360378 2017] [:error] [pid 19474] File "/usr/lib/python2.7/site-packages/graphite/logger.py", line 40, in __init__ Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.360380 2017] [:error] [pid 19475] File "/usr/lib/python2.7/site-packages/graphite/logger.py", line 40, in __init__ Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.360387 2017] [:error] [pid 19474] self.infoHandler = FileHandler(self.infoLogFile) Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.360389 2017] [:error] [pid 19475] self.infoHandler = FileHandler(self.infoLogFile) Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.360391 2017] [:error] [pid 19474] File "/usr/lib64/python2.7/logging/__init__.py", line 902, in __init__ Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.360393 2017] [:error] [pid 19475] File "/usr/lib64/python2.7/logging/__init__.py", line 902, in __init__ Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.363073 2017] [:error] [pid 19477] mod_wsgi (pid=19477): Target WSGI script '/usr/local/pf/conf/httpd.conf.d/graphite-web.wsgi' cannot be loaded as Python module. Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.363084 2017] [:error] [pid 19477] mod_wsgi (pid=19477): Exception occurred processing WSGI script '/usr/local/pf/conf/httpd.conf.d/graphite-web.wsgi'. Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.363097 2017] [:error] [pid 19477] Traceback (most recent call last): Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.363109 2017] [:error] [pid 19477] File "/usr/local/pf/conf/httpd.conf.d/graphite-web.wsgi", line 18, in <module> Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.363157 2017] [:error] [pid 19477] from graphite.logger import log Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.363163 2017] [:error] [pid 19477] File "/usr/lib/python2.7/site-packages/graphite/logger.py", line 84, in <module> Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.363196 2017] [:error] [pid 19477] log = GraphiteLogger() # import-shared logger instance Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.363204 2017] [:error] [pid 19477] File "/usr/lib/python2.7/site-packages/graphite/logger.py", line 40, in __init__ Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.363213 2017] [:error] [pid 19477] self.infoHandler = FileHandler(self.infoLogFile) Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.363217 2017] [:error] [pid 19477] File "/usr/lib64/python2.7/logging/__init__.py", line 902, in __init__ Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.365138 2017] [:error] [pid 19477] StreamHandler.__init__(self, self._open()) Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.365148 2017] [:error] [pid 19477] File "/usr/lib64/python2.7/logging/__init__.py", line 925, in _open Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.365160 2017] [:error] [pid 19477] stream = open(self.baseFilename, self.mode) Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.365173 2017] [:error] [pid 19477] IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/storage/log/webapp/info.log' Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.365977 2017] [:error] [pid 19476] mod_wsgi (pid=19476): Target WSGI script '/usr/local/pf/conf/httpd.conf.d/graphite-web.wsgi' cannot be loaded as Python module. Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.365988 2017] [:error] [pid 19476] mod_wsgi (pid=19476): Exception occurred processing WSGI script '/usr/local/pf/conf/httpd.conf.d/graphite-web.wsgi'. Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.366001 2017] [:error] [pid 19476] Traceback (most recent call last): Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.366009 2017] [:error] [pid 19475] StreamHandler.__init__(self, self._open()) Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.366014 2017] [:error] [pid 19476] File "/usr/local/pf/conf/httpd.conf.d/graphite-web.wsgi", line 18, in <module> Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.366018 2017] [:error] [pid 19475] File "/usr/lib64/python2.7/logging/__init__.py", line 925, in _open Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.366031 2017] [:error] [pid 19475] stream = open(self.baseFilename, self.mode) Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.366044 2017] [:error] [pid 19475] IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/storage/log/webapp/info.log' Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.366049 2017] [:error] [pid 19476] from graphite.logger import log Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.366055 2017] [:error] [pid 19476] File "/usr/lib/python2.7/site-packages/graphite/logger.py", line 84, in <module> Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.366086 2017] [:error] [pid 19476] log = GraphiteLogger() # import-shared logger instance Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.366093 2017] [:error] [pid 19476] File "/usr/lib/python2.7/site-packages/graphite/logger.py", line 40, in __init__ Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.366102 2017] [:error] [pid 19476] self.infoHandler = FileHandler(self.infoLogFile) Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.366105 2017] [:error] [pid 19476] File "/usr/lib64/python2.7/logging/__init__.py", line 902, in __init__ Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.366388 2017] [:error] [pid 19476] StreamHandler.__init__(self, self._open()) Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.366399 2017] [:error] [pid 19476] File "/usr/lib64/python2.7/logging/__init__.py", line 925, in _open Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.366409 2017] [:error] [pid 19476] stream = open(self.baseFilename, self.mode) Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.366421 2017] [:error] [pid 19476] IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/storage/log/webapp/info.log' Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.366749 2017] [:error] [pid 19474] StreamHandler.__init__(self, self._open()) Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.366757 2017] [:error] [pid 19474] File "/usr/lib64/python2.7/logging/__init__.py", line 925, in _open Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.366767 2017] [:error] [pid 19474] stream = open(self.baseFilename, self.mode) Jun 28 14:39:22 infnwebgw httpd_graphite_err: [Wed Jun 28 14:39:22.366779 2017] [:error] [pid 19474] IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/storage/log/webapp/info.log' [root@infnwebgw bin]# Jun 28 14:41:54 infnwebgw packetfence: INFO pfcmd.pl(20265): generating /usr/local/pf/var/conf/ssl-certificates.conf (pf::services::manager::httpd::generateCommonConfig) Jun 28 14:41:54 infnwebgw packetfence: INFO pfcmd.pl(20265): generating /usr/local/pf/var/conf/captive-portal-common (pf::services::manager::httpd::generateCommonConfig)


It seems to me that I miss at least the file /usr/local/pf/var/conf/local_settings.py but I don't know how to generate it.

Can you please help me?

Thank you in advance

Mirko

--

--------------------------------------------------------------------------------
Mirko Corosu
Network and System Administrator
I.N.F.N. Sezione di Genova
Via Dodecaneso 33, 16146
Genova
Tel. +39 010 3536361

I problemi più complessi hanno soluzioni semplici,
facili da comprendere e sbagliate.

For every complex problem there is an answer that is clear, simple, and wrong.

--------------------------------------------------------------------------------

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to