Skip to content
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.

OS error while updating resume #477

Closed
swekshajha12 opened this issue Oct 15, 2017 · 3 comments
Closed

OS error while updating resume #477

swekshajha12 opened this issue Oct 15, 2017 · 3 comments

Comments

@swekshajha12
Copy link
Contributor

Current Behaviour: When I try to update resume in vms , I get this OS error .
Improvement : We can make it such that , one can update their resume after some threshold number of days ( say 3 days) and eliminate the OS error.
What do you suggest?
oserror

@tapaswenipathak
Copy link
Contributor

tapaswenipathak commented Oct 15, 2017

Can you please also share the traceback? you would have got it on your console while triggering this request.

@swekshajha12
Copy link
Contributor Author

swekshajha12 commented Oct 17, 2017

Referencing issue #305
This issue is same as #305. So closing this.

@swekshajha12
Copy link
Contributor Author

Environment:

Request Method: POST
Request URL: http://52.8.110.63/volunteer/edit/4

Django Version: 1.6.1
Python Version: 2.7.6
Installed Applications:
('django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'administrator',
'authentication',
'event',
'home',
'job',
'organization',
'registration',
'shift',
'vms',
'volunteer')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware')

Traceback:
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
112. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.7/dist-packages/django/contrib/auth/decorators.py" in _wrapped_view
22. return view_func(request, *args, **kwargs)
File "/var/www/html/vms/vms/volunteer/views.py" in edit
85. volunteer_to_edit.save()
File "/usr/lib/python2.7/dist-packages/django/db/models/base.py" in save
545. force_update=force_update, update_fields=update_fields)
File "/usr/lib/python2.7/dist-packages/django/db/models/base.py" in save_base
573. updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
File "/usr/lib/python2.7/dist-packages/django/db/models/base.py" in _save_table
632. for f in non_pks]
File "/usr/lib/python2.7/dist-packages/django/db/models/fields/files.py" in pre_save
252. file.save(file.name, file, save=False)
File "/usr/lib/python2.7/dist-packages/django/db/models/fields/files.py" in save
86. self.name = self.storage.save(name, content)
File "/usr/lib/python2.7/dist-packages/django/core/files/storage.py" in save
49. name = self._save(name, content)
File "/usr/lib/python2.7/dist-packages/django/core/files/storage.py" in _save
171. os.makedirs(directory)
File "/usr/lib/python2.7/os.py" in makedirs
150. makedirs(head, mode)
File "/usr/lib/python2.7/os.py" in makedirs
157. mkdir(name, mode)

Exception Type: OSError at /volunteer/edit/4
Exception Value: [Errno 13] Permission denied: '/srv/vms'

This is the traceback that I got.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants