Home / Blog / Restaurando uma configuração do TrueNAS Scale em um novo sistema – Erro: Não foi possível acessar a interface web

Restaurando uma configuração do TrueNAS Scale em um novo sistema – Erro: Não foi possível acessar a interface web

Após restaurar a configuração do TrueNAS Scale para um novo sistema, você poderá encontrar o seguinte erro no console:

The web interface could not be accessed.
Please check network configuration.

Isso ocorre porque o novo sistema não possui o mesmo endereço NIC/MAC, portanto o TrueNAS não sabe como mapear sua configuração de IP existente para a sua nova placa de rede.

Para corrigir isso, você deve fazer login na CLI usando o console do sistema e executar o comando “/usr/bin/cli –menu”.

 

The web interface could not be accessed.
Please check network configuration.

Debian GNU/Linux 12 TrueNAS tty1

TrueNAS login: root
Password:

root@TrueNAS[~]# /usr/bin/cli –menu
1) Configure network interfaces
2) Configure network settings
3) Configure static routes
4) Change local administrator password
5) Reset configuration to defaults
6) Open TrueNAS CLI Shell
7) Open Linux Shell
8) Reboot
9) Shutdown

Enter an option from 1-9: 1

 

Selecione a opção 1 para configurar as interfaces de rede.

   ┌─────────────────────────| Network Interfaces |─────────────────────────┐
   │                                                                        │
   │ +--------+-----------------+----------------------------------------+  │
   │ |   name |         aliases |                          state.aliases |  │
   │ +--------+-----------------+----------------------------------------+  │
   │ |   eth0 | 192.168.1.10/24 |                        192.168.1.10/24 |  │
   │ | enp1s0 |                 |                                        |  │
   │ +--------+-----------------+----------------------------------------+  │
   │                                                                        │
   │ Press <Enter> to edit a network interface, <Delete> to                 │
   │ delete a network interface, <n> to create a new network                │
   │ interface, <r> to refresh, <q> to quit.                                │
   │                                                                        │
   │                                                                        │
   └────────────────────────────────────────────────────────────────────────┘
Neste exemplo, a placa de rede antiga é a eth0 e a nova é a enp1s0. Use as teclas de seta para selecionar a placa de rede antiga e pressione a tecla Delete para excluí-la.

       ┌──────────────────| Delete network interface |──────────────────┐
       │                                                                │
       │ Are you sure want to delete network interface 'eth0'?          │
       │                                                                │
       │                    <   Yes    > <    No    >                   │
       │                                                                │
       └────────────────────────────────────────────────────────────────┘

Selecione Sim para continuar.

Agora, no menu Interfaces de Rede, selecione enp1s0 e pressione Enter para atualizar a interface de rede. Para definir um IP estático, certifique-se de que a opção “dhcp” esteja definida como Não e insira a notação CIDR do endereço IP na seção de aliases. Neste exemplo: 192.168.1.10/24

 

┌────────────| Update Network Interface |────────────┐
│ │
│ Interface Settings │
│ name: enp1s0 │
│ description:
│ ipv4_dhcp: No │
│ ipv6_auto: No │
│ aliases: 192.168.1.10/24 │
│ Other Settings │
│ mtu:
│ │
│ │

│ │
└────────────────────────────────────────────────────┘

Selecione Salvar.

┌─────────────────────────| Network Interfaces |──────────────────────────┐
│ +——–+—————–+——————————————+ │
│ | name | aliases | state.aliases | │
│ +——–+—————–+——————————————+ │
│ | enp1s0 | 192.168.1.10/24 | | │
│ +——–+—————–+——————————————+ │
│ │
│ Press to edit a network interface, to │
│ delete a network interface, to create a new network │
│ interface, to refresh, to quit. │
│ │
│ You have pending network interface changes. │
│ Press to apply them. │
│ │
└─────────────────────────────────────────────────────────────────────────┘

Pressione a tecla ‘a’ para aplicar.

┌─────────────────────────| Network Interfaces |──────────────────────────┐
│ │
│ +——–+—————–+——————————————+ │
│ | name | aliases | state.aliases | │
│ +——–+—————–+——————————————+ │
│ | enp1s0 | 192.168.1.10/24 | 192.168.1.10/24 | │
│ +——–+—————–+——————————————+ │
│ │
│ Press to edit a network interface, to │
│ delete a network interface, to create a new network │
│ interface, to refresh, to quit. │
│ │
| Network interface changes have been applied. |
| Press

to persist them if the network is still operational or they |
| will be rolled back in 50 seconds. |
└─────────────────────────────────────────────────────────────────────────┘

Se as configurações estiverem funcionando como esperado, pressione a tecla ‘p’ para salvá-las. Caso contrário, se você não confirmar em 60 segundos, as alterações serão revertidas.

┌─────────────────────────| Network Interfaces |──────────────────────────┐
│ │
│ +——–+—————–+——————————————+ │
│ | name | aliases | state.aliases | │
│ +——–+—————–+——————————————+ │
│ | enp1s0 | 192.168.1.10/24 | 192.168.1.10/24 | │
│ +——–+—————–+——————————————+ │
│ │
│ Press to edit a network interface, to │
│ delete a network interface, to create a new network │
│ interface, to refresh, to quit. │
│ │
└─────────────────────────────────────────────────────────────────────────┘

Pressione ‘q’ para sair e voltar ao menu principal.

Você também pode precisar reconfigurar sua rota padrão. Para isso, acesse o menu de rotas estáticas e selecione a opção 3.
1) Configure network interfaces
2) Configure network settings
3) Configure static routes
4) Change local administrator password
5) Reset configuration to defaults
6) Open TrueNAS CLI Shell
7) Open Linux Shell
8) Reboot
9) Shutdown

Enter an option from 1-9: 3

┌───────────────────────| Static Routes |────────────────────────┐
│ │
│ +————-+————-+—————+ │
│ | destination | gateway | description | │
│ +————-+————-+—————+ │
│ | 0.0.0.0/0 | 192.168.1.1 | DEFAULT ROUTE | │
│ +————-+————-+—————+ │
│ │
│ Press to edit a static route, to delete a │
│ static route, to create a new static route, to │
│ refresh, to quit. │
│ │
└────────────────────────────────────────────────────────────────┘
Se a sua rota estática não estiver listada, você pode pressionar ‘n’ para criar uma nova rota.

┌──────────| Create Static Route |───────────┐
│ │
│ Static Route │
│ destination: 0.0.0.0/0 │
│ gateway: 192.168.1.1 │
│ description: DEFAULT ROUTE │
│ │

│ │
└────────────────────────────────────────────┘

Após configurar seu endereço IP e gateway, você poderá acessar a interface web usando um navegador.


Sobre Zenilto Gonçalves de Freitas

Zenilto Gonçalves de Freitas
Fotografo, Desenhista, Técnico em Informática, Professor, Web Designer, Programador e Blogueiro. Meu hobbie é escrever e sou amante de tecnologia