ruvnet/RuView · error · RouterConnectionError

Not connected to router

Error message

Not connected to router

What it means

Error "Not connected to router" thrown in ruvnet/RuView.

Source

Thrown at archive/v1/src/hardware/router_interface.py:116

            self.ssh_client.close()
            self.is_connected = False
            self.ssh_client = None
            self.logger.info("Disconnected from router")
    
    async def execute_command(self, command: str) -> str:
        """Execute command on router via SSH.
        
        Args:
            command: Command to execute
            
        Returns:
            Command output
            
        Raises:
            RouterConnectionError: If not connected or command fails
        """
        if not self.is_connected:
            raise RouterConnectionError("Not connected to router")
        
        # Retry mechanism for temporary failures
        for attempt in range(self.max_retries):
            try:
                result = await self.ssh_client.run(command, timeout=self.command_timeout)
                
                if result.returncode != 0:
                    raise RouterConnectionError(f"Command failed: {result.stderr}")
                
                return result.stdout
                
            except ConnectionError as e:
                if attempt < self.max_retries - 1:
                    self.logger.warning(f"Command attempt {attempt + 1} failed, retrying: {e}")
                    await asyncio.sleep(self.retry_delay)
                else:
                    raise RouterConnectionError(f"Command execution failed after {self.max_retries} retries: {e}")
            except Exception as e:

View on GitHub (pinned to 4685618388)

When it happens

Trigger: Thrown at archive/v1/src/hardware/router_interface.py:116 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of ruvnet/RuView@4685618388 (2026-08-16). Data as JSON: /api/errors/09649ce12daa1bf2. Report an issue: GitHub.