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: Changing that one option does wonders: ``` [13:47:36] INFO: Uploading 90 datapoints, starting with 20160525,06:20,10763184,0,,,26.18,230.336 => OK (200) [13:49:36] INFO: Uploading datapoint: 20160525,13:50,10766880,660,,,34.65,230.795 => OK (200) [13:54:36] INFO: Uploading datapoint: 20160525,13:55,10766926,552,,,34.7,229.335 => OK (200) [13:59:36] INFO: Uploading datapoint: 20160525,14:00,10766972,552,,,34.65,228.51 => OK (200) ``` So, it now looks like I changed more than just updating to 3.1.5 at the time, but I don't remember doing that. To be sure I will still change back SQL views to original (which I have not done yet) and share the results here. First let's query the converter for (most of) the missing day data :)
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: Changing that one option does wonders: ``` [13:47:36] INFO: Uploading 90 datapoints, starting with 20160525,06:20,10763184,0,,,26.18,230.336 => OK (200) [13:49:36] INFO: Uploading datapoint: 20160525,13:50,10766880,660,,,34.65,230.795 => OK (200) [13:54:36] INFO: Uploading datapoint: 20160525,13:55,10766926,552,,,34.7,229.335 => OK (200) [13:59:36] INFO: Uploading datapoint: 20160525,14:00,10766972,552,,,34.65,228.51 => OK (200) ``` So, it now looks like I changed more than just updating to 3.1.5 at the time, but I don't remember doing that. To be sure I will still change back SQL views to original (which I have not done yet) and share the results here. First let's query the converter for (most of) the missing day data :)