Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No data folder in project setup #48

Open
akashpatni opened this issue Oct 5, 2016 · 1 comment
Open

No data folder in project setup #48

akashpatni opened this issue Oct 5, 2016 · 1 comment

Comments

@akashpatni
Copy link

Hi,

In django;s run.py file there is three line of code which is giving permission error:

ensure_dir('/data/logs/django', owner='developer', group='developer')
ensure_dir('/data/static', owner='developer', group='developer')
ensure_dir('/src/locale', owner='developer', group='developer')

Error:

chown: changing ownership of ‘/data/static’: Operation not permitted
django_1 | chgrp: changing group of ‘/data/static’: Operation not permitted
django_1 | chmod: changing permissions of ‘/data/static’: Operation not permitted

so because of this there is no data or src/locale folder in my project setup and when I running the project in DEBUF- false mode it is running collestatuc command which is also giving permission error like below:

PermissionError: [Errno 13] Permission denied: '/data/static/images'

raise CalledProcessError(retcode, process.args, output=output)
django_1 | subprocess.CalledProcessError: Command '['django-admin', 'collectstatic', '--noinput', '-i', 'react']' returned non-zero exit status 1

Any help on this

Thanks

@legios89
Copy link
Owner

legios89 commented Oct 5, 2016

Try to start a django container with shell and check the folder inside a running container, if it's not there then you should create it manually, but it's strange because I never had a problem like this.
How long ago you created this project? Maybe you should start a new one with the current version.

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

No branches or pull requests

2 participants