Cannot install with gem from a rubugems group

Hello Community,

I have an issue concerning installation of a gem package from a group of type rubygems.

Here is my scenario:
I am using Nexus 3.58.1-02
I have created a proxy repo proxying https://rubygems.org, named “proxy-rubygems.org
I have created a group repo that includes simply and only that proxy, named “gems”
I try to install a package from the proxy, it works
I try to install from the group it fails
but searching for the packaging works on both.

Here is the full scenario

+ gem sources --remove https://rubygems.org/
source https://rubygems.org/ not present in cache
+ gem sources --add https://my_nexus/repository/proxy-rubygems.org/
https://my_nexus/repository/proxy-rubygems.org/ added to sources
+ gem sources -l
**** CURRENT SOURCES ****

https://my_nexus/repository/proxy-rubygems.org/
+ gem search atomos --all

**** REMOTE GEMS ****

atomos (0.1.3, 0.1.2, 0.1.1, 0.1.0)
+ gem install atomos
Fetching: atomos-0.1.3.gem (100%)
Successfully installed atomos-0.1.3
Parsing documentation for atomos-0.1.3
Installing ri documentation for atomos-0.1.3
Done installing documentation for atomos after 0 seconds
1 gem installed
+ gem uninstall atomos
Successfully uninstalled atomos-0.1.3
+ gem sources --remove https://my_nexus/repository/proxy-rubygems.org/
https://my_nexus/repository/proxy-rubygems.org/ removed from sources
+ gem sources --add https://my_nexus/repository/gems/
https://my_nexus/repository/gems/ added to sources
+ gem sources -l
**** CURRENT SOURCES ****

https://my_nexus/repository/gems/
+ gem search atomos --all

**** REMOTE GEMS ****

atomos (0.1.3, 0.1.2, 0.1.1, 0.1.0)
+ gem install atomos
ERROR: Could not find a valid gem ‘atomos’ (>= 0) in any repository
ERROR: Possible alternatives: atomos

has anyone experienced such issue ?
or do you see what is wrong in my way to use the rubygems group ?

thanks in advance.

Hi Eric,

So, I’m just the Nexus Repository tech writer & not an Engineer, but I’ve been digging around. It looks like you’re doing most of what we’ve documented in our RubyGems help documentation except for clearing your local cache after removing all other sources.

I have no idea if doing so would work, but you might as well try. I’ll keep digging though.

I have the same problem as you
Nexus:3.62.01

use proxy repo is working ok, but use group it fails.

maven and npm group is working ok, just rubygems has error.

Hello,

We also have the same problem.

We want to install the rubygem: json and when using only our RubyGems group repo, the install fails with this message:

ERROR:  Could not find a valid gem 'json' (>= 0) in any repository
ERROR:  Possible alternatives: json

But when we add our RubyGems proxy repo to the .gemrc file as extra source, then it works and installs the gem correctly.

We are on Nexus version: 3.58.1-02.

If you haven’t try enabling verbose (I believe -V or --verbose) output which might include more information.