# 7.6 Auto Schedule Start Problems

**URL:** <https://forum.inductiveautomation.com/t/7-6-auto-schedule-start-problems/6479>\
**Category:** 3rd Party Modules\
**Created:** [May 15, 2013, 11:18am UTC](https://forum.inductiveautomation.com/t/7-6-auto-schedule-start-problems/6479 "2013-05-15T11:18:23Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [May 15, 2013, 11:18am UTC](https://forum.inductiveautomation.com/t/7-6-auto-schedule-start-problems/6479/1 "2013-05-15T11:18:23Z")

</div>

Hey guys,

I’m having a problem with schedules not auto starting after the upgrade to 7.6. The last couple of days I’ve had some lines that will not auto start schedules. I also can not manually start the schedules because the schedule controller can not find the schedules that were entered, which I believe is the root of the problem.

It seems that the schedule controller is having trouble finding schedules that were entered the day before. Yesterday when I entered the schedules for today I could pick those schedules in the line schedule selector and today those schedules are not selectable (they do not appear in the drop down). However, if I go to the schedule entry screen all of the schedules that I entered are there for every line. I went through the console and there are no error that I can see that have anything to do with the OEE/downtime module. Is there something else that I can check or is this a known issue? I would at least like to be able to start the entered schedules manually, but I can’t even do that. If you have any ideas let me know. Thanks!

---

<div class="post-metadata">

**Author:** ![Pete.Low](https://avatars.discourse-cdn.com/v4/letter/p/f05b48/32.png) [@Pete.Low](https://forum.inductiveautomation.com/u/Pete.Low)\
**Post date:** [May 15, 2013, 2:27pm UTC](https://forum.inductiveautomation.com/t/7-6-auto-schedule-start-problems/6479/2 "2013-05-15T14:27:56Z")

</div>

Hi,  
I will need to mock that up here and see what the issue is.  
Thanks for the all the info.  
Regards,

---

<div class="post-metadata">

**Author:** ![Pete.Low](https://avatars.discourse-cdn.com/v4/letter/p/f05b48/32.png) [@Pete.Low](https://forum.inductiveautomation.com/u/Pete.Low)\
**Post date:** [May 15, 2013, 3:00pm UTC](https://forum.inductiveautomation.com/t/7-6-auto-schedule-start-problems/6479/3 "2013-05-15T15:00:18Z")

</div>

Hi,  
I cannot re-produce the issue here with 7.6.  
My lines are auto-starting the entered schedules and I can see un-ran schedules from previous days.  
Once a schedule is ran and ended it will not be available for re-selection in the drop down.

---

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [May 15, 2013, 3:41pm UTC](https://forum.inductiveautomation.com/t/7-6-auto-schedule-start-problems/6479/4 "2013-05-15T15:41:42Z")

</div>

Ok, is there anything I can look for in the logs or in the database to see if, when or how the run was started/ended? I see auto start entries in the logs for the lines that actually did start, but not for the ones that didn’t. Here’s the schedule entries and what I can pick in the schedules run selector:

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/c/ca20793a64d3c605f03d6fb3573f2df20c92e583.png)  
  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/1/1b854277d2b79dfcea4cdc4c42538a45d49e2ff7.png)

---

<div class="post-metadata">

**Author:** ![Pete.Low](https://avatars.discourse-cdn.com/v4/letter/p/f05b48/32.png) [@Pete.Low](https://forum.inductiveautomation.com/u/Pete.Low)\
**Post date:** [May 15, 2013, 3:54pm UTC](https://forum.inductiveautomation.com/t/7-6-auto-schedule-start-problems/6479/5 "2013-05-15T15:54:19Z")

</div>

If you look at the analysis window you can get a list of all the runs for a specified date range. If you use a “Run” provider, compare by “Run” and select the “Schedule Production Start” and Actual Production Start" you would see the runs and when they started. There are other datapoints to choose from that will give you more information.

Are you entering the schedules via scripting? If so, then you might need to reset the schedule cache by using this script:

```auto
system.schedule.resetScheduleCache(<line path> )
```

---

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [May 15, 2013, 6:08pm UTC](https://forum.inductiveautomation.com/t/7-6-auto-schedule-start-problems/6479/6 "2013-05-15T18:08:42Z")

</div>

According to the analysis screen, none of the runs that did not auto start are scheduled and did not autostart:

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/f/f6c2f555edb1242a24e1648763759a550ef94b9e.png)  

I tried putting the cache reset code on a button but that didn’t do anything. It still won’t find the schedule entries for today or yesterday for a couple of the lines.

EDIT:

I also looked in the schedule database table and it does look like there are datetimes entered in for the start, but for some reason it doesn’t think they are started:

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/b/be01df3637e70a16699067e0ec103e0beb7d6156.png)

---

<div class="post-metadata">

**Author:** ![Pete.Low](https://avatars.discourse-cdn.com/v4/letter/p/f05b48/32.png) [@Pete.Low](https://forum.inductiveautomation.com/u/Pete.Low)\
**Post date:** [May 15, 2013, 6:28pm UTC](https://forum.inductiveautomation.com/t/7-6-auto-schedule-start-problems/6479/7 "2013-05-15T18:28:18Z")

</div>

And you are certain those lines are still set to auto start in the production model?

---

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [May 15, 2013, 6:46pm UTC](https://forum.inductiveautomation.com/t/7-6-auto-schedule-start-problems/6479/8 "2013-05-15T18:46:42Z")

</div>

Yep, that’s the first thing I checked. 😛

---

<div class="post-metadata">

**Author:** ![Pete.Low](https://avatars.discourse-cdn.com/v4/letter/p/f05b48/32.png) [@Pete.Low](https://forum.inductiveautomation.com/u/Pete.Low)\
**Post date:** [May 15, 2013, 8:48pm UTC](https://forum.inductiveautomation.com/t/7-6-auto-schedule-start-problems/6479/9 "2013-05-15T20:48:45Z")

</div>

Please export the log file and attach it here.

I’m trying to determine the link between the runs not starting and not being able to see the scheduled runs.  
When did this start?  
Is it only affecting certain lines?  
Do you have another copy of the project active in the gateway projects?

---

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [May 15, 2013, 9:08pm UTC](https://forum.inductiveautomation.com/t/7-6-auto-schedule-start-problems/6479/10 "2013-05-15T21:08:27Z")

</div>

Ok, I have attached the log file.

> [@](#):
>
> When did this start?

Looks like it started on Monday for one of the lines and then on Tuesday for the other.

> [@](#):
>
> Is it only affecting certain lines?

Yes, I have 3 lines and two are not auto starting, or I can't select the scheduled run for those two lines.

> [@](#):
>
> Do you have another copy of the project active in the gateway projects?

No, I only have 1 of this project active on my gateway. I do have other projects on the gateway, but none of them use the production stuff and the production model is disabled on all other projects.

[wrapper20130515.log](https://us1.discourse-cdn.com/inductiveautomation/original/2X/d/d34fd26bdeda1f77d7d91ef9630268e56e13b55d.log) (619 KB)

---

<div class="post-metadata">

**Author:** ![Pete.Low](https://avatars.discourse-cdn.com/v4/letter/p/f05b48/32.png) [@Pete.Low](https://forum.inductiveautomation.com/u/Pete.Low)\
**Post date:** [May 15, 2013, 10:53pm UTC](https://forum.inductiveautomation.com/t/7-6-auto-schedule-start-problems/6479/11 "2013-05-15T22:53:02Z")

</div>

Actually, I need the file (logs.bin.gz) from export link on the gateway console page.

---

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [May 15, 2013, 11:05pm UTC](https://forum.inductiveautomation.com/t/7-6-auto-schedule-start-problems/6479/12 "2013-05-15T23:05:17Z")

</div>

Ahhh, ok here you go. I had to change the file extension to .zip because it would not allow me to upload a .bin file. You’ll have to change it back:

[20130515logs.zip](https://us1.discourse-cdn.com/inductiveautomation/original/2X/5/589fc933071dd79ebc8edbd1e680f7d9e25e87ba.zip) (536 KB)

---

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [May 16, 2013, 11:31am UTC](https://forum.inductiveautomation.com/t/7-6-auto-schedule-start-problems/6479/13 "2013-05-16T11:31:20Z")

</div>

This morning one of the lines that was having a problem started up fine and the line that’s been good (clean side) did not start and I can’t see the schedule entry for today. The 3rd line (Stick Pit) is still not working either. So, now it seems to be random. I’ll include another export with the data from this morning.

[logs20130516.bin.gz](https://us1.discourse-cdn.com/inductiveautomation/original/2X/f/ff69b0b38f6e16ec97dc53915aae50647c6bba33.gz) (537 KB)

---

<div class="post-metadata">

**Author:** ![Pete.Low](https://avatars.discourse-cdn.com/v4/letter/p/f05b48/32.png) [@Pete.Low](https://forum.inductiveautomation.com/u/Pete.Low)\
**Post date:** [May 16, 2013, 4:26pm UTC](https://forum.inductiveautomation.com/t/7-6-auto-schedule-start-problems/6479/14 "2013-05-16T16:26:27Z")

</div>

OK, let’s see if the online session we had today fixes the issue. The runs were being started but it appears the line was not notified of the start. I have not seen this before.

Regards.

---

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [May 17, 2013, 11:05am UTC](https://forum.inductiveautomation.com/t/7-6-auto-schedule-start-problems/6479/15 "2013-05-17T11:05:46Z")

</div>

Hey Pete,

The same thing happened this morning. The clean side started ok but the wet side and stick pit lines did not. Looks like the same issue. FYI.

---

<div class="post-metadata">

**Author:** ![Pete.Low](https://avatars.discourse-cdn.com/v4/letter/p/f05b48/32.png) [@Pete.Low](https://forum.inductiveautomation.com/u/Pete.Low)\
**Post date:** [May 17, 2013, 5:10pm UTC](https://forum.inductiveautomation.com/t/7-6-auto-schedule-start-problems/6479/16 "2013-05-17T17:10:45Z")

</div>

Hi Doug,  
The 7.6 RC2 has some fixes on the alarm errors we were seeing. They could possibly be tying up memory.  
Would it be possible for you to update?

-Pete Low

---

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [May 17, 2013, 5:34pm UTC](https://forum.inductiveautomation.com/t/7-6-auto-schedule-start-problems/6479/17 "2013-05-17T17:34:43Z")

</div>

Yeah, I was going to update the servers tomorrow to try and fix some of the other issues that I am seeing with the alarming stuff. I can see if that makes a difference on Monday. I looked in the database tables that you were looking in yesterday and there are a run id’s entered in for the lines that aren’t actually running. Will I have to manually put End dates in for those runs like you did yesterday?

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/b/b506f1a8bc634dbdc53cf813a69e6475abca2c5f.png)

---

<div class="post-metadata">

**Author:** ![Pete.Low](https://avatars.discourse-cdn.com/v4/letter/p/f05b48/32.png) [@Pete.Low](https://forum.inductiveautomation.com/u/Pete.Low)\
**Post date:** [May 17, 2013, 5:38pm UTC](https://forum.inductiveautomation.com/t/7-6-auto-schedule-start-problems/6479/18 "2013-05-17T17:38:38Z")

</div>

Yes, I would so that we can see any new changes easier.

-Pete Low

---

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [May 20, 2013, 11:46am UTC](https://forum.inductiveautomation.com/t/7-6-auto-schedule-start-problems/6479/19 "2013-05-20T11:46:10Z")

</div>

Hey Pete,

I upgraded to 7.6 RC3 over the weekend. I also didn’t add the schedules for Monday until I upgraded the servers. It still did not fix the issue however, though 2 lines started today instead of just 1. The 3rd line is still not reporting as started. It’s also putting in a double run entry for one of the lines still as well, it also did this on Friday and which line gets the double run is not always the same. Seems to be random. FYI.

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/1/1424674c5c467ae20ab60ed9c6a5bb34ce5d24da.png)

---

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [May 21, 2013, 11:13am UTC](https://forum.inductiveautomation.com/t/7-6-auto-schedule-start-problems/6479/20 "2013-05-21T11:13:06Z")

</div>

Hey Pete,

FYI, restarting the master node did seem to fix the issue. Everything started up without incident this morning. Thanks for your help!

[Next page](https://forum.inductiveautomation.com/t/7-6-auto-schedule-start-problems/6479.md?page=2)
