2016-09-21 3 views
-2

Apache2에 오류가 있습니다.Apache2 로그 오류 추적

[ 2016-09-22 00:06:55.8065 31498/7ff59d1f8740 agents/Watchdog/Main.cpp:538 ]: Options: { 'analytics_log_user' => 'nobody', 'default_group' => 'nogroup', 'default_python' => 'python', 'default_ruby' => '/usr/bin/ruby', 'default_user' => 'nobody', 'log_level' => '0', 'max_pool_size' => '6', 'passenger_root' => '/usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini', 'passenger_version' => '4.0.53', 'pool_idle_time' => '300', 'temp_dir' => '/tmp', 'union_station_gateway_address' => 'gateway.unionstationapp.com', 'union_station_gateway_port' => '443', 'user_switching' => 'true', 'web_server_passenger_version' => '4.0.53', 'web_server_pid' => '31496', 'web_server_type' => 'apache', 'web_server_worker_gid' => '33', 'web_server_worker_uid' => '33' } 
[ 2016-09-22 00:06:55.8183 31501/7f99c561c740 agents/HelperAgent/Main.cpp:650 ]: PassengerHelperAgent online, listening at unix:/tmp/passenger.1.0.31496/generation-0/request 
[ 2016-09-22 00:06:55.8425 31507/7f8d9302e780 agents/LoggingAgent/Main.cpp:321 ]: PassengerLoggingAgent online, listening at unix:/tmp/passenger.1.0.31496/generation-0/logging 
[ 2016-09-22 00:06:55.8442 31498/7ff59d1f8740 agents/Watchdog/Main.cpp:728 ]: All Phusion Passenger agents started! 
[Thu Sep 22 00:06:55.850365 2016] [suexec:notice] [pid 31496] AH: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec) 
[Thu Sep 22 00:06:55.931920 2016] [auth_digest:notice] [pid 31518] AH01757: generating secret for digest authentication ... 
[Thu Sep 22 00:06:55.934507 2016] [:notice] [pid 31522] FastCGI: process manager initialized (pid 31522) 
[ 2016-09-22 00:06:55.9491 31524/7fd7b0c70740 agents/Watchdog/Main.cpp:538 ]: Options: { 'analytics_log_user' => 'nobody', 'default_group' => 'nogroup', 'default_python' => 'python', 'default_ruby' => '/usr/bin/ruby', 'default_user' => 'nobody', 'log_level' => '0', 'max_pool_size' => '6', 'passenger_root' => '/usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini', 'passenger_version' => '4.0.53', 'pool_idle_time' => '300', 'temp_dir' => '/tmp', 'union_station_gateway_address' => 'gateway.unionstationapp.com', 'union_station_gateway_port' => '443', 'user_switching' => 'true', 'web_server_passenger_version' => '4.0.53', 'web_server_pid' => '31518', 'web_server_type' => 'apache', 'web_server_worker_gid' => '33', 'web_server_worker_uid' => '33' } 
[ 2016-09-22 00:06:55.9612 31527/7f3a3c6c4740 agents/HelperAgent/Main.cpp:650 ]: PassengerHelperAgent online, listening at unix:/tmp/passenger.1.0.31518/generation-0/request 
[ 2016-09-22 00:06:55.9891 31534/7f4b93425780 agents/LoggingAgent/Main.cpp:321 ]: PassengerLoggingAgent online, listening at unix:/tmp/passenger.1.0.31518/generation-0/logging 
[ 2016-09-22 00:06:55.9895 31524/7fd7b0c70740 agents/Watchdog/Main.cpp:728 ]: All Phusion Passenger agents started! 
[Thu Sep 22 00:06:56.088702 2016] [:error] [pid 31518] python_init: Python version mismatch, expected '2.7.5+', found '2.7.9'. 
[Thu Sep 22 00:06:56.089019 2016] [:error] [pid 31518] python_init: Python executable found '/usr/bin/python'. 
[Thu Sep 22 00:06:56.089032 2016] [:error] [pid 31518] python_init: Python path being used '/usr/lib/python2.7/:/usr/lib/python2.7/plat-x86_64-linux-gnu:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload'. 
[Thu Sep 22 00:06:56.089096 2016] [:notice] [pid 31518] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads. 
[Thu Sep 22 00:06:56.089106 2016] [:notice] [pid 31518] mod_python: using mutex_directory /tmp 
[Thu Sep 22 00:06:56.140013 2016] [mpm_prefork:notice] [pid 31518] AH00163: Apache/2.4.10 (Debian) mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_fcgid/2.3.9 Phusion_Passenger/4.0.53 mod_python/3.3.1 Python/2.7.9 OpenSSL/1.0.1t configured -- resuming normal operations 
[Thu Sep 22 00:06:56.140121 2016] [core:notice] [pid 31518] AH00094: Command line: '/usr/sbin/apache2' 
+0

좋은 출발점 [아파치 프로젝트] (https://httpd.apache.org/) –

+0

나는, '2.7.5+'나는 당신의 키 오류가 파이썬 버전 불일치가 예상 '될 것으로 보인다 – BeFa

+0

잘 모릅니다 꽃 봉오리 발견으로 검색 '2.7.9'-이 버전이 무엇을 기대하며 구성 파일에서 이것을 어딘가에서 편집 할 수 있습니까? – halfer

답변

0

mod_python이 오류를 발생시키는 것 같습니다. 위해

[:error] python_init: Python version mismatch, expected '2.7.5+', found '2.7.9'

는 런타임과 동일한 버전을 사용 recompile mod_python 필요하거나 빨리 해결 단지 remove and reinstall mod_python로 할 그것을 제거합니다.

$ apt-get update 
$ apt-get remove libapache2-mod-python 
$ apt-get build-dep libapache2-mod-python 

당신은 mod_passengermod_python 모두 실행 것으로 보인다. 따라서 승객을 대신하여 파이썬 앱을 제공 할 수 있습니다. 이것은 passenger python how-to이며 mod_wsgi를보고 싶을 수도 있습니다.

파이썬 응용 프로그램을 제공하는 방법을 선택하고 필요하지 않은 모듈을 주석 처리하고 아파치를 다시 시작하십시오.

+1

mod_python이 공유 파이썬 라이브러리에 대해 컴파일되는 한 그 메시지는 실제 문제를 나타내서는 안됩니다. mod_python이 원래 Python 2.7.5에 대해 컴파일되었지만, Python이 Python 2.7.9로 업그레이드되었다는 것을 나타냅니다. 동일한 X.Y 버전이기 때문에 여전히 괜찮습니다. –