<div dir="ltr">update war falsch, sorry. Hatte nicht nachgeschaut. Korrekt ist backup.<div><br></div><div>Also nicht dbcopy create, sondern dbcopy backup. Steht übrigens auch im Wiki...</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Do., 13. Juni 2019 um 22:31 Uhr schrieb John Doe <<a href="mailto:johndoe@null.net">johndoe@null.net</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 Frank, <br>
<br>
ein Update von was denn?<br>
Und woher kommt der Fehler? <br>
Grüße, <br>
<br>
JD. <br>
<br>
> Sent: Thursday, June 13, 2019 at 9:14 PM<br>
> From: "Frank Richter" <<a href="mailto:frank.richter83@gmail.com" target="_blank">frank.richter83@gmail.com</a>><br>
> To: "<a href="http://volkszaehler.org" rel="noreferrer" target="_blank">volkszaehler.org</a> - users" <<a href="mailto:volkszaehler-users@demo.volkszaehler.org" target="_blank">volkszaehler-users@demo.volkszaehler.org</a>><br>
> Subject: Re: [vz-users] Probleme beim Datenbank-BackUp<br>
><br>
> Die Fehlermeldung ist eigentlich eindeutig: die Tabelle gibt's schon, also<br>
> ist create der falsche Befehl. Ich glaub update müsste passen.<br>
> <br>
> Grüße<br>
> Frank<br>
> <br>
> John Doe <<a href="mailto:johndoe@null.net" target="_blank">johndoe@null.net</a>> schrieb am Do., 13. Juni 2019, 20:00:<br>
> <br>
> > Hallo zusammen,<br>
> ><br>
> > mein Problem nach dem rpi-update hat sich durch ein aktuelles rpi-update<br>
> > erledigt, alles läuft soweit wieder.<br>
> > Leider habe ich jetzt wieder ein Problem mit dem Backup der Datenbank:<br>
> ><br>
> > sudo /var/www/<a href="http://volkszaehler.org/vendor/bin/dbcopy" rel="noreferrer" target="_blank">volkszaehler.org/vendor/bin/dbcopy</a> create -c<br>
> > /etc/dbcopy.yaml<br>
> > Creating target schema<br>
> > Creating tables<br>
> > Updating schema assets for target platform compatibility: sqlite<br>
> > table: aggregate<br>
> > table: data<br>
> > table: entities<br>
> > table: entities_in_aggregator<br>
> > table: properties<br>
> > CREATE TABLE aggregate (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,<br>
> > channel_id INTEGER DEFAULT NULL, type SMALLINT NOT NULL, timestamp BIGINT<br>
> > NOT NULL, value DOUBLE PRECISION NOT NULL, count INTEGER NOT NULL,<br>
> > CONSTRAINT FK_B77949FF72F5A1AA FOREIGN KEY (channel_id) REFERENCES entities<br>
> > (id) NOT DEFERRABLE INITIALLY IMMEDIATE)<br>
> > CREATE UNIQUE INDEX aggregate_unique ON aggregate (channel_id, type,<br>
> > timestamp)<br>
> > CREATE INDEX IDX_B77949FF72F5A1AA ON aggregate (channel_id)<br>
> > CREATE TABLE data (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,<br>
> > channel_id INTEGER DEFAULT NULL, timestamp BIGINT NOT NULL, value DOUBLE<br>
> > PRECISION NOT NULL, CONSTRAINT FK_ADF3F36372F5A1AA FOREIGN KEY (channel_id)<br>
> > REFERENCES entities (id) NOT DEFERRABLE INITIALLY IMMEDIATE)<br>
> > CREATE UNIQUE INDEX data_unique ON data (channel_id, timestamp)<br>
> > CREATE INDEX IDX_ADF3F36372F5A1AA ON data (channel_id)<br>
> > CREATE TABLE entities (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, uuid<br>
> > VARCHAR(36) NOT NULL, type VARCHAR(255) NOT NULL, class VARCHAR(255) NOT<br>
> > NULL)<br>
> > CREATE UNIQUE INDEX UNIQ_50EC64E5D17F50A6 ON entities (uuid)<br>
> > CREATE TABLE entities_in_aggregator (parent_id INTEGER NOT NULL, child_id<br>
> > INTEGER NOT NULL, PRIMARY KEY(parent_id, child_id), CONSTRAINT<br>
> > FK_2BD88468727ACA70 FOREIGN KEY (parent_id) REFERENCES entities (id) NOT<br>
> > DEFERRABLE INITIALLY IMMEDIATE, CONSTRAINT FK_2BD88468DD62C21B FOREIGN KEY<br>
> > (child_id) REFERENCES entities (id) NOT DEFERRABLE INITIALLY IMMEDIATE)<br>
> > CREATE INDEX IDX_2BD88468727ACA70 ON entities_in_aggregator (parent_id)<br>
> > CREATE INDEX IDX_2BD88468DD62C21B ON entities_in_aggregator (child_id)<br>
> > CREATE TABLE properties (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,<br>
> > entity_id INTEGER DEFAULT NULL, pkey VARCHAR(255) NOT NULL, value CLOB NOT<br>
> > NULL, CONSTRAINT FK_87C331C781257D5D FOREIGN KEY (entity_id) REFERENCES<br>
> > entities (id) NOT DEFERRABLE INITIALLY IMMEDIATE)<br>
> > CREATE UNIQUE INDEX property_unique ON properties (entity_id, pkey)<br>
> > CREATE INDEX IDX_87C331C781257D5D ON properties (entity_id)<br>
> > In AbstractSQLiteDriver.php line 47:<br>
> > An exception occurred while executing 'CREATE TABLE aggregate (id<br>
> > INTEGER PRIMARY KEY AUTOINCRE<br>
> > MENT NOT NULL, channel_id INTEGER DEFAULT NULL, type SMALLINT NOT NULL,<br>
> > timestamp BIGINT NOT NU<br>
> > LL, value DOUBLE PRECISION NOT NULL, count INTEGER NOT NULL, CONSTRAINT<br>
> > FK_B77949FF72F5A1AA FOR<br>
> > EIGN KEY (channel_id) REFERENCES entities (id) NOT DEFERRABLE INITIALLY<br>
> > IMMEDIATE)':<br>
> > SQLSTATE[HY000]: General error: 1 table aggregate already exists<br>
> ><br>
> > In PDOConnection.php line 43:<br>
> > SQLSTATE[HY000]: General error: 1 table aggregate already exists<br>
> ><br>
> > In PDOConnection.php line 41:<br>
> > SQLSTATE[HY000]: General error: 1 table aggregate already exists<br>
> ><br>
> > create [-c|--config CONFIG]<br>
> ><br>
> > Hat jemand einen Tip, was ich tun könnte ?<br>
> > Grüße,<br>
> ><br>
> > JD.<br>
> ><br>
><br>
</blockquote></div>