Re: Static media still broken in 1.7 after updating Apache configuration

2013-03-18 Thread satish singh
Hi Chris,
 
Can this problem be because of virtual environment, because I gave it a try 
again using both mod_python and mod_wsgi. Still getiing same error 404 for 
static media.
 
 My Apache 2 configuration using mod_python:
 
 
VirtualHost *:80
ServerName toolsnb01-06.lab.eng.btc.netapp.in
DocumentRoot /var/www/RB175.com/htdocs
# Error handlers
ErrorDocument 500 /errordocs/500.html
# Serve django pages
Location /
PythonPath ['/var/www/RB175.com/conf'] + sys.path
SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings
SetEnv PYTHON_EGG_CACHE /var/www/RB175.com/tmp/egg_cache
SetEnv HOME /var/www/RB175.com/data
SetHandler mod_python
PythonHandler django.core.handlers.modpython
PythonAutoReload Off
PythonDebug Off
# Used to run multiple mod_python sites in the same apache
PythonInterpreter reviewboard_RB175_com
/Location
# Serve static media without running it through mod_python
# (overrides the above)
Location /media
SetHandler None
/Location
Location /static
SetHandler None
/Location
Location /errordocs
SetHandler None
/Location
Directory /var/www/RB175.com/htdocs
AllowOverride All
Options -Indexes +FollowSymLinks
Allow from all
/Directory
# Alias static media requests to filesystem
Alias /media /var/www/RB175.com/htdocs/media
Alias /static /var/www/RB175.com/htdocs/static
Alias /errordocs /var/www/RB175.com/htdocs/errordocs
/VirtualHost
 
Please provide some pointers, I did followed all the steps, everything is 
working, only static media is not getting loaded.
 
Regards,
Satish

On Friday, 15 March 2013 15:31:19 UTC+5:30, satish singh wrote:

 Hi Sir, 

 I did created an virtualenv and then I installed Review Board 1.7.5 with 
 easy_install tool. I have not made any change to settings_local.py, just 
 copied it to ReviewBoard directory.

 Installation directory:

  (RB1.7.5)bash-3.2$ ls
 Django-1.4.5-py2.7.eggJinja2-2.6-py2.7.egg 
  pip-1.2.1-py2.7.egg  ReviewBoard-1.7.5-py2.7.egg
 django_evolution-0.6.8-py2.7.egg  jsmin-2.0.2_1-py2.7.egg   
 pycrypto-2.6-py2.7-linux-x86_64.egg  setuptools-0.6c11-py2.7.egg
 django_pipeline-1.2.24-py2.7.egg  Markdown-2.2.1-py2.7.egg 
  Pygments-1.6-py2.7.egg   setuptools-0.6c12dev_r88846-py2.7.egg
 Djblets-0.7.11-py2.7.egg  mimeparse-0.1.3-py2.7.egg 
 python_dateutil-1.5-py2.7.eggsetuptools.pth
 docutils-0.10-py2.7.egg   nose-1.2.1-py2.7.egg 
  python_memcached-1.48-py2.7.egg  Sphinx-1.1.3-py2.7.egg
 easy-install.pth  paramiko-1.9.0-py2.7.egg 
  pytz-2012j-py2.7.egg
 feedparser-5.1.3-py2.7.eggPIL-1.1.7-py2.7-linux-x86_64.egg 
  recaptcha_client-1.0.6-py2.7.egg



  (RB1.7.5)bash-3.2$ pwd

 /u/satish3/envs/RB1.7.5/lib/python2.7/site-packages/ReviewBoard-1.7.5-py2.7.egg
  (RB1.7.5)bash-3.2$ ls
 conf  data  EGG-INFO  htdocs  logs  reviewboard  settings_local.py 
  settings_local.pyc  tmp  webtests

 content of settings_local.py :

  
 # Site-specific configuration settings for Review Board
 # Definitions of these settings can be found at
 # http://docs.djangoproject.com/en/dev/ref/settings/

 # Database configuration
 DATABASES = {
 'default': {
 'ENGINE': 'django.db.backends.sqlite3',
 'NAME': '/var/www/ReviewBoard175.com/data/reviewboard.db',
 },
 }

 # Unique secret key. Don't share this with anybody.
 SECRET_KEY = '=ck@h)-ns9=xmzt3i^lkkc(^4fp3@gw=h@wy(p)g8bpa3@ys)*'

 # Cache backend settings.
 CACHES = {
 'default': {
 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
 'LOCATION': 'localhost:11211',
 },
 }

 # Extra site information.
 SITE_ID = 1
 SITE_ROOT = '/'
 FORCE_SCRIPT_NAME = ''
 DEBUG = False


 Thanks,
 Satish

 On Friday, 15 March 2013 15:09:53 UTC+5:30, Christian Hammond wrote: 

 I feel like I asked this, but I can't find where.. 

 How did you install Review Board? It looks like you have a virtualenv set 
 up. Did you install from source, or our egg?

 Did you make any modifications to your settings_local.py file?

 Christian

 -- 
 Christian Hammond - chi...@chipx86.com
 Review Board - http://www.reviewboard.org
 VMware, Inc. - http://www.vmware.com 

  On Mar 15, 2013, at 2:36 AM, satish singh triv...@gmail.com wrote:

 Hi Team, 
 Please provide any pointers on this, how can i debug ?

 thanks ,
 satish

 On Thursday, 14 March 2013 18:38:04 UTC+5:30, satish singh wrote: 

 Hi Sir, 

 I have added mod_wsgi configuration, still facing the same issue:

  The Review Board 1.7.5 is up but images, CSS and JS files are not 
 getting loaded. 

Re: Static media still broken in 1.7 after updating Apache configuration

2013-03-18 Thread Christian Hammond
Hi Satish,

It may be due to the virtualenv. I really don't know. We don't officially
provide support for using a virtualenv, so I'd suggest just installing it
as per the installation instructions on our site.

I'm curious why you're not just using your company's existing installation?

Christian

-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
Beanbag, Inc. - http://www.beanbaginc.com


On Mon, Mar 18, 2013 at 7:34 AM, satish singh trivi...@gmail.com wrote:

 Hi Chris,

 Can this problem be because of virtual environment, because I gave it a
 try again using both mod_python and mod_wsgi. Still getiing same error 404
 for static media.

  My Apache 2 configuration using mod_python:


 VirtualHost *:80
 ServerName toolsnb01-06.lab.eng.btc.netapp.in
 DocumentRoot /var/www/RB175.com/htdocs
  # Error handlers
 ErrorDocument 500 /errordocs/500.html
 # Serve django pages
 Location /
 PythonPath ['/var/www/RB175.com/conf'] + sys.path
 SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings
 SetEnv PYTHON_EGG_CACHE /var/www/RB175.com/tmp/egg_cache
 SetEnv HOME /var/www/RB175.com/data

 SetHandler mod_python
 PythonHandler django.core.handlers.modpython
 PythonAutoReload Off
 PythonDebug Off
 # Used to run multiple mod_python sites in the same apache
 PythonInterpreter reviewboard_RB175_com
 /Location
 # Serve static media without running it through mod_python
 # (overrides the above)
 Location /media
 SetHandler None
 /Location
 Location /static

 SetHandler None
 /Location
 Location /errordocs
 SetHandler None
 /Location
  Directory /var/www/RB175.com/htdocs

 AllowOverride All
 Options -Indexes +FollowSymLinks
 Allow from all
 /Directory
  # Alias static media requests to filesystem
 Alias /media /var/www/RB175.com/htdocs/media
 Alias /static /var/www/RB175.com/htdocs/static
 Alias /errordocs /var/www/RB175.com/htdocs/errordocs
 /VirtualHost

 Please provide some pointers, I did followed all the steps, everything is
 working, only static media is not getting loaded.

 Regards,
 Satish

 On Friday, 15 March 2013 15:31:19 UTC+5:30, satish singh wrote:

 Hi Sir,

 I did created an virtualenv and then I installed Review Board 1.7.5 with
 easy_install tool. I have not made any change to settings_local.py, just
 copied it to ReviewBoard directory.

 Installation directory:

  (RB1.7.5)bash-3.2$ ls
 Django-1.4.5-py2.7.eggJinja2-2.6-py2.7.egg
  pip-1.2.1-py2.7.egg  ReviewBoard-1.7.5-py2.7.egg
 django_evolution-0.6.8-py2.7.**egg  jsmin-2.0.2_1-py2.7.egg
 pycrypto-2.6-py2.7-linux-x86_**64.egg  setuptools-0.6c11-py2.7.egg
 django_pipeline-1.2.24-py2.7.**egg  Markdown-2.2.1-py2.7.egg
  Pygments-1.6-py2.7.egg   setuptools-0.6c12dev_r88846-**
 py2.7.egg
 Djblets-0.7.11-py2.7.egg  mimeparse-0.1.3-py2.7.egg
 python_dateutil-1.5-py2.7.eggsetuptools.pth
 docutils-0.10-py2.7.egg   nose-1.2.1-py2.7.egg
  python_memcached-1.48-py2.7.**egg  Sphinx-1.1.3-py2.7.egg
 easy-install.pth  paramiko-1.9.0-py2.7.egg
  pytz-2012j-py2.7.egg
 feedparser-5.1.3-py2.7.eggPIL-1.1.7-py2.7-linux-x86_64.**egg
  recaptcha_client-1.0.6-py2.7.**egg



  (RB1.7.5)bash-3.2$ pwd
 /u/satish3/envs/RB1.7.5/lib/**python2.7/site-packages/**
 ReviewBoard-1.7.5-py2.7.egg
  (RB1.7.5)bash-3.2$ ls
 conf  data  EGG-INFO  htdocs  logs  reviewboard  settings_local.py
  settings_local.pyc  tmp  webtests

 content of settings_local.py :


 # Site-specific configuration settings for Review Board
 # Definitions of these settings can be found at
 # 
 http://docs.djangoproject.com/**en/dev/ref/settings/http://docs.djangoproject.com/en/dev/ref/settings/

 # Database configuration
 DATABASES = {
 'default': {
 'ENGINE': 'django.db.backends.sqlite3',
 'NAME': '/var/www/ReviewBoard175.com/**data/reviewboard.db',
 },
 }

 # Unique secret key. Don't share this with anybody.
 SECRET_KEY = '=ck@h)-ns9=xmzt3i^lkkc(^4fp3@**gw=h@wy(p)g8bpa3@ys)*'

 # Cache backend settings.
 CACHES = {
 'default': {
 'BACKEND': 'django.core.cache.backends.**
 memcached.MemcachedCache',
 'LOCATION': 'localhost:11211',
 },
 }

 # Extra site information.
 SITE_ID = 1
 SITE_ROOT = '/'
 FORCE_SCRIPT_NAME = ''
 DEBUG = False


 Thanks,
 Satish

 On Friday, 15 March 2013 15:09:53 UTC+5:30, Christian Hammond wrote:

 I feel like I asked this, but I can't find where..

 How did you install Review Board? It looks like you have a virtualenv
 set up. Did you install from source, or our egg?

 Did you make any modifications to your 

Re: Static media still broken in 1.7 after updating Apache configuration

2013-03-15 Thread Christian Hammond
I feel like I asked this, but I can't find where..

How did you install Review Board? It looks like you have a virtualenv set up. 
Did you install from source, or our egg?

Did you make any modifications to your settings_local.py file?

Christian

-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com

On Mar 15, 2013, at 2:36 AM, satish singh trivi...@gmail.com wrote:

 Hi Team,
 Please provide any pointers on this, how can i debug ?
 
 thanks ,
 satish
 
 On Thursday, 14 March 2013 18:38:04 UTC+5:30, satish singh wrote:
 Hi Sir,
 
 I have added mod_wsgi configuration, still facing the same issue:
 
 The Review Board 1.7.5 is up but images, CSS and JS files are not getting 
 loaded. I'm getting 404 errors for anything under /static. Screenshot 
 attached. It’s strange when I ran findstatic management command it’s seems to 
 find the static media. But review board doesn’t seem to find it.
 
 Log:
 
 (RB1.7.5)bash-3.2$ python ./reviewboard/manage.py findstatic 
 rb/images/convo.png
 
 Found 'rb/images/convo.png' here:
 
   
 /u/satish3/envs/RB1.7.5/lib/python2.7/site-packages/ReviewBoard-1.7.5-py2.7.egg/reviewboard/static/rb/images/convo.png
 
 
 My Apache 2 configuration (httpd.conf):
 
 LoadModule wsgi_module modules/mod_wsgi.so
 
 VirtualHost *:80
 
 ServerName toolsnb01-06.lab.eng.btc.netapp.in
 
 DocumentRoot /var/www/ReviewBoard175.com/htdocs
 
  
 # Error handlers
 
 ErrorDocument 500 /errordocs/500.html
 
  
 WSGIPassAuthorization On
 
 WSGIScriptAlias / 
 /var/www/ReviewBoard175.com/htdocs/reviewboard.wsgi/
 
  
 Directory /var/www/ReviewBoard175.com/htdocs
 
 AllowOverride All
 
 Options -Indexes +FollowSymLinks
 
 Allow from all
 
 /Directory
 
  
 # Alias static media requests to filesystem
 
 Alias /media /var/www/ReviewBoard175.com/htdocs/media
 
 Alias /static /var/www/ReviewBoard175.com/htdocs/static
 
 Alias /errordocs /var/www/ReviewBoard175.com/htdocs/errordocs
 
 Alias /favicon.ico 
 /var/www/ReviewBoard175.com/htdocs/static/rb/images/favicon.png
 
 /VirtualHost.
 
  
 Please provide some pointers on this. I am stuck with this.
 
 One more question how difficult is it to migrate a ReviewBoard using 
 mod_python to use mod_wsgi ?
 
  
 Thanks,
 
 Satish.
 
  
 
 
  
 
 
 
 On Wednesday, 13 March 2013 00:30:37 UTC+5:30, Christian Hammond wrote:
 In confused about your configuration. I don't even see how Review Board ever 
 gets invoked. No mod_wsgi configuration.
 
 Christian
 
 
 On Mar 12, 2013, at 8:02, satish singh triv...@gmail.com wrote:
 
 Hi Joe,
 
 I am facing the same issue, can you please help me with it.
 My Apache 2 configuration:
 
 VirtualHost *:80
 ServerName toolsnb01-06.lab.eng.btc.netapp.in
 DocumentRoot /var/www/ReviewBoard175.com/htdocs
 
 # Error handlers
 ErrorDocument 500 /errordocs/500.html
 
 Directory /var/www/ReviewBoard175.com/htdocs
 AllowOverride All
 Options -Indexes +FollowSymLinks
 Allow from all
 /Directory
 
 Location /media
 SetHandler None
 /Location
 
 Location /errordocs
 SetHandler None
 /Location
 
 Location /static
 SetHandler None
 /Location
 # Alias static media requests to filesystem
 Alias /media /var/www/ReviewBoard175.com/htdocs/media
 Alias /static /var/www/ReviewBoard175.com/htdocs/static
 Alias /errordocs /var/www/ReviewBoard175.com/htdocs/errordocs
 Alias /favicon.ico 
 /var/www/ReviewBoard175.com/htdocs/static/rb/images/favicon.png
 /VirtualHost
 
 Any help would be appreciated.
 
 On Tuesday, 18 December 2012 09:45:32 UTC+5:30, Joe Attardi wrote:
 I updated my site to 1.7.0.1-py2.7 and I'm still getting 404 errors for 
 anything under /static
 
 I added the alias for /static and restarted Apache 2, but it seems to have 
 no effect. Am I missing something obvious?
 
 My Apache 2 configuration:
 
 VirtualHost *:80
 ServerName uxworks-reviewboard.mysite.com
 DocumentRoot /var/www/uxworks-reviewboard/htdocs
 
 # Error handlers
 ErrorDocument 500 /errordocs/500.html
 
 # Serve django pages
 Location /
 PythonPath ['/var/www/uxworks-reviewboard/conf'] + sys.path
 SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings
 SetEnv PYTHON_EGG_CACHE 
 /var/www/uxworks-reviewboard/tmp/egg_cache
 SetEnv HOME /var/www/uxworks-reviewboard/data
 SetHandler mod_python
 PythonHandler django.core.handlers.modpython
 PythonAutoReload Off
 PythonDebug Off
 # Used to run multiple mod_python sites in the same apache
 

Re: Static media still broken in 1.7 after updating Apache configuration

2013-03-15 Thread satish singh
Hi Sir,

I did created an virtualenv and then I installed Review Board 1.7.5 with 
easy_install tool. I have not made any change to settings_local.py, just 
copied it to ReviewBoard directory.

Installation directory:

(RB1.7.5)bash-3.2$ ls
Django-1.4.5-py2.7.eggJinja2-2.6-py2.7.egg 
 pip-1.2.1-py2.7.egg  ReviewBoard-1.7.5-py2.7.egg
django_evolution-0.6.8-py2.7.egg  jsmin-2.0.2_1-py2.7.egg   
pycrypto-2.6-py2.7-linux-x86_64.egg  setuptools-0.6c11-py2.7.egg
django_pipeline-1.2.24-py2.7.egg  Markdown-2.2.1-py2.7.egg 
 Pygments-1.6-py2.7.egg   setuptools-0.6c12dev_r88846-py2.7.egg
Djblets-0.7.11-py2.7.egg  mimeparse-0.1.3-py2.7.egg 
python_dateutil-1.5-py2.7.eggsetuptools.pth
docutils-0.10-py2.7.egg   nose-1.2.1-py2.7.egg 
 python_memcached-1.48-py2.7.egg  Sphinx-1.1.3-py2.7.egg
easy-install.pth  paramiko-1.9.0-py2.7.egg 
 pytz-2012j-py2.7.egg
feedparser-5.1.3-py2.7.eggPIL-1.1.7-py2.7-linux-x86_64.egg 
 recaptcha_client-1.0.6-py2.7.egg



(RB1.7.5)bash-3.2$ pwd
/u/satish3/envs/RB1.7.5/lib/python2.7/site-packages/ReviewBoard-1.7.5-py2.7.egg
(RB1.7.5)bash-3.2$ ls
conf  data  EGG-INFO  htdocs  logs  reviewboard  settings_local.py 
 settings_local.pyc  tmp  webtests

content of settings_local.py :


# Site-specific configuration settings for Review Board
# Definitions of these settings can be found at
# http://docs.djangoproject.com/en/dev/ref/settings/

# Database configuration
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': '/var/www/ReviewBoard175.com/data/reviewboard.db',
},
}

# Unique secret key. Don't share this with anybody.
SECRET_KEY = '=ck@h)-ns9=xmzt3i^lkkc(^4fp3@gw=h@wy(p)g8bpa3@ys)*'

# Cache backend settings.
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': 'localhost:11211',
},
}

# Extra site information.
SITE_ID = 1
SITE_ROOT = '/'
FORCE_SCRIPT_NAME = ''
DEBUG = False


Thanks,
Satish

On Friday, 15 March 2013 15:09:53 UTC+5:30, Christian Hammond wrote:

 I feel like I asked this, but I can't find where..

 How did you install Review Board? It looks like you have a virtualenv set 
 up. Did you install from source, or our egg?

 Did you make any modifications to your settings_local.py file?

 Christian

 -- 
 Christian Hammond - chi...@chipx86.com javascript:
 Review Board - http://www.reviewboard.org
 VMware, Inc. - http://www.vmware.com 

 On Mar 15, 2013, at 2:36 AM, satish singh triv...@gmail.com javascript: 
 wrote:

 Hi Team,
 Please provide any pointers on this, how can i debug ?

 thanks ,
 satish

 On Thursday, 14 March 2013 18:38:04 UTC+5:30, satish singh wrote:

 Hi Sir,

 I have added mod_wsgi configuration, still facing the same issue:

 The Review Board 1.7.5 is up but images, CSS and JS files are not getting 
 loaded. I'm getting 404 errors for anything under /static. Screenshot 
 attached. It’s strange when I ran findstatic management command it’s 
 seems to find the static media. But review board doesn’t seem to find it.

 Log:

 (RB1.7.5)bash-3.2$ python ./reviewboard/manage.py findstatic 
 rb/images/convo.png

 Found 'rb/images/convo.png' here:

   
 /u/satish3/envs/RB1.7.5/lib/python2.7/site-packages/ReviewBoard-1.7.5-py2.7.egg/reviewboard/static/rb/images/convo.png

 My Apache 2 configuration (httpd.conf):

 LoadModule wsgi_module modules/mod_wsgi.so

 VirtualHost *:80

 ServerName toolsnb01-06.lab.eng.btc.netapp.in

 DocumentRoot /var/www/ReviewBoard175.com/htdocs
  

 # Error handlers

 ErrorDocument 500 /errordocs/500.html
  

 WSGIPassAuthorization On

 WSGIScriptAlias / /var/www/ReviewBoard175.com/
 htdocs/reviewboard.wsgi/
  

 Directory /var/www/ReviewBoard175.com/htdocs

 AllowOverride All

 Options -Indexes +FollowSymLinks

 Allow from all

 /Directory
  

 # Alias static media requests to filesystem

 Alias /media /var/www/ReviewBoard175.com/htdocs/media

 Alias /static /var/www/ReviewBoard175.com/htdocs/static

 Alias /errordocs /var/www/ReviewBoard175.com/htdocs/errordocs

 Alias /favicon.ico /var/www/ReviewBoard175.com/
 htdocs/static/rb/images/favicon.png

 /VirtualHost.
  

 Please provide some pointers on this. I am stuck with this.

 One more question how difficult is it to migrate a ReviewBoard using 
 mod_python to use mod_wsgi ?
  

 Thanks,

 Satish.
  


  



 On Wednesday, 13 March 2013 00:30:37 UTC+5:30, Christian Hammond wrote:

 In confused about your configuration. I don't even see how Review Board 
 ever gets invoked. No mod_wsgi configuration.

 Christian


 On Mar 12, 2013, at 8:02, satish singh triv...@gmail.com wrote:

 Hi Joe,

 I am facing the same issue, can you please help me with it.
 My Apache 2 configuration:

 

Re: Static media still broken in 1.7 after updating Apache configuration

2013-03-12 Thread satish singh
Hi Joe,

I am facing the same issue, can you please help me with it.
My Apache 2 configuration:

VirtualHost *:80
ServerName toolsnb01-06.lab.eng.btc.netapp.in
DocumentRoot /var/www/ReviewBoard175.com/htdocs

# Error handlers
ErrorDocument 500 /errordocs/500.html

Directory /var/www/ReviewBoard175.com/htdocs
AllowOverride All
Options -Indexes +FollowSymLinks
Allow from all
/Directory

Location /media
SetHandler None
/Location

Location /errordocs
SetHandler None
/Location

Location /static
SetHandler None
/Location
# Alias static media requests to filesystem
Alias /media /var/www/ReviewBoard175.com/htdocs/media
Alias /static /var/www/ReviewBoard175.com/htdocs/static
Alias /errordocs /var/www/ReviewBoard175.com/htdocs/errordocs
Alias /favicon.ico 
/var/www/ReviewBoard175.com/htdocs/static/rb/images/favicon.png
/VirtualHost

Any help would be appreciated.

On Tuesday, 18 December 2012 09:45:32 UTC+5:30, Joe Attardi wrote:

 I updated my site to 1.7.0.1-py2.7 and I'm still getting 404 errors for 
 anything under /static

 I added the alias for /static and restarted Apache 2, but it seems to have 
 no effect. Am I missing something obvious?

 My Apache 2 configuration:

 VirtualHost *:80
 ServerName uxworks-reviewboard.mysite.com
 DocumentRoot /var/www/uxworks-reviewboard/htdocs

 # Error handlers
 ErrorDocument 500 /errordocs/500.html

 # Serve django pages
 Location /
 PythonPath ['/var/www/uxworks-reviewboard/conf'] + 
 sys.path
 SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings
 SetEnv PYTHON_EGG_CACHE 
 /var/www/uxworks-reviewboard/tmp/egg_cache
 SetEnv HOME /var/www/uxworks-reviewboard/data
 SetHandler mod_python
 PythonHandler django.core.handlers.modpython
 PythonAutoReload Off
 PythonDebug Off
 # Used to run multiple mod_python sites in the same apache
 PythonInterpreter reviewboard_uxworks-reviewboard
 /Location

 # Serve static media without running it through mod_python
 # (overrides the above)
 Location /media
 SetHandler None
 /Location
 Location /errordocs
 SetHandler None
 /Location

 Directory /var/www/uxworks-reviewboard/htdocs
 AllowOverride All
 /Directory

 # Alias static media requests to filesystem
 Alias /media /var/www/uxworks-reviewboard/htdocs/media
 Alias /errordocs /var/www/uxworks-reviewboard/htdocs/erordocs
 Alias /static /var/www/uxworks-reviewboard/htdocs/static
 /VirtualHost

 I tried running rb-site manage /var/www/uxworks-reviewboard resolve-check 
 static-media but it gave me an error: Couldn't find manual update check 
 'static-media'

 Any help would be appreciated. Thanks!


-- 
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
--- 
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/groups/opt_out.




Re: Static media still broken in 1.7 after updating Apache configuration

2013-03-12 Thread Christian Hammond
In confused about your configuration. I don't even see how Review Board ever 
gets invoked. No mod_wsgi configuration.

Christian


On Mar 12, 2013, at 8:02, satish singh trivi...@gmail.com wrote:

 Hi Joe,
 
 I am facing the same issue, can you please help me with it.
 My Apache 2 configuration:
 
 VirtualHost *:80
 ServerName toolsnb01-06.lab.eng.btc.netapp.in
 DocumentRoot /var/www/ReviewBoard175.com/htdocs
 
 # Error handlers
 ErrorDocument 500 /errordocs/500.html
 
 Directory /var/www/ReviewBoard175.com/htdocs
 AllowOverride All
 Options -Indexes +FollowSymLinks
 Allow from all
 /Directory
 
 Location /media
 SetHandler None
 /Location
 
 Location /errordocs
 SetHandler None
 /Location
 
 Location /static
 SetHandler None
 /Location
 # Alias static media requests to filesystem
 Alias /media /var/www/ReviewBoard175.com/htdocs/media
 Alias /static /var/www/ReviewBoard175.com/htdocs/static
 Alias /errordocs /var/www/ReviewBoard175.com/htdocs/errordocs
 Alias /favicon.ico 
 /var/www/ReviewBoard175.com/htdocs/static/rb/images/favicon.png
 /VirtualHost
 
 Any help would be appreciated.
 
 On Tuesday, 18 December 2012 09:45:32 UTC+5:30, Joe Attardi wrote:
 
 I updated my site to 1.7.0.1-py2.7 and I'm still getting 404 errors for 
 anything under /static
 
 I added the alias for /static and restarted Apache 2, but it seems to have 
 no effect. Am I missing something obvious?
 
 My Apache 2 configuration:
 
 VirtualHost *:80
 ServerName uxworks-reviewboard.mysite.com
 DocumentRoot /var/www/uxworks-reviewboard/htdocs
 
 # Error handlers
 ErrorDocument 500 /errordocs/500.html
 
 # Serve django pages
 Location /
 PythonPath ['/var/www/uxworks-reviewboard/conf'] + sys.path
 SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings
 SetEnv PYTHON_EGG_CACHE 
 /var/www/uxworks-reviewboard/tmp/egg_cache
 SetEnv HOME /var/www/uxworks-reviewboard/data
 SetHandler mod_python
 PythonHandler django.core.handlers.modpython
 PythonAutoReload Off
 PythonDebug Off
 # Used to run multiple mod_python sites in the same apache
 PythonInterpreter reviewboard_uxworks-reviewboard
 /Location
 
 # Serve static media without running it through mod_python
 # (overrides the above)
 Location /media
 SetHandler None
 /Location
 Location /errordocs
 SetHandler None
 /Location
 
 Directory /var/www/uxworks-reviewboard/htdocs
 AllowOverride All
 /Directory
 
 # Alias static media requests to filesystem
 Alias /media /var/www/uxworks-reviewboard/htdocs/media
 Alias /errordocs /var/www/uxworks-reviewboard/htdocs/erordocs
 Alias /static /var/www/uxworks-reviewboard/htdocs/static
 /VirtualHost
 
 I tried running rb-site manage /var/www/uxworks-reviewboard resolve-check 
 static-media but it gave me an error: Couldn't find manual update check 
 'static-media'
 
 Any help would be appreciated. Thanks!
 
 -- 
 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
 --- 
 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/groups/opt_out.
  
  

-- 
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
--- 
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/groups/opt_out.




Re: Static media still broken in 1.7 after updating Apache configuration

2012-12-19 Thread Christian Hammond
Hi again,

I wanted to thank you for the summary of all the problems you hit. I'm
putting out a release right now that should solve these issues for new
upgrades. At least some good came out of the upgrade headache :/

Christian

-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com



On Tue, Dec 18, 2012 at 2:17 PM, Christian Hammond chip...@gmail.comwrote:

 Hi Jeff,

 I'm really sorry about that and I wish it could have been smoother.

 The static media change was forced on us by Django. The upgrade script
 couldn't make the necessary changes, due to both not knowing the right
 details during upgrade and the variety of server configurations. I tried to
 make sure it explained the changes needed, and have it make sure you had to
 acknowledge before using the site again on order to be sure changes were
 made. I guess the Location stuff was missing. Sorry about that, and we'll
 get it into the next release. I'll also document it today.

 We perform database config upgrading, but my guess is maybe the old
 settings file didn't have something in an upgradable format that we'd
 recognize. I can work to make this smoother too, though I'd need to know
 more about when your settings_local.py file was created.

 I know it wasn't the smoothest upgrade, and I wish it worked better. We
 really fought to make Django's mandatory changes less of a pain, but there
 are things that just require manual intervention, and there are clearly
 corner cases. Believe me when I say, it could have been worse.

 All I can say is, we'll try to make this smoother for new users, write up
 some docs, and that the hard part is over. Future upgrades should work a
 lot better.

 Christian


 On Dec 18, 2012, at 13:02, Jeff jflamb...@newtrax.com wrote:


 Christian,

 Love ReviewBoard but upgrading to 1.7 was a  real pain.

 First I had to modify the database backend
 to django.db.backends.postgresql_psycopg2

 http://stackoverflow.com/questions/1965/problems-with-psycopg2-installation-python-path

 I'm far from a power python user so it took quite a bit of time to get
 this right.

 Then rb-site upgrade went through but with many red error messages that I
 unfortunately couldn't copy. No clear text instructions on the new media
 structure.

 I got the same broken look as Joe Attardi, and the extra Location+Alias
 solved the issue.

 I was just following the regular update steps I've been doing for a year,
 last I checked they didn't change.

 As of now I'm up and running, but it took about an hour.

 On Tuesday, December 18, 2012 1:02:53 AM UTC-5, Christian Hammond wrote:

 Hi Joe,

 Sorry for the late response. Looks like gmail flagged this as spam. Odd.

 You may need to add a Location /static that works just like the media
 one. The static files are probably going through Review Board, which won't
 know how to serve them.

 As for the Couldn't find manual update check error, we just have a bug
 where a second resolve-check prints that. I assume it worked the first time.

 If the Location doesn't fix things, we'll do some debugging with your
 setup and see what we can find.

 Christian

 --
 Christian Hammond - chi...@chipx86.com
 Review Board - http://www.reviewboard.org
 VMware, Inc. - http://www.vmware.com



 On Mon, Dec 17, 2012 at 8:15 PM, Joe Attardi jatt...@gmail.com wrote:

 I updated my site to 1.7.0.1-py2.7 and I'm still getting 404 errors for
 anything under /static

 I added the alias for /static and restarted Apache 2, but it seems to
 have no effect. Am I missing something obvious?

 My Apache 2 configuration:

 VirtualHost *:80
 ServerName uxworks-reviewboard.mysite.com
 DocumentRoot /var/www/uxworks-reviewboard/**htdocs

 # Error handlers
 ErrorDocument 500 /errordocs/500.html

 # Serve django pages
 Location /
 PythonPath ['/var/www/uxworks-**reviewboard/conf'] +
 sys.path
 SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings
 SetEnv PYTHON_EGG_CACHE /var/www/uxworks-reviewboard/**
 tmp/egg_cache
 SetEnv HOME /var/www/uxworks-reviewboard/**data
 SetHandler mod_python
  PythonHandler django.core.handlers.modpython
 PythonAutoReload Off
 PythonDebug Off
 # Used to run multiple mod_python sites in the same
 apache
 PythonInterpreter reviewboard_uxworks-**reviewboard
 /Location

 # Serve static media without running it through mod_python
 # (overrides the above)
 Location /media
 SetHandler None
 /Location
 Location /errordocs
 SetHandler None
 /Location

 Directory /var/www/uxworks-reviewboard/**htdocs
 AllowOverride All
 /Directory

 # Alias static media requests to filesystem
 Alias /media 

Re: Static media still broken in 1.7 after updating Apache configuration

2012-12-18 Thread Ivan Gavryliuk
Same problem here, but Location helped!

On Tuesday, 18 December 2012 06:35:26 UTC, Christian Hammond wrote:

 Excellent! Glad it works. I'll update the instructions to be clear about 
 that.

 Christian

 -- 
 Christian Hammond - chi...@chipx86.com javascript:
 Review Board - http://www.reviewboard.org
 VMware, Inc. - http://www.vmware.com



 On Mon, Dec 17, 2012 at 10:34 PM, Joe Attardi jatt...@gmail.comjavascript:
  wrote:

 Adding a Location /static section fixed the problem!
 Thanks, Christian! 


 On Tuesday, December 18, 2012 1:02:53 AM UTC-5, Christian Hammond wrote:

 Hi Joe,

 Sorry for the late response. Looks like gmail flagged this as spam. Odd.

 You may need to add a Location /static that works just like the 
 media one. The static files are probably going through Review Board, which 
 won't know how to serve them.

 As for the Couldn't find manual update check error, we just have a bug 
 where a second resolve-check prints that. I assume it worked the first time.

 If the Location doesn't fix things, we'll do some debugging with your 
 setup and see what we can find.

 Christian

 -- 
 Christian Hammond - chi...@chipx86.com

 Review Board - http://www.reviewboard.org
 VMware, Inc. - http://www.vmware.com
  


 On Mon, Dec 17, 2012 at 8:15 PM, Joe Attardi jatt...@gmail.com wrote:

  I updated my site to 1.7.0.1-py2.7 and I'm still getting 404 errors 
 for anything under /static

 I added the alias for /static and restarted Apache 2, but it seems to 
 have no effect. Am I missing something obvious?

 My Apache 2 configuration:

 VirtualHost *:80
 ServerName uxworks-reviewboard.mysite.com
 DocumentRoot /var/www/uxworks-reviewboard/**htdocs

 # Error handlers
 ErrorDocument 500 /errordocs/500.html

 # Serve django pages
 Location /
 PythonPath ['/var/www/uxworks-**reviewboard/conf'] + 
 sys.path
 SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings
 SetEnv PYTHON_EGG_CACHE /var/www/uxworks-reviewboard/*
 *tmp/egg_cache
 SetEnv HOME /var/www/uxworks-reviewboard/**data
 SetHandler mod_python
  PythonHandler django.core.handlers.modpython
 PythonAutoReload Off
 PythonDebug Off
 # Used to run multiple mod_python sites in the same 
 apache
 PythonInterpreter reviewboard_uxworks-**reviewboard
 /Location

 # Serve static media without running it through mod_python
 # (overrides the above)
 Location /media
 SetHandler None
 /Location
 Location /errordocs
 SetHandler None
 /Location

 Directory /var/www/uxworks-reviewboard/**htdocs
 AllowOverride All
 /Directory

 # Alias static media requests to filesystem
 Alias /media /var/www/uxworks-reviewboard/**htdocs/media
 Alias /errordocs /var/www/uxworks-reviewboard/**
 htdocs/erordocs
 Alias /static /var/www/uxworks-reviewboard/**htdocs/static
 /VirtualHost

 I tried running rb-site manage /var/www/uxworks-reviewboard 
 resolve-check static-media but it gave me an error: Couldn't find 
 manual update check 'static-media'

 Any help would be appreciated. Thanks!

 -- 
 Want to help the Review Board project? Donate today at 
 http://www.reviewboard.org/**donate/http://www.reviewboard.org/donate/
 Happy user? Let us know at 
 http://www.reviewboard.org/**users/http://www.reviewboard.org/users/
 -~--~~~~--**~~--~--~---
 To unsubscribe from this group, send email to reviewboard...@**
 googlegroups.com

 For more options, visit this group at http://groups.google.com/**
 group/reviewboard?hl=enhttp://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 know at http://www.reviewboard.org/users/
 -~--~~~~--~~--~--~---
 To unsubscribe from this group, send email to 
 reviewboard...@googlegroups.com javascript:
 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 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: Static media still broken in 1.7 after updating Apache configuration

2012-12-18 Thread Christian Hammond
Hi Jeff,

I'm really sorry about that and I wish it could have been smoother.

The static media change was forced on us by Django. The upgrade script couldn't 
make the necessary changes, due to both not knowing the right details during 
upgrade and the variety of server configurations. I tried to make sure it 
explained the changes needed, and have it make sure you had to acknowledge 
before using the site again on order to be sure changes were made. I guess the 
Location stuff was missing. Sorry about that, and we'll get it into the next 
release. I'll also document it today.

We perform database config upgrading, but my guess is maybe the old settings 
file didn't have something in an upgradable format that we'd recognize. I can 
work to make this smoother too, though I'd need to know more about when your 
settings_local.py file was created.

I know it wasn't the smoothest upgrade, and I wish it worked better. We really 
fought to make Django's mandatory changes less of a pain, but there are things 
that just require manual intervention, and there are clearly corner cases. 
Believe me when I say, it could have been worse.

All I can say is, we'll try to make this smoother for new users, write up some 
docs, and that the hard part is over. Future upgrades should work a lot better.

Christian


On Dec 18, 2012, at 13:02, Jeff jflamb...@newtrax.com wrote:

 
 Christian,
 
 Love ReviewBoard but upgrading to 1.7 was a  real pain.
 
 First I had to modify the database backend to 
 django.db.backends.postgresql_psycopg2
 http://stackoverflow.com/questions/1965/problems-with-psycopg2-installation-python-path
 
 I'm far from a power python user so it took quite a bit of time to get this 
 right.
 
 Then rb-site upgrade went through but with many red error messages that I 
 unfortunately couldn't copy. No clear text instructions on the new media 
 structure.
 
 I got the same broken look as Joe Attardi, and the extra Location+Alias 
 solved the issue.
 
 I was just following the regular update steps I've been doing for a year, 
 last I checked they didn't change.
 
 As of now I'm up and running, but it took about an hour.
 
 On Tuesday, December 18, 2012 1:02:53 AM UTC-5, Christian Hammond wrote:
 
 Hi Joe,
 
 Sorry for the late response. Looks like gmail flagged this as spam. Odd.
 
 You may need to add a Location /static that works just like the media 
 one. The static files are probably going through Review Board, which won't 
 know how to serve them.
 
 As for the Couldn't find manual update check error, we just have a bug 
 where a second resolve-check prints that. I assume it worked the first time.
 
 If the Location doesn't fix things, we'll do some debugging with your 
 setup and see what we can find.
 
 Christian
 
 -- 
 Christian Hammond - chi...@chipx86.com
 Review Board - http://www.reviewboard.org
 VMware, Inc. - http://www.vmware.com
 
 
 
 On Mon, Dec 17, 2012 at 8:15 PM, Joe Attardi jatt...@gmail.com wrote:
 I updated my site to 1.7.0.1-py2.7 and I'm still getting 404 errors for 
 anything under /static
 
 I added the alias for /static and restarted Apache 2, but it seems to have 
 no effect. Am I missing something obvious?
 
 My Apache 2 configuration:
 
 VirtualHost *:80
 ServerName uxworks-reviewboard.mysite.com
 DocumentRoot /var/www/uxworks-reviewboard/htdocs
 
 # Error handlers
 ErrorDocument 500 /errordocs/500.html
 
 # Serve django pages
 Location /
 PythonPath ['/var/www/uxworks-reviewboard/conf'] + 
 sys.path
 SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings
 SetEnv PYTHON_EGG_CACHE 
 /var/www/uxworks-reviewboard/tmp/egg_cache
 SetEnv HOME /var/www/uxworks-reviewboard/data
 SetHandler mod_python
 PythonHandler django.core.handlers.modpython
 PythonAutoReload Off
 PythonDebug Off
 # Used to run multiple mod_python sites in the same apache
 PythonInterpreter reviewboard_uxworks-reviewboard
 /Location
 
 # Serve static media without running it through mod_python
 # (overrides the above)
 Location /media
 SetHandler None
 /Location
 Location /errordocs
 SetHandler None
 /Location
 
 Directory /var/www/uxworks-reviewboard/htdocs
 AllowOverride All
 /Directory
 
 # Alias static media requests to filesystem
 Alias /media /var/www/uxworks-reviewboard/htdocs/media
 Alias /errordocs /var/www/uxworks-reviewboard/htdocs/erordocs
 Alias /static /var/www/uxworks-reviewboard/htdocs/static
 /VirtualHost
 
 I tried running rb-site manage /var/www/uxworks-reviewboard resolve-check 
 static-media but it gave me an error: Couldn't find manual update check 
 'static-media'
 
 Any help would be appreciated. Thanks!
 -- 
 Want to help the Review 

Static media still broken in 1.7 after updating Apache configuration

2012-12-17 Thread Joe Attardi
I updated my site to 1.7.0.1-py2.7 and I'm still getting 404 errors for 
anything under /static

I added the alias for /static and restarted Apache 2, but it seems to have 
no effect. Am I missing something obvious?

My Apache 2 configuration:

VirtualHost *:80
ServerName uxworks-reviewboard.mysite.com
DocumentRoot /var/www/uxworks-reviewboard/htdocs

# Error handlers
ErrorDocument 500 /errordocs/500.html

# Serve django pages
Location /
PythonPath ['/var/www/uxworks-reviewboard/conf'] + 
sys.path
SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings
SetEnv PYTHON_EGG_CACHE 
/var/www/uxworks-reviewboard/tmp/egg_cache
SetEnv HOME /var/www/uxworks-reviewboard/data
SetHandler mod_python
PythonHandler django.core.handlers.modpython
PythonAutoReload Off
PythonDebug Off
# Used to run multiple mod_python sites in the same apache
PythonInterpreter reviewboard_uxworks-reviewboard
/Location

# Serve static media without running it through mod_python
# (overrides the above)
Location /media
SetHandler None
/Location
Location /errordocs
SetHandler None
/Location

Directory /var/www/uxworks-reviewboard/htdocs
AllowOverride All
/Directory

# Alias static media requests to filesystem
Alias /media /var/www/uxworks-reviewboard/htdocs/media
Alias /errordocs /var/www/uxworks-reviewboard/htdocs/erordocs
Alias /static /var/www/uxworks-reviewboard/htdocs/static
/VirtualHost

I tried running rb-site manage /var/www/uxworks-reviewboard resolve-check 
static-media but it gave me an error: Couldn't find manual update check 
'static-media'

Any help would be appreciated. Thanks!

-- 
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: Static media still broken in 1.7 after updating Apache configuration

2012-12-17 Thread Christian Hammond
Hi Joe,

Sorry for the late response. Looks like gmail flagged this as spam. Odd.

You may need to add a Location /static that works just like the media
one. The static files are probably going through Review Board, which won't
know how to serve them.

As for the Couldn't find manual update check error, we just have a bug
where a second resolve-check prints that. I assume it worked the first time.

If the Location doesn't fix things, we'll do some debugging with your
setup and see what we can find.

Christian

-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com



On Mon, Dec 17, 2012 at 8:15 PM, Joe Attardi jatta...@gmail.com wrote:

 I updated my site to 1.7.0.1-py2.7 and I'm still getting 404 errors for
 anything under /static

 I added the alias for /static and restarted Apache 2, but it seems to have
 no effect. Am I missing something obvious?

 My Apache 2 configuration:

 VirtualHost *:80
 ServerName uxworks-reviewboard.mysite.com
 DocumentRoot /var/www/uxworks-reviewboard/htdocs

 # Error handlers
 ErrorDocument 500 /errordocs/500.html

 # Serve django pages
 Location /
 PythonPath ['/var/www/uxworks-reviewboard/conf'] +
 sys.path
 SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings
 SetEnv PYTHON_EGG_CACHE
 /var/www/uxworks-reviewboard/tmp/egg_cache
 SetEnv HOME /var/www/uxworks-reviewboard/data
 SetHandler mod_python
 PythonHandler django.core.handlers.modpython
 PythonAutoReload Off
 PythonDebug Off
 # Used to run multiple mod_python sites in the same apache
 PythonInterpreter reviewboard_uxworks-reviewboard
 /Location

 # Serve static media without running it through mod_python
 # (overrides the above)
 Location /media
 SetHandler None
 /Location
 Location /errordocs
 SetHandler None
 /Location

 Directory /var/www/uxworks-reviewboard/htdocs
 AllowOverride All
 /Directory

 # Alias static media requests to filesystem
 Alias /media /var/www/uxworks-reviewboard/htdocs/media
 Alias /errordocs /var/www/uxworks-reviewboard/htdocs/erordocs
 Alias /static /var/www/uxworks-reviewboard/htdocs/static
 /VirtualHost

 I tried running rb-site manage /var/www/uxworks-reviewboard resolve-check
 static-media but it gave me an error: Couldn't find manual update check
 'static-media'

 Any help would be appreciated. Thanks!

 --
 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 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: Static media still broken in 1.7 after updating Apache configuration

2012-12-17 Thread Joe Attardi
Adding a Location /static section fixed the problem!
Thanks, Christian! 

On Tuesday, December 18, 2012 1:02:53 AM UTC-5, Christian Hammond wrote:

 Hi Joe,

 Sorry for the late response. Looks like gmail flagged this as spam. Odd.

 You may need to add a Location /static that works just like the media 
 one. The static files are probably going through Review Board, which won't 
 know how to serve them.

 As for the Couldn't find manual update check error, we just have a bug 
 where a second resolve-check prints that. I assume it worked the first time.

 If the Location doesn't fix things, we'll do some debugging with your 
 setup and see what we can find.

 Christian

 -- 
 Christian Hammond - chi...@chipx86.com javascript:
 Review Board - http://www.reviewboard.org
 VMware, Inc. - http://www.vmware.com



 On Mon, Dec 17, 2012 at 8:15 PM, Joe Attardi jatt...@gmail.comjavascript:
  wrote:

 I updated my site to 1.7.0.1-py2.7 and I'm still getting 404 errors for 
 anything under /static

 I added the alias for /static and restarted Apache 2, but it seems to 
 have no effect. Am I missing something obvious?

 My Apache 2 configuration:

 VirtualHost *:80
 ServerName uxworks-reviewboard.mysite.com
 DocumentRoot /var/www/uxworks-reviewboard/htdocs

 # Error handlers
 ErrorDocument 500 /errordocs/500.html

 # Serve django pages
 Location /
 PythonPath ['/var/www/uxworks-reviewboard/conf'] + 
 sys.path
 SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings
 SetEnv PYTHON_EGG_CACHE 
 /var/www/uxworks-reviewboard/tmp/egg_cache
 SetEnv HOME /var/www/uxworks-reviewboard/data
 SetHandler mod_python
 PythonHandler django.core.handlers.modpython
 PythonAutoReload Off
 PythonDebug Off
 # Used to run multiple mod_python sites in the same apache
 PythonInterpreter reviewboard_uxworks-reviewboard
 /Location

 # Serve static media without running it through mod_python
 # (overrides the above)
 Location /media
 SetHandler None
 /Location
 Location /errordocs
 SetHandler None
 /Location

 Directory /var/www/uxworks-reviewboard/htdocs
 AllowOverride All
 /Directory

 # Alias static media requests to filesystem
 Alias /media /var/www/uxworks-reviewboard/htdocs/media
 Alias /errordocs /var/www/uxworks-reviewboard/htdocs/erordocs
 Alias /static /var/www/uxworks-reviewboard/htdocs/static
 /VirtualHost

 I tried running rb-site manage /var/www/uxworks-reviewboard 
 resolve-check static-media but it gave me an error: Couldn't find manual 
 update check 'static-media'

 Any help would be appreciated. Thanks!

 -- 
 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...@googlegroups.com javascript:
 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 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: Static media still broken in 1.7 after updating Apache configuration

2012-12-17 Thread Christian Hammond
Excellent! Glad it works. I'll update the instructions to be clear about
that.

Christian

-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com



On Mon, Dec 17, 2012 at 10:34 PM, Joe Attardi jatta...@gmail.com wrote:

 Adding a Location /static section fixed the problem!
 Thanks, Christian!


 On Tuesday, December 18, 2012 1:02:53 AM UTC-5, Christian Hammond wrote:

 Hi Joe,

 Sorry for the late response. Looks like gmail flagged this as spam. Odd.

 You may need to add a Location /static that works just like the media
 one. The static files are probably going through Review Board, which won't
 know how to serve them.

 As for the Couldn't find manual update check error, we just have a bug
 where a second resolve-check prints that. I assume it worked the first time.

 If the Location doesn't fix things, we'll do some debugging with your
 setup and see what we can find.

 Christian

 --
 Christian Hammond - chi...@chipx86.com

 Review Board - http://www.reviewboard.org
 VMware, Inc. - http://www.vmware.com



 On Mon, Dec 17, 2012 at 8:15 PM, Joe Attardi jatt...@gmail.com wrote:

  I updated my site to 1.7.0.1-py2.7 and I'm still getting 404 errors for
 anything under /static

 I added the alias for /static and restarted Apache 2, but it seems to
 have no effect. Am I missing something obvious?

 My Apache 2 configuration:

 VirtualHost *:80
 ServerName uxworks-reviewboard.mysite.com
 DocumentRoot /var/www/uxworks-reviewboard/**htdocs

 # Error handlers
 ErrorDocument 500 /errordocs/500.html

 # Serve django pages
 Location /
 PythonPath ['/var/www/uxworks-**reviewboard/conf'] +
 sys.path
 SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings
 SetEnv PYTHON_EGG_CACHE /var/www/uxworks-reviewboard/**
 tmp/egg_cache
 SetEnv HOME /var/www/uxworks-reviewboard/**data
 SetHandler mod_python
  PythonHandler django.core.handlers.modpython
 PythonAutoReload Off
 PythonDebug Off
 # Used to run multiple mod_python sites in the same
 apache
 PythonInterpreter reviewboard_uxworks-**reviewboard
 /Location

 # Serve static media without running it through mod_python
 # (overrides the above)
 Location /media
 SetHandler None
 /Location
 Location /errordocs
 SetHandler None
 /Location

 Directory /var/www/uxworks-reviewboard/**htdocs
 AllowOverride All
 /Directory

 # Alias static media requests to filesystem
 Alias /media /var/www/uxworks-reviewboard/**htdocs/media
 Alias /errordocs /var/www/uxworks-reviewboard/**
 htdocs/erordocs
 Alias /static /var/www/uxworks-reviewboard/**htdocs/static
 /VirtualHost

 I tried running rb-site manage /var/www/uxworks-reviewboard
 resolve-check static-media but it gave me an error: Couldn't find
 manual update check 'static-media'

 Any help would be appreciated. Thanks!

 --
 Want to help the Review Board project? Donate today at
 http://www.reviewboard.org/**donate/http://www.reviewboard.org/donate/
 Happy user? Let us know at 
 http://www.reviewboard.org/**users/http://www.reviewboard.org/users/
 -~--~~~~--**~~--~--~---
 To unsubscribe from this group, send email to reviewboard...@**
 googlegroups.com

 For more options, visit this group at http://groups.google.com/**
 group/reviewboard?hl=enhttp://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 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 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