LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 03-08-2010, 11:35 AM   #1
YetAnotherDave
Member
 
Registered: Feb 2005
Posts: 94

Rep: Reputation: 17
ddclient fails with uninitialized value when cache file exists


When I run ddclient with an existing ddclient.cache file I get errors saying "uninitialized value" and the remote IP address does not get updated.

This pretty much renders ddclient useless.

If I delete the cache file then things work fine and the IP address *does* get updated (if need be).

I happen to be running version 3.7.3 of ddclient but I've tried this with ddclient 3.8.0 and the result is exactly the same except that the line number in the error changes to line 2030.

Here's the code at that line number :

Code:
if ($config{$host}{'login'} eq '') {
    warning("null login name specified for host %s.", $host);
I'm running ubuntu ( 9.04 I think ) and using zoneedit.com for dynamic dns.

Here's a transcript showing the problem.

root@ruby:/var/cache/ddclient# ddclient
Use of uninitialized value in string ne at /usr/sbin/ddclient line 1973.
Use of uninitialized value in string ne at /usr/sbin/ddclient line 1973.
Use of uninitialized value in string ne at /usr/sbin/ddclient line 1973.
Use of uninitialized value in string ne at /usr/sbin/ddclient line 1973.
Use of uninitialized value in string ne at /usr/sbin/ddclient line 1973.
Use of uninitialized value in string ne at /usr/sbin/ddclient line 1973.
Use of uninitialized value in string ne at /usr/sbin/ddclient line 1973.
Use of uninitialized value in string ne at /usr/sbin/ddclient line 1973.
root@ruby:/var/cache/ddclient# !rm
rm ddclient.cache
root@ruby:/var/cache/ddclient# ddclient
SUCCESS: updating XXXXXXXXX.info: IP address set to XX.XX.XXX.XXX (201: No reco
rds need updating.)
root@ruby:/var/cache/ddclient# ddclient
Use of uninitialized value in string ne at /usr/sbin/ddclient line 1973.
Use of uninitialized value in string ne at /usr/sbin/ddclient line 1973.
Use of uninitialized value in string ne at /usr/sbin/ddclient line 1973.
Use of uninitialized value in string ne at /usr/sbin/ddclient line 1973.
Use of uninitialized value in string ne at /usr/sbin/ddclient line 1973.
Use of uninitialized value in string ne at /usr/sbin/ddclient line 1973.
Use of uninitialized value in string ne at /usr/sbin/ddclient line 1973.
Use of uninitialized value in string ne at /usr/sbin/ddclient line 1973.
root@ruby:/var/cache/ddclient#
 
Old 03-08-2010, 12:12 PM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
can you post the contents of the ddclient.cache file ?

Maybe the $host variable is picking up fluff.
 
Old 03-08-2010, 06:39 PM   #3
YetAnotherDave
Member
 
Registered: Feb 2005
Posts: 94

Original Poster
Rep: Reputation: 17
Thank you for thinking about this.

Here's the ddclient.cache file:

## ddclient-3.7.3
## last updated at Mon Mar 8 16:33:02 2010 (1268094782)
atime=1268094782,host=XXXXXXXXX.info,ip=XX.XX.XXX.XXX,mtime=1268094782,status=good,warned-min-error-interval=0,warned-min-interval=0,wtime=0 XXXXXXXXX.info


The two XXXXXXXXX.info identifiers are identical
 
Old 03-08-2010, 08:07 PM   #4
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
That looks ok. Is that line of code you posted, line 1973 ? In other words is that the correct line for that error output ?
Or is it the output from line 2030 ?
 
Old 03-08-2010, 09:32 PM   #5
YetAnotherDave
Member
 
Registered: Feb 2005
Posts: 94

Original Poster
Rep: Reputation: 17
The line of code that I posted is line 1973 in ddclient version 3.7.3. It corresponds to the "undefined" error that gets printed 8 times.

The line of code that I posted also happens to be line 2030 in ddclient version 3.8.0. If I run ddclient 3.8.0, I get the same error printed 8 times except that the line number changes from 1973 to 2030.

In other words, the error does not change when you go from version 3.7.3 to version 3.8.0 - it just moves.

I'll attach ddclient 3.7.3 . This is the one you get out of the ubuntu repository. Renamed to ddclient.txt for attachment purposes.
Attached Files
File Type: txt ddclient.txt (107.5 KB, 7 views)
 
Old 03-09-2010, 05:12 AM   #6
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
I need to see your config file.
Obviously hide your username and password.

Lines of enquiry include, mx setting in config, current ip address not being picked up and other possibilities.

Also could you run :
Code:
sudo ddclient -daemon=0 -verbose
both before you delete the cache and after, then post the results.
Also the output from /var/log/daemon.log
and you could run
Code:
sudo ddclient -daemon 0 -debug -noquiet
thanks

Last edited by smoker; 03-09-2010 at 05:22 AM.
 
Old 03-09-2010, 09:51 AM   #7
YetAnotherDave
Member
 
Registered: Feb 2005
Posts: 94

Original Poster
Rep: Reputation: 17
False alarm:

I was testing by changing the value stored by zoneedit.com for my DNS entry and then running ddclient to see if the value would switch back to the correct value. It appears that ddclient uses the cache file to remember what was stored by the dynamic dns provider ( zoneedit in this case ). If I change the ip address stored in the cache file along with the value stored by zoneedit, then ddclient works fine without showing any "uninitialized value" warnings. Then the *next* time I run ddclient, the warnings come back but at that point, the ip address for my DNS entry is set correctly. The warnings are a little alarming but apparently harmless (??) .

Sorry to waste your time and thanks again for looking at this.
 
Old 11-01-2011, 01:29 PM   #8
evilmegaman
LQ Newbie
 
Registered: Aug 2005
Location: Seattle, WA
Distribution: Desktop: Fedora, Server: Debian (stable)
Posts: 8

Rep: Reputation: 0
Quote:
Originally Posted by YetAnotherDave View Post
False alarm:

I was testing by changing the value stored by zoneedit.com for my DNS entry and then running ddclient to see if the value would switch back to the correct value. It appears that ddclient uses the cache file to remember what was stored by the dynamic dns provider ( zoneedit in this case ). If I change the ip address stored in the cache file along with the value stored by zoneedit, then ddclient works fine without showing any "uninitialized value" warnings. Then the *next* time I run ddclient, the warnings come back but at that point, the ip address for my DNS entry is set correctly. The warnings are a little alarming but apparently harmless (??) .

Sorry to waste your time and thanks again for looking at this.
Absolutely not a waste of time! Saved me a ton of time!
 
  


Reply

Tags
ddclient, dns


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ddclient running for DynDNS account fails with "SIGTERM" stamcose Linux - Networking 1 12-13-2009 04:25 AM
vim always says swap file already exists for a particular file leftty Linux - Software 1 09-13-2008 01:53 PM
Network exists, eth0/route/something fails 43r05p4c3 Linux - Networking 5 07-10-2006 01:06 PM
SIOCADDRT: File exists SIOCCADDRT: File Exists Failed to bring up eth0. opsraja Linux - Networking 0 01-10-2005 08:29 AM
Linker problem: can't find a file, but the file exists atlep Programming 5 08-16-2004 06:15 AM


All times are GMT -5. The time now is 02:31 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration