Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during setup #70

Closed
s-com-paulickc opened this issue Nov 26, 2024 · 4 comments
Closed

Error during setup #70

s-com-paulickc opened this issue Nov 26, 2024 · 4 comments

Comments

@s-com-paulickc
Copy link

After alga setup <tv-ip> i get the following error:

206 │   │   err = None                                                                                                                                     │
│   207 │   │   while not err:                                                                                                                                 │
│   208 │   │   │   try:                                                                                                                                       │
│ ❱ 209 │   │   │   │   sock.connect(address)                                                                                                                  │
│   210 │   │   │   except socket.error as error:                                                                                                              │
│   211 │   │   │   │   sock.close()                                                                                                                           │
│   212 │   │   │   │   error.remote_ip = str(address[0])                                                                                                      │
│                                                                                                                                                              │
│ ╭──────────────────────────────────────────────── locals ────────────────────────────────────────────────╮                                                   │
│ │       address = ('tv-ip', 3001)                                                                        │                                                           │
│ │      addrinfo = (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('tv-ip', 3001))      │                                                   │
│ │ addrinfo_list = [(<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('tv-ip', 3001))]    │                                                   │
│ │  eConnRefused = (61, 51)                                                                               │                                                   │
│ │           err = None                                                                                   │                                                   │
│ │        family = <AddressFamily.AF_INET: 2>                                                             │                                                   │
│ │          opts = (6, 258, 3)                                                                            │                                                   │
│ │         proto = 6                                                                                      │                                                   │
│ │          sock = <socket.socket [closed] fd=-1, family=2, type=1, proto=6>                              │                                                   │
│ │       sockopt = []                                                                                     │                                                   │
│ │      socktype = <SocketKind.SOCK_STREAM: 1>                                                            │                                                   │
│ │       timeout = 60                                                                                     │                                                   │
│ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────╯ 

It seems there is a problem opening a socket. Any ideas how to fix this?

@Tenzer
Copy link
Owner

Tenzer commented Nov 26, 2024

Does the alga setup command complete without issues, or does this error occur as part of that command?

Are you able to connect to the TV outside of alga? You can for instance try with nc (netcat) if you have it installed:

~ % nc -vz lgwebostv.lan 3001
Connection to lgwebostv.lan port 3001 [tcp/redwood-broker] succeeded!

@s-com-paulickc
Copy link
Author

s-com-paulickc commented Nov 26, 2024

It's part of the setup routine. There are some logging blocks that look similar. You can see in all of them that the setup tries to connect the right ip address. I'm using LGTVCompanion on my Windows PC with the same LG C2, could this be the problem? Is the ip + port already blocked?

Response of nc:
nc: getaddrinfo: nodename nor servname provided, or not known

@Tenzer
Copy link
Owner

Tenzer commented Nov 27, 2024

I don't have a Windows machine at hand, but I managed to get one set up in VM to test this out, and didn't experience any issues:
Screenshot 2024-11-27 at 15 57 17

That is with a stock Windows 11 installation. I haven't configured firewalls or anything like that.

@Tenzer
Copy link
Owner

Tenzer commented Jan 9, 2025

I don't think there's much more I can do on this at the moment. If you can provide any more information that might help identify an issue, I'll be happy to take a look.

@Tenzer Tenzer closed this as not planned Won't fix, can't repro, duplicate, stale Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants