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 when starting web_server #17

Open
SamuelCox opened this issue Jan 9, 2017 · 4 comments
Open

Error when starting web_server #17

SamuelCox opened this issue Jan 9, 2017 · 4 comments

Comments

@SamuelCox
Copy link

Hi, I get the following trace when starting the web_server, any idea why this happens? As far as I can tell the install is correct, and I have the graphviz dependency.

{error,
{inets,
{{shutdown,
{failed_to_start_child,
{httpd_manager,any,8888,default},
{error,
{invalid_option,{module_does_not_exist,mod_include}}}}},
{child,undefined,
{httpd_instance_sup,any,8888,default},
{httpd_instance_sup,start_link,
[[{server_root,
"/home/cst/sc630/erlang-lib/percept2-1.0/priv/server_root"},
{document_root,
"/home/cst/sc630/erlang-lib/percept2-1.0/priv/server_root/htdocs"},
{eval_script_alias,{"/eval",[io]}},
{erl_script_alias,
{"/cgi-bin",[percept2_graph,percept2_html,io]}},
{script_alias,
{"/cgi-bin/",
"/home/cst/sc630/erlang-lib/percept2-1.0/priv/server_root/cgi-bin"}},
{alias,
{"/javascript/",
"/home/cst/sc630/erlang-lib/percept2-1.0/priv/server_root/scripts/"}},
{alias,
{"/images/",
"/home/cst/sc630/erlang-lib/percept2-1.0/priv/server_root/images/"}},
{alias,
{"/svgs/",
"/home/cst/sc630/erlang-lib/percept2-1.0/priv/server_root/svgs/"}},
{alias,
{"/css/",
"/home/cst/sc630/erlang-lib/percept2-1.0/priv/server_root/css/"}},
{alias,
{"/tree/",
"/home/cst/sc630/erlang-lib/percept2-1.0/priv/server_root/tree/"}},
{default_type,"text/plain"},
{directory_index,[[...]]},
{mime_types,[...]},
{modules,...},
{...}|...],
15000,[]]},
permanent,infinity,supervisor,
[httpd_instance_sup]}}}}

=ERROR REPORT==== 9-Jan-2017::16:52:54 ===
Failed initiating web server:
undefined
{invalid_option,{module_does_not_exist,mod_include}}

@SamuelCox
Copy link
Author

SamuelCox commented Jan 9, 2017

Hi, I've figured out that the problem is this specific line: https://github.com/huiqing/percept2/blob/master/src/percept2.erl#L376

inets:start(httpd, Config) is failing, presumably due to the mod_include part of the config. Does the app need this module or can I comment this line out?

@SamuelCox
Copy link
Author

Hi again. For what it's worth, superficially my suggested fix has fixed it. Not sure if it will cause me to have problems down the line. I can send in a pull request or you can just do it yourself if you'd like, since its such a trivial change.

@huiqing
Copy link
Owner

huiqing commented Jan 10, 2017 via email

@SamuelCox
Copy link
Author

Submitted #18

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