[vz-users] Neubeginn nach Kartencrash

Andreas Goetz cpuidle at gmail.com
So Nov 8 11:19:50 CET 2020


Also mit create hast Du das Datenbankschema angelegt, das ist aber leer. Du musst auch die Daten noch reinkopieren ;)

Viele Grüße, Andreas 

> Am 08.11.2020 um 11:05 schrieb John Doe <johndoe at null.net>:
> 
> 
> 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 at 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
> properties: copying 0 rows (overwrite)
>     0 [>---------------------------] < 1 sec 4.0 MiB
> entities_in_aggregator: copying 0 rows (overwrite)
>     0 [>---------------------------] < 1 sec 4.0 MiB
> data: copying 0 rows (partial copy)
>     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" <cpuidle at gmail.com>
> To: "volkszaehler.org - users" <volkszaehler-users at 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 <johndoe at 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 von
>  
> sudo /var/www/volkszaehler.org/vendor/bin/dbcopy create -c /etc/dbcopy.yaml
>  
> bringt
>  
> Creating 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 155
>  
>  
> Was mache ich denn diesmal wieder falsch ?
> Beste Grüße
>  
> JD.
-------------- nächster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20201108/a7d159bf/attachment-0001.html>


Mehr Informationen über die Mailingliste volkszaehler-users