This is a follow up on my previous issue (How to create an initial code
review (post-commit)
<https://groups.google.com/forum/#!topic/reviewboard/aaXILxtH6dw>), but I
think the subject needed updating:
My Review Board server set up::
Review Board: 2.0.18 (upgraded from 2.0.17)
OS: Ubuntu 14.04
Authorisation method: LDAP
My Subversion server is using svn+ssh
My Client computer:
OS: Ubuntu 14.04
I have added the Repository on the dashboard but can't get the keyless
authentication to work correctly.
My Review Board server should connect to the subversion server using my
username for now (during evaluation I do not want to create the user on the
server)
- I have created a "config" file under "/var/www/reviewboard/data/.ssh"
that contains my username to use for the server.
- I have generated keys on the RB server and added the "id_rsa.pub" (in
data/.ssh/) key to "authorized_keys" on the svn server.
- I have added the Repository on the RB admin page
- My path is set to: svn+ssh://<server ip>/MyRepoName
- If I do not supply a username for the repository I get an "unable to
authenticate" error if I save.
- If I add my username then save it does not give any errors and the
repository is added.
To test the SSH setup, I do the following steps on the RB server:
$ sudo -s
$ sudo -u www-data -s
$ cd /tmp
$ DEBUG_RBSSH=1 DJANGO_SETTINGS_MODULE=reviewboard.settings rbssh
<svn.server.ip>
I get the following error:
www-data@ubuntu14:~$ DEBUG_RBSSH=1
DJANGO_SETTINGS_MODULE=reviewboard.settings rbssh <svn.server.ip>
Traceback (most recent call last):
File "/usr/local/bin/rbssh", line 9, in <module>
load_entry_point('ReviewBoard==2.0.18', 'console_scripts', 'rbssh')()
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 558,
in load_entry_point
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2682,
in load_entry_point
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2355,
in load
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2361,
in resolve
File
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.18-py2.7.egg/reviewboard/cmdline/rbssh.py",
line 46, in <module>
import paramiko
File "build/bdist.linux-x86_64/egg/paramiko/__init__.py", line 30, in
<module>
File "build/bdist.linux-x86_64/egg/paramiko/transport.py", line 49, in
<module>
File "build/bdist.linux-x86_64/egg/paramiko/dsskey.py", line 26, in
<module>
File "build/bdist.linux-x86_64/egg/Crypto/PublicKey/DSA.py", line 89, in
<module>
File "build/bdist.linux-x86_64/egg/Crypto/Random/__init__.py", line 29,
in <module>
File "build/bdist.linux-x86_64/egg/Crypto/Random/_UserFriendlyRNG.py",
line 38, in <module>
File
"build/bdist.linux-x86_64/egg/Crypto/Random/Fortuna/FortunaAccumulator.py",
line 39, in <module>
File
"build/bdist.linux-x86_64/egg/Crypto/Random/Fortuna/FortunaGenerator.py",
line 35, in <module>
File "build/bdist.linux-x86_64/egg/Crypto/Util/Counter.py", line 59, in
<module>
File "build/bdist.linux-x86_64/egg/Crypto/Util/_counter.py", line 7, in
<module>
File "build/bdist.linux-x86_64/egg/Crypto/Util/_counter.py", line 4, in
__bootstrap__
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 1161,
in resource_filename
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 1861,
in get_resource_filename
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 1921,
in _extract_resource
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 1207,
in extraction_error
pkg_resources.ExtractionError: Can't extract file(s) to egg cache
The following error occurred while trying to extract file(s) to the Python
egg
cache:
[Errno 13] Permission denied:
'/home/<my-username>/.python-eggs/pycrypto-2.6.1-py2.7-linux-x86_64.egg-tmp/Crypto/Util/tmp2R_tL2.$extract'
The Python egg cache directory is currently set to:
/home/<my-username>/.python-eggs
Perhaps your account does not have write access to this directory? You can
change the cache directory by setting the PYTHON_EGG_CACHE environment
variable to point to an accessible directory.
Trying to set the PYTHON_EGG_CACHE I get:
/tmp$ DEBUG_RBSSH=1 DJANGO_SETTINGS_MODULE=reviewboard.settings
PYTHON_EGG_CACHE=/var/www/reviewboard/data/.python-eggs/ rbssh
<svn.server.ip>
Unable to import settings_local.py: No module named settings_local
Please see https://www.reviewboard.org/docs/manual/dev/admin/
for help setting up Review Board.
Any help will be appreciated.
Regards,
Carel
--
Supercharge your Review Board with Power Pack:
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons:
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.