Dear all, Sorry for bothering all. I have started working in dtn since one week now. I am unable to configure it to create multiple nodes. I tried making different config files and starting them separately in same machine, but only the first one is started. The ones after that says api port not initialized. I changed api_port in config file, but all configs still tries to use port 4550. Here is a sample of the log file:Thu Jun 20 15:52:34 2013 INFO: IBR-DTN daemon 0.8.0 (build 52345)Thu Jun 20 15:52:34 2013 INFO: Local node name: dtn://aayush-pcThu Jun 20 15:52:34 2013 INFO: using bundle storage in memory-only modeThu Jun 20 15:52:34 2013 INFO: DiscoveryAgent: broadcast mode 255.255.255.255:4551Thu Jun 20 15:52:34 2013 INFO: StandByManager: IPNDAgent adoptedThu Jun 20 15:52:34 2013 INFO: Using default routing extensionsThu Jun 20 15:52:34 2013 INFO: Forwarding of bundles enabled.Thu Jun 20 15:52:34 2013 ERROR: Unable to bind to lo:4550. API not initialized! With kind regards,Aayush Rana
Dear Aayush,
I have tested the option in the configuration to set the API to a different port and it should work with options like this:
api_port = 1234
Another port conflict might happen with the discovery module, which also uses the same port in both instances. To disable the discovery, set the option "--nodiscovery" when starting the daemon.
Kind regards, Johannes Morgenroth
Am 20.06.2013 10:53, schrieb Aayush Rana:
Dear all,
Sorry for bothering all. I have started working in dtn since one week now. I am unable to configure it to create multiple nodes. I tried making different config files and starting them separately in same machine, but only the first one is started. The ones after that says api port not initialized. I changed api_port in config file, but all configs still tries to use port 4550.
Here is a sample of the log file: Thu Jun 20 15:52:34 2013 INFO: IBR-DTN daemon 0.8.0 (build 52345) Thu Jun 20 15:52:34 2013 INFO: Local node name: dtn://aayush-pc Thu Jun 20 15:52:34 2013 INFO: using bundle storage in memory-only mode Thu Jun 20 15:52:34 2013 INFO: DiscoveryAgent: broadcast mode 255.255.255.255:4551 Thu Jun 20 15:52:34 2013 INFO: StandByManager: IPNDAgent adopted Thu Jun 20 15:52:34 2013 INFO: Using default routing extensions Thu Jun 20 15:52:34 2013 INFO: Forwarding of bundles enabled. Thu Jun 20 15:52:34 2013 ERROR: Unable to bind to lo:4550. API not initialized!
With kind regards, Aayush Rana
-- !! This message is brought to you via the `ibr-dtn' mailing list. !! Please do not reply to this message to unsubscribe. To unsubscribe or adjust !! your settings, send a mail message to ibr-dtn-request@ibr.cs.tu-bs.de !! or look at https://www.ibr.cs.tu-bs.de/mailman/listinfo/ibr-dtn.
Dear Johannes, Thanks so much for the info. I could set up different daemons now, but when I try to ping any with api port other than 4550 it says 'Cannot connect to daemon. Does itrun?' . I have tried to set up static nodes, add link and routes, and also the --nodiscoveryoption, but all give the same error. Here is my config file. Am I doing something wrongin the config file? api_port = 1234console set addr 127.0.0.1console set port 5050set shorthostname [lindex [split [info hostname] .] 0]console set prompt "$shorthostname dtn% "discovery_announce = 0route set type staticroute local_eid "dtn://[info hostname].dtn"interface add tcp0 tcp interface add udp0 udplink add link1 127.0.0.1:5050 ONDEMAND udproute add dtn://aayush-pc/* link1 Thanks for helping in advance. Aayush Rana
Am 26.06.2013 05:28, schrieb Aayush Rana:
api_port = 1234 console set addr 127.0.0.1 console set port 5050 set shorthostname [lindex [split [info hostname] .] 0] console set prompt "$shorthostname dtn% " discovery_announce = 0 route set type static route local_eid "dtn://[info hostname].dtn" interface add tcp0 tcp interface add udp0 udp link add link1 127.0.0.1:5050 ONDEMAND udp route add dtn://aayush-pc/* link1
This looks like a configuration for DTN2, not for IBR-DTN. Maybe that is your mistake.
Kind regards, Johannes Morgenroth
participants (2)
-
Aayush Rana
-
Johannes Morgenroth