Nexus (proxy)Repository Connection pending on remote storage And 404 on repository acces - proxy

I have set up a sonatype Nexus 3.0.0-03. And trying to configure proxy repositories.
Problems:
the created repositories are not accessible. 404 If I just open repository URL.
The status in the repositories overview is on Online - Remote Connection Pending...
Type and Format of repository I have setup:
proxy, npm
proxy, nuget
proxy, maven
The goal is proxy the remote Nexus npm repository and use it as a npm registry.
Additional information:
I have no access to the settings of the remote Nexus, but as far as I understood this is not even necessary.
Accessing the remote repository with npm is possible.
I have already tried using npm install on created repository and it does not work. My Nexus is not fetching from remote Nexus' repository.

Solved by correcting the proxy settings.
Host was not reachable, because the companies Nexus is not reachable from outside of companies network, but inside of companies network.
I had to change no_proxy and NO_PROXY environment variables from *.company.com to .company.com
*.company.com won't work for nexus.company.com

Related

HTTPS configuration in JFrog artifactory

I am using JFrog 7.17.x Artifactory version. I am accessing the JFrog console with http://localhost:8082. I have a domain configured for my environment (dev.sample.com). I would like to configure HTTPS and Domain setup for my JFrog Artifactory node to be accessible with https://dev.sample.com.
What are the configuration changes to be done to setup https and domain in JFrog Artifactory node 7.17.x?
This is not possible inside Artifactory. You must use external reverse proxy software like Apache or Nginx. Artifactory can only generate configuration files for them.

How to use JFrog Artifactory to proxy GitHub as Go Repository?

I want to use Go Remote repository caching/proxying Github.
I have created Go remote repo github proxying https://github.com/ (Credentials added as mentioned in https://www.jfrog.com/confluence/display/RTF/Go+Registry#GoRegistry-RemoteRepositories).
When I run go get artifactory log shows following error:
2019-05-29 16:01:29,586 [http-nio-8081-exec-252] [ERROR] (o.a.a.g.r.GoResource:88) - Unsupported go repository request for 'github'```
In Artifactory Go repositories, you can't resolve from a remote repository directly, packages has to be resolved from a virtual repo.
Just include it in any Go virtual repository and you should be good to go.
Also, why not use gocenter for Go packages? It's much more reliable IMO.

Nexus repo not accessible through proxy in maven settings

I have a maven project.
when I build using cmd prompt- It downloads the maven repos, only when the proxy is configured in settings.xml file.
But this proxy is blocking the nexus repos. I do have two nexus repos required for this project. and I get build error -- return code:503 reason phrase: service unavailable for nexus repo contents
If I follow the stack overflow answer Nexus Repo gives 503 with Maven but not with browser
and added proxy to nexus instance and mirrored the nexus in my settings file. Still maven repo works and nexus repos or not accessible.
my settings.xml
Any help would be appreciated.
Thanks in advance

Replicate nexus repository in my local server

I work in an organisation and we use nexus repositories. I want a simple approach of how can I replicate few groups from nexus repository in to local server so that maven downloads the dependencies from local server and not from nexus.
If you use local server in the sense of base machine then you use clean install as a maven goal. The build code will be available under .m2/repository folder.
Install Nexus locally, create Proxy Repository for each of the repo or group that you want to have locally. In Proxy Repository you'd need to set up URLs to the remote repos.
Now point Maven to this local Nexus (e.g. with <mirrors> in settings.xml). First time Maven downloads a dependency it will go to Local Nexus which would grab the dependency from the remote one. This file is going to be cached in Local Nexus and further downloads won't hit the Remote Nexus.
PS: don't know why you would do this.

Nexus Unable to connect with repos on the Internet

I set up a nexus server locally and updated my local settings.xml to point it. Now whenever I run maven clean or package commands, it does not download the dependencies and throws the following error.
Return code is: 502 , ReasonPhrase:Proxy Error ( Connection refused )
But when I update my local settings.xml to not to point to nexus server, it downloads all jars locally and works fine. I think, this has to do with nexus not being able to connect with outside world. Where I can set our company's proxy settings in Nexus. I have tried setting proxy under
Application Server Settings
but had no luck. Any ideas?
Confirm that Nexus can connect to e.g. the Central Repository by trying to browse the remote repository of Central. If that doesnt work your proxy server, firewall or something else is blocking Nexus from getting out.
If thats the case you have to fix your proxy settings in Nexus in Administration - Server.

Resources