Closed Bug 684929 Opened 14 years ago Closed 14 years ago

Cannot upload images on affiliates-dev

Categories

(Firefox Affiliates Graveyard :: affiliates.mozilla.org, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 684884

People

(Reporter: osmose, Assigned: osmose)

Details

Affiliates-dev gives a permission error when trying to upload images. An IT bug has been made to add permissions for uploading to the proper folder. Traceback (most recent call last): File "/data/www/affiliates-dev.allizom.org/affiliates-app/vendor/src/django/django/core/handlers/base.py", line 111, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/data/www/affiliates-dev.allizom.org/affiliates-app/vendor/src/django/django/contrib/admin/options.py", line 307, in wrapper return self.admin_site.admin_view(view)(*args, **kwargs) File "/data/www/affiliates-dev.allizom.org/affiliates-app/vendor/src/django/django/utils/decorators.py", line 93, in _wrapped_view response = view_func(request, *args, **kwargs) File "/data/www/affiliates-dev.allizom.org/affiliates-app/vendor/src/django/django/views/decorators/cache.py", line 79, in _wrapped_view_func response = view_func(request, *args, **kwargs) File "/data/www/affiliates-dev.allizom.org/affiliates-app/vendor/src/django/django/contrib/admin/sites.py", line 197, in inner return view(request, *args, **kwargs) File "/data/www/affiliates-dev.allizom.org/affiliates-app/vendor/src/django/django/utils/decorators.py", line 28, in _wrapper return bound_func(*args, **kwargs) File "/data/www/affiliates-dev.allizom.org/affiliates-app/vendor/src/django/django/utils/decorators.py", line 93, in _wrapped_view response = view_func(request, *args, **kwargs) File "/data/www/affiliates-dev.allizom.org/affiliates-app/vendor/src/django/django/utils/decorators.py", line 24, in bound_func return func(self, *args2, **kwargs2) File "/data/www/affiliates-dev.allizom.org/affiliates-app/vendor/src/django/django/db/transaction.py", line 217, in inner res = func(*args, **kwargs) File "/data/www/affiliates-dev.allizom.org/affiliates-app/vendor/src/django/django/contrib/admin/options.py", line 882, in add_view self.save_model(request, new_object, form, change=False) File "/data/www/affiliates-dev.allizom.org/affiliates-app/vendor/src/django/django/contrib/admin/options.py", line 665, in save_model obj.save() File "/data/www/affiliates-dev.allizom.org/affiliates-app/vendor/src/django/django/db/models/base.py", line 460, in save self.save_base(using=using, force_insert=force_insert, force_update=force_update) File "/data/www/affiliates-dev.allizom.org/affiliates-app/vendor/src/django/django/db/models/base.py", line 543, in save_base for f in meta.local_fields if not isinstance(f, AutoField)] File "/data/www/affiliates-dev.allizom.org/affiliates-app/vendor/src/django/django/db/models/fields/files.py", line 255, in pre_save file.save(file.name, file, save=False) File "/data/www/affiliates-dev.allizom.org/affiliates-app/vendor/src/django/django/db/models/fields/files.py", line 92, in save self.name = self.storage.save(name, content) File "/data/www/affiliates-dev.allizom.org/affiliates-app/vendor/src/django/django/core/files/storage.py", line 49, in save name = self._save(name, content) File "/data/www/affiliates-dev.allizom.org/affiliates-app/vendor/src/django/django/core/files/storage.py", line 166, in _save os.makedirs(directory) File "/usr/lib/python2.6/os.py", line 150, in makedirs makedirs(head, mode) File "/usr/lib/python2.6/os.py", line 157, in makedirs mkdir(name, mode) OSError: [Errno 13] Permission denied: '/data/www/affiliates-dev.allizom.org/affiliates-app/media/uploads' <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {u'csrfmiddlewaretoken': [u'73a99e668edee30ea881e29c911bc2ab'], u'name': [u'Firefox Plugins'], u'parent': [u'1'], u'_save': [u'Save']}>, COOKIES:{'anoncsrf': 'd22214247bd85c26fd822d3e5c0a742d', 'sessionid': '260ece03b743e3c31aaa7b0c9e415a0a'}, META:{'CONTENT_LENGTH': '40478', 'CONTENT_TYPE': 'multipart/form-data; boundary=---------------------------9849436581144108930470211272', 'DOCUMENT_ROOT': '/data/www/affiliates-dev.allizom.org/affiliates-app', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,application/json', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'anoncsrf=d22214247bd85c26fd822d3e5c0a742d; sessionid=260ece03b743e3c31aaa7b0c9e415a0a', 'HTTP_HOST': 'affiliates-dev.allizom.org', 'HTTP_REFERER': 'https://affiliates-dev.allizom.org/en-US/admin/badges/subcategory/add/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0a2) Gecko/20110905 Firefox/8.0a2', 'HTTP_X_CLUSTER_CLIENT_IP': '63.245.220.240', 'HTTP_X_FORWARDED_FOR': '63.245.220.240', 'PATH_INFO': u'/en-US/admin/badges/subcategory/add/', 'PATH_TRANSLATED': '/data/www/affiliates-dev.allizom.org/affiliates-app/wsgi/playdoh.wsgi/en-US/admin/badges/subcategory/add/', 'QUERY_STRING': '', 'REMOTE_ADDR': '10.8.33.248', 'REMOTE_PORT': '2038', 'REQUEST_METHOD': 'POST', 'REQUEST_URI': '/en-US/admin/badges/subcategory/add/', 'SCRIPT_FILENAME': '/data/www/affiliates-dev.allizom.org/affiliates-app/wsgi/playdoh.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '10.8.32.39', 'SERVER_ADMIN': 'webmaster@mozilla.com', 'SERVER_NAME': 'affiliates-dev.allizom.org', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache', 'mod_wsgi.application_group': 'affiliates-dev.allizom.org|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.handler_script': '', 'mod_wsgi.input_chunked': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '81', 'mod_wsgi.process_group': 'affiliates-app', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (3, 2), 'wsgi.errors': <mod_wsgi.Log object at 0xb2a6a5c0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0xb3bbf650>, 'wsgi.input': <mod_wsgi.Input object at 0xb2a6a458>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 1)}>
dupe?
Note the comments in bug 684884 about how the upload dir should be configurable.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Verified duplicate
Status: RESOLVED → VERIFIED
Product: Websites → Firefox Affiliates
Product: Firefox Affiliates → Firefox Affiliates Graveyard
You need to log in before you can comment on or make changes to this bug.