Hello,
Over 10 years ago, I ran ejabberd and fooled with erlang a bit, but
now I am getting serious about it for a project I want to do --
Freedom Box.
Anyway, while my servers run Debian Squeeze, my laptop has Ubuntu
Precise, and after installing Yaws, yaws-chat, yaws-mail, yaws-wiki
and yapps, I decided to try them out.
Most importantly, while the https: process seems to start, but when
I try to access it I get:
In the browser:
Unable to connect
Firefox can't establish a connection to the server at
localhost:8443.
In the error log file:
=INFO REPORT==== 26-Mar-2013::16:24:58 ===
Yapp starting but Yaws not ready - waiting 500 ms
=INFO REPORT==== 26-Mar-2013::16:24:58 ===
Yaws: Listening to 0.0.0.0:8443 for <1> virtual servers:
-
https://localhost:8443
under /usr/share/yaws
=INFO REPORT==== 26-Mar-2013::16:24:58 ===
Yaws: Listening to 0.0.0.0:8080 for <1> virtual servers:
-
http://localhost:8080
under /usr/share/yaws
=INFO REPORT==== 26-Mar-2013::16:24:58 ===
Starting yapp
=ERROR REPORT==== 26-Mar-2013::16:25:11 ===
SSL: 1112: error:[] /etc/yaws/yaws-key.pem
[{ssl_connection,init_private_key,5},
{ssl_connection,ssl_init,2},
{ssl_connection,init,1},
{gen_fsm,init_it,6},
{proc_lib,init_p_do_apply,3}]
=ERROR REPORT==== 26-Mar-2013::16:25:11 ===
yaws: Failed to accept - terminating: {error,ekeyfile}
=ERROR REPORT==== 26-Mar-2013::16:25:11 ===
Accept proc died, terminate gserv
=ERROR REPORT==== 26-Mar-2013::16:25:11 ===
yaws: FATAL gserv died shutdown
/etc/yaws/yaws-key.pem exists as installed.
As for the chat, wiki and mail apps, after fooling around a bit, the
only way I could get them even to run was to make localhost.conf
look like:
<server localhost>
port = 8080
listen = 0.0.0.0
docroot = /usr/share/yaws
dir_listings = true
arg_rewrite_mod = yaws_vdir
<opaque>
vdir = "/chat/ /usr/share/yaws-chat/"
vdir = "/mail/ /usr/share/yaws-mail/"
vdir = "/wiki/ /var/lib/yaws-wiki/"
</opaque>
</server>
The results:
* yaws-chat seems to work ok.
* yaws-wiki:
In browser:
Internal error, yaws code crashed
yaws code at/var/lib/yaws-wiki/createNewPage.yaws:3 had the following err:
enoent
In error log file:
=ERROR REPORT==== 25-Mar-2013::19:51:31 ===
Failed to read/ssi file ["/var/lib/yaws-wiki","//wiki/",
"/WikiPreferences.files/template_info.html"]
- File exists, at
/var/lib/yaws-wiki/WikiPreferences.files/template_info.html
- /var/lib/yaws-wiki, all it subdirectories and files are owned by
yaws:yaws (I made it that way just to make sure.)
* yaws-mail:
In browser:
Internal error, yaws code crashed
ERROR erlang code crashed:
File: /usr/share/yaws-mail/mail.yaws:1
Reason: "No reply from session manager"
Req: {http_request,'GET',{abs_path,"/mail/mail.yaws"},{1,1}}
Stack: [{mail,req,1},
{mail,display_login,2},
{m5,out,1},
{yaws_server,deliver_dyn_part,8},
{yaws_server,aloop,3},
{yaws_server,acceptor0,2},
{proc_lib,init_p_do_apply,3}]
In error log file:
=INFO REPORT==== 25-Mar-2013::21:33:33 ===
Yaws webmail: Using config file /etc/mail/yaws-webmail.conf
Thanks for your time! I really appreciate it.