hweb: nenhum modelo encontrado no Ubuntu

hweb: nenhum modelo encontrado no Ubuntu

Atualizei recentemente o Mercurial em meu servidor e agora estou recebendo os seguintes erros em meu script hgweb.cgi. Quando pesquiso on-line, só encontro tutoriais de configuração para máquinas Windows falando sobre modelos e até mesmo eles não especificam onde obter modelos. Alguém pode me ajudar a colocar meu servidor em funcionamento novamente?

[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

Responder1

Depois de muita pesquisa:

Adicione o seguinte ao seu arquivo hgweb.config:

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

informação relacionada