Subject: RE: [dtn-users] wwwoffle_dtn
From: Lidice Romero Amondaray <[email-masked]>
To: [email-masked]
Date: Fri, 26 May 2006 09:24:43 +0200 (CEST)
List-Id: discussion/answers list for users of the dtn reference implementation <dtn-users.mailman.dtnrg.org>

Thanks Keith,  everything is ok  now.
 
 Lídice
 
"Scott, Keith L." <[email-masked]> escribió:     The dtn-server-tuple option needs to be set in the CLIENT  side -- it tells the client which wwwoffle_dtn server to connect  to.
 The dtn-server-tuple option should NOT be set on the server  side
  
 I think this was how you had things configured in the last  email, given the log files.
  
 You should have to run 'wwwoffle -fetch_dtn' on the client  in order to cause it to talk to the wwwoffle_dtn server.  Again, the log  from your previous email seemed to show this
  
 From  your previous email:
    Clients logs
central:~# lynx http://cursos.ehas.org
central:~# tail    -f /var/log/syslog
May 17 15:23:48 (none) wwwoffled[2856]: Running with    root user or group privileges is not recommended.
May 17 15:23:48 (none)    wwwoffled[2856]: fSpoolDir opened(6)
May 17 15:23:48 (none)    wwwoffled[2858]: Detached2 from terminal and changed pid to 2858.
May 17    15:23:48 (none) wwwoffled[2858]: DTN Support enabled -- starting server    pieces...
May 17 15:23:48 (none) wwwoffled[2860]: do_dtn_server connected    to dtnd
May 17 15:23:48 (none) wwwoffled[2858]: DTNServerTuple:    'dtn://volatil.gbt.tfo.upm.es.dtn' -- Fetch operations redirected.
May 17    15:24:20 (none) wwwoffles[2866]: doImmediateOptions set: redirecting to    'http://localhost:8080/refresh-options/?http://cursos.ehas.org/'
May 17    15:24:36 (none) wwwoffled[2858]: WWWOFFLE Connection from host localhost    (127.0.0.1).
May 17 15:24:36 (none) wwwoffled[2858]:    WWWOFFLE DTN FETCH
May 17 15:24:36 (none) wwwoffled[2858]: Opening    connection to local DTN daemon
    
 Here's the client getting a bundle back  from the server:
    
May 17 15:24:47    (none) wwwoffled[2862]: about to untar bundle from wwwoffle server
May 17 15:24:47 (none) wwwoffled[2862]: bundle payload name    (/tmp/bundlePayload_pcQYw1)
May 17 15:24:47 (none)    wwwoffled[2862]:     (tar -C /var/spool/wwwoffle -xPjf    /tmp/bundlePayload_pcQYw1 >& /dev/null)
May 17 15:24:47 (none)    wwwoffled[2862]: dtnNotify: entered topDir(/var/spool/wwwoffle/http)
May 17 15:24:47 (none) wwwoffled[2862]: leaving    dtnNotify
 So when you had things configured as before, it looked  like it was working.  Is it possible that the wwwoffle_dtn server couldn't  get to the cursos.ehas.org page?  I think that would cause it to return no  results to the client.
  
 If you're facile with tcpdump, you could watch traffic  between the wwwoffle client/server and see if there's traffic on port 5000, and  also on the server and see if it looks like it's succeeding in getting the  pages.
  
          --keith
       
---------------------------------
   
   From: [email-masked]    [mailto:[email-masked]] On Behalf Of Lidice Romero    Amondaray
Sent: Tuesday, May 23, 2006 6:35 AM
To:    [email-masked]
Subject: RE: [dtn-users]    wwwoffle_dtn

   
Hi Keith,

I did what you suggested me but I continue with    problems. I continue thinking that the problem is in my configuration because    although I specify that I want DTN support in the client the bundles are not    generated. 

Answering your questions:

1) The user running the    wwwoffled(dtn user) can write in the /var/spool/wwwoffle/http (in fact at some    moment I used root user to be sure)
dtn@central:~$ ls -l    /var/spool/wwwoffle/
total 7
drwxr-xr-x  11 dtn dtn 1024 Apr 25    11:44 html
drwxr-x---   2 dtn dtn 1024 May 19 11:36    http
drwxr-xr-x   2 dtn dtn 1024 May 19 11:06    lastout
drwxr-xr-x   2 dtn dtn 1024 May 19 11:35    lasttime
drwxr-x---   2 dtn dtn 1024 Apr 25 11:44    local
drwxr-x---   2 dtn dtn 1024 Apr 25 11:44    monitor
drwxr-x---   2 dtn dtn 1024 May 23 09:02    outgoing

2) the http directory is empty
dtn@central:~$ ls -lR    /var/spool/wwwoffle/http
/var/spool/wwwoffle/http:
total 0

but    the outgoing directory is no empty

central:/home/dtn# ls -l    /var/spool/wwwoffle/outgoing/
total 2
-rw-r--r--  1 dtn dtn 385 May    23 10:30 Ox5M+BAgGhg9JkXlTrkJeTA
-rw-r--r--  1 dtn dtn 119 May 23    10:30 Ux5M+BAgGhg9JkXlTrkJeTA

3) The user running the wwwoffled have    write permission on /tmp directory, and there is no bundles in    there
dtn@central:~$ ls -l /
total 37
drwxrwxrwt   2 root    root   2048 May 23 09:08 tmp

dtn@central:~$ ls -l    /tmp/
total 0

Well I have to setup the sendmail for se the    notifications.

Here are some comments about the wwwoffle_dtn    configuration file:

In the client wwwoffle_dtn configurations I    followed your advice:
 dtn-support          = yes
 dtn-server-tuple  =    none
 dtn-instafetch    =    yes

Proxy
{
 <http://*> proxy = none
#    <http://*> proxy = gatekeeper-w.mitre.org:80

}

 [input] Here is the client log
May 23 10:29:34 (none)    wwwoffled[823]: WWWOFFLE Demon Version 2.8d (with zlib,without ipv6)    started.
May 23 10:29:34 (none) wwwoffled[823]: WWWOFFLE Read Configuration    File '/etc/wwwoffle/wwwoffle.conf'.
May 23 10:29:34 (none) wwwoffled[823]:    fSpoolDir opened(6)
May 23 10:29:34 (none) wwwoffled[825]: Detached2 from    terminal and changed pid to 825.
May 23 10:29:34 (none) wwwoffled[825]: DTN    Support enabled -- starting server pieces...
May 23 10:29:35 (none)    wwwoffled[827]: do_dtn_server connected to dtnd
May 23 10:29:35 (none)    wwwoffled[825]: DTNServerTuple((null)) not set for being DTN client
May 23    10:30:29 (none) wwwoffled[825]: HTTP Proxy connection from host localhost    (127.0.0.1).
May 23 10:30:29 (none) wwwoffled[825]: Forked wwwoffles -spool    (pid=834).
May 23 10:30:29 (none) wwwoffles[834]:    URL='http://cursos.ehas.org/'.
May 23 10:30:29 (none) wwwoffles[834]:    proto='http'; host='cursos.ehas.org'; path='/'; args='(null)';    user:pass='(null):(null)'.
May 23 10:30:29 (none) wwwoffles[834]:    doImmediateOptions set: redirecting to    'http://localhost:8080/refresh-options/?http://cursos.ehas.org/'
May 23    10:30:29 (none) wwwoffles[834]: Client bytes; 345 Read, 2244 Written.
May    23 10:30:29 (none) wwwoffled[825]: Child wwwoffles exited with status 0    (pid=834).
May 23 10:30:29 (none) wwwoffled[825]: Currently running: 0    servers total, 0 fetchers.
May 23 10:30:31 (none) wwwoffled[825]: HTTP    Proxy connection from host localhost (127.0.0.1).
May 23 10:30:31 (none)    wwwoffles[835]:    URL='http://localhost:8080/refresh-options/?http://cursos.ehas.org/'.
May    23 10:30:31 (none) wwwoffles[835]: proto='http'; host='localhost:8080';    path='/refresh-options/'; args='http://cursos.ehas.org/';    user:pass='(null):(null)'.
May 23 10:30:31 (none) wwwoffled[825]: Forked    wwwoffles -spool (pid=835).
May 23 10:30:31 (none) wwwoffles[835]: Client    bytes; 383 Read, 4025 Written.
May 23 10:30:31 (none) wwwoffled[825]: Child    wwwoffles exited with status 0 (pid=835).
May 23 10:30:31 (none)    wwwoffled[825]: Currently running: 0 servers total, 0 fetchers.
May 23    10:30:36 (none) wwwoffled[825]: HTTP Proxy connection from host localhost    (127.0.0.1).
May 23 10:30:36 (none) wwwoffles[836]:    URL='http://localhost:8080/refresh-request/?!POST:59nlpSFTPSfvkFg1HH8UMw.4472e44c'.
May    23 10:30:36 (none) wwwoffles[836]: proto='http'; host='localhost:8080';    path='/refresh-request/'; args='!POST:59nlpSFTPSfvkFg1HH8UMw.4472e44c';    user:pass='(null):(null)'.
May 23 10:30:36 (none) wwwoffles[836]: Refresh newUrl='http://localhost:8080/refresh-recurse/?url=http://cursos.ehas.org/;depth=0;stylesheets=Y;images=Y;frames=Y;atTopLevel=Y'.
May    23 10:30:36 (none) wwwoffles[836]: Refresh proto='http';    host='localhost:8080'; path='/refresh-recurse/';    args='url=http://cursos.ehas.org/;depth=0;stylesheets=Y;images=Y;frames=Y;atTopLevel=Y';    user:pass='(null):(null)'.
May 23 10:30:36 (none) wwwoffles[836]: Refresh    URL='http://localhost:8080/refresh-recurse/?url=http://cursos.ehas.org/;depth=0;stylesheets=Y;images=Y;frames=Y;atTopLevel=Y'.
May    23 10:30:36 (none) wwwoffles[836]: Refresh proto='http';    host='localhost:8080'; path='/refresh-recurse/';    args='url=http://cursos.ehas.org/;depth=0;stylesheets=Y;images=Y;frames=Y;atTopLevel=Y';    user:pass='(null):(null)'.
May 23 10:30:36 (none) wwwoffled[825]: Forked    wwwoffles -spool (pid=836).
May 23 10:30:36 (none) wwwoffles[836]: Client    bytes; 651 Read, 3562 Written.
May 23 10:30:36 (none) wwwoffled[825]: Child    wwwoffles exited with status 4 (pid=836).
May 23 10:30:36 (none)    wwwoffled[825]: Currently running: 0 servers total, 0 fetchers.

In    the server wwwoffle_dtn    configurations:
 dtn-support       =    yes
 dtn-server-tuple  =    dtn://central.dtn
 dtn-instafetch    =    no

Proxy
{
 <http://*> proxy =    none
#<http://*> proxy = gatekeeper-w.mitre.org:80
}

Server    log:
May 23 09:57:44 volatil wwwoffled[15787]: WWWOFFLE Demon Version 2.8d    (with zlib,without ipv6) started.
May 23 09:57:44 volatil wwwoffled[15787]:    WWWOFFLE Read Configuration File '/etc/wwwoffle/wwwoffle.conf'.
May 23    09:57:44 volatil wwwoffled[15787]: fSpoolDir opened(6)
May 23 09:57:44    volatil wwwoffled[15789]: Detached2 from terminal and changed pid to    15789.
May 23 09:57:44 volatil wwwoffled[15789]: DTN Support enabled --    starting server pieces...
May 23 09:57:44 volatil wwwoffled[15789]:    DTNServerTuple: 'dtn://central.dtn' -- Fetch operations redirected.
May 23    09:57:44 volatil wwwoffled[15789]: do_dtn_server connected to dtnd
May 23    10:00:01 volatil /USR/SBIN/CRON[15817]: (proxy) CMD ([ -x    /etc/wwwoffle/wwwoffle.cron-fetch ] &&    /etc/wwwoffle/wwwoffle.cron-fetch)
May 23 10:00:35 volatil    wwwoffled[15789]: WWWOFFLE Connection from host localhost (127.0.0.1).
May    23 10:00:35 volatil wwwoffled[15789]: WWWOFFLE DTN FETCH
May 23 10:00:35    volatil wwwoffled[15789]: Opening connection to local DTN    daemon

Thanks,

Lídice

---------------------------------
   
LLama Gratis a cualquier PC del    Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com

---------------------------------

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com