-
Notifications
You must be signed in to change notification settings - Fork 6
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
Installing from artifactory source #101
Comments
Any chance you could send me an asset to have a look at? Looks like I need a license for artifactory to enable the addons. |
Yea, no problem. I can try to get the raw file and also include details on the chef private supermarket setup. If you can chat on gitter or irc sometime I can provide more details. I use the Artifactory free trial license for testing stuff like this sometimes. |
Tested with latest release, here's the traceback:
|
I think the zip warnings may be a red herring. With a little puts'ing around it looks like the path it's attempting to use doesn't exist. For example:
|
The issue actually appears to be in how the artifactory api handles downloads. When it reaches here: https://github.com/spox/batali/blob/develop/lib/batali/source/site.rb#L67 to get asset files the response body is empty. I'm still trying to recreate a test scenario consistently. |
Is it perhaps returning a different redirect (like a 301 or something)? |
It absolutely is, seems to return 301 for redirects consistently |
Based off current develop, I added a @@ -62,16 +62,17 @@ module Batali
retried = false
begin
FileUtils.mkdir_p(path)
- if !url.end_with?("/") && Pathname.new(URI.parse(url).path).extname == ""
- req_url = "#{url}/"
- else
- req_url = url
- end
- result = HTTP.get(req_url)
- while result.code == 302
- result = HTTP.get(result.headers["Location"])
- end
- File.open(a_path = Utility.join_path(path, "asset"), "wb") do |file|
+ req_url = if !url.end_with?('/') && Pathname.new(URI.parse(url).path).extname == ''
+ "#{url}/"
+ else
+ url
+ end
+ result = HTTP.follow(max_hops: 5).get(req_url)
+ puts "\n#{req_url} -> #{result.code}"
+ # while result.code == 302
+ # result = HTTP.get(result.headers["Location"])
+ # end
+ File.open(a_path = Utility.join_path(path, 'asset'), 'wb') do |file| which gets things further, but has another interesting error. Crashes with 3 identical tracebacks all with the following error:
|
Just an issue for tracking, not sure how best to debug at this point:
With an artifactory private supermarket source:
The text was updated successfully, but these errors were encountered: