-
Notifications
You must be signed in to change notification settings - Fork 3
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
http server fails silently, likely stray host key in environment not caught by run-options #1
Comments
The |
Also, there should be an error in the log regarding this, e.g:
|
Sounds reasonable. What threw me is that I did not set HOST; it's being set On the other hand, the problem does not appear in the logs. For instance:
server on port 3000 The hostname is technically valid, but the server is not accessible and the It might be worth putting a note in the documentation string for start (or Thanks, Chris On Tue, May 10, 2016 at 3:29 PM, Dmitri Sotnikov [email protected]
|
Yeah, I this it's the first report I've seen for this problem. |
It's tcsh which sets HOST automatically. So in principle others could (I've been meaning to switch fully to zsh for a long time, and now I have On Tue, May 10, 2016 at 8:34 PM, Dmitri Sotnikov [email protected]
|
Ah interesting, it does actually seem to set HOST to the hostname. So, if your hostname is correctly configured, then it is the correct variable. For example, here's what I end up with:
|
That's what I expected as well. On the system at work, HOST is set to the On Tue, May 10, 2016 at 9:30 PM, Dmitri Sotnikov [email protected]
|
Sounds good, would be nice to know what exactly is causing this. Another thing to not is that the HTTP server defaults to using |
I have a number of older luminus apps that run fine, but this week I created a couple new ones with the latest framework (for which the generated code is different than in the older apps) and none of them ran, even with the simplest setup. No error message or other problem indication was given. I tracked it to http-server, which logged that it had started but was not working, and I got it to work by passing a map with explicit keys from env. I realized then that HOST was set in my environment (for various reasons and not as a server host) and this was getting passed unchanged through
luminus.http-server/run-options
, causing problems.I realize that I can remove the HOST environment variable before running the server, but this seems less convenient and turn-key than I think luminus wants to be. Perhaps HOST could be treated like PATH
when luminus mounts the various components. For instance, the
:host
option tohttp-server/start
could be changed to something like:server-host
withrun-options
changed accordingly:Just a thought. Thanks.
The text was updated successfully, but these errors were encountered: