Closed realtebo closed 5 years ago
This doesn't look like a bug to me. If the user is choosing to reconfigure then that's all that should be done. I wouldn't expect for a reconfigure to clone a new web repository and remove any customization that the user may have applied. If they choose reinstall, then yes I would agree that new repositories should be created. I believe this is how the existing code is written?
Yes, I agree. Reconfigure must not override existing installation Reinstall must redo the install from scratch.
Actually I was able to restart a VM from scratch and done an unattended update, The problem came again.
So I think to investigate over automatic installation process.
Kindly, why pihole reinstallation is different from pihole installation?
Thanks for your precious work. Feel free to keep open, and feel free to close. I will post any useful infos if I will find.
Found !
As said, I was doing unattended setup. So I copied setupVars.conf before invoking setup script.
The problem was due to lighttpd not being installed. This, in its turn, was due to
INSTALL_WEB_SERVER=True
INSTALL_WEB_INTERFACE=True
instead of
INSTALL_WEB_SERVER=true
INSTALL_WEB_INTERFACE=true
Before closing, a question: dhcpd server is being installed; must be up & rrunning at the end of setup? I cannot see where we enable and then start it.
The re-installation is basically the same as the installation, except it does not go through the setup questions and does not try to install the repos.
I think dhcpcd starts automatically, or at least it starts up when you reboot (there is a notice printed that you may need to reboot after install).
In raising this issue, I confirm the following:
{please fill the checkboxes, e.g: [X]}
How familiar are you with the the source code relevant to this issue?:
6
Expected behaviour:
I have some problems my with actual config, so I tryed to execute a
pihole -r
, I was expecting to be able to reinstall all components_ of pihole setupActual behaviour:
I tried to rerun
pihole -r
doing a repair instead of a reconfigure.Steps to reproduce:
Not able to restart from scratch.
Debug token provided by uploading
pihole -d
log:Troubleshooting undertaken, and/or other relevant information:
I fixed running again, manually, the installer.
The following step fixed problems:
My suggestion is to force check and clone when doing a repair or a reconfigure