glasslion / django-qiniu-storage

Django storage for 七牛云存储
MIT License
190 stars 70 forks source link

请问下同步静态文件报这个错误是什么原因? #49

Open Alvin88 opened 4 years ago

Alvin88 commented 4 years ago

(base) [hongye@host172-235 hongye-wx-api]$ python manage.py collectstatic

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

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

Type 'yes' to continue, or 'no' to cancel: yes Traceback (most recent call last): File "manage.py", line 22, in execute_from_command_line(sys.argv) File "/home/hongye/miniconda3/lib/python3.7/site-packages/django/core/management/init.py", line 381, in execute_from_command_line utility.execute() File "/home/hongye/miniconda3/lib/python3.7/site-packages/django/core/management/init.py", line 375, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/hongye/miniconda3/lib/python3.7/site-packages/django/core/management/base.py", line 323, in run_from_argv self.execute(*args, *cmd_options) File "/home/hongye/miniconda3/lib/python3.7/site-packages/django/core/management/base.py", line 364, in execute output = self.handle(args, **options) File "/home/hongye/miniconda3/lib/python3.7/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 188, in handle collected = self.collect() File "/home/hongye/miniconda3/lib/python3.7/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 114, in collect handler(path, prefixed_path, storage) File "/home/hongye/miniconda3/lib/python3.7/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 352, in copy_file self.storage.save(prefixed_path, source_file) File "/home/hongye/miniconda3/lib/python3.7/site-packages/django/core/files/storage.py", line 52, in save return self._save(name, content) File "/home/hongye/miniconda3/lib/python3.7/site-packages/qiniustorage/backends.py", line 124, in _save self._put_file(name, content_str) File "/home/hongye/miniconda3/lib/python3.7/site-packages/qiniustorage/backends.py", line 131, in _put_file raise QiniuError(info) qiniustorage.utils.QiniuError: _ResponseInfo__response:None, exception:('Connection aborted.', timeout('timed out')), status_code:-1, text_body:None, req_id:None, x_log:None, error:('Connection aborted.', timeout('timed out'))