mainsail-crew / crowsnest

Webcam Service for multiple Cams
GNU General Public License v3.0
324 stars 77 forks source link

After installation and reboot, moonraker.conf is empty except the added lines for crowsnest-updating #14

Closed top-gun closed 2 years ago

top-gun commented 2 years ago

What happened

I installed crowsnest on a Mainsailos image from January. Not sure about the version, I don't know how to look that up atm.

Installation was via Putty - I copied the text from the documentation and let all lines run. I must admit I mistyped twice when I entered "YES" as I thought "y" would be sufficient and had to restart the last line :)

The installation worked its way and instructed me to reboot. After reboot, I got a message from Mainsail that my moonraker.conf is missing the [server] section and I was running on a backup copy.

The moonraker.conf had lost all standard content, and only the fresh lines about updating the crowsnest code were present. I was able to copy-paste the old content from the moonraker-logs and got a working setup.

What did you expect to happen

The installation should not delete the content of moonraker.conf, instead append the update section for crowsnest to the end.

How to reproduce

Not sure if this would work again, as I have not tried to reproduce it.

Basically, follow the installation instructions. Don't type "yes", repeat the installation command. Do that twice ;) At the third go of install, precisely type "YES" (I know this looks stupid, but it was late)

Additional information

I can only imagine there was some uncommon artifact in my moonraker.conf, but atm I don't know how to recover an old version of the file. I know there is a hidden backup, but since I fixed moonraker.conf, it was overwritten with the current state.

About my setup: MainsailOS with a Voron V2.4, everything is upated. Z-calibration from Protoloft is installed, so is Mooncord. Mainsail is on the current beta-3. Changes to moonraker.conf were generally done via Mainsail UI, sometimes via "nano". Kiauh is NOT installed on that machine.

I did once make a manual install of uStreamer, but that's in the standard folder in ~/ustreamer, I don't think that interferes.

top-gun commented 2 years ago

moonraker (1).log

This log goes back to 22/05/20, maybe it helps.

KwadFan commented 2 years ago

I will test that today, but in generall Crowsnest Installer shouldnt add any moonraker entrys as long you use make unattended. So, I'll have to review the according part.

I let you know if I find something. Could you test the installation another time?

Regards