[traceback][stage] Error: OSError: [Errno 13] Permission denied: '/data/www/mozillians.allizom.org/mozillians/media/uploads/userprofile/kevin.jpg'

VERIFIED FIXED

Status

Participation Infrastructure
Phonebook
--
blocker
VERIFIED FIXED
6 years ago
6 years ago

People

(Reporter: mbrandt, Assigned: timw)

Tracking

Details

(Whiteboard: [rel:03/21/2012], URL)

Attachments

(1 attachment)

(Reporter)

Description

6 years ago
When attempting to upload a profile image the app returns a 500.

Steps to reproduce:
1. upload an image via a users profile page

Traceback (most recent call last):

 File "/data/www/mozillians.allizom.org/mozillians/vendor/src/django/django/core/handlers/base.py", line 111, in get_response
   response = callback(request, *callback_args, **callback_kwargs)

 File "/data/www/mozillians.allizom.org/mozillians/vendor/src/django/django/views/decorators/cache.py", line 88, in _wrapped_view_func
   response = view_func(request, *args, **kwargs)

 File "/data/www/mozillians.allizom.org/mozillians/vendor/src/django/django/contrib/auth/decorators.py", line 19, in _wrapped_view
   return view_func(request, *args, **kwargs)

 File "/data/www/mozillians.allizom.org/mozillians/apps/phonebook/views.py", line 70, in edit_profile
   form.save(request)

 File "/data/www/mozillians.allizom.org/mozillians/apps/phonebook/forms.py", line 141, in save
   super(ProfileForm, self).save(request.user)

 File "/data/www/mozillians.allizom.org/mozillians/apps/phonebook/forms.py", line 87, in save
   super(forms.ModelForm, self).save()

 File "/data/www/mozillians.allizom.org/mozillians/vendor/src/django/django/forms/models.py", line 363, in save
   fail_message, commit, construct=False)

 File "/data/www/mozillians.allizom.org/mozillians/vendor/src/django/django/forms/models.py", line 85, in save_instance
   instance.save()

 File "/data/www/mozillians.allizom.org/mozillians/vendor/src/django/django/db/models/base.py", line 463, in save
   self.save_base(using=using, force_insert=force_insert, force_update=force_update)

 File "/data/www/mozillians.allizom.org/mozillians/vendor/src/django/django/db/models/base.py", line 528, in save_base
   values = [(f, None, (raw and getattr(self, f.attname) or f.pre_save(self, False))) for f in non_pks]

 File "/data/www/mozillians.allizom.org/mozillians/vendor/src/django/django/db/models/fields/files.py", line 253, in pre_save
   file.save(file.name, file, save=False)

 File "/data/www/mozillians.allizom.org/mozillians/vendor/src/django/django/db/models/fields/files.py", line 90, in save
   self.name = self.storage.save(name, content)

 File "/data/www/mozillians.allizom.org/mozillians/vendor/src/django/django/core/files/storage.py", line 49, in save
   name = self._save(name, content)

 File "/data/www/mozillians.allizom.org/mozillians/vendor/src/django/django/core/files/storage.py", line 195, in _save
   fd = os.open(full_path, os.O_WRONLY | os.O_CREAT | os.O_EXCL | getattr(os, 'O_BINARY', 0))

OSError: [Errno 13] Permission denied: '/data/www/mozillians.allizom.org/mozillians/media/uploads/userprofile/kevin.jpg'
(Assignee)

Updated

6 years ago
Assignee: nobody → timw
Recursively fixed permissions on userprofile directory. Should work now.
(Assignee)

Comment 2

6 years ago
Webops fixed apache permissions, I just tested on my own profile and uploaded a photo ok.
(Assignee)

Updated

6 years ago
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
(Reporter)

Comment 3

6 years ago
Created attachment 607582 [details]
qa - verified

QA verified on stage - adding and removing images works as expected.
(Reporter)

Updated

6 years ago
Status: RESOLVED → VERIFIED
(Reporter)

Updated

6 years ago
Component: mozillians.org → Phonebook
Product: Websites → Community Tools
QA Contact: mozillians-org → phonebook
Version: unspecified → other
You need to log in before you can comment on or make changes to this bug.