Re: trying to get prewikka started

Russell Fulton <[email protected]> Thu, 22 Jul 2010 15:18:37 +1200
Newsgroups gmane.comp.security.ids.prelude.user
Message-ID <[email protected]>
OK finally found the cause of the "userlink" issue.  As you suggested it was a password but not a user one.  I had complex passwords for the data base. 

Can one quote things in the conf file to get around this issue?

anyway I have now moved on to the next issue (well next issue +1 -- I found another python module I had to install :)


[Thu Jul 22 15:21:07 2010] [error] [client 130.216.67.1]   File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1537, in HandlerDispatch\n    default=default_handler, arg=req, silent=hlist.silent)
[Thu Jul 22 15:21:07 2010] [error] [client 130.216.67.1]   File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1202, in _process_target\n    module = import_module(module_name, path=path)
[Thu Jul 22 15:21:07 2010] [error] [client 130.216.67.1]   File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 304, in import_module\n    return __import__(module_name, {}, {}, ['*'])
[Thu Jul 22 15:21:07 2010] [error] [client 130.216.67.1]   File "/usr/lib/python2.5/site-packages/prewikka/ModPythonHandler.py", line 20, in <module>\n    from prewikka import Core, Request, localization
[Thu Jul 22 15:21:07 2010] [error] [client 130.216.67.1]   File "/usr/lib/python2.5/site-packages/prewikka/Core.py", line 23, in <module>\n    import prewikka.views
[Thu Jul 22 15:21:07 2010] [error] [client 130.216.67.1]   File "/usr/lib/python2.5/site-packages/prewikka/views/__init__.py", line 21, in <module>\n    from prewikka.views import \\
[Thu Jul 22 15:21:07 2010] [error] [client 130.216.67.1] ImportError: cannot import name messagelisting

rful011@test-vm1:~$ ls /usr/lib/python2.5/site-packages/prewikka/views/
alertlisting.py   commands.py   filter.py   heartbeatlisting.py   __init__.py   messagedetails.py   messagelisting.py   messagesummary.py   misc.py   sensor.py   stats.py   usermanagement.py
alertlisting.pyc  commands.pyc  filter.pyc  heartbeatlisting.pyc  __init__.pyc  messagedetails.pyc  messagelisting.pyc  messagesummary.pyc  misc.pyc  sensor.pyc  stats.pyc  usermanagement.pyc

All files are world readable??  I am no expert on python si I have no idea what might stop a module loading

Russell

On 6/05/2010, at 8:45 AM, Russell Fulton wrote:

> 
> On 6/05/2010, at 1:47 AM, Yoann Vandoorselaere wrote:
> 
>> 
>> Le mercredi 05 mai 2010 à 08:49 +1200, Russell Fulton a écrit :
>>> On 5/05/2010, at 3:02 AM, Yoann Vandoorselaere wrote:
>>>> Le mardi 04 mai 2010 à 15:04 +1200, Russell Fulton a écrit :
>>>>> Hi
>>>>> 
>>>>> Trying to install prelude (1.0.0) and friends on RHE 5 from tarballs.
>>>>> using mysql  on local host
>>>>> running cgi version (no mod_python) 
>>>> 
>>>> [...]
>>>> 
>>>>> [Tue May 04 14:19:42 2010] [error] [client 130.216.67.1]   File "/usr/lib/python2.4/site-packages/prewikka/templates/ClassicLayout.py", line 243, in toplayout_content
>>>>> [Tue May 04 14:19:42 2010] [error] [client 130.216.67.1]     
>>>>> [Tue May 04 14:19:42 2010] [error] [client 130.216.67.1] _v = VFSL([locals()]+SL+[globals(), builtin],"unicode",False)(VFSL([locals()]+SL+[globals(), builtin],"_",False)("%(username)s on %(dae)s") % { "username": VFSL([locals()]+SL+[globals(), builtin],"prewikka.userlink",True), "date": VFSL([locals()]+SL+[globals(), builtin],"prewikka.date",True) }) # u'$unicode($_("%(username)son %(date)s") % { "username": $prewikka.userlink, "date": $prewikka.date })' on line 28, col 8uiltin],"unicode",False)(VFSL([locals()]+SL+[globals(), builtin],"_",False)("%(username)s on %(da
>>>> 
>>>> Could you please provides details on the authentication module
>>>> configured in /etc/prewikka/prewikka.conf ?
>>> 
>>> # Standard login / password authentication:
>>> [auth loginpassword]
>>> expiration: 60
>>> # If there is no user with administrative right defined in the database,
>>> # the initial user will be created according to these settings:
>>> initial_admin_user: admin
>>> initial_admin_pass: xxxxx
>> 
>> Thanks, additionally, is there anything special about the username being
>> used to connect (special, non ascii character), or are you using
>> Prewikka in a specific language?
>> 
> 
> no -- I have  not changed the language setting and this happens on initial connection so I have not had a chance to put a user name in.  Some suggested that it was a python version issue I'm on RHE 5 which ships with 2.4 (I think) I did check and it was lower than what they suggested was necessary.
> 
> R

_______________________________________________
Prelude-user site list
[email protected]
http://lists.prelude-technologies.com/mailman/listinfo/prelude-user