Noovolari / leapp

Leapp is the DevTool to access your cloud
https://www.leapp.cloud/
Mozilla Public License 2.0
1.62k stars 146 forks source link

Cannot read properties of undefined (reading 'filter') #567

Open altonotch opened 3 weeks ago

altonotch commented 3 weeks ago

Describe the bug When going to SSM, selecting a region, see a loading sign, then instead of a list of servers i get this error: Cannot read properties of undefined (reading 'filter').

Leapp Version Version 0.26.1 (0.26.1)

Expected behavior Either a clear message of what's missing or the actual list of servers to connect to.

Desktop:

Additional context I did some disk clearing in Caches, maybe this is related? Also, upgraded to Sequoia. If you can direct me to how to debug this issue, would love to give it a try as well. Tried to re-install the app but that didn't help.

ericvilla commented 3 weeks ago

Hi @altonotch, thanks for reaching out! You can analyse your logs as described in the docs. Let me check the logic that lists the instances accessible through SSM

ericvilla commented 3 weeks ago

@altonotch I probably found the root cause. Please, check if there are any EC2 instances without Name tag; I suggest to tag them and retry to list SSM instances from Leapp

altonotch commented 3 weeks ago

@altonotch I probably found the root cause. Please, check if there are any EC2 instances without Name tag; I suggest to tag them and retry to list SSM instances from Leapp

@ericvilla You're absolutely right! A few instances were missing Name tag. When all instances have the tag, SSM in Leapp works as expected. I think I saw it in the past falling back to instance ID 🤔

ericvilla commented 3 weeks ago

@altonotch I'm glad it solved the issue! I don't remember if Leapp was falling back to the instance ID; it could be a good solution