hweb: no se encontraron plantillas en Ubuntu

hweb: no se encontraron plantillas en Ubuntu

Recientemente actualicé Mercurial en mi servidor y ahora recibo los siguientes errores para mi script hgweb.cgi. Cuando lo busco en línea, solo encuentro tutoriales de configuración para máquinas con Windows que hablan sobre plantillas e incluso no especifican dónde obtener las plantillas. ¿Alguien puede ayudarme a hacer que mi servidor vuelva a funcionar?

[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

Respuesta1

Después de mucha búsqueda:

Agregue lo siguiente a su archivo hgweb.config:

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

información relacionada