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

2016-06-03 Thread Christian Hammond
Glad you got it working!

Christian

-- 
Christian Hammond
President/CEO of Beanbag 
Makers of Review Board 

On Fri, Jun 3, 2016 at 5:46 AM, edonwei  wrote:

> 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"  写道:
>
> any good solution?
>
> At 2016-06-03 18:59:27, "edonwei"  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,"Александр Нечаев"  写道:
>
> 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  wrote:
>>
>> Hi Christian, @all,
>>
>> After 2 days, when I would like to give up, then finally in the last
>

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"  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,"Александр Нечаев"  写道:

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  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"  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/