Re: rbt post with committed git change: "fatal: Not a git repository: 'None'"

2016-06-20 Thread edonwei
Hi Christian,

I am also facing this problem. I am also using a third party git 
repository, it prompts this error too.
Any good solution?

Thanks,
Huan

在 2016年6月7日星期二 UTC+8上午9:45:45,mi...@lastminuterecords.com写道:
>
> I've tried the suggestions here:
> http://stackoverflow.com/questions/11345357/review-board-diff-not-uploading
>
> without success, and tried uploading a diff manually without luck.  Please 
> advise. 
>
> rbt post --debug
> >>> RBTools 0.7.6
> >>> Python 2.7.11+ (default, Apr 17 2016, 14:00:29) 
> [GCC 5.3.1 20160413]
> >>> Running on 
> Linux-4.6.0-040600rc6-generic-x86_64-with-Ubuntu-16.04-xenial
> >>> Home = /home/mt
> >>> Current directory = /home/mt/ownCloud/src/git/ANL/RISC/SimDependency
> >>> Checking for a Subversion repository...
> >>> Unable to execute "svn help": skipping SVN
> >>> Checking for a Git repository...
> >>> Running: git rev-parse --git-dir
> >>> Running: git config core.bare
> >>> Running: git rev-parse --show-toplevel
> >>> Running: git symbolic-ref -q HEAD
> >>> Running: git config --get branch.master.merge
> >>> Running: git config --get branch.master.remote
> >>> Running: git config --get remote.origin.url
> >>> repository info: Path: git@:SimDependency.git, Base path: , 
> Supports changesets: False
> >>> Making HTTP GET request to https://codereview.risc.anl.gov/api/
> >>> Running: git rev-parse refs/heads/master
> >>> Running: git merge-base 2a2dfe98f87440f7a76e2cb0ef31f99f52ef2188 
> origin/master
> >>> Running: git rev-parse cbad9b1b2eb389268abee70e58121e4650da3bf9
> >>> Running: git status --porcelain --untracked-files=no
> WARNING: Your working directory is not clean. Any changes which have not 
> been committed to a branch will not be included in your review request.
> >>> Running: git rev-parse --git-dir
> >>> Running: git version
> >>> Running: git -c core.quotepath=false -c diff.noprefix=false diff 
> --no-color --full-index --ignore-submodules -M --no-ext-diff 
> cbad9b1b2eb389268abee70e58121e4650da3bf9..2a2dfe98f87440f7a76e2cb0ef31f99f52ef2188
> >>> Making HTTP GET request to 
> https://codereview.risc.anl.gov/api/validation/diffs/
> >>> Cached response for HTTP GET 
> https://codereview.risc.anl.gov/api/validation/diffs/ expired and was 
> modified
> >>> Making HTTP POST request to 
> https://codereview.risc.anl.gov/api/validation/diffs/
> >>> Got API Error 224 (HTTP code 400): fatal: Not a git repository: 'None'
>
> >>> Error data: {u'stat': u'fail', u'err': {u'msg': u"fatal: Not a git 
> repository: 'None'\n", u'code': 224}}
> Traceback (most recent call last):
>   File "/usr/local/bin/rbt", line 11, in 
> sys.exit(main())
>   File "/usr/local/lib/python2.7/dist-packages/rbtools/commands/main.py", 
> line 133, in main
> command.run_from_argv([RB_MAIN, command_name] + args)
>   File 
> "/usr/local/lib/python2.7/dist-packages/rbtools/commands/__init__.py", line 
> 629, in run_from_argv
> exit_code = self.main(*args) or 0
>   File "/usr/local/lib/python2.7/dist-packages/rbtools/commands/post.py", 
> line 756, in main
> (msg_prefix, e))
> rbtools.commands.CommandError: Error validating diff
>
> fatal: Not a git repository: 'None'
>  (HTTP 400, API Error 224)
>
>

-- 
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 reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: The specified diff file could not be parsed.

2016-06-20 Thread edonwei
Hi all,

I'm also facing this problem... I'm using latest Reviewboard 2.5.5 . Any 
solution?

===
>>> Making HTTP POST request to 
http://192.168.0.170:8010/api/validation/diffs/ >>> Got API Error 224 (HTTP 
code 400): fatal: Not a git repository: 'None'  >>> Error data: {u'stat': 
u'fail', u'err': {u'msg': u"fatal: Not a git repository: 'None'\n", 
u'code': 224}} Traceback (most recent call last):   File 
"/usr/local/bin/rbt", line 9, in  
load_entry_point('RBTools==0.7.6.dev0', 'console_scripts', 'rbt')()   File 
"/Library/Python/2.6/site-packages/rbtools/commands/main.py", line 133, in 
main command.run_from_argv([RB_MAIN, command_name] + args)   File 
"/Library/Python/2.6/site-packages/rbtools/commands/__init__.py", line 629, 
in run_from_argv exit_code = self.main(*args) or 0   File 
"/Library/Python/2.6/site-packages/rbtools/commands/post.py", line 756, in 
main (msg_prefix, e)) rbtools.commands.CommandError: Error validating 
diff  fatal: Not a git repository: 'None'  (HTTP 400, API Error 224)

Thanks,
Huan




在 2015年2月10日星期二 UTC+8上午9:49:44,Jonathan Anderson写道:
>
> I am getting the following error whenever I attempt to "rbt post" a change 
> that contains updates to an existing file.
> Posting a change containing a single new file works as expected.
>
> I have attached a fiddler archive with the reviewboard request.
>
> I am using an ssh git repository. I am accessing the reviewboard instance 
> from Windows 8.1 using RBTools for Windows.
>
>
>
> $ rbt post --debug
> >>> RBTools 0.7
> >>> Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit 
> (Intel)]
> >>> Running on Windows-8-6.2.9200
> >>> Home = C:\Users\janderson\AppData\Roaming
> >>> Current directory = c:\work
> >>> Checking for a Subversion repository...
> >>> Unable to execute "svn help": skipping SVN
> >>> Checking for a Git repository...
> >>> Running: git rev-parse --git-dir
> >>> Running: git config core.bare
> >>> Running: git rev-parse --show-toplevel
> >>> Running: git symbolic-ref -q HEAD
> >>> Running: git config --get branch.test.merge
> >>> Running: git config --get branch.test.remote
> >>> Running: git config --get remote.origin.url
> >>> repository info: Path: git@q-git:/opt/git/quosal.git, Base path: , 
> Supports changesets: False
> >>> Making HTTP GET request to http://codereview/api/
> >>> Cached response for HTTP GET http://codereview/api/ expired and was 
> modified
> >>> Running: git rev-parse refs/heads/test
> >>> Running: git merge-base 7c9e3a6183f52cd33e4a203c6d53b46b6748c7af 
> origin/master
> >>> Running: git rev-parse dd3d91bf5665f5d3bf022b6ec170fdd96b8a6ac4
> >>> Running: git status --porcelain --untracked-files=no
> >>> Running: git diff --no-color --full-index --ignore-submodules -M 
> --no-ext-diff 
> dd3d91bf5665f5d3bf022b6ec170fdd96b8a6ac4..7c9e3a6183f52cd33e4a203c6d53b46b6748c7af
> >>> Making HTTP GET request to http://codereview/api/validation/
> >>> Cached response for HTTP GET http://codereview/api/validation/ 
> expired and was not modified
> >>> Making HTTP GET request to http://codereview/api/validation/diffs/
> >>> Cached response for HTTP GET http://codereview/api/validation/diffs/ 
> expired and was modified
> >>> Making HTTP POST request to http://codereview/api/validation/diffs/
> >>> Got API Error 224 (HTTP code 400): The specified diff file could not 
> be parsed.
> >>> Error data: {u'stat': u'fail', u'reason': u"fatal: Not a git 
> repository: 'None'\n", u'err': {u'msg': u'The specified diff file could not 
> be parsed.', u'code': 224}}
> Traceback (most recent call last):
>   File "c:/Program Files (x86)/RBTools/Python27/Scripts/rbt-script.py", 
> line 8, in 
> load_entry_point('RBTools==0.7', 'console_scripts', 'rbt')()
>   File "c:\Program Files 
> (x86)\RBTools\Python27\lib\site-packages\rbtools-0.7-py2.7.egg\rbtools\commands\main.py",
>  
> line 133, in main
> command.run_from_argv([RB_MAIN, command_name] + args)
>   File "c:\Program Files 
> (x86)\RBTools\Python27\lib\site-packages\rbtools-0.7-py2.7.egg\rbtools\commands\__init__.py",
>  
> line 538, in run_from_argv
> exit_code = self.main(*args) or 0
>   File "c:\Program Files 
> (x86)\RBTools\Python27\lib\site-packages\rbtools-0.7-py2.7.egg\rbtools\commands\post.py",
>  
> line 662, in main
> (msg_prefix, e))
> rbtools.commands.CommandError: Error validating diff
>
> The specified diff file could not be parsed. (HTTP 400, API Error 224)
>
>

-- 
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 reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re:Re:Re:Re: Re:Re: Not able to install rb-site on lubuntu 16.04

2016-06-03 Thread edonwei
Hi all,


I have found the way to avoid this problem - to set the database url as the 
real ip address (for example 192.168.0.170, not the localhost).
easy and go! 


Hope this would be helpful.


Huan




在 2016-06-03 19:19:25,"edonwei" <edon...@163.com> 写道:

any good solution?


At 2016-06-03 18:59:27, "edonwei" <edon...@163.com> wrote:

Hi Christian, 


I got another problem - unfortunately.


I installed review board as domain configured with localhost and the other 
configuration as default on my virtual box which has the ip 192.168.0.170, and 
I changed the port from default 80 to 8010.


http://192.168.0.170:8010
Something broke! (Error 500)

It appears something broke when you tried to go to here. This is either a bug 
in Review Board or a server configuration error. Please report this to your 
administrator.

And I checked the apache log and found below errors:



[Fri Jun 03 15:26:33.186077 2016] [:notice] [pid 126189] mod_python: using 
mutex_directory /tmp 

[Fri Jun 03 15:26:33.197882 2016] [mpm_prefork:notice] [pid 126189] AH00163: 
Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.17 mod_python/3.3.1 Python/2.7.6 
mod_wsgi/3.4 configured -- resuming normal operations

[Fri Jun 03 15:26:33.197905 2016] [core:notice] [pid 126189] AH00094: Command 
line: '/usr/sbin/apache2'

[Fri Jun 03 07:26:42.472568 2016] [:error] [pid 126194] ERROR:root:Could not 
load siteconfig: (2002, "Can't connect to local MySQL server through socket 
'/var/run/mysqld/mysqld.sock' (13)")

[Fri Jun 03 07:26:42.564273 2016] [:error] [pid 126194] 
WARNING:py.warnings:/usr/local/lib/python2.7/dist-packages/Djblets-0.9.3-py2.7.egg/djblets/extensions/loaders.py:65:
 DeprecationWarning: 'djblets.extensions.loaders.load_template_source' is 
deprecated; use 'djblets.extensions.loaders.Loader' instead.

[Fri Jun 03 07:26:42.564293 2016] [:error] [pid 126194]   DeprecationWarning)

[Fri Jun 03 07:26:42.564295 2016] [:error] [pid 126194] 

[Fri Jun 03 07:26:47.245666 2016] [:error] [pid 126193] ERROR:root:Could not 
load siteconfig: (2002, "Can't connect to local MySQL server through socket 
'/var/run/mysqld/mysqld.sock' (13)")

[Fri Jun 03 07:26:47.332548 2016] [:error] [pid 126193] 
WARNING:py.warnings:/usr/local/lib/python2.7/dist-packages/Djblets-0.9.3-py2.7.egg/djblets/extensions/loaders.py:65:
 DeprecationWarning: 'djblets.extensions.loaders.load_template_source' is 
deprecated; use 'djblets.extensions.loaders.Loader' instead.

[Fri Jun 03 07:26:47.332568 2016] [:error] [pid 126193]   DeprecationWarning)

[Fri Jun 03 07:26:47.332578 2016] [:error] [pid 126193] 

[Fri Jun 03 07:26:50.866601 2016] [:error] [pid 126197] ERROR:root:Could not 
load siteconfig: (2002, "Can't connect to local MySQL server through socket 
'/var/run/mysqld/mysqld.sock' (13)")

[Fri Jun 03 07:26:50.952361 2016] [:error] [pid 126197] 
WARNING:py.warnings:/usr/local/lib/python2.7/dist-packages/Djblets-0.9.3-py2.7.egg/djblets/extensions/loaders.py:65:
 DeprecationWarning: 'djblets.extensions.loaders.load_template_source' is 
deprecated; use 'djblets.extensions.loaders.Loader' instead.

[Fri Jun 03 07:26:50.952379 2016] [:error] [pid 126197]   DeprecationWarning)

[Fri Jun 03 07:26:50.952381 2016] [:error] [pid 126197] 

[Fri Jun 03 07:30:37.801975 2016] [:error] [pid 126195] ERROR:root:Could not 
load siteconfig: (2002, "Can't connect to local MySQL server through socket 
'/var/run/mysqld/mysqld.sock' (13)")

[Fri Jun 03 07:30:37.888231 2016] [:error] [pid 126195] 
WARNING:py.warnings:/usr/local/lib/python2.7/dist-packages/Djblets-0.9.3-py2.7.egg/djblets/extensions/loaders.py:65:
 DeprecationWarning: 'djblets.extensions.loaders.load_template_source' is 
deprecated; use 'djblets.extensions.loaders.Loader' instead.



Have you ever met this problem, or could you kindly give some ideas on how to 
fix this problem? thanks.




Thanks,
Huan






在 2016-06-03 15:14:58,"Александр Нечаев" <nechae...@gmail.com> 写道:

edonwei thanks, it's work

четверг, 2 июня 2016 г., 22:37:54 UTC+3 пользователь Christian Hammond написал:
Thanks, that helped tremendously.


Turns out that one of our dependencies, django-haystack, released a new beta 
build that's installed now by default, but is not compatible with the version 
of Django we ship.


We'll get a release out shortly to correct this, but you can do so for now by 
running:


easy_install django-haystack==2.4.1


Christian


-- 
Christian Hammond

President/CEO of Beanbag
Makers of Review Board


On Thu, Jun 2, 2016 at 8:52 AM, edonwei <edo...@163.com> wrote:

Hi Christian, @all,


After 2 days, when I would like to give up, then finally in the last minute I 
got this problem fixed.
the problem exists at file:
/usr/local/lib/python2.7/dist-packages/django_haystack-2.5.dev1-py2.7.egg/haystack/utils/app_loading.py


at line 4, to modify from 


import apps


to 


from djblets.db import apps




Hope this would be helpful to other p

Re:Re:Re: Re:Re: Not able to install rb-site on lubuntu 16.04

2016-06-03 Thread edonwei
any good solution?


At 2016-06-03 18:59:27, "edonwei" <edon...@163.com> wrote:

Hi Christian, 


I got another problem - unfortunately.


I installed review board as domain configured with localhost and the other 
configuration as default on my virtual box which has the ip 192.168.0.170, and 
I changed the port from default 80 to 8010.


http://192.168.0.170:8010
Something broke! (Error 500)

It appears something broke when you tried to go to here. This is either a bug 
in Review Board or a server configuration error. Please report this to your 
administrator.

And I checked the apache log and found below errors:



[Fri Jun 03 15:26:33.186077 2016] [:notice] [pid 126189] mod_python: using 
mutex_directory /tmp 

[Fri Jun 03 15:26:33.197882 2016] [mpm_prefork:notice] [pid 126189] AH00163: 
Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.17 mod_python/3.3.1 Python/2.7.6 
mod_wsgi/3.4 configured -- resuming normal operations

[Fri Jun 03 15:26:33.197905 2016] [core:notice] [pid 126189] AH00094: Command 
line: '/usr/sbin/apache2'

[Fri Jun 03 07:26:42.472568 2016] [:error] [pid 126194] ERROR:root:Could not 
load siteconfig: (2002, "Can't connect to local MySQL server through socket 
'/var/run/mysqld/mysqld.sock' (13)")

[Fri Jun 03 07:26:42.564273 2016] [:error] [pid 126194] 
WARNING:py.warnings:/usr/local/lib/python2.7/dist-packages/Djblets-0.9.3-py2.7.egg/djblets/extensions/loaders.py:65:
 DeprecationWarning: 'djblets.extensions.loaders.load_template_source' is 
deprecated; use 'djblets.extensions.loaders.Loader' instead.

[Fri Jun 03 07:26:42.564293 2016] [:error] [pid 126194]   DeprecationWarning)

[Fri Jun 03 07:26:42.564295 2016] [:error] [pid 126194] 

[Fri Jun 03 07:26:47.245666 2016] [:error] [pid 126193] ERROR:root:Could not 
load siteconfig: (2002, "Can't connect to local MySQL server through socket 
'/var/run/mysqld/mysqld.sock' (13)")

[Fri Jun 03 07:26:47.332548 2016] [:error] [pid 126193] 
WARNING:py.warnings:/usr/local/lib/python2.7/dist-packages/Djblets-0.9.3-py2.7.egg/djblets/extensions/loaders.py:65:
 DeprecationWarning: 'djblets.extensions.loaders.load_template_source' is 
deprecated; use 'djblets.extensions.loaders.Loader' instead.

[Fri Jun 03 07:26:47.332568 2016] [:error] [pid 126193]   DeprecationWarning)

[Fri Jun 03 07:26:47.332578 2016] [:error] [pid 126193] 

[Fri Jun 03 07:26:50.866601 2016] [:error] [pid 126197] ERROR:root:Could not 
load siteconfig: (2002, "Can't connect to local MySQL server through socket 
'/var/run/mysqld/mysqld.sock' (13)")

[Fri Jun 03 07:26:50.952361 2016] [:error] [pid 126197] 
WARNING:py.warnings:/usr/local/lib/python2.7/dist-packages/Djblets-0.9.3-py2.7.egg/djblets/extensions/loaders.py:65:
 DeprecationWarning: 'djblets.extensions.loaders.load_template_source' is 
deprecated; use 'djblets.extensions.loaders.Loader' instead.

[Fri Jun 03 07:26:50.952379 2016] [:error] [pid 126197]   DeprecationWarning)

[Fri Jun 03 07:26:50.952381 2016] [:error] [pid 126197] 

[Fri Jun 03 07:30:37.801975 2016] [:error] [pid 126195] ERROR:root:Could not 
load siteconfig: (2002, "Can't connect to local MySQL server through socket 
'/var/run/mysqld/mysqld.sock' (13)")

[Fri Jun 03 07:30:37.888231 2016] [:error] [pid 126195] 
WARNING:py.warnings:/usr/local/lib/python2.7/dist-packages/Djblets-0.9.3-py2.7.egg/djblets/extensions/loaders.py:65:
 DeprecationWarning: 'djblets.extensions.loaders.load_template_source' is 
deprecated; use 'djblets.extensions.loaders.Loader' instead.



Have you ever met this problem, or could you kindly give some ideas on how to 
fix this problem? thanks.




Thanks,
Huan






在 2016-06-03 15:14:58,"Александр Нечаев" <nechae...@gmail.com> 写道:

edonwei thanks, it's work

четверг, 2 июня 2016 г., 22:37:54 UTC+3 пользователь Christian Hammond написал:
Thanks, that helped tremendously.


Turns out that one of our dependencies, django-haystack, released a new beta 
build that's installed now by default, but is not compatible with the version 
of Django we ship.


We'll get a release out shortly to correct this, but you can do so for now by 
running:


easy_install django-haystack==2.4.1


Christian


-- 
Christian Hammond

President/CEO of Beanbag
Makers of Review Board


On Thu, Jun 2, 2016 at 8:52 AM, edonwei <edo...@163.com> wrote:

Hi Christian, @all,


After 2 days, when I would like to give up, then finally in the last minute I 
got this problem fixed.
the problem exists at file:
/usr/local/lib/python2.7/dist-packages/django_haystack-2.5.dev1-py2.7.egg/haystack/utils/app_loading.py


at line 4, to modify from 


import apps


to 


from djblets.db import apps




Hope this would be helpful to other people. 


Best wishes,


Huan








At 2016-06-02 21:37:24, "edonwei" <edo...@163.com> wrote:

Hi Christian,


Pls find below the output.



root@ubuntu-wefind:/usr/local/lib/python2.7/dist-packages# rb-site manage 
/var/www/review.c

Re:Re: Re:Re: Not able to install rb-site on lubuntu 16.04

2016-06-03 Thread edonwei
Hi Christian, 


I got another problem - unfortunately.


I installed review board as domain configured with localhost and the other 
configuration as default on my virtual box which has the ip 192.168.0.170, and 
I changed the port from default 80 to 8010.


http://192.168.0.170:8010
Something broke! (Error 500)

It appears something broke when you tried to go to here. This is either a bug 
in Review Board or a server configuration error. Please report this to your 
administrator.

And I checked the apache log and found below errors:



[Fri Jun 03 15:26:33.186077 2016] [:notice] [pid 126189] mod_python: using 
mutex_directory /tmp 

[Fri Jun 03 15:26:33.197882 2016] [mpm_prefork:notice] [pid 126189] AH00163: 
Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.17 mod_python/3.3.1 Python/2.7.6 
mod_wsgi/3.4 configured -- resuming normal operations

[Fri Jun 03 15:26:33.197905 2016] [core:notice] [pid 126189] AH00094: Command 
line: '/usr/sbin/apache2'

[Fri Jun 03 07:26:42.472568 2016] [:error] [pid 126194] ERROR:root:Could not 
load siteconfig: (2002, "Can't connect to local MySQL server through socket 
'/var/run/mysqld/mysqld.sock' (13)")

[Fri Jun 03 07:26:42.564273 2016] [:error] [pid 126194] 
WARNING:py.warnings:/usr/local/lib/python2.7/dist-packages/Djblets-0.9.3-py2.7.egg/djblets/extensions/loaders.py:65:
 DeprecationWarning: 'djblets.extensions.loaders.load_template_source' is 
deprecated; use 'djblets.extensions.loaders.Loader' instead.

[Fri Jun 03 07:26:42.564293 2016] [:error] [pid 126194]   DeprecationWarning)

[Fri Jun 03 07:26:42.564295 2016] [:error] [pid 126194] 

[Fri Jun 03 07:26:47.245666 2016] [:error] [pid 126193] ERROR:root:Could not 
load siteconfig: (2002, "Can't connect to local MySQL server through socket 
'/var/run/mysqld/mysqld.sock' (13)")

[Fri Jun 03 07:26:47.332548 2016] [:error] [pid 126193] 
WARNING:py.warnings:/usr/local/lib/python2.7/dist-packages/Djblets-0.9.3-py2.7.egg/djblets/extensions/loaders.py:65:
 DeprecationWarning: 'djblets.extensions.loaders.load_template_source' is 
deprecated; use 'djblets.extensions.loaders.Loader' instead.

[Fri Jun 03 07:26:47.332568 2016] [:error] [pid 126193]   DeprecationWarning)

[Fri Jun 03 07:26:47.332578 2016] [:error] [pid 126193] 

[Fri Jun 03 07:26:50.866601 2016] [:error] [pid 126197] ERROR:root:Could not 
load siteconfig: (2002, "Can't connect to local MySQL server through socket 
'/var/run/mysqld/mysqld.sock' (13)")

[Fri Jun 03 07:26:50.952361 2016] [:error] [pid 126197] 
WARNING:py.warnings:/usr/local/lib/python2.7/dist-packages/Djblets-0.9.3-py2.7.egg/djblets/extensions/loaders.py:65:
 DeprecationWarning: 'djblets.extensions.loaders.load_template_source' is 
deprecated; use 'djblets.extensions.loaders.Loader' instead.

[Fri Jun 03 07:26:50.952379 2016] [:error] [pid 126197]   DeprecationWarning)

[Fri Jun 03 07:26:50.952381 2016] [:error] [pid 126197] 

[Fri Jun 03 07:30:37.801975 2016] [:error] [pid 126195] ERROR:root:Could not 
load siteconfig: (2002, "Can't connect to local MySQL server through socket 
'/var/run/mysqld/mysqld.sock' (13)")

[Fri Jun 03 07:30:37.888231 2016] [:error] [pid 126195] 
WARNING:py.warnings:/usr/local/lib/python2.7/dist-packages/Djblets-0.9.3-py2.7.egg/djblets/extensions/loaders.py:65:
 DeprecationWarning: 'djblets.extensions.loaders.load_template_source' is 
deprecated; use 'djblets.extensions.loaders.Loader' instead.



Have you ever met this problem, or could you kindly give some ideas on how to 
fix this problem? thanks.




Thanks,
Huan






在 2016-06-03 15:14:58,"Александр Нечаев" <nechae...@gmail.com> 写道:

edonwei thanks, it's work

четверг, 2 июня 2016 г., 22:37:54 UTC+3 пользователь Christian Hammond написал:
Thanks, that helped tremendously.


Turns out that one of our dependencies, django-haystack, released a new beta 
build that's installed now by default, but is not compatible with the version 
of Django we ship.


We'll get a release out shortly to correct this, but you can do so for now by 
running:


easy_install django-haystack==2.4.1


Christian


-- 
Christian Hammond

President/CEO of Beanbag
Makers of Review Board


On Thu, Jun 2, 2016 at 8:52 AM, edonwei <edo...@163.com> wrote:

Hi Christian, @all,


After 2 days, when I would like to give up, then finally in the last minute I 
got this problem fixed.
the problem exists at file:
/usr/local/lib/python2.7/dist-packages/django_haystack-2.5.dev1-py2.7.egg/haystack/utils/app_loading.py


at line 4, to modify from 


import apps


to 


from djblets.db import apps




Hope this would be helpful to other people. 


Best wishes,


Huan








At 2016-06-02 21:37:24, "edonwei" <edo...@163.com> wrote:

Hi Christian,


Pls find below the output.



root@ubuntu-wefind:/usr/local/lib/python2.7/dist-packages# rb-site manage 
/var/www/review.cuitrip.com syncdb

Traceback (most recent call last):

  File "/usr/local/bin/rb-site", line 9, in 

load_en

Re:Re:Re: Not able to install rb-site on lubuntu 16.04

2016-06-02 Thread edonwei
Hi Christian, @all,


After 2 days, when I would like to give up, then finally in the last minute I 
got this problem fixed.
the problem exists at file:
/usr/local/lib/python2.7/dist-packages/django_haystack-2.5.dev1-py2.7.egg/haystack/utils/app_loading.py


at line 4, to modify from 


import apps


to 


from djblets.db import apps




Hope this would be helpful to other people. 


Best wishes,


Huan








At 2016-06-02 21:37:24, "edonwei" <edon...@163.com> wrote:

Hi Christian,


Pls find below the output.



root@ubuntu-wefind:/usr/local/lib/python2.7/dist-packages# rb-site manage 
/var/www/review.cuitrip.com syncdb

Traceback (most recent call last):

  File "/usr/local/bin/rb-site", line 9, in 

load_entry_point('ReviewBoard==2.5.5', 'console_scripts', 'rb-site')()

  File 
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5.5-py2.7.egg/reviewboard/cmdline/rbsite.py",
 line 1922, in main

command.run()

  File 
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5.5-py2.7.egg/reviewboard/cmdline/rbsite.py",
 line 1842, in run

initialize()

  File 
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5.5-py2.7.egg/reviewboard/__init__.py",
 line 107, in initialize

from reviewboard.admin.siteconfig import load_site_config

  File 
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5.5-py2.7.egg/reviewboard/admin/siteconfig.py",
 line 46, in 

from haystack import connections

  File 
"/usr/local/lib/python2.7/dist-packages/django_haystack-2.5.dev1-py2.7.egg/haystack/__init__.py",
 line 10, in 

from haystack.utils import loading

  File 
"/usr/local/lib/python2.7/dist-packages/django_haystack-2.5.dev1-py2.7.egg/haystack/utils/loading.py",
 line 18, in 

from haystack.utils.app_loading import haystack_get_app_modules

  File 
"/usr/local/lib/python2.7/dist-packages/django_haystack-2.5.dev1-py2.7.egg/haystack/utils/app_loading.py",
 line 4, in 

import apps

ImportError: No module named apps




Thanks,

Huan











在 2016-06-02 18:29:29,"Christian Hammond" <christ...@beanbaginc.com> 写道:

Can you run:


rb-site manage /var/www/review.cuitrip.com syncdb


And show me what happens?


Christian


-- 
Christian Hammond

President/CEO of Beanbag
Makers of Review Board


On Wed, Jun 1, 2016 at 11:46 PM, <edon...@163.com> wrote:



Hi Christian,


Below please  check the details. 


==beginning of console output



root@ubuntu-wefind:/var/www# apt-get install python-setuptools

Reading package lists... Done

Building dependency tree   

Reading state information... Done

python-setuptools is already the newest version.

0 upgraded, 0 newly installed, 0 to remove and 165 not upgraded.

root@ubuntu-wefind:/var/www# apt-get install python-dev

Reading package lists... Done

Building dependency tree   

Reading state information... Done

python-dev is already the newest version.

0 upgraded, 0 newly installed, 0 to remove and 165 not upgraded.

root@ubuntu-wefind:/var/www# apt-get install memcached

Reading package lists... Done

Building dependency tree   

Reading state information... Done

memcached is already the newest version.

0 upgraded, 0 newly installed, 0 to remove and 165 not upgraded.

root@ubuntu-wefind:/var/www# easy_install python-memcached

Searching for python-memcached

Best match: python-memcached 1.58

Processing python_memcached-1.58-py2.7.egg

python-memcached 1.58 is already the active version in easy-install.pth




Using /usr/local/lib/python2.7/dist-packages/python_memcached-1.58-py2.7.egg

Processing dependencies for python-memcached

Finished processing dependencies for python-memcached

root@ubuntu-wefind:/var/www# apt-get install patch

Reading package lists... Done

Building dependency tree   

Reading state information... Done

patch is already the newest version.

0 upgraded, 0 newly installed, 0 to remove and 165 not upgraded.

root@ubuntu-wefind:/var/www# easy_install ReviewBoard

Searching for ReviewBoard

Best match: ReviewBoard 2.5.5

Processing ReviewBoard-2.5.5-py2.7.egg

ReviewBoard 2.5.5 is already the active version in easy-install.pth

Installing rbssh script to /usr/local/bin

Installing rb-site script to /usr/local/bin




Using /usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5.5-py2.7.egg

Processing dependencies for ReviewBoard

Finished processing dependencies for ReviewBoard

root@ubuntu-wefind:/var/www# easy_install mysql-python

Searching for mysql-python

Best match: MySQL-python 1.2.3

Adding MySQL-python 1.2.3 to easy-install.pth file




Using /usr/lib/python2.7/dist-packages

Processing dependencies for mysql-python

Finished processing dependencies for mysql-python

root@ubuntu-wefind:/var/www# apt-get install python-mysqldb

Reading package lists... Done

Building dependency tree   

Reading state information... Done

python-mysqldb is already the newest ve

Re:Re: Not able to install rb-site on lubuntu 16.04

2016-06-02 Thread edonwei
Hi Christian,


Pls find below the output.



root@ubuntu-wefind:/usr/local/lib/python2.7/dist-packages# rb-site manage 
/var/www/review.cuitrip.com syncdb

Traceback (most recent call last):

  File "/usr/local/bin/rb-site", line 9, in 

load_entry_point('ReviewBoard==2.5.5', 'console_scripts', 'rb-site')()

  File 
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5.5-py2.7.egg/reviewboard/cmdline/rbsite.py",
 line 1922, in main

command.run()

  File 
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5.5-py2.7.egg/reviewboard/cmdline/rbsite.py",
 line 1842, in run

initialize()

  File 
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5.5-py2.7.egg/reviewboard/__init__.py",
 line 107, in initialize

from reviewboard.admin.siteconfig import load_site_config

  File 
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5.5-py2.7.egg/reviewboard/admin/siteconfig.py",
 line 46, in 

from haystack import connections

  File 
"/usr/local/lib/python2.7/dist-packages/django_haystack-2.5.dev1-py2.7.egg/haystack/__init__.py",
 line 10, in 

from haystack.utils import loading

  File 
"/usr/local/lib/python2.7/dist-packages/django_haystack-2.5.dev1-py2.7.egg/haystack/utils/loading.py",
 line 18, in 

from haystack.utils.app_loading import haystack_get_app_modules

  File 
"/usr/local/lib/python2.7/dist-packages/django_haystack-2.5.dev1-py2.7.egg/haystack/utils/app_loading.py",
 line 4, in 

import apps

ImportError: No module named apps




Thanks,

Huan











在 2016-06-02 18:29:29,"Christian Hammond"  写道:

Can you run:


rb-site manage /var/www/review.cuitrip.com syncdb


And show me what happens?


Christian


-- 
Christian Hammond

President/CEO of Beanbag
Makers of Review Board


On Wed, Jun 1, 2016 at 11:46 PM,  wrote:



Hi Christian,


Below please  check the details. 


==beginning of console output



root@ubuntu-wefind:/var/www# apt-get install python-setuptools

Reading package lists... Done

Building dependency tree   

Reading state information... Done

python-setuptools is already the newest version.

0 upgraded, 0 newly installed, 0 to remove and 165 not upgraded.

root@ubuntu-wefind:/var/www# apt-get install python-dev

Reading package lists... Done

Building dependency tree   

Reading state information... Done

python-dev is already the newest version.

0 upgraded, 0 newly installed, 0 to remove and 165 not upgraded.

root@ubuntu-wefind:/var/www# apt-get install memcached

Reading package lists... Done

Building dependency tree   

Reading state information... Done

memcached is already the newest version.

0 upgraded, 0 newly installed, 0 to remove and 165 not upgraded.

root@ubuntu-wefind:/var/www# easy_install python-memcached

Searching for python-memcached

Best match: python-memcached 1.58

Processing python_memcached-1.58-py2.7.egg

python-memcached 1.58 is already the active version in easy-install.pth




Using /usr/local/lib/python2.7/dist-packages/python_memcached-1.58-py2.7.egg

Processing dependencies for python-memcached

Finished processing dependencies for python-memcached

root@ubuntu-wefind:/var/www# apt-get install patch

Reading package lists... Done

Building dependency tree   

Reading state information... Done

patch is already the newest version.

0 upgraded, 0 newly installed, 0 to remove and 165 not upgraded.

root@ubuntu-wefind:/var/www# easy_install ReviewBoard

Searching for ReviewBoard

Best match: ReviewBoard 2.5.5

Processing ReviewBoard-2.5.5-py2.7.egg

ReviewBoard 2.5.5 is already the active version in easy-install.pth

Installing rbssh script to /usr/local/bin

Installing rb-site script to /usr/local/bin




Using /usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5.5-py2.7.egg

Processing dependencies for ReviewBoard

Finished processing dependencies for ReviewBoard

root@ubuntu-wefind:/var/www# easy_install mysql-python

Searching for mysql-python

Best match: MySQL-python 1.2.3

Adding MySQL-python 1.2.3 to easy-install.pth file




Using /usr/lib/python2.7/dist-packages

Processing dependencies for mysql-python

Finished processing dependencies for mysql-python

root@ubuntu-wefind:/var/www# apt-get install python-mysqldb

Reading package lists... Done

Building dependency tree   

Reading state information... Done

python-mysqldb is already the newest version.

0 upgraded, 0 newly installed, 0 to remove and 165 not upgraded.

root@ubuntu-wefind:/var/www# apt-get install subversion python-svn

Reading package lists... Done

Building dependency tree   

Reading state information... Done

python-svn is already the newest version.

subversion is already the newest version.

0 upgraded, 0 newly installed, 0 to remove and 165 not upgraded.

root@ubuntu-wefind:/var/www# mysql -u root -p

Enter password: 

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 19116

Server version: 5.6.24 Source 

Re: Not able to install rb-site on lubuntu 16.04

2016-06-02 Thread edonwei
Sure. Actually I installed review board step by step following the document.

My environment:
14.04.1-Ubuntu on virtual box
python 2.7
django 1.6.11

I got the similar error with Rahaman. I will paste below:

root@ubuntu-wefind:/var/www# rb-site install review.cuitrip.com



* Welcome to the Review Board site installation wizard


This will prepare a Review Board site installation in:


/var/www/review.cuitrip.com


We need to know a few things before we can prepare your site for

installation. This will only take a few minutes.



* Make sure you have the modules you need


Depending on your installation, you may need certain Python

modules and servers that are missing.


If you need support for any of the following, you will need to

install the necessary modules and restart the install.


Databases (optional):

* PostgreSQL (psycopg2)



* What's the host name for this site?


This should be the fully-qualified host name without the http://,

port or path.


Domain Name: localhost



* What URL path points to Review Board?


Typically, Review Board exists at the root of a URL. For example,

http://reviews.example.com/. In this case, you would specify "/".


However, if you want to listen to, say,

http://example.com/reviews/, you can specify "/reviews/".


Note that this is the path relative to the domain and should not

include the domain name.


The default is /


Root Path [/]: 



* What database type will you be using?


You can type either the name or the number from the list below.


(1) mysql

(2) sqlite3 (not supported for production use)


Database Type: 1



* What database name should Review Board use?


NOTE: You need to create this database and grant user modification

rights before continuing. See your database documentation for more

information.


The default is reviewboard


Database Name [reviewboard]: 



* What is the database server's address?


This should be specified in hostname:port form. The port is

optional if you're using a standard port for the database type.


The default is localhost


Database Server [localhost]: 



* What is the login and password for this database?


This must be a user that has table creation and modification

rights on the database you already specified.


Database Username: huan


Database Password: 


Confirm Database Password: 



* What memcached host should be used?


This is in the format of hostname:port


The default is localhost:11211


Memcache Server [localhost:11211]: 



* Create an administrator account


To configure Review Board, you'll need an administrator account.

It is advised to have one administrator and then use that account

to grant administrator permissions to your personal user account.


If you plan to use NIS or LDAP, use an account name other than

your NIS/LDAP account so as to prevent conflicts.


The default is admin


Username [admin]: huan


Password: 


Confirm Password: 


E-Mail Address: xxx


Company/Organization Name (optional):  



* Enable collection of data for better support


We would like to periodically collect data and statistics about

your installation to provide a better support experience for you

and your users.


The data collected includes basic information such as your company

name, the version of Review Board, and the size of your install.

It does NOT include confidential data such as source code. Data

collected never leaves our server and is never given to any third

parties for any purposes.


We use this to provide a user support page that's more specific to

your server. We also use it to determine which versions to

continue to support, and to help track how upgrades affect our

number of bug reports and support incidents.


You can choose to turn this off at any time in Support Settings in

Review Board.


Allow us to collect support data? [Y/n]: n



* Installing the site...

Building site directories ... OK

Building site configuration files ... OK

Creating database ... 

[!] Unable to execute the manager command syncdb: No module named apps


[!] Unable to execute the manager command registerscmtools: cannot

import name signals

OK

Performing migrations ... 

[!] Unable to execute the manager command evolve: cannot import name

signals

OK

Creating administrator account ... Traceback (most recent call last):

  File "/usr/local/bin/rb-site", line 9, in 

load_entry_point('ReviewBoard==2.5.5', 'console_scripts', 'rb-site')()

  File 
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5.5-py2.7.egg/reviewboard/cmdline/rbsite.py",
 
line 1922, in main

command.run()

  File 
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5.5-py2.7.egg/reviewboard/cmdline/rbsite.py",
 
line 1247, in run

self.show_install_status()

  File