[Voyage-linux] [ASK] Oasys_tclreadline Error

Laili Aidi (spam-protected)
Thu Aug 11 20:00:02 HKT 2011


Hello,

Currently I'm trying to set up DTN2 on top of the Voyage OS. I use Barkeley DB 4.7, Oasys 1.4.0, and DTN2.7.0.
All the installations were success and I can initialize the database using
#daemon/dtnd -c /home/host1/Desktop/dtn/dtn.conf --init-db, like shown below:
/dtn2/dtn-2.7.0/daemon/dtnd -c /usr/voyagedtn/dtn.conf --init-db
[1313063735.254015 /dtnd notice] random seed is 254015
[1313063735.255015 /dtnd notice] DTN daemon starting up... (pid 8997)
[1313063735.288015 /dtnd notice] initializing persistent data store
[1313063735.401015 /dtnd error] Initializing datastore which already exists.
voyage:~/dtn2/dtn-2.7.0# daemon/dtnd -c /usr/voyagedtn/dtn.conf
[1313063751.467015 /dtnd notice] random seed is 467015
[1313063751.468015 /dtnd notice] DTN daemon starting up... (pid 9000)
[1313063752.291015 /dtn/bundle/daemon notice] loading bundles from data store
voyage dtn%

However, when I tried to run the daemon using
voyage:~/dtn2/dtn-2.7.0# daemon/dtnd -c /usr/voyagedtn/dtn.conf -l info the error happen in Oasys_tclreadline, as shown below:
[1313064004.132015 /dtnd notice] random seed is 132015
[1313064004.133015 /dtnd notice] DTN daemon starting up... (pid 9078)
[1313064004.158015 /dtnd info] parsing configuration file /usr/voyagedtn/dtn.conf...
[1313064004.160015 /dtnd info] dtnd parsing configuration...
[1313064004.166015 /dtn/interface/table info] adding interface tcp0 (tcp)
[1313064004.167015 /dtn/interface/table info] adding interface udp0 (udp)
[1313064004.168015 /dtn/link/link1_tcp info] new link link1_tcp [192.168.1.25:4556 dtn:none ONDEMAND tcp state=AVAILABLE]
[1313064004.170015 /dtnd info] dtnd configuration parsing complete
[1313064004.172015 /dtn/storage info] initializing db name=DTN (not shared), dir=/usr/voyagedtn/db
[1313064004.243015 /dtn/storage info] datastore /usr/voyagedtn/db was cleanly shut down
[1313064004.249015 /dtn/bundle/daemon info] REGISTRATION_ADDED 0 dtn://voyage.bytewalla.com
[1313064004.250015 /dtn/bundle/daemon info] REGISTRATION_ADDED 2 dtn://voyage.bytewalla.com/ping
[1313064004.250015 /dtn/bundle/daemon notice] loading bundles from data store
[1313064004.251015 /dtn/bundle/daemon info] LINK_CREATED link1_tcp [192.168.1.25:4556 dtn:none ONDEMAND tcp state=AVAILABLE]
[1313064004.252015 /dtn/bundle/daemon info] ROUTE_ADD dtn://android.bytewalla.com/* -> link1_tcp (FORWARD)
[1313064004.253015 /dtn/bundle/daemon info] ROUTE_ADD dtn://city.bytewalla.com/* -> link1_tcp (FORWARD)
[1313064004.254015 /dtn/bundle/daemon info] LINK_AVAILABLE link1_tcp [192.168.1.25:4556 dtn:none ONDEMAND tcp state=AVAILABLE]
[1313064004.756015 /dtnd info] starting console on 127.0.0.1:5050
[1313064004.926015 /dtn/tclcmd info] can't load oasys_tclreadline: can't find package oasys_tclreadline
[1313064004.927015 /dtn/tclcmd info] fall back to simple command loop

I'm still troubleshoot this and dont have any idea how to fix it yet.. Please drop some idea if you have any clue about this.

Aidi

On 10 aug 2011, at 22.01, Bjorn Pehrson wrote:

On all questions regarding DTN you should include Michel, Herve and me,

On 08/09/2011 02:50 PM, Laili Aidi wrote:
Dear Bjorn & Harve,

Please find the WSN/DTN TASK 1 Deliverable: Voyage & DTN2 on ALIX Board installation guide V1.0 in this link
http://csd.xen.ssvl.kth.se/csdlive/content/wsndtn-gateway

Currently, we're still facing problem when trying to initialize the database using this command (PART 5 - Step 5), page 19:
#daemon/dtnd -c /home/host1/Desktop/dtn/dtn.conf --init-db

We have reinstalled and reconfigured the libdb, barkeley DB and DTN again, using:
- libdb5.1
- Barkeley DB 5.1
- DTN 2.7 (newest version)

and add " LD_LIBRARY_PATH " to the env variables using
export LD_LIBRARY_PATH=/usr/local/BerkeleyDB.5.1/lib:$LD_LIBRARY_PATH

But the DTN still cannot initialize the database (as shown in the picture below). in the it is mentioned: http://www.dtnrg.org/docs/code/DTN2/doc/manual/configuration.html
"The name of the configuration file is usually set with the -c argument. If the -c argument is missing, dtnd will try to load /etc/dtn.conf. If that file is not readable, it will try to readdaemon/dtn.conf. If that file is not readable, it will log a warning and continue without a configuration file. You may still configure dtnd by hand at the dtn% prompt."

But we're not really clear what it means by configure dtnd by hand. However, we plan to troubleshoot it now. Please just drop some idea if you have any clue about this.


Aidi

--
Begin forwarded message:

From: Qing An <an01040 at gmail.com<mailto:an01040 at gmail.com>>
Date: 8 augusti 2011 19.33.06 CEST
To: <aidi at kth.se<mailto:aidi at kth.se>>
Subject: error message

--
Best regards
Qing An   安勍

<Mail Attachment.jpeg>





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.voyage.hk/pipermail/voyage-linux/attachments/20110811/b6460f35/attachment-0001.html>


More information about the Voyage-linux mailing list