Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error occurred clearing the run history #184

Open
mwwessie opened this issue Nov 9, 2023 · 2 comments
Open

An error occurred clearing the run history #184

mwwessie opened this issue Nov 9, 2023 · 2 comments
Assignees
Labels

Comments

@mwwessie
Copy link

mwwessie commented Nov 9, 2023

We have enabled Clear Run History as shown below:
image

We recieve the following error in the Event Viewer:
image

I can see in the following in the log file:

2023-11-10 02:15:33.8571| INFO|Clearing run history older than 7.00:00:00
2023-11-10 02:15:34.4665|TRACE|Timer elapsed. Next event at 10/11/2023 2:30:34 AM

2023-11-10 02:16:04.2669|ERROR|An error occurred clearing the run historySystem.NullReferenceException: Object reference not set to an instance of an object.
   at Lithnet.Miiserver.Client.SyncServer.SaveRunHistory(DateTime beforeDate, String filename)
   at Lithnet.Miiserver.Client.SyncServer.ClearRunHistory(DateTime clearBeforeDate, String filename)
   at Lithnet.Miiserver.AutoSync.Program.ClearRunHistory()

2023-11-10 10:15:33.8436| INFO|Clearing run history older than 7.00:00:00
2023-11-10 10:15:34.7186|TRACE|Timer elapsed. Next event at 10/11/2023 10:30:34 AM

2023-11-10 10:16:06.5875|ERROR|An error occurred clearing the run historySystem.NullReferenceException: Object reference not set to an instance of an object.
   at Lithnet.Miiserver.Client.SyncServer.SaveRunHistory(DateTime beforeDate, String filename)
   at Lithnet.Miiserver.Client.SyncServer.ClearRunHistory(DateTime clearBeforeDate, String filename)
   at Lithnet.Miiserver.AutoSync.Program.ClearRunHistory()

The Lithnet service account got full permissions to the folder as it's writing the log files to this directory as well.

When I uncheck "Save run history before clearing", it clears the history without any issues.

Is there anything else I must configure to be able to save the history?

Regards,
André

@ryannewington ryannewington self-assigned this Nov 10, 2023
@ryannewington
Copy link
Member

@mwwessie

That's a bit strange. It sounds like there might be a run history item that is corrupted. Do you get any similar error when clear/savings the runs in the sync service itself?

Can you let me know the version of Lithnet.Miiserver.Client.dll found in the Lithnet AutoSync program files folder?

@mwwessie
Copy link
Author

mwwessie commented Nov 13, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants