PUNCH-Cyber / YaraGuardian

Django web interface for managing Yara rules
Apache License 2.0
189 stars 43 forks source link

Error after "collectstatic" #59

Open matandobr opened 4 years ago

matandobr commented 4 years ago

Hey! I tried install your repo on a clean ubuntu16 machine, I ran sudo ./install.sh - without and errors. after I run collect static I get this permission error (YaraGuardian) matand@ubuntu:~/YaraGuardian$ python manage.py createsuperuser /home/matand/YaraGuardian/.venv/lib/python3.5/site-packages/psycopg2/init.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: http://initd.org/psycopg/docs/install.html#binary-install-from-pypi. """) Username: matand Email address: 1 Error: Enter a valid email address. Email address: Password: Password (again): Superuser created successfully. (YaraGuardian) matand@ubuntu:~/YaraGuardian$ python manage.py collectstatic /home/matand/YaraGuardian/.venv/lib/python3.5/site-packages/psycopg2/init.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: http://initd.org/psycopg/docs/install.html#binary-install-from-pypi. """)

You have requested to collect static files at the destination location as specified in your settings:

/home/matand/YaraGuardian/static

This will overwrite existing files! Are you sure you want to do this?

Type 'yes' to continue, or 'no' to cancel: yes Copying '/home/matand/YaraGuardian/stylesheets/app.css' Traceback (most recent call last): File "manage.py", line 8, in execute_from_command_line(sys.argv) File "/home/matand/YaraGuardian/.venv/lib/python3.5/site-packages/django/core/management/init.py", line 371, in execute_from_command_line utility.execute() File "/home/matand/YaraGuardian/.venv/lib/python3.5/site-packages/django/core/management/init.py", line 365, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/matand/YaraGuardian/.venv/lib/python3.5/site-packages/django/core/management/base.py", line 288, in run_from_argv self.execute(*args, *cmd_options) File "/home/matand/YaraGuardian/.venv/lib/python3.5/site-packages/django/core/management/base.py", line 335, in execute output = self.handle(args, **options) File "/home/matand/YaraGuardian/.venv/lib/python3.5/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 189, in handle collected = self.collect() File "/home/matand/YaraGuardian/.venv/lib/python3.5/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 114, in collect handler(path, prefixed_path, storage) File "/home/matand/YaraGuardian/.venv/lib/python3.5/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 354, in copy_file self.storage.save(prefixed_path, source_file) File "/home/matand/YaraGuardian/.venv/lib/python3.5/site-packages/django/core/files/storage.py", line 49, in save return self._save(name, content) File "/home/matand/YaraGuardian/.venv/lib/python3.5/site-packages/django/core/files/storage.py", line 264, in _save fd = os.open(full_path, flags, 0o666) PermissionError: [Errno 13] Permission denied: '/home/matand/YaraGuardian/static/app.css'

Thanks