IBM Support

Agent failure due to inability to add repositories

Troubleshooting


Problem

The agent is failing (not able to start) and this error is present inside the agent.logs:
Error when adding repository mvn:com.instana/agent-feature/1.0.0-SNAPSHOT/xml/features
java.lang.RuntimeException: Error resolving artifact com.instana:agent-feature:xml:features:1.0.0-SNAPSHOT: [Could not transfer artifact com.instana:agent-feature:xml:features:1.0.0-SNAPSHOT from/to features (https://artifact-public.instana.io/artifactory/features-public/): transfer failed for https://artifact-public.instana.io/artifactory/features-public/com/instana/agent-feature/1.0.0-SNAPSHOT/agent-feature-1.0.0-SNAPSHOT-features.xml, status: 500 Internal Server Error, Could not transfer artifact com.instana:agent-feature:xml:features:1.0.0-SNAPSHOT from/to shared (https://artifact-public.instana.io/artifactory/shared/): transfer failed for https://artifact-public.instana.io/artifactory/shared/com/instana/agent-feature/1.0.0-SNAPSHOT/agent-feature-1.0.0-SNAPSHOT-features.xml, status: 500 Internal Server Error] : mvn:com.instana/agent-feature/1.0.0-SNAPSHOT/xml/features
        at org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:116) ~[?:?]
        at org.apache.karaf.features.internal.service.RepositoryImpl.<init>(RepositoryImpl.java:50) ~[?:?]
        at org.apache.karaf.features.internal.service.RepositoryCacheImpl.create(RepositoryCacheImpl.java:51) ~[?:?]
        at org.apache.karaf.features.internal.service.FeaturesServiceImpl.addRepository(FeaturesServiceImpl.java:380) ~[?:?]
        at org.apache.karaf.features.internal.service.FeaturesServiceImpl.addRepository(FeaturesServiceImpl.java:375) ~[?:?]
        at com.instana.agent.bootstrap.impl.FeaturesManagerImpl.addRepository(FeaturesManagerImpl.java:56) [!/:?]
        at com.instana.agent.bootstrap.AgentBootstrap$AgentBootstrapRunnable.run(AgentBootstrap.java:122) [!/:?]
        at java.lang.Thread.run(Thread.java:750) [?:1.8.0_362]

2023-05-30T15:27:44.337+00:00 | ERROR | agent-bootstrap                  | AgentBootstrap   | com.instana.agent-bootstrap - 1.2.27 | Bootstrapping agent failed. Failed to add repositories.

Resolving The Problem

This error usually indicates the problem with credentials provided in the mvn-settings.xml file. Confirming that the correct credentials are used in the mvn-settings.xml will be sufficient, the agent will start working properly after the mvn-settings.xml file is populated with correct data.

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB45","label":"Automation"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSE1JP5","label":"IBM Instana Observability"},"ARM Category":[{"code":"a8m3p000000UoUHAA0","label":"Agent-\u003EReq - Install - Config"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]

Document Information

Modified date:
08 August 2023

UID

ibm17009647