<div dir="ltr"><div>Hallo,</div><div><br></div><div>Problem ist gelöst es funktioniert mit 2 Kanälen und gleicher uuid.</div><div>Nach Stunden des rumprobierens dachte ich machste mal einen reboot des Raspberry und siehe da es läuft.</div><div><br></div><div>Da mit jetzt ein paar daten fehlen wollte ich mal dbcopy ausprobieren um die Datenbanken zwischen Raspberry und dem Virtuellen System abzugleichen und bin dieser <a href="https://wiki.volkszaehler.org/software/tools/dbcopy">https://wiki.volkszaehler.org/software/tools/dbcopy</a> <br></div><div>Anleitung gefolgt.</div><div>Im Vorfeld habe ich die Rechte von vz-admin und Mariadb config für externen zugriff angepasst (mysqldump funktioniert).</div><div>Wenn ich den Abgleich der Datenbanken mit <br></div><div>/var/www/<a href="http://volkszaehler.org/vendor/bin/dbcopy.php">volkszaehler.org/vendor/bin/dbcopy.php</a> create -c /etc/dbcopy.json</div><div>starte bekomme ich Fehlermeldungen ich bin da nicht so versiert und kann damit nichts anfangen <br></div><div>würde mich freuen wenn mir da jemand weiterhelfen könnte.</div><div><br></div><div>Hier noch der Auszug aus dem Terminal und im Anhang die dbcopy.json :<br></div><div><br></div><div>pi@raspberrypi:~ $ sudo /var/www/<a href="http://volkszaehler.org/vendor/bin/dbcopy.php">volkszaehler.org/vendor/bin/dbcopy.php</a> create -c /etc/dbcopy.json<br>Creating target schema<br>Creating tables<br>CREATE TABLE aggregate (id INT AUTO_INCREMENT NOT NULL, channel_id INT NOT NULL, type TINYINT(1) NOT NULL, timestamp BIGINT NOT NULL, value DOUBLE PRECISION NOT NULL, count INT NOT NULL, UNIQUE INDEX ts_uniq (channel_id, type, timestamp), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB<br>CREATE TABLE data (id INT AUTO_INCREMENT NOT NULL, channel_id INT DEFAULT NULL, timestamp BIGINT NOT NULL, value DOUBLE PRECISION NOT NULL, UNIQUE INDEX data_unique (channel_id, timestamp), INDEX IDX_ADF3F36372F5A1AA (channel_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB<br>CREATE TABLE entities (id INT AUTO_INCREMENT NOT NULL, uuid VARCHAR(36) NOT NULL COLLATE utf8_unicode_ci, type VARCHAR(255) NOT NULL COLLATE utf8_unicode_ci, class VARCHAR(255) NOT NULL COLLATE utf8_unicode_ci, UNIQUE INDEX UNIQ_50EC64E5D17F50A6 (uuid), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB<br>CREATE TABLE entities_in_aggregator (parent_id INT NOT NULL, child_id INT NOT NULL, INDEX IDX_2BD88468727ACA70 (parent_id), INDEX IDX_2BD88468DD62C21B (child_id), PRIMARY KEY(parent_id, child_id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB<br>CREATE TABLE properties (id INT AUTO_INCREMENT NOT NULL, entity_id INT DEFAULT NULL, pkey VARCHAR(255) NOT NULL COLLATE utf8_unicode_ci, value LONGTEXT NOT NULL COLLATE utf8_unicode_ci, UNIQUE INDEX property_unique (entity_id, pkey), INDEX IDX_87C331C781257D5D (entity_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB<br>ALTER TABLE data ADD CONSTRAINT FK_ADF3F36372F5A1AA FOREIGN KEY (channel_id) REFERENCES entities (id)<br>ALTER TABLE entities_in_aggregator ADD CONSTRAINT FK_2BD88468727ACA70 FOREIGN KEY (parent_id) REFERENCES entities (id)<br>ALTER TABLE entities_in_aggregator ADD CONSTRAINT FK_2BD88468DD62C21B FOREIGN KEY (child_id) REFERENCES entities (id)<br>ALTER TABLE properties ADD CONSTRAINT FK_87C331C781257D5D FOREIGN KEY (entity_id) REFERENCES entities (id)<br>In AbstractMySQLDriver.php line 49:<br><br><span style="color:rgb(255,0,0)"><span style="background-color:rgb(255,255,255)">  An exception occurred while executing 'CREATE TABLE aggregate (id INT AUTO_INCREMENT NOT NULL, channel_id INT NOT NULL, type TINYINT(1) NOT NULL, timestamp BIGINT NOT NULL, value DOUBLE PRECISION NOT NULL, count INT NOT NULL, UNIQUE<br>   INDEX ts_uniq (channel_id, type, timestamp), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB':<br><br>  SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'aggregate' already exists</span></span><br><br><br>In PDOConnection.php line 59:<br><br><span style="color:rgb(255,0,0)">  SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'aggregate' already exists</span><br><br><br>In PDOConnection.php line 57:<br><br>  <span style="color:rgb(255,0,0)">SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'aggregate' already exists</span><br><br><br>create [-c|--config CONFIG]<br></div><div><br></div><div>Mit freundlichen Grüßen und einen guten Rutsch ins neue Jahr</div><div><br></div><div>Sven<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Mo., 30. Dez. 2019 um 21:12 Uhr schrieb Daniel Lauckner <<a href="mailto:vz@jahp.de">vz@jahp.de</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hallo,<br>
<br>
<br>
am Montag, 30. Dezember 2019 um 20:18 hat dies und das geschrieben:<br>
> nur habe ich<br>
> keine Ahnung welchen Port ich da freigeben müsste.<br>
<br>
Webserver: Port 80.<br>
<br>
mfg Daniel<br>
<br>
</blockquote></div>