Mythtv, auto shutdown no longer working, scheduler.cpp ?

Following a recent update the automatic shutdown of my backend is no longer working (well, at least not reliably).
I have 3 scripts set up in the relevant sections of the mythtv-setup to check if myth is ok to shut down, set the new wakeup time and perform the actual shutdown. These scripts still work alright, but the backend is not initiating the shutdown any more in some cases.
Lots of trial and error makes me think that this is somehow related to scheduler.cpp, but I am not sure if this is the case or how to fix it.
I think I have established a pattern:
Scenario 1:
- Boot backend
- do nothing else (e.g. start remote frontend or mythfrontend on the backend)
- automatic shutdown does not work
Scenario 2:
- Boot backend
- start remote frontend
- shut down frontend
- automatic shutdown does not work
- restart backend service (without reboot)
- automatic shutdown works
I also notice that in scenario 2 (when automatic shutdown works) there are a whole heap of these kind of messages right until shutdown occurs:
2013-04-29 19:18:07.592125 N [660/738] Expire autoexpire.cpp:641 (SendDeleteMessages) - Expiring 156 MB for 1073 at 2013-04-13T11:50:20Z => Hulk
2013-04-29 19:18:07.632899 E [660/660] CoreContext mainserver.cpp:2610 (DoHandleDeleteRecording) - ERROR when trying to delete file: myth://192.168.1.103:65103:6543/1070_20120126203445.mpg. File doesn't exist. Database metadata will not be removed.
2013-04-29 19:18:07.889638 E [660/660] CoreContext mainserver.cpp:2610 (DoHandleDeleteRecording) - ERROR when trying to delete file: myth://192.168.1.103:65103:6543/1022_20120206192600.mpg. File doesn't exist. Database metadata will not be removed.
In scenario 2 (successful) I see the following in the log just before the above auto expire stuff:
Scheduler scheduler.cpp:2307 (HandleRunSchedulerStartup) - Scheduler: Seem to be woken up by USER
then a whole heap of auto expiry stuff and finally:
Scheduler scheduler.cpp:2862 (CheckShutdownServer) - CheckShutdownServer returned - OK to shutdown
2013-04-29 19:19:55.276775 N [660/735] Scheduler scheduler.cpp:2947 (ShutdownServer) - Running the command to set the next scheduled wakeup time :-
sudo /home/laffi/scripts/MythSetWakeup 1367229120
2013-04-29 19:19:55.372582 N [660/735] Scheduler scheduler.cpp:2974 (ShutdownServer) - Running the command to shutdown this computer :-
sudo /home/laffi/scripts/MythShutdown
In scenario 1 (unsuccessfull shutdown) I also get
Scheduler scheduler.cpp:2307 (HandleRunSchedulerStartup) - Scheduler: Seem to be woken up by USER
and then autoexpiry, but then, once a frontend connects:
ProcessRequest mainserver.cpp:1385 (HandleAnnounce) - adding: frontend as a client (events: 0)
I don't get autoexpiry of files and no shutdown, both of which I believe are initiated by scheduler.cpp
I also noticed the following in the logs when auto shutdown does not work:
2013-04-29 15:40:36.046359 I [648/848] ProcessRequest mainserver.cpp:1385 (HandleAnnounce) - adding: mythbackend as a client (events: 1)
which does not seem to appear in the logs when auto shutdown works.
Any ideas ? I have found very little (next to none) regarding scheduler.cpp when searching.

The other side of the VPN is a TMG server hosted at our main office.  I can connect to it off site, and others were connected to it remotely as well, but for some reason users at that remote site can no longer connect to the VPN.
I talked to my ISP wondering if there was something that was blocked due to the change from dhcp to static IP addresses, but they don't see anything.

Similar Messages

  • Scheduled shutdown no longer works in Keynote 4.0 iLife 08

    Those of us using Keynote, a large LED monitor and a Mac Mini as a Digital signage system have found that the new Keynote 4.0 in iLife 08 will not allow a scheduled shutdown. This worked well under the old version.
    We had been on iLife 06 and 10.4.9. We found that Keynote crashes every few days when you try and run a show 24/7 so we had used the energy saver settings to have it shut down at 1AM and restart at 2AM. This was working well, the only trick was to always name the current slide show the same thing and have Keynote auto launch at startup and run the slideshow.
    Last week we reimaged a Mini with 10.4.10 and iLife 08 and put in place of the 10.4.9 ilife 06 mini, the first time it was suppose to shutdown it hung, there was an error on the screen that said "Keynote had canceled shutdown".
    Testing proved the following:
    Schedule shutdown does not work at all when a Keynote presentation is running. You get this error.
    "The application Keynote canceled shutdown. To try again quit Keynote and choose shut down from the Apple menu"
    It will auto shutdown and startup IF a Keynote slide show is NOT running.
    It will do a scheduled shutdown if just the Keynote App is running.
    If the Keynote app is running a normal shutdown command will work.
    Does anyone know a work around or a fix?

    The thread "Keynote Cancelled Shutdown: how do I troubleshoot?" has recently posted a possible solution but is there an explanation or a fix planned?

  • VW WIFI Auto-On No Longer Works

    I updated my Droid Incredible yesterday to GB 2.3.4 and now the VW WIFI Auto-On app is no longer working.  It had actually been working poorly over the last couple of weeks, whereby it wasn't turning the WIFI radio off.  Now it is no longer turning the WIFI radio on or off.  Anyone else having issues?

    Are you still unable to turn the WiFi On or Off after the SW update on your phone?
    I have thoroughly researched this and did not find this to be a reported known issue by other users after the SW update. Have you tried performing a soft reset or hard reset after you updated the SW on your phone? I recommend performing the soft reset first and if you are still unable to turn the WiFi On or Off then performing the hard reset.
    Please post back if you are still unable to turn the WiFi On or Off and I'll be more than happy to further assist you.

  • 10.5.2 combo update - auto sleep no longer works

    Since performing this upgrade yesterday, auto sleep no longer functions. The screen saver blanks the screen at the correct time but that's as far as it goes.
    I've repaired permissions, tried resetting the Energ Saver defaults, resetting the SMC and deleting the com.apple.PowerManagement.plist file and am no further forward.
    Is anyone else experiencing auto sleep issues after the 10.5.2 upgrade?

    Okay. I think I've solved auto-sleep. At least for my system. It requires going into to terminal and changing the minutes of 'disksleep'. It's very easy and non-invasive. First check your pmset settings in termnal by typing: pmset -g
    You should see something like this:
    Active Profiles:
    Battery Power -1
    AC Power -1*
    Currently in use:
    sleep 10
    sms 1
    displaysleep 5
    hibernatefile /var/vm/sleepimage
    halfdim 1
    lidwake 1
    ttyskeepawake 1
    acwake 0
    autorestart 0
    hibernatemode 3
    Hibernate Free Ratio 5
    womp 0
    disksleep 12
    First, you want to be sure your hibernatemode is set at 3 (the default in Leopard). If it isn't you can change it by typing: sudo pmset -a hibernatemode 3
    This is the command that you will now use to change what I think fixes auto-sleep. If you notice 'sleep' and 'displaysleep' are set at the minutes you have set them at in your Energy Preferences (5 and 10 in my example above). You can just leave these settings. 'Disksleep' is the command that should tell your computer to hibernate (auto-sleep) and it is by default set at whatever your 'sleep' setting is. What I did was change 'disksleep' to 12 (again the command in terminal for this would be: sudo pmset -a disksleep 12).
    My theory is that by seperating the 'disksleep' setting from the 'sleep' setting by a couple of minutes, the command to hibernate is somehow stronger or clearer. At any rate it worked for me when nothing else would. If for some reason the computer doesn't hibernate at exactly 12 minutes, give it an hour and see if it does sleep in that time. You can test this with AC power and then with battery. Sometimes the AC is easier to get auto-sleep working for some reason.
    If you want to save your pmset settings just copy your pmset -g query in a text file and you can revert to whatever your default was by then using the sudo pmset -a command.
    The first step before you change the pmset settings is to make sure that no third party software is keeping your system awake. Console activity should display that, whether it's a program or a widget. Obviously you need to either uninstall or deactivate the offending program or widget before moving forward. Also make sure you've completely followed all the previous suggestions for troubleshooting lack of auto-sleep (pmu, pram, safe mode resetting... de-selecting preferences (for example: uncheck all boxes in advanced settings for Bluetooth if you use bluetooth devices or uncheck Wake for Ethernet network administrator access in Energy Preferences Adaptor Options).
    Hope this helps someone else. I've been struggling with this issue since leopard came out. And through trial and error worked my way up to this. Let me know if it works for you.

  • Shortcut to SHUTDOWN no longer works

    I used to shut down my computer by punching COMMAND + EJECT, but ever since I updated to OS 10.4.9 yesterday, that feature no longer works. Any thoughts ???

    The ctrl-eject key combination will likely still work if you hold down the Eject key a little longer than before - the 10.4.9 update added a delay to the eject key that affects all key combos involving that key.
    http://docs.info.apple.com/article.html?artnum=305268
    Your profile lists a wireless keyboard - out of curiosity, does this hint to bypass the delay work for you?
    http://www.macosxhints.com/article.php?story=20070316233431364

  • Safari 5.1.4 Lion auto-click no longer works for me

    I have a bookmarks folder on a MacBook Pro that is set to auto-click, it launches in tabs several sites that I look at every morning.
    I upgraded to 5.1.4 Lion last night, and this morning, the auto-click didn't work.
    It works with Safari 5.0.5 on the same machine.
    It works with Safari 5.1.3 on the same machine.
    It works with Safari 5.1.4 Snow Leopard on my iMac.

    Hi Steve,
    Try disabling the Lion "resume" feature...
    Open System Preferences > General
    Deselect:  Restore windows when quitting and re-opening apps
    Now go to ~/Library/Caches/com.apple.Safari/Cache.db
    Move the Cache.db file to the Trash.
    Restart your Mac for changes to take effect then try Safari.
    ~ (Tilde) character represents the Home folder.
    For Lion:   To find the Home folder in OS X Lion, open the Finder, hold the Option key, and choose Go > Library

  • Automatic shutdown no longer works as before

    Since installing Mountain Lion the shutdown at a specific time seems to only work when the computer is awak. With Lion my computer would shutdown at 10 pm everyday and start back up at 4pm when I returned from work all ready for me. But with Mountaion Lion it never does this. Testing this reviles that it only works if the computer is awake. So I wil have to make sure my computer never goes to sleep (where's the engery savings in that?) or no longer use the automatic shut down feature and just shut it down when I'm finished like I had to do in the 90's with Windows. I'm really hoping this is not the new way for this teature to work and that it was only an oversite and wasn't found during QA (you do have a QA department doen't you?). Please return this to it's previous working order. Leaving my computer awake for hours just so it can shut down automatically makes no sense.

    Hello:
    I suggest you put the Mac to sleep and never shut it down (unless you are going to be away for several days).  A Mac (when sleeping) consumes a minimal amount of energy.  IMHO (not a scientific analysis) electronics fail sooner when repetitively turned off and on.
    Barry

  • ITunes auto sync no longer works under Lion

    SInce I upgraded to Lion, iTunes no longer automatically starts and syncs when I connect my iPhone or iPad.
    I checked the preferences:  both have the "start iTunes" automatically box checked.
    This is also the newest edition of iTunes:  10.4

    The fix involves iTunes helper.
    Go to login items and delete the one that's there.
    Then drag a new version of iTunes helper from the iTunes package to login items.
    I'm finding the transition to Lion more problematic than normal. Apple did not do a particularly good job of working the bugs out of this version of Mac os.

  • Premiere auto-sync no longer works

    Hi there,
    I'm working with dslr footage at 48khz and external audio at 48khz as well, I managed to auto-sync some files with premiere cc, but now i uploaded to cc 2014 and it just does't auto-sync anymore, non the cc version nor cc2014. I tried to uninstall and reinstall but still doesn't seem to work anymore when i merge clips... it just adds the audio file to the merge clip but not in sync, as if it would not be analyzing the files... just puts them together from the beginning.
    Any idea? any help?
    thank you
    Alex

    Hello Michelle,
    Thank you for responding to my post.  It appears that the issue is now resolved.  It seems to have been fixed independent of anything I had done to fix it.  I'll have to assume that there was an issue with the Verizon network and Windows Phone platform....
    So you're aware of what I did for troubleshoot...
    1. Verified No changes to work or Hotmail servers
    2. No new apps installed/uninstalled
    3. Restarted the phone several times
    4. Uninstalled the Hotmail and work email accounts and re-installed
    5. changed the sync settings several times (ranging from always up to do date to manually check)
    6. Check all other phone settings to find possible changes made without my knowledge...did not detect any

  • Email auto-sync no longer works

    I have the HTC M8.  Been running like a champ since I got it in January.  This week, however, it suddently stopped syncing my work and personal email as scheduled.  Work is every 15 minutes and personal is as items arrive.  Only way for me to get email now is to manually sync.  Can't seem to figure this one out.  Anyone have this issue and was able to fix it?

    Hello Michelle,
    Thank you for responding to my post.  It appears that the issue is now resolved.  It seems to have been fixed independent of anything I had done to fix it.  I'll have to assume that there was an issue with the Verizon network and Windows Phone platform....
    So you're aware of what I did for troubleshoot...
    1. Verified No changes to work or Hotmail servers
    2. No new apps installed/uninstalled
    3. Restarted the phone several times
    4. Uninstalled the Hotmail and work email accounts and re-installed
    5. changed the sync settings several times (ranging from always up to do date to manually check)
    6. Check all other phone settings to find possible changes made without my knowledge...did not detect any

  • Safari 3 Gmail auto-fill no longer working, latest Gmail software

    Gmail now indicates that auto-fill (of email addresses) is not supported on Safari. They say it will work with Firefox. Auto fill worked fine until the last Gmail client update, plus Safari 3.
    I feel it's in Apple's best interest to work this out with Google, quickly. Anybody else aware of this? I see multiple postings on Google's Gmail support site.

    I noticed this yesterday but I swear it was working this last week and I have had Leopard and newest Safari on the machine since Oct. 30. I noticed Safari wasn't pre-filling like it used to and assumed it had to do with 1password which I have loaded up recently.
    I hope Google and Apple get this worked out - I was just celebrating the fact that Safari is now able to let us use Google the way it should be used.

  • Norton Manage Logins Icon is missing with Firefox 4.0. My auto logins no longer work

    Norton has a manage logins icon that has disappeared from my toolbar when I updated to Firefox 4.0. Additionally, the Norton auto login function has stopped working, even though it appears fine when I look at the function in Norton.

    Symantec need to update their Firefox add-ons so that they are compatible with Firefox 4. They have released an update for Norton 360 to make it compatible with Firefox 4, for details see http://us.norton.com/support/kb/web_view.jsp?wv_type=public_web&docurl=20100720113635EN&ln=en_US
    I do not know about other Norton products, but if you run Norton LiveUpdate it should inform you if there are updates available. If no updates are available, you can downgrade to Firefox 3.6 if you want to use the Norton add-ons.
    To downgrade to Firefox 3.6 first uninstall Firefox 4, but do not select the option to "Remove my Firefox personal data". If you select that option it will delete your bookmarks, passwords and other user data.
    You can then install the latest version of Firefox 3.6 available from http://www.mozilla.com/en-US/firefox/all-older.html - it will automatically use your current bookmarks, passwords etc.
    To avoid possible problems with downgrading, I recommend going to your profile folder and deleting the following files if they exist - extensions.cache, extensions.rdf, extensions.ini, extensions.sqlite and localstore.rdf. Deleting these files will force Firefox to rebuild the list of installed extensions, checking their compatibility, and reset toolbar customizations.
    For details of how to find your profile folder see https://support.mozilla.com/kb/Profiles

  • Composing Mail auto link no longer works for URLs

    URLs typed into a new Mail message used to be auto linked while composing a new message. This feature has recently disappeared, I think with the 10.5.7 update.
    Is this a common experience?
    Is it possible that there's a corrupted preference causing this problem?
    James

    If the url link is preceded by www in the new message, it will show up in the recipient's inbox (and your sent box) as an active link. I don't recall mail.app ever creating the link while in the new message window?

  • Dolby Digital Auto Setting Doesn't Work w/4.4.2?

    I have a bunch of old movies that were recorded in stereo, pre-Dolby, and of course, a bunch of newer in Dolby Digital.  After upgrading to Apple TV iOS 4.4.2 yesterday, I now find that the Settings/Audio & Video/Dolby Digital/Auto setting no longer works. 
    I just started a new iTunes downloaded movie with Dolby Digital 5.1 sound and noticed that it was playing in PCM stereo-only mode for some reason.  I then tried a couple of other older iTunes downloaded movies with 5.1 sound, and they all were playing in the same old PCM stereo mode, as well.  To get the new movie to play in 5.1 sound, I had to manually change the above Dolby Digital setting to ON.
    A similar issue applies to older movies in pre-Dolby stereo.  If the above setting is set to Dolby Digital ON, those older movies switch from normal stereo to Dolby Digital 1.0/Center channel only sound, so I have to either switch the Dolby Digital setting to OFF or back to Auto, which defaults to PCM stereo for everything now.
    Is anyone else experiencing this change?  The Auto function worked perfectly for me before this upgrade.
    I'm using an Apple TV 2 with an optical connection to my audio amplifier.  The movie is streaming over my wired gigabit Ethernet home network from my iMac.

    Seems to be an issue for some of us since 4.4; see other thread.
    https://discussions.apple.com/message/16447970#16447970

  • Lightroom: Why does auto white balance no longer work after changing the camera calibration profile?

    I'm using NEF raw files from Nikon.
    Lets say for example I import a NEF file into Lightroom (v4) and click on 'auto' for white balance. The white balance in the image is  adjusted correctly (somewhat). However, if I then change the camera profile (in the camera calibration section) from 'adobe standard' to 'camera standard' then the white balance in the image becomes very wrong. I then have to set the white balance back to 'as shot' and correct it manually instead.
    Why would 'auto white balance' no longer work just because I change the profile from 'adobe standard' to 'camera standard'?
    Any ideas?

    Works as expected here...
    Which Lr version and what OS??

Maybe you are looking for

  • Moving average price not calculated properly

    Hi, For a consumable material moving average price(MAP) is getting calculated wrongly. There are 2 goods receipts taken in Jan'08 and Feb'08 at a unit price of 1250 and 1450 INR. Then there are around 10 Goods issues for a cost centre, Mvt type 201 t

  • Ipad mini stop working

    Ipad stopped working. It will not turn on, respond to power source, or connect to computer. I tried to resent the ipad but nothing is happening, just blank screen.I also purchesed a new cord but that wasn't the problem. What is wrong and how can I fi

  • Anyone know how to hook up two computers to High Speed DSL using one modem?

    any insight is appreciated

  • MacBook Pro - Broken Superdrive

    Hi all, The superdrive on my MacBook Pro (15", Early 2008) is broken, discs don't spin properly, I think because I always pick it up with one hand at the corner and I've bent the whole thing. Silly me. Anyway, seeing as I'm out of warrantly now, I wa

  • Average Function in SQL

    Hi SQL Fans, I'm strugggling with the Averge function in SQL and not sure how this works. I want to show the Average Discount a Sales Person has given away in a set date period based on ORDR and RDR1 SELECT T0.[SlpName], T2.[DiscPrcnt] as AVERAGE FRO