[SOLVED]Error trying to create power to KWh/d

I am getting this error when I try to create a KWh/d since upgrading to 8.06.  Anyone have any ideas what might be undefined?  Could it be related to the use of the +feed?

 

pb66's picture

Re: [SOLVED]Error trying to create power to KWh/d

I have seen this error message before, but that was on emoncms.org so may not be related.

I found it had something to do with the naming the feed, if I named it something completely different it would create the feed no problem.I could then change the name of that feed by editing from the feeds page to the name that had previously caused the error, without the error reoccurring. 

may not work on but worth a try :-)

Paul

knicely's picture

Re: [SOLVED]Error trying to create power to KWh/d

Tried another name.....no joy.

 

knicely's picture

Re: [SOLVED]Error trying to create power to KWh/d

I can't create a log to feed or Power to KWh/d on any input.   I am thinking that the upgrade somehow is preventing me from creating any new feeds.  Tried a reboot of the pi, still not working.  

pb66's picture

Re: [SOLVED]Error trying to create power to KWh/d

Have you tried admin > update & check ? I've upgraded from v8.0.3 to v8.0.7 and have no problem creating feeds ( I just tried creating a couple of extras to be sure) I am also using the new feed functions so they aren't causing me an issue either.

did you upgrade via apt or git ? I used apt.

Paul

knicely's picture

Re: [SOLVED]Error trying to create power to KWh/d

I did a git pull from /var/www/emoncms and then did the admin/update through the web interface.  

I just tried an update again and everything was up to date.  Then I noticed I am on 8.06 not 8.07 so I went and did a git pull again and that upgraded me to 8.07.  Then I did Admin/update and everything is up to date.  I still can;t add the power to kwhd conversion.  I am getting the same error.  I may have to break down and look at the code and database.

Thanks for your help.

Ken

knicely's picture

Re: [SOLVED]Error trying to create power to KWh/d

I think I may have figured out my issue.  If I choose the feed engine, variable interval, no averaging I can create the Power to KWh/d feed.  If I choose fixed interval, no averaging it does not.

Ken

TrystanLea's picture

Re: [SOLVED]Error trying to create power to KWh/d

Ken: it may be that your phpfina folder doesnt have the right ownsership permissions. Do you have a phpfina folder at /var/lib/phpfina? and then it needs to have www-data ownership (sudo chown www-data /var/lib/phpfina)

knicely's picture

Re: [SOLVED]Error trying to create power to KWh/d

TrustanLea

Thanks for getting back to me.  I don't have this directory.  I also searched the file system for any directory phpfina and got nothing.  I started with the rpi image with the hard drive recording about 3 or 4 weeks ago and upgraded to 8.06 and 8.07 via git....if that helps.   I can create the power to KWH/D if I first create a post to feed with name I want to use and then delete it and create the power to kwhd using the same name.  But when I do that the feed does not record anything.

Thanks again for your help.

Ken

pb66's picture

Re: [SOLVED]Error trying to create power to KWh/d

Try these commands taken from http://emoncms.org/site/docs/installlinux and reboot

sudo mkdir /var/lib/phpfiwa
sudo mkdir /var/lib/phpfina
sudo mkdir /var/lib/phptimeseries

sudo chown www-data:root /var/lib/phpfiwa
sudo chown www-data:root /var/lib/phpfina
sudo chown www-data:root /var/lib/phptimeseries

Paul

knicely's picture

Re: [SOLVED]Error trying to create power to KWh/d

Thanks pb66 and TrustanLea.

That did it.  I had the phptimeseries directory but not the others.  I added the power to kwh/d feed and it is recording data!!!!

Ken

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.