Hi, I have just set up emonCMS on a shared server and all seems to be in order but under feeds I get the Size reporting as NullB and Updated reporting as NaNs ago...... anyone know why this might be and how to fix it?
Cheers.
Archived Forum |
|
Size = NullB & Updated = NaNs ago ?Submitted by robur on Mon, 03/08/2015 - 13:21Hi, I have just set up emonCMS on a shared server and all seems to be in order but under feeds I get the Size reporting as NullB and Updated reporting as NaNs ago...... anyone know why this might be and how to fix it? Cheers. » |
Re: Size = NullB & Updated = NaNs ago ?
Not without more info. What feeds are they? are the inputs updating? were they working and stopped, or have they never worked? It's a shot in the dark but could it be a permissions issue related to the Data Folders on Shared server? issue you had?
Paul
Re: Size = NullB & Updated = NaNs ago ?
Hi Paul,
Sorry.... permissions set to 777 on the data folders, everything else including inputs working good and it has bee like this from the start.
Cheers.
Re: Size = NullB & Updated = NaNs ago ?
What feeds are they? Can you see them update in the input processing list?
Do the php feed files exist for the feeds that are not updating?
Do the files within the directories have the right permissions?
Have you deleted and replaced any feeds from the feeds page and not changed the processlists? All feed referencing is done by feed id not name so if you replace a feed with one of the same name, the processlist will still contain references to the old feed not the new one.
Do you have phpmyadmin to take a look at the mySQL tables? although the feed data isn't stored there, emoncms does use the feeds table to tie the php feeds to the mySQL data.
Paul
Re: Size = NullB & Updated = NaNs ago ?
Thanks Paul - I just checked the data files and they are all there, set the permission to 777 to be sure but I think I broke it so will try a rebuild! Fingers crossed - cheers.
Re: Size = NullB & Updated = NaNs ago ?
Morning, I rebuilt EmonCMS/database from scratch but I'm getting the same problem, the data files are all there and being updated as expected however. What permission should I set for the data files/folders - setting 777 seemed to cause the server some problems which I will try not to repeat! Cheers.
Re: Size = NullB & Updated = NaNs ago ?
I'm struggling to get a handle on your situation, did emoncms put the feed data files there or did you? If the folders are set up correctly with the correct address and permissions etc, when you create a feed via emoncms does it appear in the folder as expected? if so the permissions as set by emoncms should be correct.
Try creating a new feed to confirm the above, but please be sure it is the first in the processlist as if there is a problem with a preceeding feed it will not get updated. With a brand new feed created by emoncms in pole position on a processlist does it update? is it seen in the data feeds folder?
Paul
Re: Size = NullB & Updated = NaNs ago ?
Yip, everything is performing correctly, even the feeds, but they report NullB and NaNs on the FEEDS page.... here is how I went about it:
- Install new emonCMS with new database
- Create data folders in root of the shared server with permission 744.
- Send data to inputs - success
- Create Feeds from inputs - success
- Inputs, Feeds and Dashboard all update correctly
- Inputs show correct update time
- Feeds show NaNs
So, all good - just the Feeds not reporting the update time and size even though they are updating.
Re: Size = NullB & Updated = NaNs ago ?
Which version are you installing?
Have you carried anything over from a previous install? eg settings, data
Have you set a timezone?
Does admin => "update&check" return "no updates required" in green?
Paul
Re: Size = NullB & Updated = NaNs ago ?
Hi,
Version = 8.5.2 - a completely clean install - even settings.php
Timezone set (although not visible in Firefox, only IE)
Update & Check all GREEN and good - 'do nothing' :-)
LOG4PHP INSTALLED: no.... not sure what the significance of this is?
Cheers.
Re: Size = NullB & Updated = NaNs ago ?
Can you use phpmyadmin to check the feeds table? this is where the last updated time and value are stored.
Do you have redis installed? and does the setting in settings.php reflect that? Although stored in SQL tables they are referenced from redis if it's configured as "using redis" but it isn't there ???
Not entirely sure about the redis thing, I'm grasping at straws a little now, sorry I think I may of run out of ideas!!
Paul
PS what results do you get if you use the feeds api from your browser ? you can request a list of all feeds which should include last update value and time and you should also be able to fetch the current value of any feed specifically using the feed id.
Re: Size = NullB & Updated = NaNs ago ?
Not got my head round redid yet and how to install but the settings file is set the FALSE for redis. I just took a look at the SQL tables and as you can see below the time is not being written to FEEDS but it is to INPUTS - I'm using the following to post data:
"POST /emoncms/input/post.json?time=" + NOW + "&node=" + NODE + "&json=" + JSON + "&apikey=" + APIKEY + " HTTP/1.1"
I will try a direct post from the browser and report back.
Re: Size = NullB & Updated = NaNs ago ?
I set up a clean install of 8.5.2 tonight, and had the same thing happen.
When I clicked on the refresh feed size button, the NaNs and NullBs changed to the correct numbers and have worked correctly since.
Bill
Re: Size = NullB & Updated = NaNs ago ?
Hi, Thanks for the replies and sorry for the slow response, been working away for a couple of weeks. The refresh feed size button fixed the feed size reporting but I'm still getting NaNs for the last report time, perhaps I will try version 9 to see if it improves matters. Cheers.
Re: Size = NullB & Updated = NaNs ago ?
I have the same issue on Emoncms cloud with Firefox. With Chrome it shows well. By the way, incognito mode in Firefox works well. Seems to some cache issue.