Hallo Andreas,
ich bin ein Stück weiter.
Ein
sudo apt-get install php-sqlite3
liess das
sudo /var/www/volkszaehler.org/vendor/bin/dbcopy create -c /etc/dbcopy.yaml
fehlerfrei durchlaufen.
Allerdings scheint mir das Wiedereinspielen der gesicherten Datenbank (natürlich mit sqlite.db3 als source) irgendwie nichts zu finden:
pi@raspberrypi:~ $ sudo /var/www/volkszaehler.org/vendor/bin/dbcopy copy -c /etc/dbcopy.yaml
entities: copying 0 rows (overwrite)
0 [>---------------------------] < 1 sec 4.0 MiB
entities: copying 0 rows (overwrite)
0 [>---------------------------] < 1 sec 4.0 MiB
properties: copying 0 rows (overwrite)
0 [>---------------------------] < 1 sec 4.0 MiB
0 [>---------------------------] < 1 sec 4.0 MiB
entities_in_aggregator: copying 0 rows (overwrite)
0 [>---------------------------] < 1 sec 4.0 MiB
0 [>---------------------------] < 1 sec 4.0 MiB
data: copying 0 rows (partial copy)
0 [>---------------------------] < 1 sec 4.0 MiB
0 [>---------------------------] < 1 sec 4.0 MiB
Hättest Du eine Idee, woran das liegen kann ?
Beste Grüße
JD:
Sent: Saturday, November 07, 2020 at 8:10 PM
From: "Andreas Götz" <cpui...@gmail.com>
To: "volkszaehler.org - users" <volkszaehler-users@demo.volkszaehler.org>
Subject: Re: [vz-users] Neubeginn nach Kartencrash
From: "Andreas Götz" <cpui...@gmail.com>
To: "volkszaehler.org - users" <volkszaehler-users@demo.volkszaehler.org>
Subject: Re: [vz-users] Neubeginn nach Kartencrash
Ist ohne Deine Datei schwer zu sagen...
Viele Grüße,
Andreas
Am 07.11.2020 um 18:12 schrieb John Doe <john...@null.net>:
Hallo zusammen,da ich mir leider doch das Vorgehen vom letzten Mal nicht notiert habe, fehlt mir jetzt wieder der Einstieg.Ich habe- eine Kopie sqlite.db3 der Datenbank- eine Kopie der vzlogger.conf- eine Kopie der dbcopy.yaml, mir der ich die Datenbank-Kopie erstellt habe.Ich habe- das aktuelle VZ-Image installiert und mit Updates versehen- die Kopie sqlite.dpb3 in das neue Home-Verzeichnis kopiert- die gesicherte vzlogger.conf und dbcopy.yaml nach /etc kopiert.Ein Aufruf vonsudo /var/www/volkszaehler.org/vendor/bin/dbcopy create -c /etc/dbcopy.yamlbringtCreating target schema
PHP Notice: Undefined variable: schema in /home/pi/volkszaehler.org/vendor/andig/dbcopy/src/Command/CreateCommand.php on line 155
PHP Fatal error: Uncaught Error: Call to a member function toSql() on null in /home/pi/volkszaehler.org/vendor/andig/dbcopy/src/Command/CreateCommand.php:155
Stack trace:
#0 /home/pi/volkszaehler.org/vendor/symfony/console/Command/Command.php(255): DatabaseCopy\Command\CreateCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#1 /home/pi/volkszaehler.org/vendor/symfony/console/Application.php(921): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#2 /home/pi/volkszaehler.org/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand(Object(DatabaseCopy\Command\CreateCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /home/pi/volkszaehler.org/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Symfony\Co in /home/pi/volkszaehler.org/vendor/andig/dbcopy/src/Command/CreateCommand.php on line 155Was mache ich denn diesmal wieder falsch ?Beste GrüßeJD.