| Author |
Message |
|
| icimjs at loop.com |
Posted: Thu Feb 04, 1999 7:34 am |
|
|
|
Guest
|
Hi,
I'm trying to start up inets under FreeBSD 2.2.6.
I get the following erl_crash.dump
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<Erlang crash dump>
Wed Feb 3 23:28:55 1999
Slogan: could not start kernel pid (application_controller) ()
Erlang (JAM) emulator version 47.4.0
Compiled on Wed Feb 3 22:42:26 1999
Process Information
--------------------------------------------------
<0.0.0> Running. Registered as: init
Spawned as: init:boot/1
Current call: init:crash/2
Message queue: [{'EXIT',<0.1.0>,killed}]
Reductions=1450 stack=231 heap=6765 old_heap_sz=6765
Heap unused=5484 OldHeap unused=6765
--------------------------------------------------
Port Information
--------------------------------------------------
Internal Table Information
--------------------------------------------------
Hash Table(atom_tab), size(1201), used(810), objs(1336), depth(6)
Index Table(atom_tab), size(1400), limit(65536), used(1336), rate(100)
Atom space 10794/32772
Hash Table(module_code), size(47), used(16), objs(19), depth(2)
Index Table(module_code), size(50), limit(65536), used(19), rate(10)
Hash Table(export_list), size(397), used(265), objs(443), depth(5)
Index Table(export_list), size(500), limit(65536), used(443), rate(100)
Hash Table(process_reg), size(5), used(1), objs(1), depth(1)
Allocated binary 27587
Allocated by process_desc 5040
Allocated by proc_bin_desc 400
Allocated by table_desc 0
Allocated by link_desc 320
Allocated by atom_desc 26800
Allocated by export_desc 12880
Allocated by module_desc 640
Allocated by preg_desc 320
--------------------------------------------------
Distribution Information
Not alive
Loaded Modules Information
--------------------------------------------------
init 7438
erl_prim_loader 4556
Totals. Current code = 11994 Old code = 0
--------------------------------------------------
<End of Erlang crash dump>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
I have created a file called inets.conf and saved it in the inets
directory. (I saved the same file to inets/ebin just to be sure.) This file
contains the following:
>>>>>>>>>>>>>>>>>>>>>>>>>
[{inets,
[{services, [{httpd,"/var/tmp/server_root/conf/8888.conf"},
{httpd,"/var/tmp/server_root/conf/8080.conf"}]}]}].
<<<<<<<<<<<<<<<<<<<<<<<<<<
I have also copied the server_root directory to /var/tmp/...
according to the inets manual.
Any ideas?
TIA,
Elan
Post generated using Mail2Forum (http://m2f.sourceforge.net) |
|
|
| Back to top |
|
| mattias at erix.ericsson. |
Posted: Thu Feb 04, 1999 9:00 am |
|
|
|
Guest
|
Elan wrote:
>
> Hi,
>
> I'm trying to start up inets under FreeBSD 2.2.6.
>
> I get the following erl_crash.dump
Could you also tell me how you started it, e.g did you start it from the
command line using the -s option or did you start it from the shell
using inets:start("configfile") or did you use application:start(inets)
?
> <Erlang crash dump>
> I have created a file called inets.conf and saved it in the inets
> directory. (I saved the same file to inets/ebin just to be sure.) This file
> contains the following:
>
> >>>>>>>>>>>>>>>>>>>>>>>>>
> [{inets,
> [{services, [{httpd,"/var/tmp/server_root/conf/8888.conf"},
> {httpd,"/var/tmp/server_root/conf/8080.conf"}]}]}].
> <<<<<<<<<<<<<<<<<<<<<<<<<<
This file should be called inets.config. You should review your
8888.conf and 8080.conf files aswell, as theese are the real
configuration files.
> I have also copied the server_root directory to /var/tmp/...
>
> according to the inets manual.
This should atleast be correct.
--
Best Regards, Mattias Nilsson
Ericsson Telecom AB, OTP & Applied Research
Post generated using Mail2Forum (http://m2f.sourceforge.net) |
|
|
| Back to top |
|
| icimjs at loop.com |
Posted: Fri Feb 05, 1999 7:41 pm |
|
|
|
Guest
|
Hi,
I think that perhaps the problems I'm having are due to my using FreeBSD
2.2.6. The Erlang port is from the FreeBSD 3.0 distribution. I hope to get
my server updated soon and then (probably) it'll work fine.
TIA,
Elan
Post generated using Mail2Forum (http://m2f.sourceforge.net) |
|
|
| Back to top |
|
| icimjs at loop.com |
Posted: Mon Feb 08, 1999 7:49 am |
|
|
|
Guest
|
Hi,
FreeBSD:
1. Where do I find the sockets library for Erlang?
Background:
After having compiled
a) the Erlang base file under FreeBSD 3.0 and
b) the libraries.tar.gz file
I end up with a library that does not appear to contain a sockets library.
(Or maybe I'm not looking in the right places for it.) If I try to run
application:start(sockets).
as described in the inets manual, I get an error saying:
{error,{"no such file or directory","sockets.app"}}.
2. Where does the file inets.conf belong?
Background:
The inets manual describes a file inets.conf:
"A minimal application config file (from now on referred to as inets.conf)
starting two HTTP servers typically looks as follows:
[{inets,
[{services,[{httpd,"/var/tmp/server_root/conf/8888.conf"},
{httpd,"/var/tmp/server_root/conf/8080.conf"}]}]}]."
However, it doesn't state where the inets.conf should be stored. (Or I
haven't been able to find where these instructions are given.)
3. I continue the example
a) without having started sockets,
b) without inets.conf
c) having however copied the examples/server_root directory to /var/tmp/...
- as instructed in the manual -
and - having run application:start(inets). - I try to run start/0, which
results in an error:
6> inets:start().
** exited: {undef,{inets,start,[]}} **
4. I then try running start/1
2> inets:start("/var/tmp/server_root/conf/8888.conf").
** exited: {undef,{inets,start,["/var/tmp/server_root/conf/8888.conf"]}} **
I'm obviously running into quite a few problems. Can someone suggest
solutions?
TIA,
Elan
Post generated using Mail2Forum (http://m2f.sourceforge.net) |
|
|
| Back to top |
|
| mattias at erix.ericsson. |
Posted: Mon Feb 08, 1999 8:31 am |
|
|
|
Guest
|
Elan wrote:
>
> Hi,
>
> FreeBSD:
>
> 1. Where do I find the sockets library for Erlang?
> Background:
> After having compiled
> a) the Erlang base file under FreeBSD 3.0 and
> b) the libraries.tar.gz file
> I end up with a library that does not appear to contain a sockets library.
> (Or maybe I'm not looking in the right places for it.) If I try to run
> application:start(sockets).
> as described in the inets manual, I get an error saying:
> {error,{"no such file or directory","sockets.app"}}.
Don't use sockets. There is a better solution, namely gen_tcp (alias
ip_comm) which is a newer, more stable and faster tcp driver for the
emulator. Specify 'SocketType ip_comm' in your .conf files.
> 2. Where does the file inets.conf belong?
> Background:
> The inets manual describes a file inets.conf:
> "A minimal application config file (from now on referred to as inets.conf)
> starting two HTTP servers typically looks as follows:
> [{inets,
> [{services,[{httpd,"/var/tmp/server_root/conf/8888.conf"},
> {httpd,"/var/tmp/server_root/conf/8080.conf"}]}]}]."
>
> However, it doesn't state where the inets.conf should be stored. (Or I
> haven't been able to find where these instructions are given.)
I think this is a bit confusing. inets.conf in this case is an
application startup file, while in the rest of the manual, the .conf
file references refeer to the Apache-style httpd config files.
> 3. I continue the example
> a) without having started sockets,
> b) without inets.conf
> c) having however copied the examples/server_root directory to /var/tmp/...
> - as instructed in the manual -
> and - having run application:start(inets). - I try to run start/0, which
> results in an error:
> 6> inets:start().
> ** exited: {undef,{inets,start,[]}} **
>
> 4. I then try running start/1
> 2> inets:start("/var/tmp/server_root/conf/8888.conf").
> ** exited: {undef,{inets,start,["/var/tmp/server_root/conf/8888.conf"]}} **
>
> I'm obviously running into quite a few problems. Can someone suggest
> solutions?
Try this (assuming your 8888.conf is correct):
1> httpd:start("/var/tmp/server_root/conf/8888.conf").
This should fire up a httpd server on port 8888 (assuming you have
specified Port 8888 in the 8888.conf file).
Let me know if you have any luck.
--
Best Regards, Mattias Nilsson
Open Telecom Platform / Open Systems / Ericsson
Post generated using Mail2Forum (http://m2f.sourceforge.net) |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|