How to debug a VisualWave request

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

How to debug a VisualWave request

Thomas Gagne-3
I have a site that lists multiple domains, but requests from other
computers never seem to wake-up my image.  Or at least, it doesn't wake
it up where I expect it to.

tcpdump on the server shows requests arriving at port 8008 (firewall not
an issue).
netstat -tlpaun shows the server is listening on 0.0.0.0:8008
(visualworks listening on all interfaces).
Browsers on the server are able to find my pages using localhost
(visualworks is capable of answering).

But for the life of me I can't figure out why it won't answer requests
from outside of itself.

My .site file reads:

    [tgagne@tgagne2 image]$ cat efinnetSite.ini
    [configuration]

         directory = /usr/local/apache2/htdocs-vw
         environment = Smalltalk
         description = Configuration from efinnetSite.ini.
         home = index.html
         registeredServlets = false
         enabled = true
         domains = localhost; localhost.localdomain; tgagne2.home.lan;
    tgagne2
         aliases = efinnet
         debuggable = true
         realm = efinnet
    #  password = #####
    #  callbacks = event(MyClass$myMethod1:); event(MyClass$myMethod2:)


I'm wondering if anyone knows where I should place a breakpoint so that
I can see how VisualWave figure out whether any of its sites are matched
to the request so I might figure out which domain it thinks the request
is coming from, or discover if there isn't another problem.

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: How to debug a VisualWave request?

Thomas Gagne-3
OK.  So maybe there is something odd with the networking, but I'll be
darned what it is.

I set a breakpoint inside VisualWave.WebSiteResolver.  On the same
machine as the VW server I can enter:

curl http://tgagne2:8008/efinnet/bundleInfo.ssp
   or
curl http://localhost:8008/efinnet/bundleInfo.ssp

and the breakpoint catches.

But nothing wakes it up from other machines.  I'm beginning to wonder
what tcpdump is telling me.

03:23:12.436044 IP Droz.home.lan.62222 > tgagne2.home.lan.8008: Flags
[S], seq 423260331, win 8192, options [mss 1460,nop,wscale 2,sackOK,TS
val 4232649 ecr 0], length 0
03:23:15.440888 IP Droz.home.lan.62222 > tgagne2.home.lan.8008: Flags
[S], seq 423260331, win 8192, options [mss 1460,nop,wscale 2,sackOK,TS
val 4232949 ecr 0], length 0
03:23:21.441348 IP Droz.home.lan.62222 > tgagne2.home.lan.8008: Flags
[S], seq 423260331, win 8192, options [mss 1460,sackOK,TS val 4233549
ecr 0], length 0

But visual /must/ be listening!!!

[tgagne@tgagne2 sysconfig]$ netstat -tpnl
(Not all processes could be identified, non-owned process info
  will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address        
State       PID/Program name
tcp        0      0 0.0.0.0:111 0.0.0.0:*               LISTEN      -
tcp        0      0 0.0.0.0:22 0.0.0.0:*               LISTEN      -
tcp        0      0 127.0.0.1:631 0.0.0.0:*               LISTEN      -
tcp        0      0 127.0.0.1:25 0.0.0.0:*               LISTEN      -
tcp        0      0 127.0.0.1:6011 0.0.0.0:*               LISTEN      -
tcp        0      0 0.0.0.0:8008 0.0.0.0:*               LISTEN      
12098/visual
tcp6       0      0 :::111 :::*                    LISTEN      -
tcp6       0      0 :::22 :::*                    LISTEN      -
tcp6       0      0 ::1:631 :::*                    LISTEN      -
tcp6       0      0 ::1:6011 :::*                    LISTEN      -
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: How to debug a VisualWave request?

Tom Robinson-3
Thomas,

After upgrading to the latest Fedora, I ended up dumping it for Mint
because the Secure Linux configuration was just too much extra work.  
That *could* be your problem, but not sure...

On 8/25/13 1:29 AM, Thomas Gagne wrote:

> OK. So maybe there is something odd with the networking, but I'll be
> darned what it is.
>
> I set a breakpoint inside VisualWave.WebSiteResolver.  On the same
> machine as the VW server I can enter:
>
> curl http://tgagne2:8008/efinnet/bundleInfo.ssp
>   or
> curl http://localhost:8008/efinnet/bundleInfo.ssp
>
> and the breakpoint catches.
>
> But nothing wakes it up from other machines.  I'm beginning to wonder
> what tcpdump is telling me.
>
> 03:23:12.436044 IP Droz.home.lan.62222 > tgagne2.home.lan.8008: Flags
> [S], seq 423260331, win 8192, options [mss 1460,nop,wscale 2,sackOK,TS
> val 4232649 ecr 0], length 0
> 03:23:15.440888 IP Droz.home.lan.62222 > tgagne2.home.lan.8008: Flags
> [S], seq 423260331, win 8192, options [mss 1460,nop,wscale 2,sackOK,TS
> val 4232949 ecr 0], length 0
> 03:23:21.441348 IP Droz.home.lan.62222 > tgagne2.home.lan.8008: Flags
> [S], seq 423260331, win 8192, options [mss 1460,sackOK,TS val 4233549
> ecr 0], length 0
>
> But visual /must/ be listening!!!
>
> [tgagne@tgagne2 sysconfig]$ netstat -tpnl
> (Not all processes could be identified, non-owned process info
>  will not be shown, you would have to be root to see it all.)
> Active Internet connections (only servers)
> Proto Recv-Q Send-Q Local Address           Foreign Address        
> State       PID/Program name
> tcp        0      0 0.0.0.0:111 0.0.0.0:* LISTEN      -
> tcp        0      0 0.0.0.0:22 0.0.0.0:*               LISTEN -
> tcp        0      0 127.0.0.1:631 0.0.0.0:* LISTEN      -
> tcp        0      0 127.0.0.1:25 0.0.0.0:* LISTEN      -
> tcp        0      0 127.0.0.1:6011 0.0.0.0:* LISTEN      -
> tcp        0      0 0.0.0.0:8008 0.0.0.0:* LISTEN      12098/visual
> tcp6       0      0 :::111 :::*                    LISTEN      -
> tcp6       0      0 :::22 :::*                    LISTEN      -
> tcp6       0      0 ::1:631 :::*                    LISTEN      -
> tcp6       0      0 ::1:6011 :::*                    LISTEN      -
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: How to debug a VisualWave request?

Thomas Gagne-3
SELinux was definitely the problem.  Firewalld got in the way.  I ended-up disabling it.

And what's with all the periods in the filemasks?

On 8/25/2013 1:50 PM, Tom Robinson wrote:
Thomas,

After upgrading to the latest Fedora, I ended up dumping it for Mint because the Secure Linux configuration was just too much extra work.  That *could* be your problem, but not sure...


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc