saleor: Docker installation problem
I was trying to run the application using docker-compose
Steps to reproduce the problem
-
docker-compose up -
visit localhost:8000
What I expected to happen
To land in the webpage
Error
Traceback (most recent call last): web_1 | File “/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py”, line 35, in inner web_1 | response = get_response(request) web_1 | File “./saleor/core/middleware.py”, line 80, in middleware web_1 | request.site = Site.objects.get_current() web_1 | File “./saleor/site/patch_sites.py”, line 24, in new_get_current web_1 | site = self.prefetch_related(‘settings’).filter(pk=site_id)[0] web_1 | File “/usr/local/lib/python3.6/site-packages/django/db/models/query.py”, line 306, in getitem web_1 | qs._fetch_all() web_1 | File “/usr/local/lib/python3.6/site-packages/django/db/models/query.py”, line 1179, in _fetch_all web_1 | self._result_cache = list(self._iterable_class(self)) web_1 | File “/usr/local/lib/python3.6/site-packages/django/db/models/query.py”, line 53, in iter web_1 | results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size) web_1 | File “/usr/local/lib/python3.6/site-packages/django/db/models/sql/compiler.py”, line 1068, in execute_sql web_1 | cursor.execute(sql, params) web_1 | File “/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py”, line 100, in execute web_1 | return super().execute(sql, params) web_1 | File “/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py”, line 68, in execute web_1 | return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) web_1 | File “/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py”, line 77, in _execute_with_wrappers web_1 | return executor(sql, params, many, context) web_1 | File “/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py”, line 85, in _execute web_1 | return self.cursor.execute(sql, params) web_1 | File “/usr/local/lib/python3.6/site-packages/django/db/utils.py”, line 89, in exit web_1 | raise dj_exc_value.with_traceback(traceback) from exc_value web_1 | File “/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py”, line 85, in _execute web_1 | return self.cursor.execute(sql, params) web_1 | django.db.utils.ProgrammingError: relation “django_site” does not exist web_1 | LINE 1: …“django_site”.“domain”, “django_site”.“name” FROM "django_si…
Operating system: Ubuntu 16.04 Browser: firefox, chrome
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (5 by maintainers)
@Pacu2 thanks, I Was following the above docs When I run
docker-compose run web python3 manage.py collectstaticI get the following errors File “manage.py”, line 10, in <module> execute_from_command_line(sys.argv) File “/usr/local/lib/python3.6/site-packages/django/core/management/init.py”, line 371, in execute_from_command_line utility.execute() File “/usr/local/lib/python3.6/site-packages/django/core/management/init.py”, line 365, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File “/usr/local/lib/python3.6/site-packages/django/core/management/base.py”, line 288, in run_from_argv self.execute(*args, **cmd_options) File “/usr/local/lib/python3.6/site-packages/django/core/management/base.py”, line 335, in execute output = self.handle(*args, **options) File “/usr/local/lib/python3.6/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py”, line 189, in handle collected = self.collect() File “/usr/local/lib/python3.6/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py”, line 105, in collect for path, storage in finder.list(self.ignore_patterns): File “/usr/local/lib/python3.6/site-packages/django/contrib/staticfiles/finders.py”, line 125, in list for path in utils.get_files(storage, ignore_patterns): File “/usr/local/lib/python3.6/site-packages/django/contrib/staticfiles/utils.py”, line 28, in get_files directories, files = storage.listdir(location) File “/usr/local/lib/python3.6/site-packages/django/core/files/storage.py”, line 313, in listdir for entry in os.listdir(path): FileNotFoundError: [Errno 2] No such file or directory: ‘/app/saleor/static/assets’
Also If i run
docker-compose run web python3 manage.py populatedb --createsuperuserPermissionError: [Errno 13] Permission denied: '/app/media'