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 anonymous access disabled, some commands, like creating new users with nexus_user, or new proxies with nexus_proxy_repsoitory will fail with a permission error.
The text was updated successfully, but these errors were encountered:
@KAllan357 I get the same failure if I disable the anonymous account, but repo adds/deletes worked fine prior to the anonymous user being disabled. @sfiggins did you ever figure this out?
The reason for this problem is that all resource providers check first whether Nexus is available by calling Chef::Nexus.ensure_nexus_available(node) which in turn calls Chef::Nexus.anonymous_nexus_remote, attempting to anonymously connect to Nexus.
chef_nexus.rb could be modified to have a 2nd rescue for NexusCli::PermissionsException assuming that a nexus is available in this case:
begin[...]rescueErrno::ECONNREFUSED,NexusCli::CouldNotConnectToNexusException,NexusCli::UnexpectedStatusCodeException=>e[...]rescueNexusCli::PermissionsException=>eChef::Log.info"Could not connect to Nexus anonymously, assuming availability"returntrueend
With anonymous access disabled, some commands, like creating new users with nexus_user, or new proxies with nexus_proxy_repsoitory will fail with a permission error.
The text was updated successfully, but these errors were encountered: