This is a migrated thread and some comments may be shown as answers.

Where is schedule data stored?

4 Answers 93 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Fletch
Top achievements
Rank 1
Veteran
Fletch asked on 04 Sep 2020, 08:21 PM

The August update has not worked well for me so I've been doing allot of uninstalls followed by cleaning of data folders.  For the most recent uninstall I also removed Mondo and it's data.  But after the reinstall, the one test I had scheduled (because I had to redo them ALL) was still there.  So I was wondering that I'd not removed all of the data in the last uninstall.

Because in the first uninstall of the March update followed by the install of the August update, I lost all my scheduled tasks.  But after doing the more thorough 2nd uninstall mentioned above, the one item I had scheduled was there. 

1. Removed March
2. Installed August - all prior scheduled tasks (12) are gone - BOO
3. Add one task
4. Encountered unrelated problem adding second task
5. Thorough uninstall, including Mondo and Progress Program Data
6. Installed August - the one scheduled task from step 3 was still there - HOW?

So it stinks that I can't backup or somehow save scheduled tasks and strange that when I don't need to retain them that they are magically retained.

 

4 Answers, 1 is accepted

Sort by
0
Plamen Mitrev
Telerik team
answered on 08 Sep 2020, 10:47 AM

Hello Ron,

I believe that we figure out what happened in this scenario and how you can restore your original scheduled jobs in your private ticket. It might be helpful for other users and I will share the same details in this thread.

Depending on the type of scheduling that you have installed and configured on your machines, the schedule jobs will be stored as a file in different folders. If you are running a local scheduling, meaning you did not install the scheduling service as part of the Test Studio installation, the jobs are stored in your user's folder structure "C:\Users<yourUserName>\AppData\Roaming\Telerik\TestStudio\Scheduler\ScheduleStorage". On the other hand, if you are using the scheduling service, this data will be located in "C:\Windows\SysWOW64\config\systemprofile\AppData\Roaming\Telerik\TestStudio\Scheduler\ScheduleStorage" for 64-bit systems (see point 2 in this article).

Going back to the observed behavior with re-installing Test Studio and losing or retaining some of the scheduled jobs. I assume that your previous installation of Test Studio had the scheduling and storage services installed and configured for remote runs. However, when re-installing the August release from the start, you might have missed to add those, because they are not installed by default. As you mentioned, you added one task and re-installed the August update one again (this time cleaning the Mongo DB and Program Data folder). The scheduled task is still visible, because it is not stored in those two places, but rather on your computer in one of the above mentioned locations (I assume it is the users folder).

In order to restore your initial 12 scheduled tasks, you need to change your Test Studio installation and add the scheduling and storage services. Then, the scheduler will read the jobs from the proper location as before and that should get you back to the original state. Another helpful tip I can give you, is that you can clear the scheduled jobs by deleting the files in the above mentioned folders.

I hope the above details and suggestion will be helpful. Please do not hesitate to contact us again, if you encounter any troubles or you have follow up questions.

Thank you for your cooperation and step by step summary of your actions.

Regards,
Plamen Mitrev
Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive , special prizes and more, for FREE?! Register now for DevReach 2.0(20).

0
Fletch
Top achievements
Rank 1
Veteran
answered on 09 Sep 2020, 08:20 PM

This is even more confusing now and I'll need to do some further research. 

First, when I installed the update, I did elect to install the scheduling and storage services.  I did skip "configuring" them at the end though since I assumed the original configuration was still intact.

Rolling back the time machine prior to installing the August update I note all of my scheduled tests are now gone there.  So that's a mystery too.  Seemingly impossible. 

You are correct that all my scheduled tests run remotely. 

C:\Windows\SysWOW64\config\systemprofile\AppData\Roaming\Telerik\TestStudio\Scheduler\ScheduleStorage is empty.

Given prior issues with TestStudio, I regularly take snapshots of the machine state whenever it's run successfully for weeks in a row.  Somehow even that didn't help as the snapshot prior to installing the August update contains no files in the path above.

So - I went back to a snapshot in May.  There I DID find 9 files in that folder.  So I made copies of them and added them to the pre-august snapshot.  Booting that instance still would not display the future scheduled events despite the files being present and the storage/scheduler services running. 

Given the other unrelated problem with one or more of my existing tests (the project compilation error) I'm inclined to just switch back to the March release and manually reschedule all of my tests.  Since none of them produced the error I'm seeing in the August release - they ran just fine - I'll just continue to use them.  The August release doesn't seem to contain any updates that would benefit me in any way.

Maybe I'll create a brand new machine that I can use to deal with the August release issues while my tests can continue to run on the other machine.  Since I'll eventually need to catch-up such that my tests are deemed error-free under the rules imposed by the August release and subsequent releases.

0
Fletch
Top achievements
Rank 1
Veteran
answered on 10 Sep 2020, 10:50 PM

Following up here so as not to leave the discussion hung.  In attempting to capture the lost schedules scenario, I repro'd the fails-to-run after update issue and sent you info on that in the ticket. 

Then in an attempt again to capture the lost schedules scenario I removed the March release first followed by installing the August release.  This time the scheduled tests were maintained intact.  So we can forget about that particular problem since I'm likely not able to reproduce it again. 

So that should end this thread and I'll work through my NEW test ?syntax? errors in another thread or ticket.

 

0
Plamen Mitrev
Telerik team
answered on 11 Sep 2020, 12:36 PM

Hello Ron,

Thank you for following up in this discussion with more details on the development of the situation and you current state. I will check the error details in the private ticket and I will follow up on that there.

I am glad to know that the scheduled jobs remained after installing the August release. We actually have a Service Pack released yesterday and I assume that there will be no issues if you update to that. If there are any, please let us know either here or in a private ticket with more details from the error and misbehavior.

Of course, if you have a scenario where the scheduled jobs are lost or there are any issues there, we can investigate it further.

Thank you for your cooperation in this thread.

Regards,
Plamen Mitrev
Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive , special prizes and more, for FREE?! Register now for DevReach 2.0(20).

Tags
General Discussions
Asked by
Fletch
Top achievements
Rank 1
Veteran
Answers by
Plamen Mitrev
Telerik team
Fletch
Top achievements
Rank 1
Veteran
Share this question
or