# Farm stops if drive drops out

**URL:** <https://forum.autonomys.xyz/t/farm-stops-if-drive-drops-out/3051>\
**Category:** Support\
**Created:** [March 23, 2024, 8:10pm UTC](https://forum.autonomys.xyz/t/farm-stops-if-drive-drops-out/3051 "2024-03-23T20:10:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![PuNkYsHuNgRy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/punkyshungry/32/541_2.png) [@PuNkYsHuNgRy](https://forum.autonomys.xyz/u/PuNkYsHuNgRy)\
**Post date:** [March 23, 2024, 8:10pm UTC](https://forum.autonomys.xyz/t/farm-stops-if-drive-drops-out/3051/1 "2024-03-23T20:10:49Z")

</div>

I had an issue with a drive last night and noticed that if a drive drops out the farmer just continues looking for it with an error and does not keep farming the other drives. Drives do go bad and can disconnect for various reasons but I understand it does not happen often. Would it be worth looking into making the farmer continue farming if this occurs?

 ![image](https://canada1.discourse-cdn.com/flex011/uploads/subspace/original/2X/f/f800072ebafbe480f6b1e4db03e709c6c13eddf7.jpeg)

---

<div class="post-metadata">

**Author:** ![nazar-pc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/nazar-pc/32/6_2.png) [@nazar-pc](https://forum.autonomys.xyz/u/nazar-pc)\
**Post date:** [March 23, 2024, 8:23pm UTC](https://forum.autonomys.xyz/t/farm-stops-if-drive-drops-out/3051/2 "2024-03-23T20:23:57Z")

</div>

Did the whole farmer process exit? I am planning to make it just print an error about the farm that failed and continue, just didn’t get to it yet.

---

<div class="post-metadata">

**Author:** ![PuNkYsHuNgRy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/punkyshungry/32/541_2.png) [@PuNkYsHuNgRy](https://forum.autonomys.xyz/u/PuNkYsHuNgRy)\
**Post date:** [March 23, 2024, 8:48pm UTC](https://forum.autonomys.xyz/t/farm-stops-if-drive-drops-out/3051/3 "2024-03-23T20:48:37Z")

</div>

No it did not exit, just kept printing the error over and over and nothing else.

---

<div class="post-metadata">

**Author:** ![dragonP](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/dragonp/32/716_2.png) [@dragonP](https://forum.autonomys.xyz/u/dragonP)\
**Post date:** [March 24, 2024, 3:13am UTC](https://forum.autonomys.xyz/t/farm-stops-if-drive-drops-out/3051/4 "2024-03-24T03:13:42Z")

</div>

It’s the same topic I posted here other day. I’ve had same issue when one of my disk got faulty.

> [@Can farmer still continue if there is a broken plot/disk?](https://forum.autonomys.xyz/t/can-farmer-still-continue-if-there-is-a-broken-plot-disk/2906):
>
> In one of my PC’s, when there is a fault on the disk (disk not recognized/ready), the farmer on that PC just stop/crash. So can this be fixed in next release? I’d like to suggest the farmer will still run as usual and it knows to skip (exclude) that broken plot/disk until the next restart. At the same time, an ERROR message will display in the log about the broken plot/disk so people is made aware and take action asap. Thanks,

---

<div class="post-metadata">

**Author:** ![nazar-pc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/nazar-pc/32/6_2.png) [@nazar-pc](https://forum.autonomys.xyz/u/nazar-pc)\
**Post date:** [March 25, 2024, 12:23pm UTC](https://forum.autonomys.xyz/t/farm-stops-if-drive-drops-out/3051/5 "2024-03-25T12:23:35Z")

</div>

Do you have logs from right before this happened? Ideally as text, screenshots are painful to work with.

---

<div class="post-metadata">

**Author:** ![nazar-pc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/nazar-pc/32/6_2.png) [@nazar-pc](https://forum.autonomys.xyz/u/nazar-pc)\
**Post date:** [March 25, 2024, 1:26pm UTC](https://forum.autonomys.xyz/t/farm-stops-if-drive-drops-out/3051/6 "2024-03-25T13:26:20Z")

</div>

Should be addressed by [Improve error handling by nazar-pc · Pull Request #2639 · subspace/subspace · GitHub](https://github.com/subspace/subspace/pull/2639)

---

<div class="post-metadata">

**Author:** ![qbit](https://avatars.discourse-cdn.com/v4/letter/q/87869e/32.png) [@qbit](https://forum.autonomys.xyz/u/qbit)\
**Post date:** [March 26, 2024, 4:06am UTC](https://forum.autonomys.xyz/t/farm-stops-if-drive-drops-out/3051/7 "2024-03-26T04:06:19Z")

</div>

For me, the whole farmer process exit.  
This happened many times on one of my machine, maybe because there is something wrong with sata power cable, every one day or so, a disk would be drops out and the farmer would exit, I would have to re-plugin the disk and re-launch farmer.  
It would be great if we can keep farmer running with the left disks with a warning message. Below is the log when this happens:

2024-03-24T21:07:32.765924Z INFO {farm\_index=0}: subspace\_farmer::reward\_signing: Successfully signed reward hash 0xf43feccf866e52102357bee67d000e25013c648ea0a9af0fb43db88a19feeb1b  
2024-03-24T23:12:03.557530Z INFO {farm\_index=1}: subspace\_farmer::reward\_signing: Successfully signed reward hash 0x9c20001740f45e709b180b013b08152c8f182af7f3b94a2b809b7ead21a4848c  
2024-03-24T23:17:20.192270Z WARN subspace\_networking::behavior::persistent\_parameters: Failed to flush known peers to disk error=A device which does not exist was specified. (os error 433)  
Error: Low-level auditing error: Failed read s-bucket 34783 of sector 330: A device which does not exist was specified. (os error 433)

Caused by:  
Failed read s-bucket 34783 of sector 330: A device which does not exist was specified. (os error 433)

---

<div class="post-metadata">

**Author:** ![nazar-pc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/nazar-pc/32/6_2.png) [@nazar-pc](https://forum.autonomys.xyz/u/nazar-pc)\
**Post date:** [March 26, 2024, 10:00am UTC](https://forum.autonomys.xyz/t/farm-stops-if-drive-drops-out/3051/8 "2024-03-26T10:00:39Z")

</div>

You should definitely look into that. While we can make code behave better in those cases, we’ll not be able to make missing drive re-appear again.
