[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-users:56689] apache2のwsgiがうまく動きません。



こんにちは松尾です。

いつの間にかapache2のwsgiがうまく動かなくなって悩んでいます。
すべてパッケージをインストールしていて、
自分でコンパイルしたものは入ってません。

wsgiで使っているのはradicaleというCalDAVサーバーで
http://radicale.org/user_documentation/#apache-and-mod-wsgi
の通りにしています。

アドバイスいただけないでしょうか?
よろしくお願いします。

■debianバージョン
cat /etc/debian_version
7.0

■apache 関連インストールパッケージ
dpkg -l | grep apache
ii  apache2                              2.2.22-12
   i386         Apache HTTP Server metapackage
ii  apache2-doc                          2.2.22-12
   all          Apache HTTP Server documentation
ii  apache2-mpm-prefork                  2.2.22-12
   i386         Apache HTTP Server - traditional non-threaded model
ii  apache2-utils                        2.2.22-12
   i386         utility programs for webservers
ii  apache2.2-bin                        2.2.22-12
   i386         Apache HTTP Server common binary files
ii  apache2.2-common                     2.2.22-12
   i386         Apache HTTP Server common files
ii  libapache2-mod-musicindex            1.3.7-2+b1
   i386         Browse, stream, download and search through
MP3/Ogg/FLAC/MP4 files
ii  libapache2-mod-perl2                 2.0.7-2
   i386         Integration of perl with the Apache2 web server
ii  libapache2-mod-php5                  5.4.4-10
   i386         server-side, HTML-embedded scripting language (Apache 2
module)
ii  libapache2-mod-wsgi                  3.3-4
   i386         Python WSGI adapter module for Apache
ii  libapache2-reload-perl               0.12-1
   all          module for reloading Perl modules when changed on disk

■radicale 関連パッケージ
dpkg -l | grep radicale
ii  python-radicale                      0.7-1
   all          simple calendar server - module
ii  radicale                             0.7-1
   all          simple calendar server - daemon


■apache 起動時

[Fri Jan 18 00:08:59 2013] [warn] RSA server certificate wildcard
CommonName (CN) `**************' does NOT match server name!?
[Fri Jan 18 00:08:59 2013] [warn] Init: Name-based SSL virtual hosts
only work for clients with TLS server name indication support (RFC 4366)
[Fri Jan 18 00:08:59 2013] [notice] Digest: generating secret for digest
authentication ...
[Fri Jan 18 00:08:59 2013] [notice] Digest: done
[Fri Jan 18 00:08:59 2013] [warn] RSA server certificate wildcard
CommonName (CN) `**************' does NOT match server name!?
[Fri Jan 18 00:08:59 2013] [warn] Init: Name-based SSL virtual hosts
only work for clients with TLS server name indication support (RFC 4366)
[Fri Jan 18 00:08:59 2013] [warn] mod_wsgi: Compiled for Python/2.7.2+.
[Fri Jan 18 00:08:59 2013] [warn] mod_wsgi: Runtime using Python/2.7.3.
[Fri Jan 18 00:08:59 2013] [notice] Apache/2.2.22 (Debian) DAV/2
PHP/5.4.4-10 mod_ssl/2.2.22 OpenSSL/1.0.1c mod_wsgi/3.3 Python/2.7.3
mod_musicindex/1.3.7 mod_perl/2.0.7 Perl/v5.14.2 configured -- resuming
normal operations

■apache のエラー

[Fri Jan 18 05:04:37 2013] [error] [client 192.168.1.5] mod_wsgi
(pid=6738): Exception occurred processing WSGI script
'/var/www-calendar/radicale.wsgi'.
[Fri Jan 18 05:04:37 2013] [error] [client 192.168.1.5] Traceback (most
recent call last):
[Fri Jan 18 05:04:37 2013] [error] [client 192.168.1.5]   File
"/usr/lib/python2.7/dist-packages/radicale/__init__.py", line 202, in
__call__
[Fri Jan 18 05:04:37 2013] [error] [client 192.168.1.5]     status,
headers, answer = function(environ, items, content, None)
[Fri Jan 18 05:04:37 2013] [error] [client 192.168.1.5]   File
"/usr/lib/python2.7/dist-packages/radicale/__init__.py", line 415, in
propfind
[Fri Jan 18 05:04:37 2013] [error] [client 192.168.1.5]
environ["PATH_INFO"], content, collections, user)
[Fri Jan 18 05:04:37 2013] [error] [client 192.168.1.5]   File
"/usr/lib/python2.7/dist-packages/radicale/xmlutils.py", line 203, in
propfind
[Fri Jan 18 05:04:37 2013] [error] [client 192.168.1.5]     response =
_propfind_response(path, collection, props, user)
[Fri Jan 18 05:04:37 2013] [error] [client 192.168.1.5]   File
"/usr/lib/python2.7/dist-packages/radicale/xmlutils.py", line 213, in
_propfind_response
[Fri Jan 18 05:04:37 2013] [error] [client 192.168.1.5]     with
item.props as properties:
[Fri Jan 18 05:04:37 2013] [error] [client 192.168.1.5]   File
"/usr/lib/python2.7/contextlib.py", line 17, in __enter__
[Fri Jan 18 05:04:37 2013] [error] [client 192.168.1.5]     return
self.gen.next()
[Fri Jan 18 05:04:37 2013] [error] [client 192.168.1.5]   File
"/usr/lib/python2.7/dist-packages/radicale/storage/filesystem.py", line
109, in props
[Fri Jan 18 05:04:37 2013] [error] [client 192.168.1.5]
properties.update(json.load(prop_file))
[Fri Jan 18 05:04:37 2013] [error] [client 192.168.1.5]   File
"/usr/lib/python2.7/json/__init__.py", line 278, in load
[Fri Jan 18 05:04:37 2013] [error] [client 192.168.1.5]     **kw)
[Fri Jan 18 05:04:37 2013] [error] [client 192.168.1.5]   File
"/usr/lib/python2.7/json/__init__.py", line 326, in loads
[Fri Jan 18 05:04:37 2013] [error] [client 192.168.1.5]     return
_default_decoder.decode(s)
[Fri Jan 18 05:04:37 2013] [error] [client 192.168.1.5]   File
"/usr/lib/python2.7/json/decoder.py", line 365, in decode
[Fri Jan 18 05:04:37 2013] [error] [client 192.168.1.5]     obj, end =
self.raw_decode(s, idx=_w(s, 0).end())
[Fri Jan 18 05:04:37 2013] [error] [client 192.168.1.5]   File
"/usr/lib/python2.7/json/decoder.py", line 383, in raw_decode
[Fri Jan 18 05:04:37 2013] [error] [client 192.168.1.5]     raise
ValueError("No JSON object could be decoded")
[Fri Jan 18 05:04:37 2013] [error] [client 192.168.1.5] ValueError: No
JSON object could be decoded