jfrog / jfrog-cli

JFrog CLI is a client that provides a simple interface that automates access to the JFrog products.
https://www.jfrog.com/confluence/display/CLI/JFrog+CLI
Apache License 2.0
529 stars 227 forks source link

jf rt u not return after uploading large file on Windows. (such as: 10G) #2493

Open j1an5 opened 6 months ago

j1an5 commented 6 months ago

Describe the bug

on Windows, jf rt u does not finish after upload: image But I can see the upload was successful in artifactory-request.log

2024-03-21T05:05:01.167Z|9aadf2b44d75824e|172.17.147.49|xx|PUT|/j-generic-local/11g.tgr|201|12290821632|0|150630|jfrog-cli-go/2.54.0

finish

Current behavior

JFrog CLI debug: [Debug] Usage Report: Sending info... [Debug] Refreshing token... [Debug] Creating lock in: C:\Users\81300.jfrog\locks\config [Info] [Thread 2] Uploading: 11g.tgr [Debug] Sending HTTP POST request to: https://demo.jfrogchina.com/artifactory/api/security/token [Debug] Token refreshed successfully. [Debug] Releasing lock: C:\Users\81300.jfrog\locks\config\jfrog-cli.conf.lck.2192.1710996165949261800 [Debug] Sending HTTP GET request to: https://demo.jfrogchina.com/artifactory/api/system/version [Debug] Artifactory response: 200 [Debug] JFrog Artifactory version is: 7.77.6 [Debug] Sending HTTP POST request to: https://demo.jfrogchina.com/artifactory/api/system/usage [Debug] Refreshing token... [Debug] Creating lock in: C:\Users\81300.jfrog\locks\config [Debug] Fetched new token from config. [Debug] Releasing lock: C:\Users\81300.jfrog\locks\config\jfrog-cli.conf.lck.2192.1710996311461383600 [Debug] Sending HTTP PUT request to: https://demo.jfrogchina.com/artifactory/j-generic-local/11g.tgr [Debug] Sending HTTP GET request to: https://demo.jfrogchina.com/artifactory/api/system/version [Debug] Artifactory response: 200 [Debug] JFrog Artifactory version is: 7.77.6 [Debug] Multipart upload is not supported in versions below 7.82.2. Proceeding with regular upload...

Reproduction steps

  1. create a 10g file.
  2. jf rt u 10g generic-local/

Expected behavior

can get a response, like:

[Debug] [Thread 2]  Artifactory response: 201  
[Debug] Uploaded 1 artifacts.

JFrog CLI version

2.54.0

Operating system type and version

Windows

JFrog Artifactory version

7.77.6

JFrog Xray version

3.X

j1an5 commented 6 months ago

same version, jf rt u, succeed with “--split-count=0” image