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

inets example rootserver not starting #5276

Closed
tonywallace64 opened this issue Oct 8, 2021 · 12 comments
Closed

inets example rootserver not starting #5276

tonywallace64 opened this issue Oct 8, 2021 · 12 comments
Assignees
Labels
bug Issue is reported as a bug priority:medium stalled waiting for input by the Erlang/OTP team team:PS Assigned to OTP team PS

Comments

@tonywallace64
Copy link

Rootserver examples in inets do not start

To Reproduce
tony@resurrection:~/bin/otp_src_24.0/lib/inets/examples/server_root$ erl
Erlang/OTP 24 [erts-12.0] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit]

running .erlang in home directory
.erlang completed
Dependencies: []
LibDir /usr/local/lib/erlang/lib
Eshell V12.0 (abort with ^G)
1> inets:start().
ok
2> inets:start(httpd,[{file,"conf/8080.conf"}]).
{error,{missing_property,server_name}}
3>

Expected behavior
I expected the file option to cause the apache style configuration file 8080.conf to load and start the webserver, which then would have been available via web browser.

Affected versions
Version 24.0, other versions not tried

Additional context
Stepping through the code, there is no attempt to convert the apache style configuation file to a property list. Instead httpd_sup tries to validate the supplied property list and finds it lacking. It looks like support for apache style configuration has been dropped without changing the examples. The {file,Path} option is documented but not working when called in this way, and if the example should be started with some other procedure, that is not clear from a readme or other documentation.

@tonywallace64 tonywallace64 added the bug Issue is reported as a bug label Oct 8, 2021
@IngelaAndin
Copy link
Contributor

It seems we missed removing one reference to Apache-like file in the httpd man page. But if you look a little more at the same man page it will say "Note support for legacy configuration file with Apache syntax is dropped in OTP-23." We will remove the last reference in an upcoming release.

@IngelaAndin IngelaAndin added the team:PS Assigned to OTP team PS label Oct 8, 2021
@tonywallace64
Copy link
Author

tonywallace64 commented Oct 8, 2021 via email

@IngelaAndin
Copy link
Contributor

Please make a PR. Outdated examples I agree are confusing.

@tonywallace64
Copy link
Author

tonywallace64 commented Oct 12, 2021 via email

@IngelaAndin
Copy link
Contributor

IngelaAndin commented Oct 19, 2021

It seems like the mail interface is stripping your attachment. Could you please make a PR (pull request) instead!

@IngelaAndin
Copy link
Contributor

@tonywallace64 did you see my last comment?

@tonywallace64
Copy link
Author

tonywallace64 commented Oct 29, 2021 via email

@IngelaAndin IngelaAndin self-assigned this Nov 9, 2021
@IngelaAndin IngelaAndin added the waiting waiting for changes/input from author label Nov 9, 2021
@IngelaAndin
Copy link
Contributor

@tonywallace64 ping

@IngelaAndin IngelaAndin added stalled waiting for input by the Erlang/OTP team and removed waiting waiting for changes/input from author labels Mar 16, 2022
@u3s u3s self-assigned this May 9, 2022
@u3s
Copy link
Contributor

u3s commented May 9, 2022

was there a pull request created for examples update and somehow I missed it?
@tonywallace64 - can you try re-attaching the diff if creating a PR is a problem ?

@IngelaAndin
Copy link
Contributor

No, the PR was never created!

@u3s
Copy link
Contributor

u3s commented May 10, 2022

manual update merged in #5974 . for examples, I still hope for receiving contribution ... :-)

@IngelaAndin IngelaAndin added in progress and removed stalled waiting for input by the Erlang/OTP team labels Jun 18, 2022
@IngelaAndin IngelaAndin added stalled waiting for input by the Erlang/OTP team and removed in progress labels Sep 28, 2022
IngelaAndin added a commit that referenced this issue Apr 5, 2023
…ang-terms-config-file/GH-5276

Change apache-like config files to proplist file

OTP-18544
@IngelaAndin
Copy link
Contributor

Closed by #7079

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is reported as a bug priority:medium stalled waiting for input by the Erlang/OTP team team:PS Assigned to OTP team PS
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants