# Webcontrol zeros webcontrol.json when FS is full

**URL:** <https://forums.maslowcnc.com/t/webcontrol-zeros-webcontrol-json-when-fs-is-full/17941>\
**Category:** Troubleshooting\
**Created:** [April 16, 2022, 1:53pm UTC](https://forums.maslowcnc.com/t/webcontrol-zeros-webcontrol-json-when-fs-is-full/17941 "2022-04-16T13:53:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arnd](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/arnd/32/15571_2.png) [@Arnd](https://forums.maslowcnc.com/u/Arnd)\
**Post date:** [April 16, 2022, 1:53pm UTC](https://forums.maslowcnc.com/t/webcontrol-zeros-webcontrol-json-when-fs-is-full/17941/1 "2022-04-16T13:53:03Z")

</div>

Hi,

i had my Rasp PI running for over 2 months. When i wanted to start working today and moved the sled into a new position suddenly the Z axis did go down fully. I did restart Arduino and raspberry and Z axis didnt worked at all.

I saw that the filesystem was full because i had a 7.2 GB logfile, probably because i forgot to switch some extra logging off and later found out that the config file “webcontrol.json” got zeroed. Most probably because the filesystem had been full. Would be really helpfull if this wouldnt happen…

As i wasnt sure which github repo is the active one i am posting this here…

thx for webcontrol & cheers,

Arnd

---

<div class="post-metadata">

**Author:** ![Orob](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/orob/32/16344_2.png) [@Orob](https://forums.maslowcnc.com/u/Orob)\
**Post date:** [April 16, 2022, 1:54pm UTC](https://forums.maslowcnc.com/t/webcontrol-zeros-webcontrol-json-when-fs-is-full/17941/2 "2022-04-16T13:54:27Z")

</div>

the active webcontrol repo is webcontrolcnc/webcontrol. The log file is a known problem and needs to be fixed.

---

<div class="post-metadata">

**Author:** ![Arnd](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/arnd/32/15571_2.png) [@Arnd](https://forums.maslowcnc.com/u/Arnd)\
**Post date:** [April 27, 2022, 6:13am UTC](https://forums.maslowcnc.com/t/webcontrol-zeros-webcontrol-json-when-fs-is-full/17941/3 "2022-04-27T06:13:24Z")

</div>

How about creating a backup copy of the current config file before opening (and therefore possibly zeroing) the current config for writing?

If the the FS is full creating the backup will obviously fail so the current config shouldnt be zerod?
