上传图片报错

浏览器显示

A server error occurred. Please contact the administrator.

linux终端显示

[-] Error: 111 connect to 192.168.137.130:22122. Connection refused.
[-] Error: 111 connect to 192.168.137.130:22122. Connection refused.
[-] Error: 111 connect to 192.168.137.130:22122. Connection refused.
[-] Error: 111 connect to 192.168.137.130:22122. Connection refused.
[-] Error: 111 connect to 192.168.137.130:22122. Connection refused.
[-] Error: 111 connect to 192.168.137.130:22122. Connection refused.
[-] Error: 111 connect to 192.168.137.130:22122. Connection refused.
[-] Error: 111 connect to 192.168.137.130:22122. Connection refused.
[-] Error: 111 connect to 192.168.137.130:22122. Connection refused.
[-] Error: 111 connect to 192.168.137.130:22122. Connection refused.
Traceback (most recent call last):
  File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/fdfs_client/connection.py", line 137, in get_connection
    conn = self._conns_available.pop()
IndexError: pop from empty list

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.5/wsgiref/handlers.py", line 137, in run
    self.result = application(self.environ, self.start_response)
  File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/contrib/staticfiles/handlers.py", line 63, in __call__
    return self.application(environ, start_response)
  File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/core/handlers/wsgi.py", line 189, in __call__
    response = self.get_response(request)
  File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/core/handlers/base.py", line 132, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/contrib/admin/options.py", line 616, in wrapper
    return self.admin_site.admin_view(view)(*args, **kwargs)
  File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/utils/decorators.py", line 110, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/contrib/admin/sites.py", line 233, in inner
    return view(request, *args, **kwargs)
  File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/contrib/admin/options.py", line 1519, in change_view
    return self.changeform_view(request, object_id, form_url, extra_context)
  File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/utils/decorators.py", line 34, in _wrapper
    return bound_func(*args, **kwargs)
  File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/utils/decorators.py", line 110, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/utils/decorators.py", line 30, in bound_func
    return func.__get__(self, type(self))(*args2, **kwargs2)
  File "/usr/lib/python3.5/contextlib.py", line 30, in inner
    return func(*args, **kwds)
  File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/contrib/admin/options.py", line 1467, in changeform_view
    self.save_model(request, new_object, form, not add)
  File "/home/python/bj18/ttsx/dailyfresh/apps/goods/admin.py", line 10, in save_model
    super().save_model(request, obj, form, change)
  File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/contrib/admin/options.py", line 1078, in save_model
    obj.save()
  File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/db/models/base.py", line 710, in save
    force_update=force_update, update_fields=update_fields)
  File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/db/models/base.py", line 738, in save_base
    updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
  File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/db/models/base.py", line 800, in _save_table
    for f in non_pks]
  File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/db/models/base.py", line 800, in <listcomp>
    for f in non_pks]
  File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/db/models/fields/files.py", line 315, in pre_save
    file.save(file.name, file, save=False)
  File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/db/models/fields/files.py", line 94, in save
    self.name = self.storage.save(name, content, max_length=self.field.max_length)
  File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/django/core/files/storage.py", line 64, in save
    name = self._save(name, content)
  File "/home/python/bj18/ttsx/dailyfresh/utils/fdfs/storage.py", line 26, in _save
    res = client.upload_by_buffer(content.read())  # 返回的是一个字典格式
  File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/fdfs_client/client.py", line 125, in upload_by_buffer
    store_serv = tc.tracker_query_storage_stor_without_group()
  File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/fdfs_client/tracker_client.py", line 374, in tracker_query_storage_stor_without_group
    conn = self.pool.get_connection()
  File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/fdfs_client/connection.py", line 142, in get_connection
    conn = self.make_conn()
  File "/home/python/.virtualenvs/bj18_py3/lib/python3.5/site-packages/fdfs_client/connection.py", line 122, in make_conn
    sys.exit()
SystemExit

错误原因

没运行nginx

sudo /usr/local/nginx/sbin/nginx

原文地址:https://www.cnblogs.com/yifengs/p/11664841.html

时间: 2024-11-02 12:02:00

上传图片报错的相关文章

The difference between the request time and the current time is too large.阿里云oss上传图片报错

The difference between the request time and the current time is too large. 阿里云oss上传图片的时候报错如上, 解决办法,把系统时间自动同步成对应的时区的时间.

laravel上传图片报错

在laravel的上传图片代码文件中路径如下: vendor\stevenyangecho\laravel-u-editor\src\Uploader\Upload.php第131行有一句代码错误$randNum = rand(1, 10000000000) . rand(1, 10000000000); 改成$randNum = rand(1, getrandmax()) . rand(1, getrandmax());这样就好了,具体原因参考php手册:http://php.net/manu

vue2.0集成百度UE编辑器,上传图片报错!!!

我这边配置进去之后,界面加载,文本输入都没有问题,就是上传图片会有问题 这张图, 左边红色框框 就是目录结构咯, 右边红色框框 就是各种网上教程给出的第一个路径配置对吧, 下面的就是绿色 服务器接口配置把? 这个我不是太清楚, 但是我上传图片的后台接口就是这么走的..... 这就是我在ueditor.config.js 里面做的两个唯一的配置! 然后另一个配置文件php/config.json也有相应的修改,截图如下: 右边红色框框嘛, 就是我认为的需要修改的路径吧~ 当然了,这里只涉及到了图片

Android使用xUtils3上传图片报错解决:java.lang.ArrayIndexOutOfBoundsException: 70918

今天在使用安卓xUtils3框架配合SmartUpload框架上传图片到Java服务端时,遇到了一个莫名其妙的错误: 安卓端代码如下: 似乎并没有发现什么问题,以前在用xUtils2.6老版本时也是这样写的,完全可以上传. 经过与网上的源码对比发现,xUtils3框架默认没有开启multipart属性. 需要我们手动设置multipart编码: 设置的代码如下: 只要加一句这行代码就可以了: param.setMultipart(true); 最后,问题成功解决 原文地址:https://www

表单上传图片报错(解决方案):413 Request Entity Too Large

配置nginx中的nginx.conf文件 请求实体太长了.一般出现种情况是Post请求时Body内容Post的数据太大了 如 上传大文件过大 或者 POST数据比较多 处理方法: 在nginx.conf中的http{...}配置中,增加 client_max_body_size的相关设置, 这个值默认是1m,可以增加到8m以增加提高文件大小限制:当然一个设置更大点.

A generic error occurred in GDI+. 上传图片报错

代码就不说了,因为本地测试 ok, 服务端 就不行 ,服务器 环境 阿里云 win2008 r2  64 位 原因 是我没有这是 文件加权限 : 左边 的 少了 权限~ 代码 :含义是 网络图片 裁剪 保存 到本地 ,本地 再 存储 到 七牛 云存储. public static string Crop(string ImgUrl, int Width, int Height, int X, int Y) { string path = "C:\\DescripttionImg\\";

如果遇到php5.6 上传图片error代码为6 或者 报错“PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0&quot;如何解决

问题:再利用webuploader上传图片的时候发现,报错,打印了$_FILES["file"]["error"] 发现是6,找不到临时文件夹: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 $_FILES['file']['error']有以下几种类型: 1.UPLOAD_ERR_OK 其值为 0,没有错误发生,文件上传成功.   2.UPLOAD_ERR_INI_SIZE 其值为 1,上传的文件

【angularjs基础】ng-repeat嵌套循环报错angular.min.js:89 Error: [ngRepeat:dupes]

再写嵌套循环的时候,提示一个错误 angular.min.js:89 Error: [ngRepeat:dupes] 代码如下 <table class="GridViewTable mtop5px " style="margin-top: 15px;" id="tabVipHallRegisterList" ng-app="" ng-controller="JSJ.CRM.AppFeedBackList.Re

注册验证的时候一直出现的报错问题,终于解决了

今天再注册验证表单的时候一直报错,但是什么都没有改,就报错了,后面才知道原来是和我上次上传图片的时候,导入的2个js的顺序有关系的, 45行和41行互相换一下位置就好了