Re: svn+ssh repos on 1.1alpha2

2009-11-17 Thread Dmitry Konyshev
RB actually told me that it needs the ~/.ssh directory to write to and
the error popped up after I created the directory and repeated my
attempt to set up the repository.

Regards,
Dmitry

On Sun, 15 Nov 2009 19:05:35 -0800
Christian Hammond  wrote:

> Looks like a path that broke. This is just in an error case, though.
> What it would have said is that it couldn't write to the host keys
> file, which would be the ".ssh/known_hosts" file in your Apache
> user's directory.
> 
> The important thing to note (and this is currently beyond our
> control) is that the Apache user must have a home directory and must
> be able to write to it. Most tools we use to talk to repositories end
> up calling ssh, which will look in ~/.ssh/known_hosts for the Apache
> user for the verification of the host, and we can't pass this to the
> ssh process.
> 
> Christian
> 

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en


Re: svn+ssh repos on 1.1alpha2

2009-11-15 Thread Christian Hammond
Looks like a path that broke. This is just in an error case, though. What it
would have said is that it couldn't write to the host keys file, which would
be the ".ssh/known_hosts" file in your Apache user's directory.

The important thing to note (and this is currently beyond our control) is
that the Apache user must have a home directory and must be able to write to
it. Most tools we use to talk to repositories end up calling ssh, which will
look in ~/.ssh/known_hosts for the Apache user for the verification of the
host, and we can't pass this to the ssh process.

Christian

-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com


On Sun, Nov 15, 2009 at 6:30 PM, Dmitry Konyshev
wrote:

>
> Hi guys,
>
> I've got the "Something broke" error and the following trace when I was
> trying to set up an svn+ssh repository:
>
> Traceback (most recent call last):
>
>  File
>
>  
> "/usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/core/handlers/base.py",
>  line 92, in get_response response = callback(request, *callback_args,
>  **callback_kwargs)
>
>  File
>
>  
> "/usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/contrib/admin/sites.py",
>  line 490, in root return self.model_page(request, *url.split('/', 2))
>
>  File
>
>  
> "/usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/views/decorators/cache.py",
>  line 44, in _wrapped_view_func response = view_func(request, *args,
>  **kwargs)
>
>  File
>
>  
> "/usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/contrib/admin/sites.py",
>  line 509, in model_page return admin_obj(request, rest_of_url)
>
>  File
>
>  
> "/usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/contrib/admin/options.py",
>  line 1098, in __call__ return self.change_view(request, unquote(url))
>
>  File
>
>  
> "/usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/db/transaction.py",
>  line 240, in _commit_on_success res = func(*args, **kw)
>
>  File
>
>  
> "/usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/contrib/admin/options.py",
>  line 813, in change_view if form.is_valid():
>
>  File
>
>  
> "/usr/lib/python2.5/site-packages/ReviewBoard-1.1alpha2-py2.5.egg/reviewboard/scmtools/forms.py",
>  line 547, in is_valid return (super(RepositoryForm, self).is_valid()
>  and
>
>  File
>
>  
> "/usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/forms/forms.py",
>  line 120, in is_valid return self.is_bound and not bool(self.errors)
>
>  File
>
>  
> "/usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/forms/forms.py",
>  line 111, in _get_errors self.full_clean()
>
>  File
>
>  
> "/usr/lib/python2.5/site-packages/ReviewBoard-1.1alpha2-py2.5.egg/reviewboard/scmtools/forms.py",
>  line 469, in full_clean return super(RepositoryForm,
>  self).full_clean()
>
>  File
>
>  
> "/usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/forms/forms.py",
>  line 250, in full_clean self.cleaned_data = self.clean()
>
>  File
>
>  
> "/usr/lib/python2.5/site-packages/ReviewBoard-1.1alpha2-py2.5.egg/reviewboard/scmtools/forms.py",
>  line 489, in clean self._verify_repository_path()
>
>  File
>
>  
> "/usr/lib/python2.5/site-packages/ReviewBoard-1.1alpha2-py2.5.egg/reviewboard/scmtools/forms.py",
>  line 635, in _verify_repository_path
>  sshutils.add_host_key(e.hostname, e.raw_key)
>
>  File
>
>  
> "/usr/lib/python2.5/site-packages/ReviewBoard-1.1alpha2-py2.5.egg/reviewboard/scmtools/sshutils.py",
>  line 74, in add_host_key 'filename': filename,
>
> NameError: global name 'filename' is not defined
>
> Regards,
> Dmitry
>
> > To unsubscribe from this group, send email to
> reviewboard+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/reviewboard?hl=en
> -~--~~~~--~~--~--~---
>
>

--~--~-~--~~~---~--~~
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
-~--~~~~--~~--~--~---