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

[cc] 访客端不能在手机上传图片 #131

Closed
hailiang-wang opened this issue Nov 5, 2018 · 1 comment
Closed

[cc] 访客端不能在手机上传图片 #131

hailiang-wang opened this issue Nov 5, 2018 · 1 comment
Labels
bug 软件缺陷

Comments

@hailiang-wang
Copy link
Member

描述

现在行为

image

contact-center_1  | 2018-11-05 20:27:32.481 [nioEventLoopGroup-3-3] INFO  com.chatopera.cc.exception.UCKeFuExceptionListener - Connection reset by peer
contact-center_1  | 2018-11-05 20:31:20.280 [http-nio-8080-exec-11] ERROR druid.sql.Statement - {conn-10003, pstmt-21148} execute error. insert into cs_stream_file (cooperation, data, mime, name, thumbnail, id) values (?, ?, ?, ?, ?, ?)
contact-center_1  | com.mysql.jdbc.PacketTooBigException: Packet for query is too large (6176726 > 4194304). You can change this value on the server by setting the max_allowed_packet' variable.
contact-center_1  |     at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3756)
contact-center_1  |     at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2449)
contact-center_1  |     at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2629)
contact-center_1  |     at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2719)
contact-center_1  |     at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2155)
contact-center_1  |     at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2450)
contact-center_1  |     at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2371)

预期行为

解决方案

环境

  • 代码版本:
    Git commit hash (git rev-parse HEAD)
@hailiang-wang hailiang-wang added the bug 软件缺陷 label Nov 5, 2018
@hailiang-wang
Copy link
Member Author

https://stackoverflow.com/questions/39369367/increase-max-allowed-packet-size-in-mysql-docker

services:
  data:
    image: "mysql:5.7.20"
    command: --max_allowed_packet=32505856      # Set max_allowed_packet to 256M (or any other value)

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

No branches or pull requests

1 participant