Cannot start mochiweb

15 views
Skip to first unread message

Harihara Vinayakaram

unread,
Aug 7, 2010, 4:14:33 AM8/7/10
to disc...@googlegroups.com
Hi
   I wiped out my earlier installation and started from the scratch . I installed erlang-base and eralng-dev packages and then did a make install. I started the disco server. But accessing the port 8989 gives the following error

=ERROR REPORT==== 7-Aug-2010::13:45:36 ===
{mochiweb_socket_server,235,{child_error,undef}}

I added the following to settings.py but does not seem to help

DISCO_USER = "hadoop"
DISCO_MASTER_HOST = "hadoop1"

I googled for this error and this said something about n1@localhost  not working .   

Regards
Hari

Ville Tuulos

unread,
Aug 7, 2010, 7:36:33 PM8/7/10
to disc...@googlegroups.com
Hi Hari,

It seems like a path issue. For some reason it can't find Disco
binaries. Did you start Disco with /usr/local/disco/bin/disco?

Could you post here the output of "ps aux | grep beam" when Disco is
running. You should see a list of paths after -pa flags that specify
the location of Disco binaries under ebin/.

Ville

Harihara Vinayakaram

unread,
Aug 7, 2010, 10:51:29 PM8/7/10
to disc...@googlegroups.com
This is the output of ps aux | grep beam (The -home does not look right )

hadoop    8265  2.7  0.1  43752  6340 ?        Sl   08:20   0:00 /usr/lib/erlang/erts-5.7.4/bin/beam.smp -K true -- -root /usr/lib/erlang -progname erl -- -home /home/hadoop -- -rsh ssh -connect_all false -sname disco_8989_master -pa ///usr/local/lib/disco/ebin/ -pa ///usr/local/lib/disco/ebin/mochiweb -pa ///usr/local/lib/disco/ebin/ddfs -eval application:start(disco) -noshell -noinput -heart -kernel error_logger {file, "//var/log/disco/Master-hadoop1_8989.log"}

I have used the standard settings.py file . I changed the permissions of these directories

and my $PATH looks like

hadoop@hadoop1:~/disco/tuulos-disco-18c6e30$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/sbin:/usr/sbin:/usr/lib/jvm/java-6-sun/bin

I start disco using  
    disco start  
which starts using /usr/local/bin/disco

Regards
Hari


Ville

--
You received this message because you are subscribed to the Google Groups "Disco-development" group.
To post to this group, send email to disc...@googlegroups.com.
To unsubscribe from this group, send email to disco-dev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/disco-dev?hl=en.


Harihara Vinayakaram

unread,
Aug 7, 2010, 11:36:44 PM8/7/10
to disc...@googlegroups.com
Actually I tried the same steps before and it used to work . Not sure what is the difference.. I tried on a different machine and I am getting the same error

Regards
Hari

Ville Tuulos

unread,
Aug 8, 2010, 12:58:39 AM8/8/10
to disc...@googlegroups.com
On Sat, Aug 7, 2010 at 8:36 PM, Harihara Vinayakaram <hvr...@gmail.com> wrote:
> Actually I tried the same steps before and it used to work . Not sure what
> is the difference.. I tried on a different machine and I am getting the same
> error

Maybe you could try to re-make it once more, starting from a freshly
cloned git repository. Then run "make" (not "make install"), then
"bin/disco nodaemon". This should work even if there are issues with
your system-wide installation.

Ville

Harihara Vinayakaram

unread,
Aug 8, 2010, 8:48:37 AM8/8/10
to disc...@googlegroups.com
Hi
   I did this . But I get the same error . 
=ERROR REPORT==== 8-Aug-2010::18:22:39 ===
{mochiweb_socket_server,235,{child_error,undef}}

Regards
Hari

PS : I am using Ubuntu 10.04

Harihara Vinayakaram

unread,
Aug 12, 2010, 4:06:56 AM8/12/10
to disc...@googlegroups.com
Hi
   Is there anything else that I can try . I downloaded the tar.gz file and then ran make on it. I am using Ubuntu 10.04

Regards
Hari

Ville Tuulos

unread,
Aug 12, 2010, 4:47:27 AM8/12/10
to disc...@googlegroups.com
On Thu, Aug 12, 2010 at 1:06 AM, Harihara Vinayakaram <hvr...@gmail.com> wrote:
> Hi
>    Is there anything else that I can try . I downloaded the tar.gz file and
> then ran make on it. I am using Ubuntu 10.04

Are you sure make was successful - it didn't report any errors? You
don't have any old settings files (e.g. ~/.disco) lying around?

The basic initial steps

git clone git://github.com/tuulos/disco.git (or get and unpack a recent tarball)
make
bin/disco start

have worked reliably for so many users that it is hard to see what
goes wrong in your case.

Harihara Vinayakaram

unread,
Aug 12, 2010, 8:13:22 AM8/12/10
to disc...@googlegroups.com
Exactly I understand what you are saying . It worked for me before . Actually I have one other machine which is a Ubuntu 9.10 and I tried the same steps in that machine and things worked there

The difference seems to be the following :  erl -version 
Erlang (SMP,ASYNC_THREADS) (BEAM) emulator version 5.7.2   (On Ubuntu 9.10) works

while
Erlang (SMP,ASYNC_THREADS,HIPE) (BEAM) emulator version 5.7.4 (On Ubuntu 10.04 ) does not work 

I use the standard Ubuntu repositories

Is there some change between the two versions which causes the error

Regards
Hari

Harihara Vinayakaram

unread,
Aug 12, 2010, 12:08:12 PM8/12/10
to disc...@googlegroups.com
I checked the ps outputs of both versions. Both of them are very similar . So the only difference seems to be the versions of erlang 

/usr/lib/erlang/erts-5.7.4/bin/beam.smp -K true -- -root /usr/lib/erlang -progname erl -- -home /root -- -rsh ssh -connect_all false -sname disco_8989_master -pa /home/hadoop/disco/tuulos-disco-18c6e30/master/ebin/ -pa /home/hadoop/disco/tuulos-disco-18c6e30/master/ebin/mochiweb -pa /home/hadoop/disco/tuulos-disco-18c6e30/master/ebin/ddfs -eval application:start(disco) -noshell -noinput -heart -kernel error_logger {file, "/home/hadoop/disco/tuulos-disco-18c6e30/log/Master-hadoop3_8989.log"}

while the following works

/usr/lib/erlang/erts-5.7.2/bin/beam.smp -K true -- -root /usr/lib/erlang -progname erl -- -home /home/pesit -rsh ssh -connect_all false -sname disco_8989_master -pa /home/pesit/disco/tuulos-disco-18c6e30/master/ebin/ -pa /home/pesit/disco/tuulos-disco-18c6e30/master/ebin/mochiweb -pa /home/pesit/disco/tuulos-disco-18c6e30/master/ebin/ddfs -eval application:start(disco) -noshell -noinput -heart -kernel error_logger {file, "/home/pesit/disco/tuulos-disco-18c6e30/log/Master-pesit-cs-dhcp_8989.log"}

Harihara Vinayakaram

unread,
Aug 13, 2010, 6:39:24 AM8/13/10
to disc...@googlegroups.com
Hi
  Am I on the correct path ? Let me know if this is the error and where to change . I am kind of new to erlang and mochiweb so now sure where exactly to look

Regards
Hari

Harihara Vinayakaram

unread,
Aug 14, 2010, 2:03:20 PM8/14/10
to disc...@googlegroups.com
The following solved my problem :
  1.  sudo apt-get remove erlang-base erlang-dev erlang-crypto erlang-syntax-tools
  2. Downloaded the erlang source and then built it (otp14A)Erlang (SMP,ASYNC_THREADS) (BEAM) emulator version 5.8
  3. Now ran mochiweb and things seem fine

Regards
Hari

Harsh J

unread,
Aug 15, 2010, 1:16:18 AM8/15/10
to disc...@googlegroups.com
I had to manually build the erlang package myself too. The ones
supplied with Lucid Lynx versions of Ubuntu had some issues with the
inet module.

--
Harsh J
www.harshj.com

Reply all
Reply to author
Forward
0 new messages