I'm trying to create a new local EmonCMS instance from the latest 8.5 repository.
Can anyone help me understand what causes "ERROR: Feed could not be created, undefined" when creating a new feed for an input, via the log to feed rule?
I have searched the forum, ensured the phpfina, phpfiwa and phptimeseries directories have 777 and root:root permissions.
For auto backup reasons I have put the directories in a "home" directory, and included open_basedir setting in php.ini to include my php database directories.
How can I find what's throwing the error? Is there a log?
Thanks
Re: [SOLVED] How to troubleshoot ERROR: Feed could not be created, undefined when creating a new feed
Did you change the phpfina, phpfiwa and phptimeseries path specifications in settings.php to match the location of your directories?
Re: [SOLVED] How to troubleshoot ERROR: Feed could not be created, undefined when creating a new feed
Hi Bill - yes I did that also, should have mentioned that. Thanks.
Mike
Re: [SOLVED] How to troubleshoot ERROR: Feed could not be created, undefined when creating a new feed
Hi Mike,
I had the same issue when I tried to put the data directories and files in my home directory. Moving them back to the /var/lib directory solved the problem.
Re: [SOLVED] How to troubleshoot ERROR: Feed could not be created, undefined when creating a new feed
Thanks Bill,
I've had a go at setting the settings.php values to /var/lib/php... and ensured those directories exist with chmod 777 and chown root:root, but still the same error. The directories remain empty.
Is there an error log, or a test script to create a new timeseries entry?
Mike
Re: [SOLVED] How to troubleshoot ERROR: Feed could not be created, undefined when creating a new feed
I just tried creating a feed via the Feed API, and got this message:
Warning: file_exists(): open_basedir restriction in effect. File(/var/lib/phpfina/30.meta) is not within the allowed path(s): (/etc.defaults:/etc:/usr/syno/synoman:/tmp:/var/services/tmp:/var/services/web:/var/services/homes) in /volume1/web/emoncms_new/Modules/feed/engine/PHPFina.php on line 354
So at least I know where the problem is now.
Just discovered that the Synology does not use open_basedir settings from php.ini - its in control panel -> Web Services - PHP settings tab.
Looking like I'm getting closer to switching from my Pi Localhost to Synology NAS LocalHost EmonCMS very soon :)
Hope someone finds this helpful.
Thanks again Bill for the pointers.
Re: [SOLVED] How to troubleshoot ERROR: Feed could not be created, undefined when creating a new feed
There are several threads on the forum that deal with the Synology NAS. Might be worth a look...