Hi,

I created a new instance of review board and ported data from another 
existing Review Board instance to my instance (same version). Everything 
seems to be working fine except the file attachment part. It looks like its 
still pointing to the old server. How do i change it to the new server? I 
checked all settings in admin UI and i could not find any reference to the 
old server name. Is there any database change I need to do? 

The error message is as follows.

Traceback (most recent call last):

 

  File 
"/usr/lib/python2.4/site-packages/Django-1.3.3-py2.4.egg/django/core/handlers/base.py",
 
line 111, in get_response

    response = callback(request, *callback_args, **callback_kwargs)

 

  File 
"/usr/lib/python2.4/site-packages/Django-1.3.3-py2.4.egg/django/views/decorators/cache.py",
 
line 79, in _wrapped_view_func

    response = view_func(request, *args, **kwargs)

 

  File 
"/usr/lib/python2.4/site-packages/Django-1.3.3-py2.4.egg/django/views/decorators/vary.py",
 
line 22, in inner_func

    response = func(*args, **kwargs)

 

  File 
"/usr/lib/python2.4/site-packages/Djblets-0.6.23-py2.4.egg/djblets/webapi/resources.py",
 
line 456, in __call__

    result = view(request, api_format=api_format, *args, **kwargs)

 

  File 
"/usr/lib/python2.4/site-packages/Djblets-0.6.23-py2.4.egg/djblets/webapi/resources.py",
 
line 657, in post

    return self.create(*args, **kwargs)

 

  File 
"/usr/lib/python2.4/site-packages/Djblets-0.6.23-py2.4.egg/djblets/util/decorators.py",
 
line 75, in _call

    f = augmented_func(*args, **kwargs)

 

  File 
"/usr/lib/python2.4/site-packages/ReviewBoard-1.6.12-py2.4.egg/reviewboard/webapi/decorators.py",
 
line 127, in _check

    return view_func(*args, **kwargs)

 

  File 
"/usr/lib/python2.4/site-packages/Djblets-0.6.23-py2.4.egg/djblets/webapi/decorators.py",
 
line 88, in _checklogin

    return view_func(*args, **kwargs)

 

  File 
"/usr/lib/python2.4/site-packages/Djblets-0.6.23-py2.4.egg/djblets/webapi/decorators.py",
 
line 62, in _call

    return view_func(*args, **kwargs)

 

  File 
"/usr/lib/python2.4/site-packages/Djblets-0.6.23-py2.4.egg/djblets/webapi/decorators.py",
 
line 231, in _validate

    return view_func(*args, **new_kwargs)

 

  File 
"/usr/lib/python2.4/site-packages/ReviewBoard-1.6.12-py2.4.egg/reviewboard/webapi/resources.py",
 
line 3239, in create

    file = form.create(request.FILES['path'], review_request)

 

  File 
"/usr/lib/python2.4/site-packages/ReviewBoard-1.6.12-py2.4.egg/reviewboard/attachments/forms.py",
 
line 23, in create

    file_attachment.file.save(file.name, file, save=True)

 

  File 
"/usr/lib/python2.4/site-packages/Django-1.3.3-py2.4.egg/django/db/models/fields/files.py",
 
line 92, in save

    self.name = self.storage.save(name, content)

 

  File 
"/usr/lib/python2.4/site-packages/Django-1.3.3-py2.4.egg/django/core/files/storage.py",
 
line 49, in save

    name = self._save(name, content)

 

  File 
"/usr/lib/python2.4/site-packages/Django-1.3.3-py2.4.egg/django/core/files/storage.py",
 
line 166, in _save

    os.makedirs(directory)

 

  File "/usr/lib/python2.4/os.py", line 156, in makedirs

    makedirs(head, mode)

 

  File "/usr/lib/python2.4/os.py", line 156, in makedirs

    makedirs(head, mode)

 

  File "/usr/lib/python2.4/os.py", line 156, in makedirs

    makedirs(head, mode)

 

  File "/usr/lib/python2.4/os.py", line 156, in makedirs

    makedirs(head, mode)

 

  File "/usr/lib/python2.4/os.py", line 156, in makedirs

    makedirs(head, mode)

 

  File "/usr/lib/python2.4/os.py", line 156, in makedirs

    makedirs(head, mode)

 

  File "/usr/lib/python2.4/os.py", line 156, in makedirs

    makedirs(head, mode)

 

  File "/usr/lib/python2.4/os.py", line 159, in makedirs

    mkdir(name, mode)

 

OSError: [Errno 13] Permission denied: 
'/var/www/oldserver-review.lss.emc.com'

 

 

<WSGIRequest

GET:<QueryDict: {}>,

POST:<QueryDict: {u'caption': [u'jhbjh'], u'api_format': [u'json']}>,

COOKIES:{'csrftoken': 'ce868558959077b9b034758febeb9251',

 'rbsessionid': '9030ebea421e18d493e22d6ab26150f7',

 's_nr': '1351690376251',

 's_vi': ''},

META:{'CONTENT_LENGTH': '1128',

 'CONTENT_TYPE': 'multipart/form-data; 
boundary=---------------------------326091498932702',

 'DOCUMENT_ROOT': '/var/www/newserverreviewboard.isus.emc.com/htdocs',

 'GATEWAY_INTERFACE': 'CGI/1.1',

 'HTTPS': '1',

 'HTTP_ACCEPT': 
'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',

 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',

 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5',

 'HTTP_CONNECTION': 'keep-alive',

 'HTTP_COOKIE': 's_nr=1351690376251; 
s_vi=[CS]v1|2848940D851D0B54-4000014760245379[CE]; 
rbsessionid=9030ebea421e18d493e22d6ab26150f7; 
csrftoken=ce868558959077b9b034758febeb9251',

 'HTTP_HOST': 'newserverreviewboard.isus.emc.com',

 'HTTP_REFERER': 'https://newserverreviewboard.isus.emc.com/r/192/',

 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) 
Gecko/20100101 Firefox/15.0.1',

 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin',

 'PATH_INFO': u'/api/review-requests/192/file-attachments/',

 'PATH_TRANSLATED': 
'/var/www/newserverreviewboard.isus.emc.com/htdocs/reviewboard.wsgi/api/review-requests/192/file-attachments/',

 'QUERY_STRING': '',

 'REMOTE_ADDR': '10.30.127.8',

 'REMOTE_PORT': '8748',

 'REQUEST_METHOD': 'POST',

 'REQUEST_URI': '/api/review-requests/192/file-attachments/',

 'SCRIPT_FILENAME': 
'/var/www/newserverreviewboard.isus.emc.com/htdocs/reviewboard.wsgi',

 'SCRIPT_NAME': u'',

 'SERVER_ADDR': '137.69.233.43',

 'SERVER_ADMIN': 'root@localhost',

 'SERVER_NAME': 'newserverreviewboard.isus.emc.com',

 'SERVER_PORT': '443',

 'SERVER_PROTOCOL': 'HTTP/1.1',

 'SERVER_SIGNATURE': '<address>Apache/2.2.3 (Red Hat) Server at 
newserverreviewboard.isus.emc.com Port 443</address>\n',

 'SERVER_SOFTWARE': 'Apache/2.2.3 (Red Hat)',

 'mod_wsgi.application_group': 'newserverreviewboard.isus.emc.com|',

 'mod_wsgi.callable_object': 'application',

 'mod_wsgi.listener_host': '',

 'mod_wsgi.listener_port': '443',

 'mod_wsgi.process_group': '',

 'mod_wsgi.reload_mechanism': '0',

 'mod_wsgi.script_reloading': '1',

 'mod_wsgi.version': (2, 6),

 'wsgi.errors': <mod_wsgi.Log object at 0xb3c9880>,

 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter 
object at 0xbf08608>,

 'wsgi.input': <mod_wsgi.Input object at 0xc1a9340>,

 'wsgi.multiprocess': True,

 'wsgi.multithread': False,

 'wsgi.run_once': False,

 'wsgi.url_scheme': 'https',

 'wsgi.version': (1, 0)}>




Please help!


Thanks,

Shravanthi

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


Reply via email to