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

Theia cannot be started properly without LocalHost binding #11578

Open
bjzhangtao opened this issue Aug 17, 2022 · 5 comments
Open

Theia cannot be started properly without LocalHost binding #11578

bjzhangtao opened this issue Aug 17, 2022 · 5 comments
Labels
🤔 needs more info issues that require more info from the author

Comments

@bjzhangtao
Copy link

bjzhangtao commented Aug 17, 2022

Bug Description:

Theia cannot be started properly without LocalHost binding,I bound localhost to 127.0.0.1 and it started normally,but the user can't be required to bind, How to Get Rid of Dependencies

Steps to Reproduce:

native node modules are already rebuilt for electron
$ electron scripts/theia-electron-main.js

root INFO Backend MiniBrowserEndpoint.configure: 0.6 ms [Finished 1.702 s after backend start]
root ERROR Uncaught Exception:  Error: getaddrinfo ENOTFOUND localhost
root ERROR Error: getaddrinfo ENOTFOUND localhost
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)
root WARN The local plugin referenced by local-dir:/Users/hostname/.theia/plugins does not exist.

Additional Information

  • Operating System: macOS Monterey :12.5 MacBook Pro (16-inch, 2019)
  • Theia Version: "@theia/cli": "1.23.0"
@paul-marechal
Copy link
Member

This is the first time I hear about the localhost host not being defined, how did that happen?

@bjzhangtao
Copy link
Author

This is the first time I hear about the localhost host not being defined, how did that happen?

Official Git Repository,application with Electron

@paul-marechal
Copy link
Member

localhost not being a valid host on your system should be independent from those applications/repositories, I would be more interested with how you ended up in that state with your system?

@vince-fugnitto vince-fugnitto added the 🤔 needs more info issues that require more info from the author label Aug 18, 2022
@bjzhangtao
Copy link
Author

Actually we develop an application based on Theia. Some users gave us feedback that the applicaiton could not be started without localhost defined. We are seeking for an solution to support starting Theia without localhost defined in user's platform. Appreciate any help you provide. Thanks!

@kittaakos
Copy link
Contributor

kittaakos commented Nov 30, 2022

Moved from #11930:

We have received reports of non-functional Theia electron apps from multiple users:

Our users were friendly to help us, and they could reproduce the bug with the TheiaBlueprint application.

Relevant stack traces:

2022-11-25 18:27:24 root ERROR Failed to start the backend application:
2022-11-25 18:27:24 root ERROR Error: getaddrinfo ENOTFOUND localhost
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)
2022-11-25 18:27:24 root ERROR Uncaught Exception: 
2022-11-25 18:27:24 root ERROR Error: getaddrinfo ENOTFOUND localhost
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)
root ERROR Failed to start the backend application: root ERROR Error: listen EADDRNOTAVAIL: address not available 127.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤔 needs more info issues that require more info from the author
Projects
None yet
Development

No branches or pull requests

4 participants