[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MirageOS-devel] Problems with Step 4 of Hello World



I think updates need to be made to those docs, at least for stackv4.

It seems that when conduit came in, and HTTP was supported
differently, the "hello" part of that example was removed, leaving
only the console echo service. At present, if you type into the telnet
session, you should see output on the console of the mir-stackv4
process.

I've filed an issue to check the samples and update the docs. Will try
and get this fixed in the next few days if no-one beats me to it.

On 11 July 2015 at 21:27, Carl Dong <dongcarl@xxxxxxxxxxxx> wrote:
> So... I've managed to get some things working... Just to summarize, with
> no ifconfigs, after I do `sudo ./mir-stackv4`, `telnet localhost 8080`
> does not give me "hello!" as described in the docs, it says "Unable to
> connect to remote host: Connection refused". If I then do `sudo ifconfig
> tap0 10.0.0.1 netmask 255.255.255.0`, pinging workings, and telnet
> connects, but doesn't give me "hello!", instead it gives me
> ```
> Trying 10.0.0.2...
> Connected to 10.0.0.2.
> Escape character is '^]'.
> ```
> and on the terminal with the ./mir-stackv4 open, it says
> ```
> new tcp from 10.0.0.1 48670
> ```
>
> is this what's supposed to happen? If so, then a lot of changes need to
> be made on the docs.
>
> Cheers,
> Carl Dong
> dongcarl@xxxxxxxxxxxx
> "I fight for the users"
>
> On Sat, Jul 11, 2015, at 01:18 PM, Richard Mortier wrote:
>> Oops :( I don't have an Ubuntu box to hand right now unfortunately.
>>
>> Does the "ping" command suggested on the instructions page show anything?
>> Usual way to start debugging this is to look at the output of
>> `ifconfig` and `route` to see how the interface has been named, what
>> address it has, and whether there're appropriate routes setup. Then
>> try `tcpdump` on the interfaces in question to see what packets are
>> actually flowing, if any.
>>
>> If no-one else picks this up in the meantime, ping me again tomorrow
>> and I'll try and get a VM setup to test.
>>
>> On 11 July 2015 at 21:12, Carl Dong <dongcarl@xxxxxxxxxxxx> wrote:
>> > Tried. Does not help :-(
>> >
>> > Carl Dong
>> > dongcarl@xxxxxxxxxxxx
>> > "I fight for the users"
>> >
>> > On Sat, Jul 11, 2015, at 11:06 AM, Thomas Gazagnaire wrote:
>> >> Hi Carl,
>> >>
>> >> Not sure if that helps, but you need to run the `ifconfig`[1] command
>> >> every time you run the `./mir-stackv4` command.
>> >>
>> >> Best,
>> >> Thomas
>> >>
>> >> [1]:  sudo ifconfig tap0 10.0.0.1 netmask 255.255.255.0
>> >>
>> >> > On 11 Jul 2015, at 18:46, Carl Dong <dongcarl@xxxxxxxxxxxx> wrote:
>> >> >
>> >> > Hi all,
>> >> >
>> >> > A big fan of your work trying to get started learning.
>> >> >
>> >> > I was following along https://mirage.io/wiki/hello-world
>> >> > With a fresh install of Ubuntu 14.04 and only mirage installed under
>> >> > opam
>> >> > On step four of the tutorial (the one on stackv4), after I ran `sudo
>> >> > ./mir-stackv4`, I got http://pastebin.com/svi5sZSt
>> >> > `telnet localhost 8080` gives me:
>> >> > ```
>> >> > Trying 127.0.0.1...
>> >> > telnet: Unable to connect to remote host: Connection refused
>> >> > ```
>> >> > I've also tried the telnet command with localhost replaced with 10.0.0.1
>> >> > and 10.0.0.2, and they just hang forever.
>> >> > Here's my ifconfig if that helps:
>> >> > http://pastebin.com/P76uYZCP
>> >> >
>> >> > Cheers,
>> >> > Carl Dong
>> >> > dongcarl@xxxxxxxxxxxx
>> >> > "I fight for the users"
>> >> >
>> >> > _______________________________________________
>> >> > MirageOS-devel mailing list
>> >> > MirageOS-devel@xxxxxxxxxxxxxxxxxxxx
>> >> > http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
>> >>
>> >
>> > _______________________________________________
>> > MirageOS-devel mailing list
>> > MirageOS-devel@xxxxxxxxxxxxxxxxxxxx
>> > http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
>>
>>
>>
>> --
>> Richard Mortier
>> mort@xxxxxxxxxx



-- 
Richard Mortier
mort@xxxxxxxxxx

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@xxxxxxxxxxxxxxxxxxxx
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.