You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the recent versions of JFrog CLI (e.g. v2.71.2), when JFROG_CLI_TEMP_DIR does not exist, commands fail.
But with older versions of JFrog CLI (e.g. v1.25.0.1), when JFROG_CLI_TEMP_DIR does not exist, the issue does not occur as it creates the folder.
Current behavior
When using the most recent version of CLI, v2.71.2, commands fail as the temp folder does not exist.
But when using older versions the same issue does not happen.
Reproduction steps
Set JFROG_CLI_TEMP_DIR to a nonexisting folder. e.g export JFROG_CLI_TEMP_DIR=/Users/dayk/nonexistingpath
Run a simple download command, e.g. jf rt dl generic-local/ ./ --explode --bypass-archive-inspection --threads 8 --split-count=0
14:18:19 [Debug] JFrog CLI version: 2.71.2
14:18:19 [Debug] OS/Arch: darwin/amd64
14:18:19 [Debug] Trace ID for JFrog Platform logs: 40e00b5069e3d6b1
14:18:19 [🔵Info] Log path: /Users/dayk/.jfrog/logs/jfrog-cli.2025-01-15.14-18-19.10685.log
14:18:20 [🔵Info] Trace ID for JFrog Platform logs: 40e00b5069e3d6b1
14:18:20 [🟠Warn] failed while attempting to cleanup old CLI temp directories: open /Users/dayk/nonexistingpath: no such file or directory
14:18:20 [🚨Error] download finished with errors, please review the logs
3. It fails as the JFROG_CLI_TEMP_DIR does not exist.
❯ cat /Users/dayk/.jfrog/logs/jfrog-cli.2025-01-15.14-18-19.10685.log
[Debug] Usage Report: Sending info...
[Debug] Sending HTTP GET request to: http://mill.jfrog.info:32834/artifactory/api/system/version
[Debug] Sending HTTP GET request to: http://mill.jfrog.info:32834/artifactory/api/system/version
[Debug] Artifactory response: 200 OK
[Debug] JFrog Artifactory version is: 7.90.13
[Debug] Sending HTTP POST request to: http://mill.jfrog.info:32834/artifactory/api/system/usage
[Debug] Artifactory response: 200 OK
[Debug] JFrog Artifactory version is: 7.90.13
[Debug] Searching Artifactory using AQL query:
items.find({"$or":[{"$and":[{"repo":"generic-local","path":{"$match":"*"},"name":{"$match":"*"}}]}]}).include("name","repo","path","actual_md5","actual_sha1","sha256","size","type","modified","created","property")
[Debug] Sending HTTP POST request to: http://mill.jfrog.info:32834/artifactory/api/search/aql
[Debug] Artifactory response: 200 OK
[Debug] Streaming data to file...
[Error] open /Users/dayk/nonexistingpath/jfrog.cli.temp.-1736979500-1297365030: no such file or directory
[Error] open /Users/dayk/nonexistingpath/jfrog.cli.temp.-1736979500-1297365030: no such file or directory
[Error] open /Users/dayk/nonexistingpath/jfrog.cli.temp.-1736979500-1297365030: no such file or directory
Expected behavior
It should create the temp folder if it does not exist, as how it handled it in the previous versions.
JFrog CLI version
2.71.2
Operating system type and version
Mac OS
JFrog Artifactory version
No response
JFrog Xray version
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
With the recent versions of JFrog CLI (e.g. v2.71.2), when JFROG_CLI_TEMP_DIR does not exist, commands fail.
But with older versions of JFrog CLI (e.g. v1.25.0.1), when JFROG_CLI_TEMP_DIR does not exist, the issue does not occur as it creates the folder.
Current behavior
When using the most recent version of CLI, v2.71.2, commands fail as the temp folder does not exist.
But when using older versions the same issue does not happen.
Reproduction steps
export JFROG_CLI_TEMP_DIR=/Users/dayk/nonexistingpath
jf rt dl generic-local/ ./ --explode --bypass-archive-inspection --threads 8 --split-count=0
Expected behavior
It should create the temp folder if it does not exist, as how it handled it in the previous versions.
JFrog CLI version
2.71.2
Operating system type and version
Mac OS
JFrog Artifactory version
No response
JFrog Xray version
No response
The text was updated successfully, but these errors were encountered: