HELP:REVIEWBOARD Launching Error-> OperationalError: (2003, "Can't connect to MySQL server on '127.0.0.1' (13)")

2016-08-19 Thread Manoranjan Panigrahi
Hi All,

I have installed Reviewboard2.5, MySql5.7 on RHEL6.4.

While launching the site I am getting below error:

[Fri Aug 19 11:43:45 2016] [error]   DeprecationWarning
[Fri Aug 19 11:43:45 2016] [error] ERROR:root:Could not load siteconfig: 
(2003, "Can't connect to MySQL server on '127.0.0.1' (13)")
[Fri Aug 19 11:43:46 2016] [error] CRITICAL:root:Unable to load 
SiteConfiguration: (2003, "Can't connect to MySQL server on '127.0.0.1' 
(13)")
[Fri Aug 19 11:43:46 2016] [error] Traceback (most recent call last):
[Fri Aug 19 11:43:46 2016] [error]   File 
"/usr/lib/python2.6/site-packages/ReviewBoard-2.5.6.1-py2.6.egg/reviewboard/admin/middleware.py",
 
line 44, in process_request
[Fri Aug 19 11:43:46 2016] [error] siteconfig = 
SiteConfiguration.objects.get_current()
[Fri Aug 19 11:43:46 2016] [error]   File 
"/usr/lib/python2.6/site-packages/Djblets-0.9.3-py2.6.egg/djblets/siteconfig/managers.py",
 
line 50, in get_current
[Fri Aug 19 11:43:46 2016] [error] site = Site.objects.get_current()
[Fri Aug 19 11:43:46 2016] [error]   File 
"/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/contrib/sites/models.py",
 
line 47, in get_current
[Fri Aug 19 11:43:46 2016] [error] current_site = self.get(pk=sid)
[Fri Aug 19 11:43:46 2016] [error]   File 
"/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/db/models/manager.py",
 
line 151, in get
[Fri Aug 19 11:43:46 2016] [error] return 
self.get_queryset().get(*args, **kwargs)
[Fri Aug 19 11:43:46 2016] [error]   File 
"/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/db/models/query.py",
 
line 304, in get
[Fri Aug 19 11:43:46 2016] [error] num = len(clone)
[Fri Aug 19 11:43:46 2016] [error]   File 
"/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/db/models/query.py",
 
line 77, in __len__
[Fri Aug 19 11:43:46 2016] [error] self._fetch_all()
[Fri Aug 19 11:43:46 2016] [error]   File 
"/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/db/models/query.py",
 
line 857, in _fetch_all
[Fri Aug 19 11:43:46 2016] [error] self._result_cache = 
list(self.iterator())
[Fri Aug 19 11:43:46 2016] [error]   File 
"/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/db/models/query.py",
 
line 220, in iterator
[Fri Aug 19 11:43:46 2016] [error] for row in compiler.results_iter():
[Fri Aug 19 11:43:46 2016] [error]   File 
"/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/db/models/sql/compiler.py",
 
line 713, in results_iter
[Fri Aug 19 11:43:46 2016] [error] for rows in self.execute_sql(MULTI):
[Fri Aug 19 11:43:46 2016] [error]   File 
"/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/db/models/sql/compiler.py",
 
line 785, in execute_sql
[Fri Aug 19 11:43:46 2016] [error] cursor = self.connection.cursor()
[Fri Aug 19 11:43:46 2016] [error]   File 
"/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/db/backends/__init__.py",
 
line 162, in cursor
[Fri Aug 19 11:43:46 2016] [error] cursor = 
util.CursorWrapper(self._cursor(), self)
[Fri Aug 19 11:43:46 2016] [error]   File 
"/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/db/backends/__init__.py",
 
line 132, in _cursor
[Fri Aug 19 11:43:46 2016] [error] self.ensure_connection()
[Fri Aug 19 11:43:46 2016] [error]   File 
"/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/db/backends/__init__.py",
 
line 127, in ensure_connection
[Fri Aug 19 11:43:46 2016] [error] self.connect()
[Fri Aug 19 11:43:46 2016] [error]   File 
"/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/db/utils.py", 
line 99, in __exit__
[Fri Aug 19 11:43:46 2016] [error] six.reraise(dj_exc_type, 
dj_exc_value, traceback)
[Fri Aug 19 11:43:46 2016] [error]   File 
"/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/db/backends/__init__.py",
 
line 127, in ensure_connection
[Fri Aug 19 11:43:46 2016] [error] self.connect()
[Fri Aug 19 11:43:46 2016] [error]   File 
"/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/db/backends/__init__.py",
 
line 115, in connect
[Fri Aug 19 11:43:46 2016] [error] self.connection = 
self.get_new_connection(conn_params)
[Fri Aug 19 11:43:46 2016] [error]   File 
"/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/db/backends/mysql/base.py",
 
line 435, in get_new_connection
[Fri Aug 19 11:43:46 2016] [error] conn = 
Database.connect(**conn_params)
[Fri Aug 19 11:43:46 2016] [error]   File 
"/usr/lib64/python2.6/site-packages/MySQLdb/__init__.py", line 81, in 
Connect
[Fri Aug 19 11:43:46 2016] [error] return Connection(*args, **kwargs)
[Fri Aug 19 11:43:46 2016] [error]   File 
"/usr/lib64/python2.6/site-packages/MySQLdb/connections.py", line 187, in 
__init__
[Fri Aug 19 11:43:46 2016] [error] super(Connection, 
self).__init__(*args, **kwargs2)
[Fri Aug 19 11:43:46 2016] [error] OperationalError: (2003, "Can't connect 
to MySQL server on 

Re: Review board 2.5 on RHEL6.5 having issue "can not be loaded as Python Module"

2016-08-19 Thread Manoranjan Panigrahi
Now the issue is solved after installing the pillowfight and dependencies.

Thanks Christian for pointing out the issue.

Regards,
Mano

On Friday, August 19, 2016 at 12:11:45 PM UTC+5:30, Manoranjan Panigrahi 
wrote:
>
> Hi All,
>
> I am trying to bring up reviewboard 2.5 on RHEL6.4.
>
> Currently this system has Python2.6, MySql5.7, Apache2
>
> After installation, when I tried to open the site it gives below error:
>
> [Fri Aug 19 11:54:50 2016] [notice] SELinux policy enabled; httpd running 
> as context unconfined_u:system_r:httpd_t:s0
> [Fri Aug 19 11:54:50 2016] [notice] suEXEC mechanism enabled (wrapper: 
> /usr/sbin/suexec)
> [Fri Aug 19 11:54:50 2016] [warn] module wsgi_module is already loaded, 
> skipping
> [Fri Aug 19 11:54:50 2016] [notice] Digest: generating secret for digest 
> authentication ...
> [Fri Aug 19 11:54:50 2016] [notice] Digest: done
> [Fri Aug 19 11:54:50 2016] [notice] Apache/2.2.15 (Unix) mod_wsgi/3.2 
> Python/2.6.6 DAV/2 configured -- resuming normal operations
> [Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164] mod_wsgi 
> (pid=3921): Target WSGI script '/var/www/
> reviews.example.com/htdocs/reviewboard.wsgi' cannot be loaded as Python 
> module.
> [Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164] mod_wsgi 
> (pid=3921): Exception occurred processing WSGI script '/var/www/
> reviews.example.com/htdocs/reviewboard.wsgi'.
> [Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164] Traceback (most 
> recent call last):
> [Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164]   File 
> "/var/www/reviews.example.com/htdocs/reviewboard.wsgi", line 3, in 
> 
> [Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164] import 
> pkg_resources
> [Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164]   File 
> "/usr/lib/python2.6/site-packages/pkg_resources/__init__.py", line 2953, in 
> 
> [Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164] @_call_aside
> [Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164]   File 
> "/usr/lib/python2.6/site-packages/pkg_resources/__init__.py", line 2939, in 
> _call_aside
> [Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164] f(*args, 
> **kwargs)
> [Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164]   File 
> "/usr/lib/python2.6/site-packages/pkg_resources/__init__.py", line 2966, in 
> _initialize_master_working_set
> [Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164] working_set 
> = WorkingSet._build_master()
> [Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164]   File 
> "/usr/lib/python2.6/site-packages/pkg_resources/__init__.py", line 637, in 
> _build_master
> [Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164] return 
> cls._build_from_requirements(__requires__)
> [Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164]   File 
> "/usr/lib/python2.6/site-packages/pkg_resources/__init__.py", line 650, in 
> _build_from_requirements
> [Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164] dists = 
> ws.resolve(reqs, Environment())
> [Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164]   File 
> "/usr/lib/python2.6/site-packages/pkg_resources/__init__.py", line 829, in 
> resolve
> [Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164] raise 
> DistributionNotFound(req, requirers)
> [Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164] 
> DistributionNotFound: The 'pillowfight' distribution was not found and is 
> required by Djblets
>
>
> For me it looks to be python error. But I am not able to figure out where 
> the issue and how to solve the same.
>
> Kindly do the needful.
>
> Regards,
> Mano
>

-- 
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: Review board 2.5 on RHEL6.5 having issue "can not be loaded as Python Module"

2016-08-19 Thread Manoranjan Panigrahi
Hi Christian,

Thanks for your quick response.

I installed reviewbaord by following link:
https://www.reviewboard.org/docs/manual/dev/admin/installation/linux/#linux-installing-amazon-s3-support

Configured the reviewboard using following link:
https://www.reviewboard.org/docs/manual/2.5/admin/installation/creating-sites/
http://heylinux.com/en/?p=167

Regards,
Mano

On Friday, August 19, 2016 at 12:11:45 PM UTC+5:30, Manoranjan Panigrahi 
wrote:
>
> Hi All,
>
> I am trying to bring up reviewboard 2.5 on RHEL6.4.
>
> Currently this system has Python2.6, MySql5.7, Apache2
>
> After installation, when I tried to open the site it gives below error:
>
> [Fri Aug 19 11:54:50 2016] [notice] SELinux policy enabled; httpd running 
> as context unconfined_u:system_r:httpd_t:s0
> [Fri Aug 19 11:54:50 2016] [notice] suEXEC mechanism enabled (wrapper: 
> /usr/sbin/suexec)
> [Fri Aug 19 11:54:50 2016] [warn] module wsgi_module is already loaded, 
> skipping
> [Fri Aug 19 11:54:50 2016] [notice] Digest: generating secret for digest 
> authentication ...
> [Fri Aug 19 11:54:50 2016] [notice] Digest: done
> [Fri Aug 19 11:54:50 2016] [notice] Apache/2.2.15 (Unix) mod_wsgi/3.2 
> Python/2.6.6 DAV/2 configured -- resuming normal operations
> [Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164] mod_wsgi 
> (pid=3921): Target WSGI script '/var/www/
> reviews.example.com/htdocs/reviewboard.wsgi' cannot be loaded as Python 
> module.
> [Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164] mod_wsgi 
> (pid=3921): Exception occurred processing WSGI script '/var/www/
> reviews.example.com/htdocs/reviewboard.wsgi'.
> [Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164] Traceback (most 
> recent call last):
> [Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164]   File 
> "/var/www/reviews.example.com/htdocs/reviewboard.wsgi", line 3, in 
> 
> [Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164] import 
> pkg_resources
> [Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164]   File 
> "/usr/lib/python2.6/site-packages/pkg_resources/__init__.py", line 2953, in 
> 
> [Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164] @_call_aside
> [Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164]   File 
> "/usr/lib/python2.6/site-packages/pkg_resources/__init__.py", line 2939, in 
> _call_aside
> [Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164] f(*args, 
> **kwargs)
> [Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164]   File 
> "/usr/lib/python2.6/site-packages/pkg_resources/__init__.py", line 2966, in 
> _initialize_master_working_set
> [Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164] working_set 
> = WorkingSet._build_master()
> [Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164]   File 
> "/usr/lib/python2.6/site-packages/pkg_resources/__init__.py", line 637, in 
> _build_master
> [Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164] return 
> cls._build_from_requirements(__requires__)
> [Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164]   File 
> "/usr/lib/python2.6/site-packages/pkg_resources/__init__.py", line 650, in 
> _build_from_requirements
> [Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164] dists = 
> ws.resolve(reqs, Environment())
> [Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164]   File 
> "/usr/lib/python2.6/site-packages/pkg_resources/__init__.py", line 829, in 
> resolve
> [Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164] raise 
> DistributionNotFound(req, requirers)
> [Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164] 
> DistributionNotFound: The 'pillowfight' distribution was not found and is 
> required by Djblets
>
>
> For me it looks to be python error. But I am not able to figure out where 
> the issue and how to solve the same.
>
> Kindly do the needful.
>
> Regards,
> Mano
>

-- 
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.


Review board 2.5 on RHEL6.5 having issue "can not be loaded as Python Module"

2016-08-19 Thread Manoranjan Panigrahi
Hi All,

I am trying to bring up reviewboard 2.5 on RHEL6.4.

Currently this system has Python2.6, MySql5.7, Apache2

After installation, when I tried to open the site it gives below error:

[Fri Aug 19 11:54:50 2016] [notice] SELinux policy enabled; httpd running 
as context unconfined_u:system_r:httpd_t:s0
[Fri Aug 19 11:54:50 2016] [notice] suEXEC mechanism enabled (wrapper: 
/usr/sbin/suexec)
[Fri Aug 19 11:54:50 2016] [warn] module wsgi_module is already loaded, 
skipping
[Fri Aug 19 11:54:50 2016] [notice] Digest: generating secret for digest 
authentication ...
[Fri Aug 19 11:54:50 2016] [notice] Digest: done
[Fri Aug 19 11:54:50 2016] [notice] Apache/2.2.15 (Unix) mod_wsgi/3.2 
Python/2.6.6 DAV/2 configured -- resuming normal operations
[Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164] mod_wsgi 
(pid=3921): Target WSGI script 
'/var/www/reviews.example.com/htdocs/reviewboard.wsgi' cannot be loaded as 
Python module.
[Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164] mod_wsgi 
(pid=3921): Exception occurred processing WSGI script 
'/var/www/reviews.example.com/htdocs/reviewboard.wsgi'.
[Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164] Traceback (most 
recent call last):
[Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164]   File 
"/var/www/reviews.example.com/htdocs/reviewboard.wsgi", line 3, in 
[Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164] import 
pkg_resources
[Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164]   File 
"/usr/lib/python2.6/site-packages/pkg_resources/__init__.py", line 2953, in 

[Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164] @_call_aside
[Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164]   File 
"/usr/lib/python2.6/site-packages/pkg_resources/__init__.py", line 2939, in 
_call_aside
[Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164] f(*args, 
**kwargs)
[Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164]   File 
"/usr/lib/python2.6/site-packages/pkg_resources/__init__.py", line 2966, in 
_initialize_master_working_set
[Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164] working_set 
= WorkingSet._build_master()
[Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164]   File 
"/usr/lib/python2.6/site-packages/pkg_resources/__init__.py", line 637, in 
_build_master
[Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164] return 
cls._build_from_requirements(__requires__)
[Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164]   File 
"/usr/lib/python2.6/site-packages/pkg_resources/__init__.py", line 650, in 
_build_from_requirements
[Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164] dists = 
ws.resolve(reqs, Environment())
[Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164]   File 
"/usr/lib/python2.6/site-packages/pkg_resources/__init__.py", line 829, in 
resolve
[Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164] raise 
DistributionNotFound(req, requirers)
[Fri Aug 19 11:55:25 2016] [error] [client 10.113.130.164] 
DistributionNotFound: The 'pillowfight' distribution was not found and is 
required by Djblets


For me it looks to be python error. But I am not able to figure out where 
the issue and how to solve the same.

Kindly do the needful.

Regards,
Mano

-- 
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.