Hi,
After upgrading to Ubuntu 16.04 I can not get SBFspotUploadDeamon to start uploading.
If I start the deamon manually I get only:
[13:08:40] INFO: Starting SBFspotUploadDeamon Version 1.0.1
[13:08:40] INFO: Starting Daemon...
in the log, if I reboot the server I get:
[13:13:09] INFO: Starting SBFspotUploadDeamon Version 1.0.1
[13:13:09] ERROR: Unable to open database. Check configuration.
I'm using Mysql: Server version: 5.7.12-0ubuntu1 (Ubuntu)
The database gets populated correctly.
When I start the deamon the mysql query log on (turned it on temporarily) it showed:
SELECT DATE_FORMAT(Timestamp,'%Y%m%d,%H:%i'),V1,V2,V3,V4,V5,V6,V7,V8,V9,V10,V11,V12 FROM vwPvoData WHERE TimeStamp>NOW()-INTERVAL 13 DAY AND PVoutput IS NULL AND Serial=2120110081 ORDER BY TimeStamp LIMIT 30
When I tried this query in PHPmyadmin I stumbled into this problem:
1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'vwConsumption.Timestamp' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
The deamon started uploading after I removed the 'only_full_group_by' from sql_mode.
BR,
Hubert
Comments: SBFspot is executed every 1 minute from crontab which contains the following line: ``` # get data from Sunny Boy inverter * 5-23 * * * /home/arjan/slimmemeter/sunnyboy_read.sh >/dev/null ``` The 'sunnyboy_read.sh' script that is executed contains the following line: ``` /usr/local/bin/sbfspot.3/SBFspot -q -ad0 -am0 -ae0 -nocsv ``` (only interested in spot data) Doing some query like for example: ``` SELECT * FROM vwAvgSpotData; ``` returns data from today, yesterday, the day before that, etc. etc. which tells me that SBFspot is executing OK from crontab. Same type of query on 'vwSpotData' also gives results for 'every day' until today. Only the vwPvoData has no data after the moment things stopped working. But... as mentioned earlier in this thread, I did change some views in the database. Would it be a good idea to change all the views back to original and troubleshoot from there, or would you like to try/check other things first?
After upgrading to Ubuntu 16.04 I can not get SBFspotUploadDeamon to start uploading.
If I start the deamon manually I get only:
[13:08:40] INFO: Starting SBFspotUploadDeamon Version 1.0.1
[13:08:40] INFO: Starting Daemon...
in the log, if I reboot the server I get:
[13:13:09] INFO: Starting SBFspotUploadDeamon Version 1.0.1
[13:13:09] ERROR: Unable to open database. Check configuration.
I'm using Mysql: Server version: 5.7.12-0ubuntu1 (Ubuntu)
The database gets populated correctly.
When I start the deamon the mysql query log on (turned it on temporarily) it showed:
SELECT DATE_FORMAT(Timestamp,'%Y%m%d,%H:%i'),V1,V2,V3,V4,V5,V6,V7,V8,V9,V10,V11,V12 FROM vwPvoData WHERE TimeStamp>NOW()-INTERVAL 13 DAY AND PVoutput IS NULL AND Serial=2120110081 ORDER BY TimeStamp LIMIT 30
When I tried this query in PHPmyadmin I stumbled into this problem:
1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'vwConsumption.Timestamp' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
The deamon started uploading after I removed the 'only_full_group_by' from sql_mode.
BR,
Hubert
Comments: SBFspot is executed every 1 minute from crontab which contains the following line: ``` # get data from Sunny Boy inverter * 5-23 * * * /home/arjan/slimmemeter/sunnyboy_read.sh >/dev/null ``` The 'sunnyboy_read.sh' script that is executed contains the following line: ``` /usr/local/bin/sbfspot.3/SBFspot -q -ad0 -am0 -ae0 -nocsv ``` (only interested in spot data) Doing some query like for example: ``` SELECT * FROM vwAvgSpotData; ``` returns data from today, yesterday, the day before that, etc. etc. which tells me that SBFspot is executing OK from crontab. Same type of query on 'vwSpotData' also gives results for 'every day' until today. Only the vwPvoData has no data after the moment things stopped working. But... as mentioned earlier in this thread, I did change some views in the database. Would it be a good idea to change all the views back to original and troubleshoot from there, or would you like to try/check other things first?