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 0AB081178E for ; Fri, 21 Feb 2014 02:19:37 +0000 (UTC) Received: (qmail 95043 invoked by uid 500); 21 Feb 2014 02:19:36 -0000 Delivered-To: apmail-bloodhound-user-archive@bloodhound.apache.org Received: (qmail 95014 invoked by uid 500); 21 Feb 2014 02:19:36 -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 94998 invoked by uid 99); 21 Feb 2014 02:19:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Feb 2014 02:19:35 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ryan.ollos@wandisco.com designates 209.85.216.173 as permitted sender) Received: from [209.85.216.173] (HELO mail-qc0-f173.google.com) (209.85.216.173) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Feb 2014 02:19:31 +0000 Received: by mail-qc0-f173.google.com with SMTP id i8so4787587qcq.18 for ; Thu, 20 Feb 2014 18:19:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wandisco.com; s=gapps; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=cAcBCLPVFHC+rjLwOHrahvY5+K6BMexLhVoDHD4WElM=; b=a371pSadVq1lU7TI8J0i29PSNbw+2adfp4OdpOMmo3XBFTlDWqV7cU6Lr4u1S/uIQI bOf2jL6eUk+JahvpIPU/a9TpMA2Yi8OlL6RArLY9JDx1BjTc6EaJD+OKgA9FE0UeSruO 7TXHmRq6g2uba4xMjkJuagZx8JETuIawO9mQ0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=cAcBCLPVFHC+rjLwOHrahvY5+K6BMexLhVoDHD4WElM=; b=RN5GmnIedxMEL2K9pU+WLEMJbFRcvQciGC0aWCivRkW/UoVKBhnvlF6WWnBulPVRcr dNzQ/PHj8C467cK5sr5zePptWSpx/1KS4C9H3kyYUneNbpXoauVtboOWk3O4fTzQS/LG 9fN2KiAsXeo+ayQbs2NGQ0zAv9J0f+vR+RJXdIiBPNYoldyWKQYrcqfKzAVUA/Cb8mkq /rxdAkr/5x9FIcU8b2rOapo/oQsovMoERuhD6AFjxAC6zfoees8QiAqoMDCCReF37uGA xluUbzS4uAc+bJaW5jnn8QLMbIWR4IDSqonDGmKXtg0wMzxEFKTQNRBulVqjqMkU/oM1 XfSw== X-Gm-Message-State: ALoCoQkx48+QmE6V83v3rUJ4Qkrx4PqLA76Bfx4dqnqcl2hGdX8COHf405tui0zd9aEU8Fkv2IMJ MIME-Version: 1.0 X-Received: by 10.140.107.53 with SMTP id g50mr5970520qgf.63.1392949150169; Thu, 20 Feb 2014 18:19:10 -0800 (PST) Received: by 10.229.65.132 with HTTP; Thu, 20 Feb 2014 18:19:10 -0800 (PST) In-Reply-To: References: <09375BF7-AC54-4BE8-9430-45669BA0348F@gustaveroussy.fr> <43CB979C-CB0F-4298-BB3E-D2102653E256@gustaveroussy.fr> Date: Thu, 20 Feb 2014 18:19:10 -0800 Message-ID: Subject: Re: Probleme with installation From: Ryan Ollos To: user@bloodhound.apache.org, guillaume.meurice@gustaveroussy.fr Content-Type: multipart/alternative; boundary=001a113a6a22496e7a04f2e13fe8 X-Virus-Checked: Checked by ClamAV on apache.org --001a113a6a22496e7a04f2e13fe8 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Feb 11, 2014 at 12:23 AM, Ryan Ollos wrote: > On Mon, Feb 10, 2014 at 10:31 AM, Guillaume Meurice < > guillaume.meurice@gustaveroussy.fr> wrote: > >> >> On Mon, Feb 10, 2014 at 10:18 AM, Guillaume Meurice < >> guillaume.meurice@gustaveroussy.fr> wrote: >> >>> Thanks for quick reply. >>> >>> Unfortunately, the link you gave me seems corrupted (I haven't been able >>> to untar the archive. >>> So I've downloaded the tar.gz from here : >>> https://archive.apache.org/dist/bloodhound/ >>> >> >> That is strange. I just pulled from one of the mirrors and had not >> problem extracting the archive. The checksum is correct too. Maybe you are >> just having trouble pulling from a particular mirror. >> >> >> yes probably. >> >> >> >> and re-reun the installation process. >>> >>> Still, I've been stuck at the same step : >>> =============================================================== >>> (bloodhound)[meurice@kototama : installer] $ python bloodhound_setup.py >>> >>> This installer is able to install Apache Bloodhound with either SQLite or >>> PostgreSQL databases. SQLite is an easier option for installing >>> Bloodhound as >>> SQLite is usually built into Python and also requires no special >>> permissions to >>> run. However, PostgreSQL is generally expected to be more robust for >>> production >>> use. >>> Do you want to install to a PostgreSQL database [Y/n]: n >>> >>> Please supply a username for the admin user [admin]: admin >>> Enter a new password for "admin": >>> Please reenter the password: >>> Initenv for >>> '/Users/meurice/Downloads/apache-bloodhound-0.7/installer/bloodhound/environments/main' >>> failed. >>> Wrong number of arguments: 3 >>> Traceback (most recent call last): >>> File "bloodhound_setup.py", line 458, in >>> bsetup.setup() >>> File "bloodhound_setup.py", line 244, in setup >>> self.writeconfig(baseini, [base_config, accounts_config]) >>> File "bloodhound_setup.py", line 313, in writeconfig >>> config.save() >>> File "build/bdist.macosx-10.6-universal/egg/trac/config.py", line 237, >>> in save >>> File "build/bdist.macosx-10.6-universal/egg/trac/util/__init__.py", >>> line 171, in __init__ >>> File >>> "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/tempfile.py", >>> line 293, in mkstemp >>> return _mkstemp_inner(dir, prefix, suffix, flags) >>> File >>> "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/tempfile.py", >>> line 228, in _mkstemp_inner >>> fd = _os.open(file, flags, 0600) >>> OSError: [Errno 2] No such file or directory: >>> '/Users/meurice/Downloads/apache-bloodhound-0.7/installer/bloodhound/environments/main/conf/base.ini-aryq5k' >>> (bloodhound)[meurice@kototama : installer] $ >>> =============================================================== >>> >> >> I'm not sure what is going on with that garbage being appended to the >> base.ini filename. I guess you are on OSX platform? >> >> >> yes, I'm under OSX 10.6.8. >> >> I'll investigate and get back to you. >> >> >> >> many thanks !! >> >> Bests, >> >> > > I hadn't looked closely enough at the traceback earlier. The "garbage" > being appended to the file is due to a temporary file being created in an > atomic save operation. In 0.8dev we've added (r1539120) a SystemExit in the > case of errors while creating the environment, which should give a cleaner > traceback. > > It seems like the significant part of the traceback is "Wrong number of > arguments: 3". We've seen an issue like that in the past due to spaces in > the path, > https://issues.apache.org/bloodhound/ticket/459 > > However, space in the path doesn't seem to be an issue here. I really > don't have any ideas of what the problem could be. > > Would you add the following print statement in bloodhound_setup.py? Maybe > that will give us a hint. > > --- bloodhound_setup.py.old 2014-02-11 00:18:38.860305578 -0800 > +++ bloodhound_setup.py 2014-02-11 00:18:44.452397897 -0800 > @@ -212,7 +212,6 @@ > trac = TracAdmin(os.path.abspath(new_env)) > if not trac.env_check(): > try: > + print options > trac.do_initenv('%(project)s %(db)s ' > '%(repo_type)s %(repo_path)s ' > '--inherit=%(inherit)s ' > > Hi Guillaume, did you have an success, or are you able to provide any more info? I don't have access to OSX to reproduce any potential issues, so I'm particularly interested to see if we can work through this one with you. I've cc'ed you on the email in case you aren't subscribed to the users mailing list, and in case you missed my previous follow-up. --001a113a6a22496e7a04f2e13fe8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On T= ue, Feb 11, 2014 at 12:23 AM, Ryan Ollos <ryan.ollos@wandisco.com> wrote:
On Mon, Feb 10, 2014 at 10:31 AM, Guillaume Meur= ice <guillaume.meurice@gustaveroussy.fr> wr= ote:

On M= on, Feb 10, 2014 at 10:18 AM, Guillaume Meurice <guillaum= e.meurice@gustaveroussy.fr> wrote:
Thanks for quick = reply.

Unfortunately, the link you gave me seems corrupted (I = haven't been able to untar the archive.
So I've downloaded the tar.gz from here :=A0

=
That is strange. I just pulled from one of the mirrors and had not problem = extracting the archive. The checksum is correct too. Maybe you are just hav= ing trouble pulling from a particular mirror.

yes probably.

=

and re-reun the installation proce= ss.

Still, I've been stuck at the same step := =A0
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
(bloodhou= nd)[meurice@kototama : installer] $ python bloodhound_setup.py=A0

This installer is able to install Apache Bloodhound with ei= ther SQLite or
PostgreSQL databases. SQLite is an easier option for installing Bloodh= ound as
SQLite is usually built into Python and also requires no = special permissions to
run. However, PostgreSQL is generally expe= cted to be more robust for production
use.
Do you want to install to a PostgreSQL database [Y/n]: = n

Please supply a username for the admin user [adm= in]: admin
Enter a new password for "admin":=A0
Please reenter the password:=A0
Initenv for '/Users/meur= ice/Downloads/apache-bloodhound-0.7/installer/bloodhound/environments/main&= #39; failed.=A0
Wrong number of arguments: 3
Traceback (most recent call last):
=A0 File "bloodhoun= d_setup.py", line 458, in <module>
=A0 =A0 bsetup.setu= p()
=A0 File "bloodhound_setup.py", line 244, in setup<= /div>
=A0 =A0 self.writeconfig(baseini, [base_config, accounts_config])
=A0 File "bloodhound_setup.py", line 313, in writeconfig
=A0 =A0 config.save()
=A0 File "build/bdist.mac= osx-10.6-universal/egg/trac/config.py", line 237, in save
=A0 File "build/bdist.macosx-10.6-universal/egg/trac/util/__init_= _.py", line 171, in __init__
=A0 File "/System/Library/= Frameworks/Python.framework/Versions/2.6/lib/python2.6/tempfile.py", l= ine 293, in mkstemp
=A0 =A0 return _mkstemp_inner(dir, prefix, suffix, flags)
= =A0 File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib= /python2.6/tempfile.py", line 228, in _mkstemp_inner
=A0 =A0= fd =3D _os.open(file, flags, 0600)
OSError: [Errno 2] No such file or directory: '/Users/meuric= e/Downloads/apache-bloodhound-0.7/installer/bloodhound/environments/main/co= nf/base.ini-aryq5k'
(bloodhound)[meurice@kototama : installer= ] $=A0
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=

I'm not sure what is going on with tha= t garbage being appended to the base.ini filename. I guess you are on OSX p= latform?

yes, I'm= under OSX 10.6.8.

I'll investigate and get back to you.


many thanks !!
<= br>
Bests,



I hadn't looked closely enough at the traceback earlier. The &= quot;garbage" being appended to the file is due to a temporary file be= ing created in an atomic save operation. In 0.8dev we've added (r153912= 0) a SystemExit in the case of errors while creating the environment, which= should give a cleaner traceback.

It = seems like the significant part of the traceback is "Wrong number of a= rguments: 3". We've seen an issue like that in the past due to spa= ces in the path,
<= br>
However, space in the path doesn't seem to be an issue he= re. I really don't have any ideas of what the problem could be.

Would you add the following print statement in bloodhou= nd_setup.py? Maybe that will give us a hint.

= --- bloodhound_setup.py.old 201= 4-02-11 00:18:38.860305578 -0800
+++ bloodhound_setup.py 20= 14-02-11 00:18:44.452397897 -0800
@@ -212,7 +212,6 @@
= =A0 =A0 =A0 =A0 =A0trac =3D TracAdmin(os.path.abspath(new_env))
= =A0 =A0 =A0 =A0 =A0if not trac.env_check():
=A0 =A0 =A0 =A0 =A0 =A0 =A0try:
+ =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0print options
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0trac.do_i= nitenv('%(project)s %(db)s '
=A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0'%(repo_type)s %(repo_path)s = 9;
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= 9;--inherit=3D%(inherit)s '


Hi Guillaume, did you have an success, or are you able to prov= ide any more info? I don't have access to OSX to reproduce any potentia= l issues, so I'm particularly interested to see if we can work through = this one with you.

I&#= 39;ve cc'ed you on the email in case you aren't subscribed to the u= sers mailing list, and in case you missed my previous follow-up.
--001a113a6a22496e7a04f2e13fe8--