Quantcast
Channel: SBFspot Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 360

Commented Unassigned: SBFspotUploadDeamon not uploading [150]

$
0
0
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: I am having the same issues but I am using sqlite3. I tried to alter some of the views based on above, but without any luck (successfully altered, but no uploads are being done). I think there also might be some missing 'AS' keywoards in the sqlite views, but could also be me not being an SQL exper :) For example: ``` CREATE View vwSpotData AS SELECT datetime(Dat.TimeStamp, 'unixepoch', 'localtime') TimeStamp, datetime(CASE WHEN (Dat.TimeStamp % 300) < 150 THEN Dat.TimeStamp - (Dat.TimeStamp % 300) ELSE Dat.TimeStamp - (Dat.TimeStamp % 300) + 300 END, 'unixepoch', 'localtime') AS Nearest5min, Inv.Name, ... etcetera... ``` Shouldn't the 2nd line end with 'AS TimeStamp,' ? Would be great if someone could provide an updated CreateSQLiteDB.sql and/or CreateMySQLDB.sql that contains the correct views. That can then be used to 'diff' the needed changes. Humke

Viewing all articles
Browse latest Browse all 360

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>