Unknown error after installation

1 view
Skip to first unread message

Harald Nikolaus

unread,
Feb 13, 2010, 2:14:21 PM2/13/10
to candiwi
Hi,
I am not sure where to post my problem, as it's probably not a bug
that should be added to the issue tracker. But I am kind of stuck, so
I am trying my luck here.
After installing candiwi on our Lenny web server (following the Lenny
install instructions), I get the error

"Sorry something bad just happend. An admin will be notified and look
into it as soon as possible."

Creating an account works, also creating a draft. But clicking on
Article List or History show the above error. Clicking on Drafts shows
my test draft, but clicking on that test draft again shows that
error.

I understand that I cannot expect personal support for this, but could
anyone point me to some log file or any hint that could help me solved
this?

Thanks & Greetings
Harald

mbarkhau

unread,
Feb 13, 2010, 2:24:32 PM2/13/10
to candiwi
> "Sorry something bad just happend. An admin will be notified and look
> into it as soon as possible."

Yes that is the generic error msg. The real one should have been
logged somewhere in your /tmp/ folder or in your apache error log.

One common error when setting up, is to forget chmod on the repository
directories. The apache process needs to have write access to the
directories specified by "MAIN_REPO" and "CLONE_DIR" in settings.py.

This would match your symptom, as all the places you mention an error
occurring involve access to the harddisk.

Harald Nikolaus

unread,
Feb 14, 2010, 8:22:09 AM2/14/10
to candiwi
Thanks for the quick reply

> Yes that is the generic error msg. The real one should have been
> logged somewhere in your /tmp/ folder or in your apache error log.
> One common error when setting up, is to forget chmod on the repository
> directories. The apache process needs to have write access to the
> directories specified by "MAIN_REPO" and "CLONE_DIR" in settings.py.

Actually, I had already set everything to www-data and 777 in my
desperation. And when creating a creating, it does write something, at
least into CLONE_DIR
Looking at /tmp/candiwi_candiwi_error.log showed me the error:

--------------------------

# ERROR TIME: 2010-02-14 14:04:03.223197
Traceback (most recent call last):
File "/var/www/vhosts/fachschaftskonferenz.de/subdomains/cw/httpdocs/
candiwi/articles/views.py", line 51, in list
articles = actrl.ls(proposal=proposal_title, revision=revision)
File "/var/www/vhosts/fachschaftskonferenz.de/subdomains/cw/httpdocs/
candiwi/common/decorators.py", line 35, in wrapper
kwargs['repo'] = DVCS.Repo(MAIN_REPO)
File "/var/www/vhosts/fachschaftskonferenz.de/subdomains/cw/httpdocs/
candiwi/dvcs/hg.py", line 73, in wrapper
result = func(*args, **kwargs)
File "/var/www/vhosts/fachschaftskonferenz.de/subdomains/cw/httpdocs/
candiwi/dvcs/hg.py", line 111, in __init__
self._ui = ui.ui()
File "/var/lib/python-support/python2.5/mercurial/ui.py", line 50,
in __init__
self.readconfig(util.rcpath())
File "/var/lib/python-support/python2.5/mercurial/ui.py", line 166,
in readconfig
self.fixconfig(root=root)
File "/var/lib/python-support/python2.5/mercurial/ui.py", line 222,
in fixconfig
self.interactive = self.isatty()
File "/var/lib/python-support/python2.5/mercurial/ui.py", line 74,
in isatty
ui._isatty = sys.stdin.isatty()
IOError: sys.stdin access restricted by mod_wsgi

--------------------------

Didn't tell me much, I googled and found this:
http://code.google.com/p/modwsgi/wiki/ApplicationIssues#Reading_From_Standard_Input
advicing me to set

WSGIRestrictStdin Off

in the Apache conf. Which I did, but then I got the errors

-----------------------------

# ERROR TIME: 2010-02-14 14:05:23.959074
Traceback (most recent call last):
File "/var/www/vhosts/fachschaftskonferenz.de/subdomains/cw/httpdocs/
candiwi/articles/views.py", line 51, in list
articles = actrl.ls(proposal=proposal_title, revision=revision)
File "/var/www/vhosts/fachschaftskonferenz.de/subdomains/cw/httpdocs/
candiwi/common/decorators.py", line 45, in wrapper
return func(*args, **kwargs)
File "/var/www/vhosts/fachschaftskonferenz.de/subdomains/cw/httpdocs/
candiwi/articles/control.py", line 74, in ls
articles = kwargs['repo'].files(revision=kwargs['revision'])
File "/var/www/vhosts/fachschaftskonferenz.de/subdomains/cw/httpdocs/
candiwi/dvcs/hg.py", line 73, in wrapper
result = func(*args, **kwargs)
File "/var/www/vhosts/fachschaftskonferenz.de/subdomains/cw/httpdocs/
candiwi/dvcs/hg.py", line 239, in files
paths = self._repo[revision].manifest().keys()
TypeError: 'localrepository' object is unsubscriptable

# ERROR TIME: 2010-02-14 14:05:46.708850
Traceback (most recent call last):
File "/var/www/vhosts/fachschaftskonferenz.de/subdomains/cw/httpdocs/
candiwi/proposals/views.py", line 181, in view
context_instance=RequestContext(request))
File "/var/lib/python-support/python2.5/django/shortcuts/
__init__.py", line 18, in render_to_response
return HttpResponse(loader.render_to_string(*args, **kwargs),
**httpresponse_kwargs)
File "/var/lib/python-support/python2.5/django/template/loader.py",
line 107, in render_to_string
return t.render(context_instance)
File "/var/lib/python-support/python2.5/django/template/
__init__.py", line 176, in render
return self.nodelist.render(context)
File "/var/lib/python-support/python2.5/django/template/
__init__.py", line 768, in render
bits.append(self.render_node(node, context))
File "/var/lib/python-support/python2.5/django/template/debug.py",
line 71, in render_node
result = node.render(context)
File "/var/lib/python-support/python2.5/django/template/
loader_tags.py", line 97, in render
return compiled_parent.render(context)
File "/var/lib/python-support/python2.5/django/template/
__init__.py", line 176, in render
return self.nodelist.render(context)
File "/var/lib/python-support/python2.5/django/template/
__init__.py", line 768, in render
bits.append(self.render_node(node, context))
File "/var/lib/python-support/python2.5/django/template/debug.py",
line 71, in render_node
result = node.render(context)
File "/var/lib/python-support/python2.5/django/template/
loader_tags.py", line 24, in render
result = self.nodelist.render(context)
File "/var/lib/python-support/python2.5/django/template/
__init__.py", line 768, in render
bits.append(self.render_node(node, context))
File "/var/lib/python-support/python2.5/django/template/debug.py",
line 71, in render_node
result = node.render(context)
File "/var/lib/python-support/python2.5/django/template/
defaulttags.py", line 246, in render
return self.nodelist_false.render(context)
File "/var/lib/python-support/python2.5/django/template/
__init__.py", line 768, in render
bits.append(self.render_node(node, context))
File "/var/lib/python-support/python2.5/django/template/debug.py",
line 71, in render_node
result = node.render(context)
File "/var/lib/python-support/python2.5/django/template/
defaulttags.py", line 245, in render
return self.nodelist_true.render(context)
File "/var/lib/python-support/python2.5/django/template/
__init__.py", line 768, in render
bits.append(self.render_node(node, context))
File "/var/lib/python-support/python2.5/django/template/debug.py",
line 81, in render_node
raise wrapped
TemplateSyntaxError: Caught an exception while rendering:
00changelog.i@508dbc4dc6ca: no node

-----------------------------

I am really kind of stuck here ...

Greetings
Harald

Manuel Barkhau

unread,
Feb 14, 2010, 1:43:33 PM2/14/10
to can...@googlegroups.com
> WSGIRestrictStdin Off

I don't have that in my httpd.conf but instead I have

WSGIRestrictedStdout On

No Idea if that is the problem.

I would also check in the candiwi/apache directory that in the three
generated files the BASEPATH has been correctly replaced by the
install script.

> "/var/www/vhosts/fachschaftskonferenz.de/subdomains/cw/httpdocs/
> candiwi/dvcs/hg.py", line 239, in files
>    paths = self._repo[revision].manifest().keys()
> TypeError: 'localrepository' object is unsubscriptable

My guess is that you have an old mercurial version
I have tested it with version 1.1.2 and 1.3.
Type hg --version and you should see which one you have, I would
suspect with lenny that it is still 0.9.

ciao
Manuel

Fabian Barkhau

unread,
Feb 15, 2010, 6:34:51 AM2/15/10
to can...@googlegroups.com
Mercurial version 1.2.1 should also work but I have not yet tested
with versions 1.4 and 1.4.1
I will try testing them this afternoon.

2010/2/14 Manuel Barkhau <mbar...@googlemail.com>:

--
#!/usr/bin/env python
import turtle
turtle.forward(100)

Fabian Barkhau

unread,
Feb 15, 2010, 1:31:49 PM2/15/10
to can...@googlegroups.com
Just tested candiwi with hg version 1.4.3 works fine.

2010/2/15 Fabian Barkhau <fabian....@googlemail.com>:

Reply all
Reply to author
Forward
0 new messages