# How to remove the "last logged error" msg associated with a process in status output

**URL:** <https://forums.foundationdb.org/t/how-to-remove-the-last-logged-error-msg-associated-with-a-process-in-status-output/2464>\
**Category:** Using FoundationDB\
**Created:** [December 6, 2020, 1:58am UTC](https://forums.foundationdb.org/t/how-to-remove-the-last-logged-error-msg-associated-with-a-process-in-status-output/2464 "2020-12-06T01:58:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lehu](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/lehu/32/995_2.png) [@lehu](https://forums.foundationdb.org/u/lehu)\
**Post date:** [December 6, 2020, 1:58am UTC](https://forums.foundationdb.org/t/how-to-remove-the-last-logged-error-msg-associated-with-a-process-in-status-output/2464/1 "2020-12-06T01:58:10Z")

</div>

When I log into my fdb cluster, it shows this line:  
“FoundationDB processes - 318 (less 0 excluded; **2 with errors** )”

The errors associated with the 2 processes in the “status details” output are like this:  
“Last logged error: DiskError: io\_error at Thu Dec 3 19:25:38 2020”.

I know they were generated in the past, and is no longer relevant. How can I get rid of the error msgs?

---

<div class="post-metadata">

**Author:** ![ajbeamon](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/ajbeamon/32/13_2.png) [@ajbeamon](https://forums.foundationdb.org/u/ajbeamon)\
**Post date:** [December 6, 2020, 3:03pm UTC](https://forums.foundationdb.org/t/how-to-remove-the-last-logged-error-msg-associated-with-a-process-in-status-output/2464/2 "2020-12-06T15:03:07Z")

</div>

At least right now, the only way to clear this message is to restart the processes that had errors.

---

<div class="post-metadata">

**Author:** ![lehu](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/lehu/32/995_2.png) [@lehu](https://forums.foundationdb.org/u/lehu)\
**Post date:** [April 21, 2021, 7:09pm UTC](https://forums.foundationdb.org/t/how-to-remove-the-last-logged-error-msg-associated-with-a-process-in-status-output/2464/3 "2021-04-21T19:09:37Z")

</div>

Like to give an update on the issue, for other people’s reference if they come into the same issue.

I encountered the same issue again recently. I noticed that there were old SQLite files under /var/lib/foundationdb/data/4500 for the storage server having “Last logged error: DiskError: io\_error".

```
/var/lib/foundationdb/data/4500# ls -l
4.0K -rw-r--r-- 1 foundationdb foundationdb 11 Mar 15 06:58 fitness
4.0K -rw---S--- 1 foundationdb foundationdb 4.0K Nov 25 07:49 processId
 99G -rw---S--- 1 foundationdb foundationdb 99G Apr 21 15:17 storage-754d8b1d8c477ed282aa7fd85d9d197c.sqlite
 16M -rw---S--- 1 foundationdb foundationdb 16M Apr 21 15:17 storage-754d8b1d8c477ed282aa7fd85d9d197c.sqlite-wal
   0 -rw---S--- 1 foundationdb foundationdb 0 Dec 7 22:36 storage-77288e9ee94cd215e606ed4ab3e8b957.sqlite
 17M -rw---S--- 1 foundationdb foundationdb 17M Dec 3 19:25 storage-77288e9ee94cd215e606ed4ab3e8b957.sqlite-wal
4.0K -rw---S--- 1 foundationdb foundationdb 133G Dec 7 22:37 storage-e061d0d173afcdf5aa8477f9ca3f5191.sqlite
 23M -rw---S--- 1 foundationdb foundationdb 23M Dec 7 22:37 storage-e061d0d173afcdf5aa8477f9ca3f5191.sqlite-wal

```

Tried to delete the old files and restart the fdb server to get rid of the Last Logged Error msg. It worked.

It seems when FDB starts, it tried to open ALL the SQLite files under the “data” dir. If a (old) file is corrupt, you will see the error msg in status json.
