Return-Path: X-Original-To: apmail-bloodhound-user-archive@www.apache.org Delivered-To: apmail-bloodhound-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D043910CC0 for ; Tue, 30 Jul 2013 10:40:51 +0000 (UTC) Received: (qmail 75341 invoked by uid 500); 30 Jul 2013 10:40:51 -0000 Delivered-To: apmail-bloodhound-user-archive@bloodhound.apache.org Received: (qmail 75296 invoked by uid 500); 30 Jul 2013 10:40:50 -0000 Mailing-List: contact user-help@bloodhound.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@bloodhound.apache.org Delivered-To: mailing list user@bloodhound.apache.org Received: (qmail 75285 invoked by uid 99); 30 Jul 2013 10:40:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jul 2013 10:40:49 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [74.125.83.44] (HELO mail-ee0-f44.google.com) (74.125.83.44) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jul 2013 10:40:45 +0000 Received: by mail-ee0-f44.google.com with SMTP id b47so1151073eek.3 for ; Tue, 30 Jul 2013 03:40:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=o7vCQNJ7jJOilvOU1d6i56GUI2sFGe3W6uIHr3lycHw=; b=jS/rOB0PiLRQbdiieZUmeQPd4zFD2kvIwqypAkW57XmWdQ4L3z2q6s/kGJoK7fpgqv +Y2vy9FcTQPwsvNQy6/t7NusR35U8hZ+5Czp5RvNjRyjBx9rl4wq+BKLoL5Ved6PGsQn E/jwakc3Ld1+eX1vXyFcQ5sy17Q2FoyajXi4+zu2w3IK7C1lwEROoAauIYNQw1jOAnsE humUjHy7opJz11gE7g8cJCcQA14jMDmP4KjFOfSBmuiZMX8xoPi8Z24glUrxHJ9yK0bo GAwWCeJ6g9Lkx+YnxHlaf/WtpHgNtvY/HQd+K1f6L3WRh+4vhUEoYg67GiOyvns29+s3 uxdQ== X-Received: by 10.14.225.72 with SMTP id y48mr5627992eep.131.1375180801082; Tue, 30 Jul 2013 03:40:01 -0700 (PDT) Received: from [10.17.2.201] (BSN-61-12-232.dial-up.dsl.siol.net. [86.61.12.232]) by mx.google.com with ESMTPSA id n42sm109584350eeh.15.2013.07.30.03.39.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 30 Jul 2013 03:40:00 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Apple Message framework v1283) Subject: Re: Bloodhound Login Error From: =?utf-8?Q?Matev=C5=BE_Brada=C4=8D?= In-Reply-To: Date: Tue, 30 Jul 2013 12:39:58 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <4EAAB9C8-26D0-424E-A441-6658F753BAAD@digiverse.si> References: <212FE25C-12A0-4A9C-B9F8-831CE19DDF1B@digiverse.si> <51F78738.5090503@wandisco.com> To: user@bloodhound.apache.org X-Mailer: Apple Mail (2.1283) X-Gm-Message-State: ALoCoQmr/6Xg5m+M0nldn9DiirirnAog9WqB3iCdf9i0WpklCm8UJHS/MhH1qr1akIphFZcpMM6C X-Virus-Checked: Checked by ClamAV on apache.org On 30. Jul, 2013, at 11:57, Pedro Estrela wrote: > No it wasn't. Sorry about that. >=20 > Here it is now: >=20 > " > [root@lbtvmcentosbug /]# cd var > [root@lbtvmcentosbug var]# cd www > [root@lbtvmcentosbug www]# cd bloodhound/ > [root@lbtvmcentosbug bloodhound]# cd installer/ > [root@lbtvmcentosbug installer]# ls > bloodhound createdigest.pyc requirements-dev.txt > bloodhound_setup.py pgrequirements.txt requirements.txt > createdigest.py README.rst tests.py > [root@lbtvmcentosbug installer]# cd bloodhound > [root@lbtvmcentosbug bloodhound]# dir > bin bloodhound environments include lib lib64 site > [root@lbtvmcentosbug bloodhound]# source ./bin/activate > (bloodhound)[root@lbtvmcentosbug bloodhound]# python > Python 2.6.6 (r266:84292, Feb 22 2013, 00:00:18)=20 > [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> import genshi > >>> import babel > >>> import themeengine > >>> import acct_mgr > >>> import bhtheme > >>> import bhdashboard > >>> import bhsearch > >>> import multiproduct > >>> import bhrelations > >>> exit() > (bloodhound)[root@lbtvmcentosbug bloodhound]# python > Python 2.6.6 (r266:84292, Feb 22 2013, 00:00:18)=20 > [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> from trac.env import open_environment as oe > >>> env =3D = oe('/var/www/bloodhound/installer/bloodhound/environments/main') > >>> import acct_mgr.web_ui > >>> env[web_ui.LoginModule] > Traceback (most recent call last): > File "", line 1, in > NameError: name 'web_ui' is not defined > >>>=20 Ok that seems better, could you look at the file = /var/www/bloodhound/installer/bloodhound/environments/main/conf/base.ini there should be the following acct_mgr entries under [components]: acct_mgr.admin.* =3D enabled acct_mgr.api.accountmanager =3D enabled acct_mgr.guard.accountguard =3D enabled acct_mgr.htfile.htdigeststore =3D enabled acct_mgr.web_ui.accountmodule =3D enabled acct_mgr.web_ui.loginmodule =3D enabled Then also please check which acct_mgr .py files were installed for the virtual env, they should be in the = /var/www/bloodhound/installer/bloodhound/lib/python/site-packages= /acct_mgr >=20 >=20 > " >=20 >=20 > 2013/7/30 Gary Martin > Can we be careful to distinguish which environments you are trying = this in. Is this in the activated bloodhound virtualenv? >=20 > Cheers, > Gary >=20 >=20 > On 30/07/13 10:17, Pedro Estrela wrote: > Yes i did all as root. >=20 >=20 > [root@lbtvmcentosbug Desktop]# python > Python 2.6.6 (r266:84292, Feb 22 2013, 00:00:18) > [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> import genshi > >>> import babel > >>> import themeengine > >>> import acct_mgr > Traceback (most recent call last): > File "", line 1, in > ImportError: No module named acct_mgr > >>> import bhtheme > >>> import bhdashboard > >>> import bhsearch > >>> import multiproduct > >>> import bhrelations > >>> >=20 > this is my output, i guess i'm having some troubles with acct_mgr >=20 >=20 >=20 > 2013/7/30 Matev=C5=BE Brada=C4=8D > >=20 >=20 > On 30. Jul, 2013, at 10:45, Pedro Estrela wrote: >=20 > > I'm running as root. > > > > Here is the result of pip freeze: > > > > " > > Warning: cannot find svn location for > BloodhoundMultiProduct=3D=3D0.7.0dev-r1506070 > > Warning: cannot find svn location for > BloodhoundRelationsPlugin=3D=3D0.7.0dev-r1503571 > > Warning: cannot find svn location for > BloodhoundTheme=3D=3D0.7.0dev-r1506038 > > Warning: cannot find svn location for > BloodhoundSearchPlugin=3D=3D0.7.0dev-r1503560 > > Warning: cannot find svn location for > BloodhoundDashboardPlugin=3D=3D0.7.0dev-r1505871 > > Warning: cannot find svn location for = PEAK-Rules=3D=3D0.5a1.dev-r2582 > > AddOns=3D=3D0.6 > > Babel=3D=3D0.9.4 > > Beaker=3D=3D1.3.1 > > ## FIXME: could not find svn URL in dependency_links for this > package: > > BloodhoundDashboardPlugin=3D=3D0.7.0dev-r1505871 > > ## FIXME: could not find svn URL in dependency_links for this > package: > > BloodhoundMultiProduct=3D=3D0.7.0dev-r1506070 > > ## FIXME: could not find svn URL in dependency_links for this > package: > > BloodhoundRelationsPlugin=3D=3D0.7.0dev-r1503571 > > ## FIXME: could not find svn URL in dependency_links for this > package: > > BloodhoundSearchPlugin=3D=3D0.7.0dev-r1503560 > > ## FIXME: could not find svn URL in dependency_links for this > package: > > BloodhoundTheme=3D=3D0.7.0dev-r1506038 > > BytecodeAssembler=3D=3D0.5.1 > > Cheetah=3D=3D2.4.1 > > DecoratorTools=3D=3D1.7 > > Extremes=3D=3D1.1 > > FormEncode=3D=3D1.2.2 > > Genshi=3D=3D0.6 > > Magic-file-extensions=3D=3D0.1 > > Mako=3D=3D0.3.4 > > Markdown=3D=3D2.0.1 > > MarkupSafe=3D=3D0.9.2 > > MySQL-python=3D=3D1.2.3c1 > > Myghty=3D=3D1.1 > > ## FIXME: could not find svn URL in dependency_links for this > package: > > PEAK-Rules=3D=3D0.5a1.dev-r2582 > > Paste=3D=3D1.7.4 > > PasteDeploy=3D=3D1.3.3 > > PasteScript=3D=3D1.7.3 > > PyGreSQL=3D=3D3.8.1 > > Pygments=3D=3D1.1.1 > > Pylons=3D=3D0.9.7 > > Routes=3D=3D1.10.3 > > SQLAlchemy=3D=3D0.5.5 > > SSSDConfig=3D=3D1.9.2 > > SetupDocs=3D=3D1.0.5 > > SymbolType=3D=3D1.0 > > Tempita=3D=3D0.4 > > ToscaWidgets=3D=3D0.9.8 > > Trac=3D=3D1.0.1 > > TracAccountManager=3D=3D0.4.3 > > TracPermRedirect=3D=3D3.0 > > TracThemeEngine=3D=3D2.2.0 > > TurboGears2=3D=3D2.0.3 > > TurboJson=3D=3D1.2.1 > > WebError=3D=3D0.10.2 > > WebFlash=3D=3D0.1a9 > > WebHelpers=3D=3D0.6.4 > > WebOb=3D=3D0.9.6.1 > > WebTest=3D=3D1.2 > > Whoosh=3D=3D2.4.1 > > cas=3D=3D0.15 > > cups=3D=3D1.0 > > cupshelpers=3D=3D1.0 > > decorator=3D=3D3.0.1 > > distribute=3D=3D0.6.10 > > ethtool=3D=3D0.6 > > firstboot=3D=3D1.110 > > freeipa=3D=3D2.0.0.alpha.0 > > iniparse=3D=3D0.3.1 > > iotop=3D=3D0.3.2 > > ipapython=3D=3D3.0.0 > > iwlib=3D=3D1.0 > > kerberos=3D=3D1.0 > > luci=3D=3D0.26.0 > > lxml=3D=3D2.2.3 > > matplotlib=3D=3D0.99.1.1 > > netaddr=3D=3D0.7.5 > > nose=3D=3D0.10.4 > > numpy=3D=3D1.4.1 > > paramiko=3D=3D1.7.5 > > pexpect=3D=3D2.3 > > policycoreutils-default-encoding=3D=3D0.1 > > prioritized-methods=3D=3D0.2.1 > > psycopg2=3D=3D2.0.14 > > pyOpenSSL=3D=3D0.10 > > pyasn1=3D=3D0.0.12a > > pycrypto=3D=3D2.0.1 > > pycurl=3D=3D7.19.0 > > pygpgme=3D=3D0.1 > > python-dateutil=3D=3D1.4.1 > > python-default-encoding=3D=3D0.1 > > python-ldap=3D=3D2.3.10 > > python-meh=3D=3D0.11 > > python-memcached=3D=3D1.43 > > python-nss=3D=3D0.13 > > pytz=3D=3D2010h > > pyxdg=3D=3D0.18 > > qpid-python=3D=3D0.14 > > qpid-tools=3D=3D0.14 > > repoze.tm2=3D=3D1.0a4 > > repoze.what=3D=3D1.0.8 > > repoze.what-pylons=3D=3D1.0 > > repoze.who=3D=3D1.0.18 > > repoze.who-friendlyform=3D=3D1.0.8 > > repoze.who-testutil=3D=3D1.0rc1 > > scdate=3D=3D1.9.60 > > sckdump=3D=3D2.0.5 > > scservices=3D=3D0.99.45 > > scservices.dbus=3D=3D0.99.45 > > setools=3D=3D1.0 > > simplejson=3D=3D2.0.9 > > slip=3D=3D0.2.20 > > slip.dbus=3D=3D0.2.20 > > slip.gtk=3D=3D0.2.20 > > smbc=3D=3D1.0 > > sqlparse=3D=3D0.1.7 > > suds=3D=3D0.4.1 > > transaction=3D=3D1.0.1 > > urlgrabber=3D=3D3.9.1 > > virtualenv=3D=3D1.9.1 > > yum-metadata-parser=3D=3D1.1.2 > > zope.interface=3D=3D3.5.2 > > zope.sqlalchemy=3D=3D0.4 > > " > > >=20 > Hmm, it does seem to be installed. > Are you also running Olemis' tests as root? >=20 > Could you also check that the top level BH/Trac modules can be > imported > properly by the python interpreter, e.g.: > {{{#!py > import genshi > import babel > import themeengine > import acct_mgr > import bhtheme > import bhdashboard > import bhsearch > import multiproduct > import bhrelations > }}} >=20 > > > > 2013/7/30 Matev=C5=BE Brada=C4=8D > >=20 > > > > On 30. Jul, 2013, at 10:20, Pedro Estrela wrote: > > > > > ">>> import acct_mgr.web_ui > > > Traceback (most recent call last): > > > File "", line 1, in > > > ImportError: No module named acct_mgr.web_ui" > > > > > > I guess is missing something > > > > Most likely it's not installed. Could you please provide the > output of > > pip freeze > > command so that we can determine which modules have been > installed in > > the environment? > > > > Also, how are you running your web server - as admin/root, or as = a > > separate user? > > > > > > > > > > > 2013/7/30 Olemis Lang > >=20 > > > On 7/29/13, Pedro Estrela > wrote: > > > > Hi, > > > > > > > > > > :) > > > > > > [...] > > > > Can you please tell me what i did wrong? This is the error > that i get: > > > > > > > > "Error: Not Found > > > > No handler matched request to /login" > > > > > > > > > > This is an indication of the fact that account manager plugin > has not > > > been ( detected / loaded / enabled ). Could you please launch = your > > > python interpreter, execute the following code and tell us > what's the > > > result ? Is it even close to what you see below? > > > > > > {{{#!py > > > > > > >>> from trac.env import open_environment as oe > > > >>> env =3D oe('/path/to/bh/env') > > > >>> import acct_mgr.web_ui > > > >>> env[web_ui.LoginModule] > > > > > > }}} > > > > > > -- > > > Regards, > > > > > > Olemis - @olemislc > > > > > > Apache=E2=84=A2 Bloodhound contributor > > > http://issues.apache.org/bloodhound > > > http://blood-hound.net > > > > > > Blog ES: http://simelo-es.blogspot.com/ > > > Blog EN: http://simelo-en.blogspot.com/ > > > > > > Featured article: > > > > > > > >=20 >=20 >=20 >=20