Seems like you got rows in rrd_datasource where rrd_datasourceid is null. Could you try running the following query to confirm this?
select count(*) from rrd_datasource where rrd_datasourceid is null;
Seems like you got rows in rrd_datasource where rrd_datasourceid is null. Could you try running the following query to confirm this?
select count(*) from rrd_datasource where rrd_datasourceid is null;