# Duplicate log uploaded

**URL:** <https://farmos.discourse.group/t/duplicate-log-uploaded/952>\
**Category:** Field Kit\
**Created:** [October 11, 2021, 2:39pm UTC](https://farmos.discourse.group/t/duplicate-log-uploaded/952 "2021-10-11T14:39:18Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![graffte](https://avatars.discourse-cdn.com/v4/letter/g/b38774/32.png) [@graffte](https://farmos.discourse.group/u/graffte)\
**Post date:** [October 11, 2021, 2:39pm UTC](https://farmos.discourse.group/t/duplicate-log-uploaded/952/1 "2021-10-11T14:39:18Z")

</div>

I have have frequently had the log entries I make in the Field kit show up as multiple copies of the identical entry in the database. Happen again yesterday. I was in the field and made a log entry on my phone. It now shows 4 copies of the same entry in my database under different log IDs. Why is this happening?

---

<div class="post-metadata">

**Author:** ![graffte](https://avatars.discourse-cdn.com/v4/letter/g/b38774/32.png) [@graffte](https://farmos.discourse.group/u/graffte)\
**Post date:** [October 11, 2021, 3:19pm UTC](https://farmos.discourse.group/t/duplicate-log-uploaded/952/2 "2021-10-11T15:19:32Z")

</div>

If I don’t clear prior logs out of my phone field kit and synch to the database, will the prior (already synch’d) logs get re-synch’d again creating another copy in the database?

---

<div class="post-metadata">

**Author:** ![jgaehring](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/jgaehring/32/927_2.png) [@jgaehring](https://farmos.discourse.group/u/jgaehring)\
**Post date:** [October 11, 2021, 4:27pm UTC](https://farmos.discourse.group/t/duplicate-log-uploaded/952/3 "2021-10-11T16:27:08Z")

</div>

Hmm, this definitely shouldn’t be happening and sounds like a bug.

Can you confirm for me if you’re using the latest version of Field Kit, v. 1.0.1 from [https://v1.farmos.app/](https://v1.farmos.app/)? You can find the version in the main menu (left side drawer).

---

<div class="post-metadata">

**Author:** ![jgaehring](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/jgaehring/32/927_2.png) [@jgaehring](https://farmos.discourse.group/u/jgaehring)\
**Post date:** [October 11, 2021, 4:37pm UTC](https://farmos.discourse.group/t/duplicate-log-uploaded/952/4 "2021-10-11T16:37:55Z")

</div>

I thought I remembered a similar issue and found this one, but it was resolved way back on v. 0.4.14:

> <https://github.com/farmOS/farmOS-client/issues/317>
>
> From @alexadamsmith in https://github.com/farmOS/farmOS-client/pull/302#issuecom…ment-593143627:
> 
> \> Logs get duplicated on the server when you do the following
> \>
> \> - Create a new log in the app (we'll call it New Log)
> \> - Sync it
> \> - Delete some other previously created log in the app
> \> - Edit some field in New Log
> \> - Sync again
> \>
> \> On the second sync, New Log is not updated on the server. Instead, an altered copy of New Log is created. This seems to be an issue with the updated indexing system
> 
> I still need to try to reproduce this and test this, but filing here so it can be addressed before 1.0.0 release.

Unless you’re still on an old version, this shouldn’t be related, but posting for my own future reference.

---

<div class="post-metadata">

**Author:** ![graffte](https://avatars.discourse-cdn.com/v4/letter/g/b38774/32.png) [@graffte](https://farmos.discourse.group/u/graffte)\
**Post date:** [October 11, 2021, 4:41pm UTC](https://farmos.discourse.group/t/duplicate-log-uploaded/952/5 "2021-10-11T16:41:54Z")

</div>

Yes V1.0.1

---

<div class="post-metadata">

**Author:** ![jgaehring](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/jgaehring/32/927_2.png) [@jgaehring](https://farmos.discourse.group/u/jgaehring)\
**Post date:** [October 11, 2021, 11:02pm UTC](https://farmos.discourse.group/t/duplicate-log-uploaded/952/6 "2021-10-11T23:02:45Z")

</div>

Ok, I’ll have to take a closer look tomorrow. I did a super quick test just now and couldn’t reproduce it. In the meantime, if you can try to reproduce the error yourself and record the precise steps you take, that could be helpful. Things like the type of log, what fields you’ve edited (notes, categories, assets, etc), that could all prove helpful in identifying the cause. Also any server details, like farmOS version, whether your self-hosting or using Farmier, any non-standard modules you have installed or modified, etc.

---

<div class="post-metadata">

**Author:** ![graffte](https://avatars.discourse-cdn.com/v4/letter/g/b38774/32.png) [@graffte](https://farmos.discourse.group/u/graffte)\
**Post date:** [October 12, 2021, 11:04am UTC](https://farmos.discourse.group/t/duplicate-log-uploaded/952/7 "2021-10-12T11:04:43Z")

</div>

I have FarmOS hosted on Farmier. I’m not a software developer, just using FarmOS without mods as released. This behavior has been going on for some time. I figured it was either “normal” and just related to the sort/view I was using or such. In some cases I’ve gone in and deleted the redundant logs. Other cases not. I was not sure what to do with them, whether I was messing up my records or actually cleaning up a bug driven issue.

I went back through log entries. I found 5 logs that have duplicates. Some are Observations and some are Activities. I’ve had more, these are just ones I didn’t go in and delete. The most flagrant is one called “combine clean out”. I entered it Field Kit. It was back dated to Jul 25, 2019, but entered recently. I have 15 duplicates (Logs 342, 344, 348, 364, 377, 378, 380, 381, 389, 395, 399, 400, 401, 406, 407). I just checked my Phone and found that it does not show it as synched to database (up arrow in cloud symbol) . So appears this log entry has uploaded, but for some reason the Field Kit app doesn’t recognize it.

 ![Screenshot_20211012-054136_Chrome](https://global.discourse-cdn.com/free1/uploads/farm_os/original/1X/1bf9183e27555cfc6e78f0f111744c9f6bcf345d.jpeg)  
See the entry on bottom of screen shot.

The earliest logs I could find duplicated were dated April 16th, 2021 (Log set 167, 175, 182). And another group dated April 16, 2021 (Logs 169, 178, 185). There is one dated April 18 2021 (Log set 168, 179, 187). Another dated May 8th 2021 (logs 199, 200, 201). More recently Dated October 10, 2021 (Logs 397,402,409,414, 415)

There are times where I try to initiate an upload and the Field Kit button doesn’t seem to respond. I end up poking it several times to get synch going. Sometimes in top level menu and/or log level and with the “3 dot” menu synch all files.

---

<div class="post-metadata">

**Author:** ![graffte](https://avatars.discourse-cdn.com/v4/letter/g/b38774/32.png) [@graffte](https://farmos.discourse.group/u/graffte)\
**Post date:** [October 12, 2021, 11:06am UTC](https://farmos.discourse.group/t/duplicate-log-uploaded/952/8 "2021-10-12T11:06:59Z")

</div>

The log entries with the “!” symbol were modified on Field Kit following being uploaded. Hence the warning message.

---

<div class="post-metadata">

**Author:** ![jgaehring](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/jgaehring/32/927_2.png) [@jgaehring](https://farmos.discourse.group/u/jgaehring)\
**Post date:** [October 12, 2021, 2:32pm UTC](https://farmos.discourse.group/t/duplicate-log-uploaded/952/9 "2021-10-12T14:32:53Z")

</div>

This gives me a lot to go by as I dig into the issue, thanks @graffte! Hopefully I can reproduce the error with that.

There’s a chance this could be resolved simply by uninstalling the web app and reinstalling it. It’s important to note, that **any data you that hasn’t been synced will be lost when you uninstall** , so you should make sure to sync first. If you need help uninstalling, just let me know what kind of phone you’re using and I can walk you through the process for that model and operating system (as best I know how, at least; I’m more familiar w/ Android than iOS). Of course, you don’t have to reinstall, because I can’t guarantee it will fix anything, and it probably won’t yield any useful insights to help me diagnose the problem, but if you just want to move ahead w/o the bug interfering with your workflow any longer, it’s probably the best chance to resolve it quickly. And worst case you’re just back at square 1.

In any event, thanks again for all your feedback and patience. I’ll make sure to report back here with whatever I find out, hopefully a fix 🤞, by the end of today at the latest.

---

<div class="post-metadata">

**Author:** ![graffte](https://avatars.discourse-cdn.com/v4/letter/g/b38774/32.png) [@graffte](https://farmos.discourse.group/u/graffte)\
**Post date:** [October 12, 2021, 4:08pm UTC](https://farmos.discourse.group/t/duplicate-log-uploaded/952/10 "2021-10-12T16:08:54Z")

</div>

At this point everything has synched from the Field Kit (at least once). I don’t need to do any immediate work with the phone app in next few days. I’ll leave it as is in case you need any other info from it. Same for the duplicate logs. I will leave them as is in case there is further use. I run the Field Kit on a Samsung Galaxy S10+ android phone.

---

<div class="post-metadata">

**Author:** ![jgaehring](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/jgaehring/32/927_2.png) [@jgaehring](https://farmos.discourse.group/u/jgaehring)\
**Post date:** [October 13, 2021, 2:36am UTC](https://farmos.discourse.group/t/duplicate-log-uploaded/952/11 "2021-10-13T02:36:57Z")

</div>

Quick update, or non-update. I didn’t get a lot of time to test tonight, and still can’t reproduce the bug. I’ll have to dig through the syncing logic more carefully. Might be worth reinstalling before you need to use it next. I have a feeling this might be tricky to pin down, but I’ll keep looking into it.

---

<div class="post-metadata">

**Author:** ![graffte](https://avatars.discourse-cdn.com/v4/letter/g/b38774/32.png) [@graffte](https://farmos.discourse.group/u/graffte)\
**Post date:** [October 13, 2021, 3:04am UTC](https://farmos.discourse.group/t/duplicate-log-uploaded/952/12 "2021-10-13T03:04:31Z")

</div>

No worries. LEt me know if there is any further info I can provide.

---

<div class="post-metadata">

**Author:** ![graffte](https://avatars.discourse-cdn.com/v4/letter/g/b38774/32.png) [@graffte](https://farmos.discourse.group/u/graffte)\
**Post date:** [October 21, 2021, 10:15pm UTC](https://farmos.discourse.group/t/duplicate-log-uploaded/952/13 "2021-10-21T22:15:00Z")

</div>

> [@graffte](#):
>
> “combine clean out”. I entered it Field Kit. It was back dated to Jul 25, 2019, but entered recently. I have 15 duplicates (Logs 342, 344, 348, 364, 377, 378, 380, 381, 389, 395, 399, 400, 401, 406, 407).

Since the above post, I used Field Kit to make a 4 more log entries. The duplicate entries of “combine clean out” have increased each time and the Field Kit entry still does not show it being synched to the server. It is now repeated in entries 334, 335, 341, 344, 348, 364, 377, 378, 380, 381, 389, 395, 399, 400, 401, 406, 407,421, and 424. I’m not sure if I missed some the first time I reviewed this entry given that log IDs before 342 now are showing up. Logs 421 and 424 are new. Seems like a “Combine clean out” gets added every time I synch another new log in field kit. The other groups of duplicate entries did not increase. These other groups are not present in my phone’s field kit listing and apparently have stopped uploading duplicates.

---

<div class="post-metadata">

**Author:** ![graffte](https://avatars.discourse-cdn.com/v4/letter/g/b38774/32.png) [@graffte](https://farmos.discourse.group/u/graffte)\
**Post date:** [October 21, 2021, 10:25pm UTC](https://farmos.discourse.group/t/duplicate-log-uploaded/952/14 "2021-10-21T22:25:22Z")

</div>

The 4 log entries were synch’d / uploaded in 2 instances.  
Unless there is some diagnostic benefit to maintain my phone’s log entries, I think I need to clear out the Field Kit data on my phone to avoid more copies of the Combine Clean Out from appearing.

---

<div class="post-metadata">

**Author:** ![jgaehring](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/jgaehring/32/927_2.png) [@jgaehring](https://farmos.discourse.group/u/jgaehring)\
**Post date:** [October 23, 2021, 1:42pm UTC](https://farmos.discourse.group/t/duplicate-log-uploaded/952/15 "2021-10-23T13:42:25Z")

</div>

> [@graffte](#):
>
> Unless there is some diagnostic benefit to maintain my phone’s log entries, I think I need to clear out the Field Kit data on my phone to avoid more copies of the Combine Clean Out from appearing.

Yea I would suggest completely uninstalling/reinstalling at this point. I still haven’t been able to reproduce the bug and that might very well resolve it.

---

<div class="post-metadata">

**Author:** ![jgaehring](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/jgaehring/32/927_2.png) [@jgaehring](https://farmos.discourse.group/u/jgaehring)\
**Post date:** [October 25, 2021, 1:01pm UTC](https://farmos.discourse.group/t/duplicate-log-uploaded/952/16 "2021-10-25T13:01:09Z")

</div>

> [@jgaehring](#):
>
> Yea I would suggest completely uninstalling/reinstalling at this point.

Oh, it probably wouldn’t hurt to logout, too, before uninstalling, just to make sure any remaining user data is deleted first.
