cloudy cloudy

Author Topic: Clientraw.txt not being updated  (Read 757 times)

0 Members and 1 Guest are viewing this topic.

Offline bitsostring

  • Posts: 228
  • WMR200
  • Edinburgh, UK
  • OS/Browser:
  • Win NT 10.0
  • Mozilla compatible
Re: Clientraw.txt not being updated
« Reply #15 on: October 07, 2017, 01:20:14 PM »
Switched client PC to read clientraw.txt from the server today (long way round for a short cut!) only to get a string of (server-based) FTP problems.
This doesn't help track down the clientraw update problem, it only helps me pick up FTP problems. So yesterday I went back to reading clientraw direct from the "mapped" weather PC. And when I went to turn the client PC off at midnight it had flat-lined, from 2330. . . but I was too tired to investigate, I'd been working in the garden all afternoon!
It's meant to be fun. . .

Offline bitsostring

  • Posts: 228
  • WMR200
  • Edinburgh, UK
  • OS/Browser:
  • Win NT 10.0
  • Mozilla compatible
Re: Clientraw.txt not being updated
« Reply #16 on: October 08, 2017, 10:58:18 AM »
OK, client PC WD flat-lined this morning and, once again, clientraw.txt was not being updated on the weather PC - see snip.

Tried niko's suggestion but, as expected, was unable to delete it as the file was "open in System". I restarted WD on the weather PC, but clientraw.txt stayed stuck at 1026 until I shut down the client WD, when clientraw.txt was immediately updated at 1103.

It would seem that the problem is caused by client PC WD flat-lining (without a USB connection in sight!), locking clientraw.txt open and preventing weather PC WD from updating it.

I think that would also lock up the batch file copy idea?

Never mind, I can always go back to getting clientraw.txt from the server - as long as FTP behaves!

It's meant to be fun. . .

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 26,737
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 61.0.3163.100
Re: Clientraw.txt not being updated
« Reply #17 on: October 08, 2017, 06:33:45 PM »
I smell a network burp. How does the client access the file, mapped drive, share, or?

Offline bitsostring

  • Posts: 228
  • WMR200
  • Edinburgh, UK
  • OS/Browser:
  • Win NT 10.0
  • Mozilla compatible
Re: Clientraw.txt not being updated
« Reply #18 on: October 08, 2017, 06:56:26 PM »
Unattended source PC runs Win 10 Home, so can't network "properly", but it connects to client PC (Win 10 Pro) with Microsoft Homegroup - effectively it shows as a mapped network drive - and client PC reads clientraw.txt directly.

As explained earlier in this thread, above. . . Kind of annoys me that both PCs are physically plugged into the same router/hub but Win 10 Home PC can't be "seen" on the Win 10 Pro PC network.

Network burp would surely have been resolved by restarting WD on weather PC? As it was, I had to restart WD on client PC.

I'm no expert, any/all suggestions welcome!
It's meant to be fun. . .

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 26,737
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 61.0.3163.100
Re: Clientraw.txt not being updated
« Reply #19 on: October 08, 2017, 07:35:07 PM »
Oh yeah, I had forgotten that little wrinkle  :roll:  I wouldn't know where to start to unravel that situation  - except by using FTP instead. That might burp but it shouldn't take ownership of the file.

« Last Edit: October 08, 2017, 07:37:46 PM by niko »

Offline hcorrin

  • Posts: 1,168
  • Ballaugh Isle of Man GB
  • OS/Browser:
  • Win NT 10.0
  • Mozilla compatible
    • Ballaugh Weather
Re: Clientraw.txt not being updated
« Reply #20 on: October 09, 2017, 10:47:40 AM »
Hi
I would say the network burp is happening while the client pc is trying to read the clientraw.txt file on the main pc thus locking the file.
try scheduling the clientraw.txt file to be copied from the main pc to a folder on the client and have the client read it from there instead

Offline bitsostring

  • Posts: 228
  • WMR200
  • Edinburgh, UK
  • OS/Browser:
  • Win NT 10.0
  • Mozilla compatible
Re: Clientraw.txt not being updated
« Reply #21 on: October 09, 2017, 11:04:56 AM »
Worth trying. I'll have a look at that, thanks.

Later edit: but I suppose there's always going to be the risk of an update coming in while the file is being read. . .
« Last Edit: October 09, 2017, 08:55:09 PM by bitsostring »
It's meant to be fun. . .

Online Weather Display

  • Posts: 81,909
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 61.0.3163.100
    • Weather Display
Re: Clientraw.txt not being updated
« Reply #22 on: October 09, 2017, 05:37:26 PM »
WD does have a multicast ability , why not try that?

Offline bitsostring

  • Posts: 228
  • WMR200
  • Edinburgh, UK
  • OS/Browser:
  • Win NT 10.0
  • Mozilla compatible
Re: Clientraw.txt not being updated
« Reply #23 on: October 09, 2017, 09:06:54 PM »
Far too sensible a suggestion for me. . . I'd just dusted off my MS-DOS 5.0 User's Guide and Reference manual to remind myself how to construct batch files! And task scheduler won't let you repeat a task every 30 seconds - luckily they've added "sleep" to the commands you're allowed to use in batch files.

Client currently running fine getting clientraw.txt from the server.
It's meant to be fun. . .

Offline bitsostring

  • Posts: 228
  • WMR200
  • Edinburgh, UK
  • OS/Browser:
  • Win NT 10.0
  • Mozilla compatible
Re: Clientraw.txt not being updated
« Reply #24 on: October 10, 2017, 01:32:33 PM »
WD does have a multicast ability , why not try that?

I did try it, but it doesn't work. Main weather PC runs Win 10 Home, so it's not really on a network. Any file sharing is by Homegroup.
It's meant to be fun. . .

Offline bitsostring

  • Posts: 228
  • WMR200
  • Edinburgh, UK
  • OS/Browser:
  • Win NT 10.0
  • Mozilla compatible
Re: Clientraw.txt not being updated
« Reply #25 on: October 11, 2017, 06:09:03 PM »
Switched client PC to read clientraw.txt from the server today (long way round for a short cut!) only to get a string of (server-based) FTP problems. So it goes. . .
and on 9 October I posted: "Client currently running fine getting clientraw.txt from the server."

But since then there seems to have been a regular string of sort-lived FTP problems, and now I'm not sure they are server-based. Could the client PC lock the clientraw.txt file on the server, as it does on the Homegroup setup, and thus prevent an FTP update from the weather PC?

On the attached screen snip the flat-lines at 1305, 1809 and 1957 (easiest seen on the wind graph) signal FTP failures. Short-lived because I get them so often I have the FTP set to restart every 10 minutes.

« Last Edit: October 11, 2017, 07:26:05 PM by bitsostring »
It's meant to be fun. . .