Mutating IP with DHCP not set. **solved**

Discussion of the Meteohub software package

Moderator: Mattk

Post Reply
skyewright
Platinum Boarder
Platinum Boarder
Posts: 873
Joined: Fri Jan 25, 2008 6:27 pm
Location: Isle of Skye, Scotland

Mutating IP with DHCP not set. **solved**

Post by skyewright »

After installing the 2.1 update I changed the IP settings to use a fixed (i.e. non-DHCP) IP of 192.168.0.77.

I've been using that for several days. I even had a two browser pages (one the Meteohub interface, the other a cgi/html page) open with that IP. When I tried to Refresh I got \"Problem Loading Page\".

Running ipscan.exe revealed that the IP had changed to 192.168.0.101!

192.168.0.101 is in my DHCP range.

On the \"Settings\" page the DHCP option is not ticked - I have double checked.

Looking in the system log I found:

Code: Select all

Mar 12 17:45:11 (none) local0.debug udhcpc[1310]: Sending renew...
Mar 12 17:45:27 (none) local0.info udhcpc[1310]: Lease lost, entering init state
Mar 12 17:45:27 (none) local0.debug udhcpc[1310]: Sending discover...
Mar 12 17:45:27 (none) local0.debug udhcpc[1310]: Sending select for 192.168.0.101...
Mar 12 17:45:27 (none) local0.info udhcpc[1310]: Lease of 192.168.0.101 obtained, lease time 259200
Any idea what's going on?

PS. Another odd thing is that I changed (i.e. manuall restored) the workgroup name in meteohub after the update and restore - but to the Windows network it is still appearing as being in workgroup HOME.
skyewright
Platinum Boarder
Platinum Boarder
Posts: 873
Joined: Fri Jan 25, 2008 6:27 pm
Location: Isle of Skye, Scotland

Re:Mutating IP with DHCP not set.

Post by skyewright »

I've just been trying to reset my preferred choice of fixed IP.
Each time I try to \"Save\" meteohub just seems to revert to the 192.168.0.101. :(

I also just noticed that some of the records in the system log have time stamps that are an hour ahead of 'now', e.g.:

Code: Select all

Mar 12 18:35:00 (none) daemon.info thttpd[1021]: spawned CGI process 9597 for file 'cgi-bin/meteohub.cgi'
Mar 12 19:35:00 (none) cron.info /USR/SBIN/CRON[9604]: (root) CMD (/home/meteohub/wmr928fullevalwrapper >/dev/null 2>>/data/log/messages) 
Mar 12 19:35:00 (none) cron.info /USR/SBIN/CRON[9606]: (root) CMD (/bin/pidof histeval1 || /usr/bin/nice /home/meteohub/histeval1) 
Mar 12 19:35:00 (none) cron.info /USR/SBIN/CRON[9608]: (root) CMD (/bin/cat /proc/uptime >/home/meteohub/alive) 
Mar 12 18:35:19 (none) daemon.info thttpd[1021]: spawned CGI process 9631 for file 'cgi-bin/meteohub.cgi'
Mar 12 18:35:30 (none) daemon.info thttpd[1021]: spawned CGI process 9658 for file 'cgi-bin/meteohub.cgi'
At the point of that sample it was 18:35 local time, which is UTC. My time zone is London/Europe.
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7953
Joined: Mon Oct 01, 2007 10:51 pm

Re:Mutating IP with DHCP not set.

Post by admin »

As I cannot reproduce the effects you have. Could you please send
me a personal mail with details how to access your system via http
(port 80) and ssh (port 22). I would like to have a closer look.
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7953
Joined: Mon Oct 01, 2007 10:51 pm

Re:Mutating IP with DHCP not set.

Post by admin »

I could reproduce the effect. Looks like a static set ip
gets overruled by the DHCP server in the LAN. Reason is
a new implementation of udhcpc daemon in the busybox
that comes along with kernel 2.6.21.

I am just testing work arounds - will hopefully be solved
with the next update.
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7953
Joined: Mon Oct 01, 2007 10:51 pm

Re:Mutating IP with DHCP not set. **solved**

Post by admin »

should be history with 2.1a
Post Reply