On Tue, 25 Sep 2018 at 11:01, Tim Jaacks <tim.jaacks@garz-fricke.com> wrote:
Hi Neil,

thanks for your quick and direct feedback and please excuse my incautiousness. Being a software developer, I am still new to admin stuff and don't have much experience in hosting servers.

The "flush" command is documented in the help text of "lava-server manage". From the information there it seemed as if "lava-server manage dumpdata" would create a dump of the database (which it did) and that I might be able to restore it with "lava-server manage loaddata" (which I couldn't) if the flush would not do what I expected.

However, the database in that installation was not important at all, I spent some time experimenting with LAVA on this machine and just wanted to have a clean database for starting production use. I assumed there should be an easy way to achieve this.

Typically, that would be a fresh install on a new machine. You'll likely need a developer instance to use as a staging post to check operations ahead of the next upgrade of LAVA software. Avoid only having a production instance because that leads you into another nightmare of trying to patch a live production instance.

 

With your help, I was able to reset my LAVA database using the following commands:

sudo apt-get purge lava-server
sudo rm -rf /etc/lava-server/
sudo rm -rf /var/lib/lava-server/
sudo pg_dropcluster 9.6 main --stop
sudo pg_createcluster 9.6 main --start
sudo apt-get install lava-server

Thanks for pointing me to the backup topic, I will address that in my next step.

Cheers,
Tim


Mit freundlichen Grüßen / Best regards
Tim Jaacks
DEVELOPMENT ENGINEER
Garz & Fricke GmbH
Tempowerkring 2
21079 Hamburg
Direct: +49 40 791 899 - 55
Fax: +49 40 791899 - 39
tim.jaacks@garz-fricke.com
www.garz-fricke.com
SOLUTIONS THAT COMPLETE!

Sitz der Gesellschaft: D-21079 Hamburg
Registergericht: Amtsgericht Hamburg, HRB 60514
Geschäftsführer: Matthias Fricke, Manfred Garz
_______________________________________________
Lava-users mailing list
Lava-users@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lava-users


--

Neil Williams
=============
neil.williams@linaro.org
http://www.linux.codehelp.co.uk/