Re: mod_python mandatory for reviewboard 1.6?
Hi Christian, as suggested I am using http://server.us.oracle.com and it works. BTW, a very good product! On Oct 5, 1:49 pm, Sanjay Lal sklqui...@gmail.com wrote: Thanks. My reviewboard install is working fine. Thanks all for your help! On Sep 21, 2:35 pm, Christian Hammond chip...@chipx86.com wrote: It looks like you've set this up for a virtual host install ( reviews.hsgbu.com) but are accessing it like a subdirectory (sever. us.oracle.com). From the looks of it, http://server.us.oracle.com should work instead. Christian -- Christian Hammond - chip...@chipx86.com Review Board -http://www.reviewboard.org VMware, Inc. -http://www.vmware.com On Wed, Sep 21, 2011 at 11:32 AM,SanjayLal sklqui...@gmail.com wrote: Thanks Anton. These details are very helpful. I am making progress now. I am now able to use yum install mod_wsgi. I have enabled the mod_wsgi now. Now, After restarting http server, I am trying to access reviewboard from the URL http://server.us.oracle.com/reviews.hsgbu.com/ but geting 404 error. I am sure I am doing somethign wrong.. below is the debug info - --- Page not found (404) Request Method: GET Request URL: http://burhs40001v.us.oracle.com/reviews.hsgbu.com/ Using the URLconf defined in djblets.util.rooturl, Django tried these URL patterns, in this order: ^ ^admin/ ^ ^media/(?Ppath.*)$ ^ ^account/ ^ ^reports/ ^ ^s/(?Plocal_site_name[A-Za-z0-9\-_.]+)/ ^ ^$ [name='root'] ^ ^api/ ^ ^r/ ^ ^dashboard/$ [name='dashboard'] ^ ^users/$ [name='all-users'] ^ ^users/(?Pusername[A-Za-z0-9@_\-\.]+)/$ [name='user'] ^ ^users/(?Pusername[A-Za-z0-9@_\-\.]+)/infobox/$ [name='user- infobox'] ^ ^groups/$ [name='all-groups'] ^ ^groups/(?Pname[A-Za-z0-9_-]+)/$ [name='group'] ^ ^groups/(?Pname[A-Za-z0-9_-]+)/members/$ [name='group_members'] ^ ^account/logout/$ [name='logout'] The current URL, reviews.hsgbu.com/, didn't match any of these. You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page. --- Here is the contents of /etc/httpd/conf.d/apache-wsgi.conf - VirtualHost *:80 ServerName burhs40001v.us.oracle.com DocumentRoot /usr/local/apache2/htdocs/reviews.hsgbu.com/ htdocs # Error handlers ErrorDocument 500 /errordocs/500.html WSGIPassAuthorization On WSGIScriptAlias / /usr/local/apache2/htdocs/ reviews.hsgbu.com/htdocs/reviewboard.wsgi Directory /usr/local/apache2/htdocs/reviews.hsgbu.com/ htdocs AllowOverride All /Directory # Alias static media requests to filesystem Alias /media /usr/local/apache2/htdocs/reviews.hsgbu.com/ htdocs/media http://reviews.hsgbu.com/%0Ahtdocs/media Alias /errordocs /usr/local/apache2/htdocs/reviews.hsgbu.com/ htdocs/errordocs http://reviews.hsgbu.com/%0Ahtdocs/errordocs ## Alias /favicon.ico /usr/local/apache2/htdocs/ reviews.hsgbu.com/htdocs/media/rbcommons/images/favicon.png Please let me know in case any other detail is needed. Thanks sanjay On Sep 21, 5:45 am, Anton Cohen an...@antoncohen.com wrote: On Tue, Sep 20, 2011 at 9:18 PM,SanjayLal sklqui...@gmail.com wrote: [root ReviewBoard-1.6]# yum install mod_wsgi Loaded plugins: security http://cheeseshop.python.org/pypi/ReviewBoard/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found () Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: download_base. Please verify its path and try again Is it really giving an error that mentions ReviewBoard when you are trying to install an unrelated package? Did you modify anything in /etc/yum.conf or /etc/yum.repos.d? It seems like you might have put a Python pypi URL in a yum config. Do this to list the repositories: yum -v repolist I have set following http_proxy=www-proxy.us.oracle.com:80 ftp_proxy=www-proxy.us.oracle.com:80 secure_proxy=www-proxy.us.oracle.com:80 Here is how to setup yum through a proxy: http://www.centos.org/docs/5/html/yum/sn-yum-proxy-server.html If a proxy is always required, it's probably best to do it in yum.conf, instead of as an environment variable. If you do the env method, don't forget to export http_proxy so it works outside your shell. If you are just playing around, maybe consider installing RB in OpenShift. That way you won't have to do any of the Linux stuff, all you have to do is git pull/push: https://github.com/openshift/reviewboard-example -Anton -- Want to
Re: mod_python mandatory for reviewboard 1.6?
On Tue, Sep 20, 2011 at 9:18 PM, Sanjay Lal sklqui...@gmail.com wrote: [root ReviewBoard-1.6]# yum install mod_wsgi Loaded plugins: security http://cheeseshop.python.org/pypi/ReviewBoard/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found () Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: download_base. Please verify its path and try again Is it really giving an error that mentions ReviewBoard when you are trying to install an unrelated package? Did you modify anything in /etc/yum.conf or /etc/yum.repos.d? It seems like you might have put a Python pypi URL in a yum config. Do this to list the repositories: yum -v repolist I have set following http_proxy=www-proxy.us.oracle.com:80 ftp_proxy=www-proxy.us.oracle.com:80 secure_proxy=www-proxy.us.oracle.com:80 Here is how to setup yum through a proxy: http://www.centos.org/docs/5/html/yum/sn-yum-proxy-server.html If a proxy is always required, it's probably best to do it in yum.conf, instead of as an environment variable. If you do the env method, don't forget to export http_proxy so it works outside your shell. If you are just playing around, maybe consider installing RB in OpenShift. That way you won't have to do any of the Linux stuff, all you have to do is git pull/push: https://github.com/openshift/reviewboard-example -Anton -- 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: mod_python mandatory for reviewboard 1.6?
Thanks Anton. These details are very helpful. I am making progress now. I am now able to use yum install mod_wsgi. I have enabled the mod_wsgi now. Now, After restarting http server, I am trying to access reviewboard from the URL http://server.us.oracle.com/reviews.hsgbu.com/ but geting 404 error. I am sure I am doing somethign wrong.. below is the debug info - --- Page not found (404) Request Method: GET Request URL:http://burhs40001v.us.oracle.com/reviews.hsgbu.com/ Using the URLconf defined in djblets.util.rooturl, Django tried these URL patterns, in this order: ^ ^admin/ ^ ^media/(?Ppath.*)$ ^ ^account/ ^ ^reports/ ^ ^s/(?Plocal_site_name[A-Za-z0-9\-_.]+)/ ^ ^$ [name='root'] ^ ^api/ ^ ^r/ ^ ^dashboard/$ [name='dashboard'] ^ ^users/$ [name='all-users'] ^ ^users/(?Pusername[A-Za-z0-9@_\-\.]+)/$ [name='user'] ^ ^users/(?Pusername[A-Za-z0-9@_\-\.]+)/infobox/$ [name='user- infobox'] ^ ^groups/$ [name='all-groups'] ^ ^groups/(?Pname[A-Za-z0-9_-]+)/$ [name='group'] ^ ^groups/(?Pname[A-Za-z0-9_-]+)/members/$ [name='group_members'] ^ ^account/logout/$ [name='logout'] The current URL, reviews.hsgbu.com/, didn't match any of these. You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page. --- Here is the contents of /etc/httpd/conf.d/apache-wsgi.conf - VirtualHost *:80 ServerName burhs40001v.us.oracle.com DocumentRoot /usr/local/apache2/htdocs/reviews.hsgbu.com/ htdocs # Error handlers ErrorDocument 500 /errordocs/500.html WSGIPassAuthorization On WSGIScriptAlias / /usr/local/apache2/htdocs/ reviews.hsgbu.com/htdocs/reviewboard.wsgi Directory /usr/local/apache2/htdocs/reviews.hsgbu.com/ htdocs AllowOverride All /Directory # Alias static media requests to filesystem Alias /media /usr/local/apache2/htdocs/reviews.hsgbu.com/ htdocs/media Alias /errordocs /usr/local/apache2/htdocs/reviews.hsgbu.com/ htdocs/errordocs ## Alias /favicon.ico /usr/local/apache2/htdocs/ reviews.hsgbu.com/htdocs/media/rbcommons/images/favicon.png Please let me know in case any other detail is needed. Thanks sanjay On Sep 21, 5:45 am, Anton Cohen an...@antoncohen.com wrote: On Tue, Sep 20, 2011 at 9:18 PM, Sanjay Lal sklqui...@gmail.com wrote: [root ReviewBoard-1.6]# yum install mod_wsgi Loaded plugins: security http://cheeseshop.python.org/pypi/ReviewBoard/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found () Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: download_base. Please verify its path and try again Is it really giving an error that mentions ReviewBoard when you are trying to install an unrelated package? Did you modify anything in /etc/yum.conf or /etc/yum.repos.d? It seems like you might have put a Python pypi URL in a yum config. Do this to list the repositories: yum -v repolist I have set following http_proxy=www-proxy.us.oracle.com:80 ftp_proxy=www-proxy.us.oracle.com:80 secure_proxy=www-proxy.us.oracle.com:80 Here is how to setup yum through a proxy:http://www.centos.org/docs/5/html/yum/sn-yum-proxy-server.html If a proxy is always required, it's probably best to do it in yum.conf, instead of as an environment variable. If you do the env method, don't forget to export http_proxy so it works outside your shell. If you are just playing around, maybe consider installing RB in OpenShift. That way you won't have to do any of the Linux stuff, all you have to do is git pull/push: https://github.com/openshift/reviewboard-example -Anton -- 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: mod_python mandatory for reviewboard 1.6?
It looks like you've set this up for a virtual host install ( reviews.hsgbu.com) but are accessing it like a subdirectory (sever. us.oracle.com). From the looks of it, http://server.us.oracle.com should work instead. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Wed, Sep 21, 2011 at 11:32 AM, Sanjay Lal sklqui...@gmail.com wrote: Thanks Anton. These details are very helpful. I am making progress now. I am now able to use yum install mod_wsgi. I have enabled the mod_wsgi now. Now, After restarting http server, I am trying to access reviewboard from the URL http://server.us.oracle.com/reviews.hsgbu.com/ but geting 404 error. I am sure I am doing somethign wrong.. below is the debug info - --- Page not found (404) Request Method: GET Request URL:http://burhs40001v.us.oracle.com/reviews.hsgbu.com/ Using the URLconf defined in djblets.util.rooturl, Django tried these URL patterns, in this order: ^ ^admin/ ^ ^media/(?Ppath.*)$ ^ ^account/ ^ ^reports/ ^ ^s/(?Plocal_site_name[A-Za-z0-9\-_.]+)/ ^ ^$ [name='root'] ^ ^api/ ^ ^r/ ^ ^dashboard/$ [name='dashboard'] ^ ^users/$ [name='all-users'] ^ ^users/(?Pusername[A-Za-z0-9@_\-\.]+)/$ [name='user'] ^ ^users/(?Pusername[A-Za-z0-9@_\-\.]+)/infobox/$ [name='user- infobox'] ^ ^groups/$ [name='all-groups'] ^ ^groups/(?Pname[A-Za-z0-9_-]+)/$ [name='group'] ^ ^groups/(?Pname[A-Za-z0-9_-]+)/members/$ [name='group_members'] ^ ^account/logout/$ [name='logout'] The current URL, reviews.hsgbu.com/, didn't match any of these. You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page. --- Here is the contents of /etc/httpd/conf.d/apache-wsgi.conf - VirtualHost *:80 ServerName burhs40001v.us.oracle.com DocumentRoot /usr/local/apache2/htdocs/reviews.hsgbu.com/ htdocs # Error handlers ErrorDocument 500 /errordocs/500.html WSGIPassAuthorization On WSGIScriptAlias / /usr/local/apache2/htdocs/ reviews.hsgbu.com/htdocs/reviewboard.wsgi Directory /usr/local/apache2/htdocs/reviews.hsgbu.com/ htdocs AllowOverride All /Directory # Alias static media requests to filesystem Alias /media /usr/local/apache2/htdocs/reviews.hsgbu.com/ htdocs/media http://reviews.hsgbu.com/%0Ahtdocs/media Alias /errordocs /usr/local/apache2/htdocs/reviews.hsgbu.com/ htdocs/errordocs http://reviews.hsgbu.com/%0Ahtdocs/errordocs ## Alias /favicon.ico /usr/local/apache2/htdocs/ reviews.hsgbu.com/htdocs/media/rbcommons/images/favicon.png Please let me know in case any other detail is needed. Thanks sanjay On Sep 21, 5:45 am, Anton Cohen an...@antoncohen.com wrote: On Tue, Sep 20, 2011 at 9:18 PM, Sanjay Lal sklqui...@gmail.com wrote: [root ReviewBoard-1.6]# yum install mod_wsgi Loaded plugins: security http://cheeseshop.python.org/pypi/ReviewBoard/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found () Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: download_base. Please verify its path and try again Is it really giving an error that mentions ReviewBoard when you are trying to install an unrelated package? Did you modify anything in /etc/yum.conf or /etc/yum.repos.d? It seems like you might have put a Python pypi URL in a yum config. Do this to list the repositories: yum -v repolist I have set following http_proxy=www-proxy.us.oracle.com:80 ftp_proxy=www-proxy.us.oracle.com:80 secure_proxy=www-proxy.us.oracle.com:80 Here is how to setup yum through a proxy: http://www.centos.org/docs/5/html/yum/sn-yum-proxy-server.html If a proxy is always required, it's probably best to do it in yum.conf, instead of as an environment variable. If you do the env method, don't forget to export http_proxy so it works outside your shell. If you are just playing around, maybe consider installing RB in OpenShift. That way you won't have to do any of the Linux stuff, all you have to do is git pull/push: https://github.com/openshift/reviewboard-example -Anton -- 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 -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us
mod_python mandatory for reviewboard 1.6?
Hi Is mod_python.so load module mandatory for reviewBoard 1.6? I have redhad linux 5.5, python 2.4.3 , apache 2.1.9. While building mod_python.so I was getting the error - connobject.c: 142: error: request for member next in something not a structure or union . So I got the connobject.c from https://svn.apache.org/repos/asf/quetzalcoatl/mod_python/trunk then th ecompile completed successfully. Then I appended the contents of apache-wsgi.conf to the httpd.conf . Now I am not able to restart the apache HTTP server . gettin gerror - [root: apache2]# apachectl restart httpd: Syntax error on line 54 of /usr/local/apache2/conf/httpd.conf: Can't locate API module structure `mod_python' in file /usr/local/ apache2/modules/mod_python.so: /usr/local/apache2/modules/ mod_python.so: undefined symbol: mod_python Any ideas/suggestions? thanks in advance for your help! -sanjay -- 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: mod_python mandatory for reviewboard 1.6?
On Tue, Sep 20, 2011 at 2:13 PM, Sanjay Lal sklqui...@gmail.com wrote: Hi Is mod_python.so load module mandatory for reviewBoard 1.6? I have redhad linux 5.5, python 2.4.3 , apache 2.1.9. While building mod_python.so I was getting the error - connobject.c: 142: error: request for member next in something not a structure or union . So I got the connobject.c from On Tue, Sep 20, 2011 at 2:49 PM, Sanjay Lal sklqui...@gmail.com wrote: Hi, I would like to verify if I am doing things correctly - I have install reviewboard 1.6, apache 2.1.9 and all the dependencies etc. I have following conf files in /usr/local/apache2/htdocs/reviews.hsgbu.com/ conf - apache-wsgi.conf search-cron.conf settings_local.py settings_local.pyc Should I just append the contents of /usr/local/apache2/htdocs/ reviews.hsgbu.com/conf/apache-wsgi.conf to /usr/local/apache2/conf/ httpd.conf? Or I am supposed to do anything else? Are you able to start fresh, maybe with a different Linux distro? There are a few things wrong here. * You said redhad linux 5.5, I'm going to assume that is RHEL 5 or a rebuild of it like Oracle or CentOS. RHEL 5 has pretty old versions of things, like Python 2.4. You would be better off with something based on RHEL 6, like CentOS 6. RHEL 5 will work if you have to use it. * You should not compile apache from source, almost no one should. 2.1.9 is really ancient, even RHEL comes with 2.2.3 by default. Install apache with: yum groupinstall Web Server * You do not need mod_python. It would be better to use mod_wsgi. mod_wsgi is in the EPEL repository for RHEL 5, Google will tell you how to install the EPEL repository. Neither of them should be installed from source, instead do: yum install mod_python yum install mod_wsgi * In a normal install of Red Hat, you should avoid editing httpd.conf (in /etc/httpd/conf/), instead copy the virtual host configs to /etc/httpd/conf.d/. * Avoid using apachectl. Instead use: service httpd start|stop|restart|graceful OR /etc/init.d/httpd start|stop|restart|graceful Overall advice for Linux admins, do not install from source. If you find yourself about to install from source, step back, and find a package/repository. Even fairly cutting-edge things like CouchDB and Redis have packages in EPEL. Hope that helps, Anton -- 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: mod_python mandatory for reviewboard 1.6?
Thanks for the suggestions. When I use yum to install mod_pythin and mod_wsgi i get following error. Any ideas? [root ReviewBoard-1.6]# yum install mod_python Loaded plugins: security http://cheeseshop.python.org/pypi/ReviewBoard/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found () Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: download_base. Please verify its path and try again [root ReviewBoard-1.6]# yum install mod_wsgi Loaded plugins: security http://cheeseshop.python.org/pypi/ReviewBoard/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found () Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: download_base. Please verify its path and try again I have set following http_proxy=www-proxy.us.oracle.com:80 ftp_proxy=www-proxy.us.oracle.com:80 secure_proxy=www-proxy.us.oracle.com:80 I am new to Linux admin so not very familier with how to make changes to force it to use some other site, thanks sanjay On Sep 20, 7:13 pm, Anton Cohen an...@antoncohen.com wrote: On Tue, Sep 20, 2011 at 2:13 PM, Sanjay Lal sklqui...@gmail.com wrote: Hi Is mod_python.so load module mandatory for reviewBoard 1.6? I have redhad linux 5.5, python 2.4.3 , apache 2.1.9. While building mod_python.so I was getting the error - connobject.c: 142: error: request for member next in something not a structure or union . So I got the connobject.c from On Tue, Sep 20, 2011 at 2:49 PM, Sanjay Lal sklqui...@gmail.com wrote: Hi, I would like to verify if I am doing things correctly - I have install reviewboard 1.6, apache 2.1.9 and all the dependencies etc. I have following conf files in /usr/local/apache2/htdocs/reviews.hsgbu.com/ conf - apache-wsgi.conf search-cron.conf settings_local.py settings_local.pyc Should I just append the contents of /usr/local/apache2/htdocs/ reviews.hsgbu.com/conf/apache-wsgi.conf to /usr/local/apache2/conf/ httpd.conf? Or I am supposed to do anything else? Are you able to start fresh, maybe with a different Linux distro? There are a few things wrong here. * You said redhad linux 5.5, I'm going to assume that is RHEL 5 or a rebuild of it like Oracle or CentOS. RHEL 5 has pretty old versions of things, like Python 2.4. You would be better off with something based on RHEL 6, like CentOS 6. RHEL 5 will work if you have to use it. * You should not compile apache from source, almost no one should. 2.1.9 is really ancient, even RHEL comes with 2.2.3 by default. Install apache with: yum groupinstall Web Server * You do not need mod_python. It would be better to use mod_wsgi. mod_wsgi is in the EPEL repository for RHEL 5, Google will tell you how to install the EPEL repository. Neither of them should be installed from source, instead do: yum install mod_python yum install mod_wsgi * In a normal install of Red Hat, you should avoid editing httpd.conf (in /etc/httpd/conf/), instead copy the virtual host configs to /etc/httpd/conf.d/. * Avoid using apachectl. Instead use: service httpd start|stop|restart|graceful OR /etc/init.d/httpd start|stop|restart|graceful Overall advice for Linux admins, do not install from source. If you find yourself about to install from source, step back, and find a package/repository. Even fairly cutting-edge things like CouchDB and Redis have packages in EPEL. Hope that helps, Anton -- 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