hweb: Ubuntu にテンプレートが見つかりません

hweb: Ubuntu にテンプレートが見つかりません

最近、サーバーで Mercurial をアップグレードしたところ、hgweb.cgi スクリプトで次のエラーが発生しています。オンラインで検索すると、テンプレートについて説明している Windows マシンのセットアップ チュートリアルしか見つかりません。また、テンプレートの入手先も指定されていません。サーバーを再び稼働させるのを手伝ってくれる人はいませんか?

[Thu May 28 08:06:42 2015] [error] [client 213.135.239.28] (13)Permission denied: exec of '/var/www/mercurial/htdocs/hgweb.cgi' failed
[Thu May 28 08:06:42 2015] [error] [client 213.135.239.28] Premature end of script headers: hgweb.cgi
[Thu May 28 08:07:02 2015] [error] [client 213.135.239.28] (13)Permission denied: exec of '/var/www/mercurial/htdocs/hgweb.cgi' failed
[Thu May 28 08:07:02 2015] [error] [client 213.135.239.28] Premature end of script headers: hgweb.cgi
[Thu May 28 08:10:01 2015] [error] [client 213.135.239.28] Traceback (most recent call last):
[Thu May 28 08:10:01 2015] [error] [client 213.135.239.28]   File "/var/www/mercurial/htdocs/hgweb.cgi", line 19, in <module>
[Thu May 28 08:10:01 2015] [error] [client 213.135.239.28]     
[Thu May 28 08:10:01 2015] [error] [client 213.135.239.28] wsgicgi.launch(application)
[Thu May 28 08:10:01 2015] [error] [client 213.135.239.28]   File "/usr/lib/pymodules/python2.6/mercurial/hgweb/wsgicgi.py", line 76, in launch
[Thu May 28 08:10:01 2015] [error] [client 213.135.239.28]     
[Thu May 28 08:10:01 2015] [error] [client 213.135.239.28] content = application(environ, start_response)
[Thu May 28 08:10:01 2015] [error] [client 213.135.239.28]   File "/usr/lib/pymodules/python2.6/mercurial/hgweb/hgwebdir_mod.py", line 153, in __call__
[Thu May 28 08:10:01 2015] [error] [client 213.135.239.28]     
[Thu May 28 08:10:01 2015] [error] [client 213.135.239.28] return self.run_wsgi(req)
[Thu May 28 08:10:01 2015] [error] [client 213.135.239.28]   File "/usr/lib/pymodules/python2.6/mercurial/hgweb/hgwebdir_mod.py", line 183, in run_wsgi
[Thu May 28 08:10:01 2015] [error] [client 213.135.239.28]     
[Thu May 28 08:10:01 2015] [error] [client 213.135.239.28] tmpl = self.templater(req)
[Thu May 28 08:10:01 2015] [error] [client 213.135.239.28]   File "/usr/lib/pymodules/python2.6/mercurial/hgweb/hgwebdir_mod.py", line 435, in templater
[Thu May 28 08:10:01 2015] [error] [client 213.135.239.28]     
[Thu May 28 08:10:01 2015] [error] [client 213.135.239.28] style, mapfile = templater.stylemap(styles, self.templatepath)
[Thu May 28 08:10:01 2015] [error] [client 213.135.239.28]   File "/usr/lib/pymodules/python2.6/mercurial/templater.py", line 761, in stylemap
[Thu May 28 08:10:01 2015] [error] [client 213.135.239.28]     
[Thu May 28 08:10:01 2015] [error] [client 213.135.239.28] raise RuntimeError("No hgweb templates found in %r" % paths)
[Thu May 28 08:10:01 2015] [error] [client 213.135.239.28] RuntimeError
[Thu May 28 08:10:01 2015] [error] [client 213.135.239.28] : 
[Thu May 28 08:10:01 2015] [error] [client 213.135.239.28] No hgweb templates found in []
[Thu May 28 08:10:01 2015] [error] [client 213.135.239.28] 
[Thu May 28 08:10:01 2015] [error] [client 213.135.239.28] Premature end of script headers: hgweb.cgi

答え1

いろいろ検索した結果:

hgweb.config ファイルに次の内容を追加します。

[web]
templates = /usr/share/mercurial/templates

関連情報