go-remote is not downloading modules but goget.html - go

I got 404 error when I go get through Artifactory remote repo.
$ go get -v github.com/pkg/errors
go get github.com/pkg/errors: unexpected status (http://myartifactory:8081/artifactory/api/go/go/github.com/pkg/errors/#v/list): 404 Not Found
What I have:
go v1.11
artifactory v6.5.9
GO111MODULE=on and GOPROXY=${ARTIFACTORY_URL}
What I found in the Artifactory remote repo is a goget.html showing a Github page. It seems Artifactory is unable to clone the remote repo from Github but just saved an irrelevant html page. May I ask what's possible reason cause this problem? Thanks in advance.

This is fixed in v6.7.
Artifactory 6.7 Release Note
Fixed an issue in which under certain circumstances, an Artifactory remote Go repository would cache a goget.html file instead of the corresponding Go module.

Related

Problem installing forked github repository to R

I am currently working on a research that requires me to add some model functions into the gstat package in R. I forked it from the author on github, added the functions that i needed to experiment on, and rename it in my github repository. But i cant install it into R.
> install_github("JohannahKiram/gstatmod")
Error: Failed to install 'unknown package' from GitHub:
HTTP error 404.
No commit found for the ref master
Did you spell the repo owner (`JohannahKiram`) and repo name (`gstatmod`) correctly?
- If spelling is correct, check that you have the required permissions to access the repo
what am i doing wrong? I dont want to push it to the author cause i just need to experiment the changes first.

Unable to use JFrog Artifactory to proxy GitHub private repositories as Go Registry

I want to use Go Remote repository proxying Github. I have created Go remote repo github proxying https://github.com/ and I have created a Go virtual repository as well. Credentials added as mentioned in https://www.jfrog.com/confluence/display/RTF/Go+Registry#GoRegistry-RemoteRepositories.
I did everything explained on the link above but when I tried to get the modules I get that:
go env -w GONOSUMDB="*github.com/xxx/*"
export GOPROXY="https://test:%5Bredacted%5D#xxx.jfrog.io/artifactory/api/go/go"
go mod download -x
get https://test:%5Bredacted%5D#xxx.jfrog.io/artifactory/api/go/go/github.com/xxx/platform/#v/v0.21.0.mod
get https://test:%5Bredacted%5D#xxx.jfrog.io/artifactory/api/go/go/github.com/xxx/platform/#v/v0.21.0.mod: 404 Not Found (0.894s)
go: github.com/xxx/platform#v0.21.0: reading https://test:%5Bredacted%5D#xxx.jfrog.io/artifactory/api/go/go/github.com/xxx/platform/#v/v0.21.0.mod: 404 Not Found
Besides that, I can get public modules from github. Auth seems not working.
You should upgrade to JFrog Artifactory 6.19+ or 7.4.0+ as this was a missing feature until then (https://www.jfrog.com/jira/browse/RTFACT-19395).

SonarQube downloading is failing

I am trying to downloading Sonarqube from below link but it is always failing after after some time. can some body please share me another link from where i can download it.
https://www.sonarqube.org/downloads/
You can try downloading it from Maven Central if you constantly have issues with the official Website.
Just follow these steps:
Open http://repo1.maven.org/maven2/org/sonarsource/sonarqube/sonar-application
Go into the folder x.y.z that is the version you want to download ("6.3.1" for instance)
Download the file called "sonar-application-x.y.z.zip"

Build Error while building aperturejs

I am trying to build aperturejs with Readme.md instructions.
I cloned the repository and tried the command mvn clean install in the root directory of ApertureJs.
I got the following Build Error as in the screenshot,
I am using the latest version of Maven - 3.3.9
Thanks in advance.
By reading the error in your console, I could feel that you are not authorized to access the particular repository, which is shown in your console.
Copy the repository url and try it from a browser - hope you will not be able to access the repository, since you are not authorized.
Raise appropriate access and after getting access, then try mvn clean install.
Below is the Quick fix till the time you get the access:
Copy and Paste the respective jar/pom/folder from your colleague machine, in your .m2/repository/...
Run the mvn clean install with -o option so that it will look into your local repository for building your application
Thank you. The issue is solved. I posted this issue to Uncharted Software's Salt Repository and exactly like Clement Said, I was trying to access a repository that no more has access publicly. Therefore they gave a workaround.
It is available here -> https://github.com/unchartedsoftware/aperturejs/issues/22
Thanks a lot.

Artifactory not resolving local snapshots

I'm trying to resolve SNAPSHOTS artifacts deployed on the local repository (libs-snapshots-local) but I'm having an unexpected behavior :
when wgetting my/group/artifact/1.0-SNAPSHOT/artifact-1.0-SNAPSHOT.jar artifactory redirects me to my/group/artifact/1.0-SNAPSHOT/artifact-1.0-SNAPSHOT.jar/ (same url with a slash added)
then the subsequent request will fail with error 404
Does anyone know how to fix this ? Is this happening to anyone ?
UPDATE:
If I try to resolve the artifact using the libs-snapshots-local the download will succeeed but if I try with the virtual repository repo it will not work:
wget http://artifactory:8080/repo/my/group/artifact/1.0-SNAPSHOT/artifact-1.0-SNAPSHOT.jar = REDIRECT then 404
wget http://artifactory:8080/libs-snapshots-local/my/group/artifact/1.0-SNAPSHOT/artifact-1.0-SNAPSHOT.jar = OK
But the virtual repository repo should contains all the other repository by default (and I don't know if it is even possible to change this behavior).
The root cause of this issue is related to a redirect performed by a remote Maven repository - http://mirrors.ibiblio.org/pub/mirrors/maven2.
In some cases this redirect will cause Artifactory to assume it got a proper response from the remote repository while actually it is not the expected type of response (getting an HTML document with the repository listing instead of an artifact content).
For more details see the answer to this question

Resources