Originally created by: thejacts
Need better docs on installing ldap dependencies, and ldap auth provider is missing required methods. See http://mail-archives.apache.org/mod_mbox/incubator-allura-users/201304.mbox/%3CEB6FC32A33D349A8A57DBEBFB1C4F471@gmail.com%3E for more details
when i run this "paster setup-app development.ini" I am getting the error below
i followed the steps in readme.amrkdown and scm hosting.Please help me to fix this.
12:59:47,269 INFO [allura.model.artifact] Snapshot version 1 of <class 'forgewiki.model.wiki.page'="">
12:59:47,286 INFO [allura.model.notification] Notifications disabled for project u/test-user-0, not sending metadata(<page import_id="None" labels="I[]" deleted="False" text="u'Welcome" to="" your="" wiki!\n\nthis="" is="" the="" default="" page,="" edit="" it="" as="" you="" see="" fit.="" add="" a="" new="" page="" simply="" reference="" within="" brackets,="" e.g.:="" <span="">[SamplePage].\n\nThe wiki uses
Markdown
syntax.\n\n\</page></class>
Project Admins:
\n\[[download_button]]\n'
title=u'Home' tool_version=I{'Wiki': '0.0'} acl=I[]
version=1 mod_date=datetime.datetime(2013, 4, 16, 7, 29,
47, 264775) viewable_by=I
['all']
_id=ObjectId('516cfdebb1a5b64927aa9a0d')
app_config_id=ObjectId('516cfdebb1a5b64927aa9a06')>)
12:59:47,294 ERROR
[allura.model.project] userstats is not available
Traceback (most recent call last):
File "/home/pc247053/src/allura/Allura/allura/model/project.py", line 450, in install_anchored_tools
new_tools.append(self.install_app(tool, tool, label, i))
File "/home/pc247053/src/allura/Allura/allura/model/project.py", line 554, in install_app
app = App(self, cfg)
File "/home/pc247053/src/allura/ForgeUserStats/forgeuserstats/main.py", line 92, in
init
role_admin = M.ProjectRole.by_name('Admin')._id
AttributeError: 'NoneType' object has no attribute '_id'
12:59:47,329 INFO
[allura.model.artifact] Snapshot version 1 of <class 'forgewiki.model.wiki.page'="">
12:59:47,346 INFO
[allura.model.notification] Notifications disabled for project u/test-user-1, not sending metadata(<Page import_id=None labels=I[] deleted=False text=u'Welcome
</class>
Originally by: thejacts
when i change the auth_method to ldap in .ini file, I am unable to register a user and unable to login with ldap admin username saying internal server error
I attached the log file too.Please help me out
Last edit: Anonymous 2024-03-28
Originally by: thejacts
i Ran the test suite ALLURA_VALIDATION=none ./run_tests also,it skipped 4 test in ForgeBlog and 2 in ForgeWiki.Remaining are passed only.
Last edit: Anonymous 2024-03-28
Hi,
Our LDAP support is pretty old so it might not work, but I think the error you ran into is because the ldap libraries weren't installed. Try running
pip install python-ldap
to install it. And that requires some system libraries to be installed, which you can get on Ubuntu withapt-get install libldap2-dev
If you have further questions/discussion about this I'd recommend using our mailing list, which is better suited for general questions and more people may be able to respond. http://mail-archives.apache.org/mod_mbox/incubator-allura-users/ has info about how to subscribe to the list.
Originally by: thejacts
Hi
I installed the libldap2-dev in chroot environment.But still getting the same error
here i attach the logs.Please and check and let me know how to fix it.
Diff:
Originally by: *anonymous
Hi Allura Developers,
This is the error I am getting while running paster setup-app development.ini
INFO [allura.model.notification] Notifications disabled for project u/test-user, not sending metadata(<page import_id="None" labels="I[]" deleted="False" text="u'Welcome" to="" your="" wiki!\n\nthis="" is="" the="" default="" page,="" edit="" it="" as="" you="" see="" fit.="" add="" a="" new="" page="" simply="" reference="" within="" brackets,="" e.g.:="" <span="">[SamplePage].\n\nThe wiki uses Markdown syntax.\n\n\</page>
Project Admins:
14:45:24,577 ERROR [allura.model.project] userstats is not available
Traceback (most recent call last):
File "/home/pc247053/src/allura/Allura/allura/model/project.py", line 468, in install_anchored_tools
new_tools.append(self.install_app(tool, tool, label, i))
File "/home/pc247053/src/allura/Allura/allura/model/project.py", line 572, in install_app
app = App(self, cfg)
File "/home/pc247053/src/allura/ForgeUserStats/forgeuserstats/main.py", line 92, in init
role_admin = M.ProjectRole.by_name('Admin')._id
AttributeError: 'NoneType' object has no attribute '_id'
while registering a user the same error appeared in tg.log.I didnt see any user projects in the /var/scm/svn/p/ folder and didnt see svn/u/<registered user=""> folder also.</registered>
please help me in fixing this
Originally by: thejacts
I found c.project is none.That is giving attribute error.
I couldn't fix it.Please help.I have deadlines to finish the forge setup.
Originally by: rferreira-itav
Cheers I'm fixing LDAP support.
I have a fix hosted at https://sourceforge.net/u/rferreira-itav/allura/. The branch is tb-ldap
This seems to be be working against 1.0. So far I've:
Some missing bits:
Rui, that's great :) Is your branch something we should review for merging now? Or do we want to check on the "missing bits" first?
Originally by: rferreira-itav
Sorry Dave, it seems I completely missed the notification for your update.
The changes I've made should be ready to be merged. I'm just not sure if the ldap-setup.py is still working in ubuntu, but maybe that issue can be handled separately.
The test in
upload_sshkey
seems backwards (i.e., should beif not
).Seems like it to me too. We can probably go ahead with a merge, just changing that.
Merged