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

1.5.1 上传大文件失败 #2923

Open
TopSpoofer opened this issue Jul 11, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@TopSpoofer
Copy link

commented Jul 11, 2019

[简述你的问题]
安装1.5.1,配置完成,各种功能完好,但是上传100多m的文件的时候,没有错误日志,界面没有报错,上传的进度条在1/5这样子,突然就消失,以为上传成功了,但是一看文件大少只有几兆。

nginx配置如下:

server {
    listen 8888;
    server_name _;

    client_max_body_size 1000m;  # 录像及文件上传大小限制

    location /luna/ {
        try_files $uri / /index.html;
        alias /opt/luna/;
    }

    location /media/ {
        add_header Content-Encoding gzip;
        root /opt/jumpserver/data/;
        client_max_body_size 1000m;
        client_body_buffer_size 5m;
    }

    location /static/ {
        root /opt/jumpserver/data/;
    }

    location /socket.io/ {
        proxy_pass       http://localhost:5000/socket.io/;
        proxy_buffering off;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        access_log off;
        client_max_body_size 1000m;
        client_body_buffer_size 5m;
    }

    location /coco/ {
        proxy_pass       http://localhost:5000/coco/;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        access_log off;
        client_max_body_size 1000m;
        client_body_buffer_size 5m;
    }

    location /guacamole/ {
        proxy_pass       http://localhost:8081/;
        proxy_buffering off;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $http_connection;
        access_log off;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        client_max_body_size 1000m;
        client_body_buffer_size 5m;
    }

    location / {
        proxy_pass http://localhost:8080;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        client_max_body_size 1000m;
        client_body_buffer_size 5m;
    }

}
使用版本

[请提供你使用的Jumpserver版本 1.x.x 注: 0.3.x不再提供支持]
1.5.1

问题复现步骤
  1. [步骤1]
  2. [步骤2]
具体表现[截图可能会更好些,最好能截全]
其他

在终端使用sftp,速度很慢,因为是在内网s,ftp一般4m+,现在只有300k

[注:] 完成后请关闭 issue

@wojiushixiaobai

This comment has been minimized.

Copy link
Collaborator

commented Jul 11, 2019

@TopSpoofer 可能是超时了,可以尝试把coco换成koko试试,koko优化了文件传输。

@TopSpoofer

This comment has been minimized.

Copy link
Author

commented Jul 11, 2019

@TopSpoofer 可能是超时了,可以尝试把coco换成koko试试,koko优化了文件传输。

我还是先等·koko成熟点再更新吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.