NetWorker: As solicitações da API REST falham com a mensagem de erro: HTTP status 404 - Not Found "The Requested Resource is Not Available"
Summary: As consultas à API REST do NetWorker falham com a mensagem de erro: HTTP status 404 - Not Found "The Requested Resource is Not Available. O servidor de origem não encontrou uma representação atual para o recurso de destino ou não está disposto a divulgar que existe." ...
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Symptoms
As solicitações de API REST do NetWorker falham com a mensagem de erro: HTTP status 404 - Not Found "The Requested Resource is Not Available"
[root@NETWORKER_SERVER]:~# curl -ik GET -u **userid**:'***Password***' -H "Content-Type: application/json" 'https://NETWORKER_SERVER:9090/nwrestapi/v3/global/clients' curl: (6) Could not resolve host: GET; Name or service not known HTTP/1.1 404 Content-Type: text/html;charset=utf-8 Content-Language: en Content-Length: 790 Date: Tue, 04 Jul 2023 12:11:41 GMT Server: NSR SERVICES for AuthenticationHTTP Status 404 – Not Foundbody {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}
HTTP Status 404 – Not Found
Type Status Report
Message The requested resource [/nwrestapi/v3/global/clients] is not available
Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
Apache Tomcat/9.0.52 A instalação do servidor do NetWorker não tem o diretório nwrestapi.
Linux: /nsr/authc/webapps/nwrestapi/ Windows: C:\Program Files\EMC NetWorker\nsr\authc-server\tomcat\webapps\nwrestapiO restapi.log não existe ou não está sendo atualizado:
Linux: /nsr/logs/restapi/restapi.log Windows: C:\Program Files\EMC NetWorker\nsr\logs\restapi\restapi.log
Cause
O caminho nwrestapi não existe. As consultas da API REST não conseguem localizar nenhum dos endpoints ou correlacionar como devem apresentar dados de outros bancos de dados do NetWorker.
Resolution
O nwrestapi é configurado juntamente com o serviço authc do NetWorker, que usa Java Runtime Environment. É recomendável usar o NetWorker Runtime Environment (NRE) para evitar possíveis problemas relacionados ao Java ao configurar o authc. Os pacotes NRE mais recentes estão disponíveis para download na página Drivers e downloads do NetWorker do Suporte Dell .
Linux:
Windows:
Nota: Pode haver várias instâncias do Java instaladas. Por exemplo, o NRE e o Oracle JRE podem ser instalados em um servidor. A etapa acima confirma a instalação do Java que o NetWorker está usando.
Linux:
- Faça log-in no servidor do NetWorker e alterne para root:
sudo su -
- Confirme se o NRE está instalado e qual instância do Java o NetWorker está configurado para usar:
rpm -qa | grep nre cat /nsr/authc/conf/installrc [root@networker-mc]:~# rpm -qa | grep nre nre-8.0.15-1.x86_64 [root@networker-mc]:~# [root@networker-mc]:~# cat /nsr/authc/conf/installrc JAVA_HOME=/opt/nre/java/latest
Nota: Pode haver várias instâncias do Java instaladas. Por exemplo, o NRE e o Oracle JRE podem ser instalados em um servidor. As etapas acima confirmam a instalação do Java que o NetWorker está usando.
- Execute o seguinte script para reconfigurar o servidor authc do NetWorker.
/opt/nsr/authc-server/scripts/authc_configure.sh [root@networker-mc]:~# /opt/nsr/authc-server/scripts/authc_configure.sh Specify the directory where the Java Standard Edition Runtime Environment (JRE) software is installed [/opt/nre/java/latest]: The installation process will install an Apache Tomcat instance. For optimum security, EMC NetWorker Authentication Service will use a non-root user (nsrtomcat) to start the Apache Tomcat instance. If your system has special user security requirements, ensure that proper operational permissions are granted to this non-root user (nsrtomcat). Please refer to NetWorker Installation Guide. WARNING: Port 9090 is already in use. Do you wish to specify a different port number [y]? n The Apache Tomcat will use "networker-mc.emclab.local" as the host name. The Apache Tomcat will use "9090" as the port number. The NetWorker Authentication Service requires a keystore file to configure encryption and to provide SSL support. EMC recommends that you specify a keystore password that has a minimum of six characters. Do you want to use the existing keystore /nsr/authc/conf/authc.keystore [y]? Specify password for the existing keystore: The install will use the existing certificate "emcauthctomcat" for Apache Tomcat. The install will use the existing certificate "emcauthcsaml" for Authentication Service. Creating the installation log in /opt/nsr/authc-server/logs/install.log. Performing initialization. Please wait... The installation completed successfully.
Nota: Uma reinicialização do serviço do NetWorker é necessária para recarregar o authc. Isso pode ser feito com os seguintes comandos systemctl:
systemctl stop networker and systemctl start networker.
- Confirme se a seguinte pasta foi criada:
/nsr/authc/webapps/nwrestapi [root@networker-mc]:~# ls -l /nsr/authc/webapps/nwrestapi/ total 0 drwx------. 2 nsrtomcat nsrtomcat 44 Jul 6 12:22 META-INF drwx------. 3 nsrtomcat nsrtomcat 21 Jul 6 12:22 v1 drwx------. 3 nsrtomcat nsrtomcat 21 Jul 6 12:22 v2 drwx------. 3 nsrtomcat nsrtomcat 21 Jul 6 12:22 v3 drwx------. 6 nsrtomcat nsrtomcat 107 Jul 6 12:22 WEB-INF
- Se o diretório nwrestapi foi criado, execute as consultas da API REST.
Windows:
- Confirme se o NRE está instalado e qual instância do Java o NetWorker está configurado para usar:

Figura 1: Confirme qual instância do Java o NetWorker está usando.
Nota: Pode haver várias instâncias do Java instaladas. Por exemplo, o NRE e o Oracle JRE podem ser instalados em um servidor. A etapa acima confirma a instalação do Java que o NetWorker está usando.
- Desinstale o pacote do NetWorker. Isso não remove nenhum dos bancos de dados ou recursos de configuração do NetWorker.
- Reinstale o NetWorker pelo caminho de instalação existente. Reinstalar o NetWorker reconfigura o serviço de autenticação do NetWorker.
- Confirme se o seguinte caminho existe:
C:\Program Files\EMC NetWorker\nsr\authc-server\tomcat\webapps\nwrestapi

Figura 2: Confirme se o caminho authc do NetWorker existe.
- Se o diretório nwrestapi foi criado, execute as consultas da API REST.
Affected Products
NetWorkerProducts
NetWorker Family, NetWorker SeriesArticle Properties
Article Number: 000215602
Article Type: Solution
Last Modified: 27 Mar 2025
Version: 7
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.