Legacy rcS.d script timeout

Folks,
I have a legacy script in /etc/rcS.d which can take quite a while to complete (over two hours).
During it's run we're getting this logged on the console 30 minutes (1800 seconds) into the script running:
Dec 13 13:11:49 svc.startd[7]: svc:/milestone/single-user:default: Method or service exit timed out. Killing contract 32.
[ milestone/single-user:default timed out, fault threshold reached (see 'svcs -x' for details) ]
I thought this would be simple matter of changing the "start/timeout_seconds" property of the svc:/milestone/single-user service to zero (from 1800) before rebooting the system, but this doesn't appear to have had any effect.
Looking at how the scripts get run, I see they are run using the /lib/svc/bin/lsvcrun command (which I find no documentation for) -- I'm wondering if this is imposing some other type of timeout?
When this message gets logged, my script get abandoned (inherited by init) and the rest of the system starts up (which I don't want while this is running).
Anyone have any insight into this?

Two hours doesn't seem a reasonable time for startup
Do you actually need to make other processes wait on this one, or could you just write a wrapper script that exits quickly so that the startup can continue in the background?
Darren

Similar Messages

  • Issue with script timeouts - trying to send email mail shots - hosting recommendations?

    Background is this - I look after a site for a recruitment agency, which has a backend mySQL database.
    It includes a table of potential candidates, which the site owner can search based on various criteria and then send all the returned candidates an email about potential jobs they might be interested in.
    I'm using an off the shelf script to send the emails, and have jumped through a few hoops to get this to work, but it looks like we need to move hosting unfortunately.
    The script is able to limit emails so that the hosting company doesn't get black flagged as a spammer.
    I've set it up with a progress bar in a new window so the site owner can see progress, but easily get back to the rest of the site.
    But where we have come unstuck is the script timeout on the server - so even though its set to send emails slowly enough, ie under 500 emails an hour, because of that slow pace, it fails if it takes more then five minutes to send them all as the script times out.
    My understanding is that the script includes a line to reset the script timeout value to 0, so enabling the script to keep running until all the emails have been sent. But unfortunately our current hosting company does not allow the script timeout to be reset at the PHP level.
    So my question is this - is anyone doing anything similar, and if so, can you recommend any hosting company that does allow the script timeout to be reset at the PHP level?
    Because at the minute it seems like a frustrating catch-22 - slow it down to get around the spam issue, and it won't run long enough to send all the emails. Speed it up, and it falls foul of the script timeout.
    Any advise on this, or hosting suggestons most welcome!
    Thanks.

    Although there is an AppleScript Forum, Automator can run AppleScripts, so sometimes things can go in either forum. In your script, other than not setting a recipient, you are just getting one of the persons. You need to get a list of your contact information, then build your outgoing messages from that list - for example:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #FFEE80;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    set theEmails to {} -- this will be a list of email addresses
    set theNames to {} -- this will be a list of names for the greeting
    tell application "Address Book"
    activate
    set theGroup to (choose from list (get the name of every group) with prompt "Choose a Group") as text
    if theGroup is "false" then return -- cancel
    repeat with aPerson in (get every person of group theGroup) -- build email and name lists
    set the end of theEmails to the first item of (get the value of the email of aPerson) -- just the first address
    set the end of theNames to the first name of aPerson
    end repeat
    end tell
    tell application "Mail"
    repeat with anItem from 1 to (count theEmails) -- make a new message for each entry
    tell (make new outgoing message at the front of outgoing messages with properties {subject:"Test Mail"})
    set visible to true
    get item anItem of theNames
    if the result is missing value then -- no name
    set the content to "message"
    else
    set the content to "Dear " & the result & "," & return & return & "message"
    end if
    make new to recipient at the end of to recipients with properties {address:(item anItem of theEmails)}
    end tell
    end repeat
    activate
    end tell
    </pre>

  • Script timeouts (Error #1502) and WebService component

    Hello Flex community,
    I am getting a script timeout (error #1502) when I am calling a SharePoint Web Service (CopyIntoItems) when trying to upload large files (greater than 40 MB).
    The error does not occur when using the Web Service for smaller files. The large files can be uploaded directly to SharePoint using the web interface therefore it is not a back-end SharePoint issue.
    I believe the issue has to do with the logic in the WebService Flex component, however I am not sure how to optimize it and I cannot break down the file into smaller chunks as it needs to be together in order to upload with the SharePoint field information.
    Anyone have any ideas on how I can resolve this issue?
    Thanks,
    Mauricio

    I can't say exactly what is big binding because it depends on combination of factors: how fast your machine is, how big the Excel model is, how many components you have etc. Generally if you have bindings with several thousand cells it's going to cause the timeout problem. The problem is that we use Flash player in the application, and if some operation takes longer than a minute it times out. So, if getting data from the big bindings took too long, the flash player stops the operation and you have this timeout error.
    You see the timeout error only if you have debug version of Flash player installed. If you have release version installed, you don't see any erors, but you notice strange things, for example selecting component on the canvas does not cause property sheet to display. Release version of Flash is faster, so you can try to remove debug flash player and install release and there is chance that it will work.
    FP1 version is going to include some optimisations to reduce this problem and allow working with larger files.
    Margaret

  • Script Timeout error in classic ASP

    Hi ,
    In classic asp , i am using Stored procedure to fetch the result from oracle database . my database have 85Lakhs records . approx. 30 records are being inserted into the table. at the same time some users trying to fetch the data from same table.now i am getting script timeout error after long wait .it was an intermittent issue (sometimes it is working and sometimes it is not working). i thought it was because of performance issue with stored procedures . but in oracle Readers cannot block writers and Writers cannot block readers.so no issues with database side.i couldn't replicate the issue . i am wondering what will be the rootcause for this issue. is there anything i need to modify with the script side.by increasing the timeout property is the only solution?i tried to modify the timeout property to 180 seconds in classic asp page. please give your valuable suggestion.
    Thanks.
    Regards,
    Boss

    Hi,
    This error is thrown by the Flash Player when a script takes more than 15 seconds to execute i.e. if your script executes continously for 15 seconds with out letting the Flash Player render the UI, this error is dispatched. Probably the data returned is pretty huge, try splitting the data or use pseudo threading as explained in the URL below.
    http://blogs.adobe.com/aharui/2008/01/threads_in_actionscript_3.html
    http://www.actionscript.org/forums/showthread.php3?t=185320
    Hope this helps.

  • Get IIS to respect the script timeout of CF

    Hi , how can I get IIS to respect the script timeout in CF if the timeout is longer in CF?

    Not sure what you mean.  One of the timeouts will have to take place before the other.  If you want the CF timeout to take precedance then set it shorter than the IIS timeout.  ????
    What timeout do you mean from IIS?

  • Shell Script: Timeout and return error if Sqlplus hangs

    Shell Script: Timeout and return error if Sqlplus hangs
    Dear all,
    This morning, our production database hung with lots of ORA-600 and 7445. The issue has been escalated to Oracle Tech support but my monitoring script which tries to make a connection every 5 mins to the database to see if its up, did not alert me. The reason is that, it connected to the database and hung, never came out to report an error and so I never got alerted until a user called me.
    Can any one tell me how I can exit from the sqlplus block if I dont get a response in x seconds? This sqlplus block is being called with in a shell script.
    Any help is highly apprciated.

    I don't know of anything built into any shell scripting language that would do this, no. I'm not a Perl programmer, but I have a vague recollection that Perl may have something useful here.
    From the "separate thread" part of my comment, though, you could certainly spawn a separate thread (thread 2), have thread 2 wait a period of time, then look for a message from thread 1 and throw an error if the message hadn't been sent. I don't know that I'd be for writing multi-threaded shell scripts, though. The heartbeat also gives you a layer of redundancy so that something is monitoring the monitor in case that process stops working.
    Justin

  • Cleanup FrontPage HTML Script Timeout

    I am havingone heck of a time with the script in thr
    extension titled
    Cleanup FrontPage HTML. My website has almost 1850 pages and
    the script seems to do an OK job stripping the FrontPage HTML. My
    problem is that I want to strip the FrontPage HTML from the whole
    site and, after about 155 pages, I get a dialog box with a message
    saying that the script has been running a longtime and asking me if
    I want to continue. When I click the Yes button in the dialog box
    indicating that I want to continue, the script does NOT continue.
    It merely pops up again with the same question a minute or two
    later. It simply stays on the same webpage and doesn't process any
    more pages.
    How can I process ALL of my pages with this script without
    getting a message that the script has been running a long time?
    HT4E

    I'm using Dreamweaver 8 on Vista....same problem on XP SP
    2.

  • Scripting timeout?

    Hi All
    I'm trying to automate some report generation using the SAPGUI scripting (currently from VBscript, but can change to VB.NET if needed).
    A couple of the reports take an exceptionally long time to generate and, although they work when run by the user, when the same commands are sent from a script, I get an error box titled "Sapgui" saying "Failed to add message into clients message queue. Terminating client".
    Is there some way to extend to time allowed after sending the F8/execute command so that slow reports have a better chance of finishing?
    Thanks
    Derek Dongray

    Hi there,
    Have you found a fix yet?
    I have run into a similar problem when running iterations. One slight difference: I'm using WaitforPage. But the same thing happens - the script stops running at the second iteration.
    I'd appreciate your assistence?
    Regards,
    Ben

  • Very Strange #1503 Script Timeout Error...

    So I created an as3 flash 9 app under Windows using cs3.
    Worked great ... until I tested it on Mac. It crashes both safari
    and firefox only on macs.
    I decided to load it up in cs3 on Mac. I received some errors
    about the fonts not being available, so I changed them to default
    _sans or whatever and thought I had solved my problem. I tried
    "Test Movie" and got the following:
    Error: Error #1503: A script failed to exit after 30 seconds
    and was terminated.
    at flash.errors::ScriptTimeoutError$iinit()
    at flash.display::MovieClip$iinit()
    The weird thing was that it wasn't even running 1 second when
    this was output.
    It gets better though, I delete all the actionscript, and
    every layer (added a blank layer) in the movie, and all the assets
    and I STILL GET THIS ERROR!
    Whats going on? I'd rather I didn't have to recreate all the
    layers and copy over the actionscript to a new movie .... maybe
    there is a setting somewhere? Maybe its related to the font
    problem? This is my first flash movie and I'm not sure where to
    look at this point, google didn't help at all...
    Thanks in advance!

    Thanks OMW_Support. That was real neat support. Thanks, it worked!
    Essentially, OMW gives an error if you try to install it into 7.3.4 home, so I had actually installed it into a different home. But while running the startOMW script, as you pointed out the ORACLE_HOME variable was set to 7.3.4; changed it to the second ORACLE_HOME and it worked.
    Kind regards
    Manu
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Oracle Migration Workbench Support:
    If you are not running Oracle 8.1.7, then you need to install Oracle Migration Workbench 1.3.0.0.1 into a separate Oracle Home.
    The installer will install the required 8.1.7. client libraries and you can then use it to migrate to an Oracle8 or Oracle8i database. The key issue here is that when the Installer asks you to select or enter an Oracle Home, that you enter a new Oracle Home. (If you already had 8.1.7, then you'd have been able to install into an existing 8.1.7 Oracle Home. However, because you are not, then you need to install into a separate Oracle Home).
    ORACLE_HOME needs to point to this new Oracle Home when starting the Migration Workbench. Your log shows that it is pointing to an Oracle 7.3 home, which is incorrect.
    Please note that the Migration Workbench only supports migrations to Oracle8 and Oracle8i.<HR></BLOCKQUOTE>
    null

  • Shell Script Resource-Timeout error

    Hi!!
    I have an issue with the Shell Script Resource, the problem is as follows:
    When I created a user in this resource and appears a error message:
    com.waveset.util.WavesetException: An error occurred adding user 'user01' to resource 'Shell Script'. com.waveset.util.WavesetException: Script failed waiting for "_,)#+(:" in response "" com.waveset.util.WavesetException: Script processor timed out with nothing to read and the following unprocessed text: "".
    I added the timeout property = 300 000 in my shell script is as follows:
    <ResTypeAction restype='Shell Script' timeout='300000'>
    but it doesn't work.
    I had the IDM 8 with the patch 4 but the problem beging when I did upgrade to patch 4 to 6.
    Does anyone knows what could be the problem.
    Thanks in advance!

    Hello!
    That isn't the problem the test connection works fine but when I try provisioning a user the shell script execute some instructions, in the shell script I need to set the timeout property in order to give more time to finish execute the instructions before the script execute the following command.
    I tested the timeout property in the shell script and work to fine for IDM 8 patch 4 I upgrade to patch 10 and stopped to work.
    Does anyone knows What could be the rigth way to set the timeout property in a resource action for shell script resource?
    Thanks...

  • Session Time out or script Time out

    Hi Guys,
    Can someone advise me here.
    I have a form that asks several questions, Im using DW and an
    access database, this all works....BUT
    Some users seem to take a long time to fill in the form and
    they get an error and i think its as their session has timed out..
    When I used DW to make my log in page it added
    Server.ScriptTimeout = 90
    Is this the code i need to adapt to lengthen time for the
    user?
    Any support is very welcome.
    Thanks

    Thank you I will give it a go,
    I wasnt sure if I was using 'session script timeout 'if i
    could use 'session timeout' too.
    Is there any particualr place on my page I should use the
    'session timeout'.?
    Say I have it on the log in page....when the user goes to my
    form to fill it in will I also need to add the session timeout on
    the forms page to, or will it be enough to have set this when
    logging in?
    Thanks again
    Tag

  • An error occured while running a script

    On launching Bridge, I an consistently receiving the following error.
    "There were problems loading a startup script the last time bridge was launched. Would you like to load them now?"
    Clicking [Yes] produces the following error:
    An error occurred while running a script. The script may not be compatible with this version of Bridge. Check for available updates by selecting the Updated command in the Help Menu
    Error in /Library/Application Support/Adobe/StartupScripts/AdobeStockPhotos.jsx
    Line 54: result = eval(script);
    Timeout while waiting for the engine
    I am running Bridge Mac CS2 - 1.0.4.6
    Adobe Stock Photos Update 1.0.8
    Power Mac G4 733 / OS X 10.3.9
    Updating either Bridge or Adobe Stock Photos does not correct the behavior.
    And curiously Stock Photos appears in the Favorites pane and appears to function.
    Any help ?
    Kurt Griffith.

    Good day,
    The Bridge v1.04.6 PS CS2 I am presently using has always come up with the Internet connection Error Message and none of my large imaging machines are connected nor will they ever be connected to the Internet.
    Is there a setting to do away with the Bridge trying to connect on my
    behalf ? I've spent a lot of time trying to 'fix' a problem that shouldn't have arisen.
    It wastes a lot of time trying to do something, which I do not want it doing.
    Thanks for any assistance you can provide in the matter. And please
    keep cranking out your wondrous though not totally controlable software, or so it seems.
    Best - Stephen Graham

  • Script Time out error in classic asp

    Hi ,
    In classic asp , i am using Stored procedure to fetch the result from oracle database . my database have 85Lakhs records . approx. 30 records are being inserted into the table. at the same time some users trying to fetch the data from same table.now i am getting script timeout error after long wait .it was an intermittent issue (sometimes it is working and sometimes it is not working). i thought it was because of performance issue with stored procedures . but in oracle Readers cannot block writers and Writers cannot block readers.so no issues with database side.i couldn't replicate the issue . i am wondering what will be the rootcause for this issue. is there anything i need to modify with the script side.by increasing the timeout property is the only solution?i tried to modify the timeout property to 180 seconds in classic asp page. please give your valuable suggestion.
    Thanks.
    Regards,
    Boss

    Hi,
    How big is your EJB application? i.e. how many EJBs do you have?
    Would you please try to deploy your application using the command line tool "asadmin" and see if it is also hanging? This will help us to tell if the deployment process that is hanging or the deploytool itself that is hanging. The "asadmin" tool is located under $INSTALL_HOME/bin.
    Thanks,
    Q^2

  • Adjusting queuestatistics.vbs timeout in MSMQ management pack

    Hi all,
    I'm running SCOM 2012 R2 and my question is specific to the MSMQ 6.0.6700.88 management pack.  I'm seeing a few alerts titled
    "Operations Manager failed to start a process", with the alert details saying "Forced to terminate the following process started at x:xx:xx PM because it ran past the configured timeout 300 seconds"
    Command executed: "C:\Windows\system32\cscript.exe" /nologo "queuestatistics.vbs" server.domain.local false
    One or more workflows were affected by this.
    Workflow name: many
    Instance name: many
    Instance ID: many
    etc etc - we've all seen these errors before.
    When I run the script manually on the server as local system, the script runs fine, but takes around 4 mins (360 seconds) to finish executing. 
    I want to adjust the timeout threshold for this script, and I understand that for this script timeout, there is no override available via the SCOM console, and I need to go into the management pack.
    I've exported the management pack and I've found the vbs script contained within the management pack, however I was just looking for some guidance on what XML field(s) I should change to adjust the timeout?  Searching through the management pack I've
    found several areas that might be what I'm after.
    I guess I'm just after someone to point me at the right DataSource or Rule ID or something to edit, rather than me just taking a guess and reimporting a busted management pack that I then need to clean up.
    Cheers,
    Noel.
    http://www.dreamension.net

    Thanks Michael! 
    That didn't quite work out for me, but I eventually got it working.  At first I did change the <TimeoutSeconds> value under the script as per your diagram, and after reimporting the management pack and flushing the health service cache for good
    measure, the script still failed with a 300 second timeout.
    However I started looking through the rules in more detail, and I found some rules that reference a datasource with "Queue.Statistics" in the name.  I figured that's a close enough match to the VB script that's also running.  Here is a screen grab...
    There were several rules & datasources that had "Microsoft.MSMQ.2008R2.DataSource.Queue.Statistics" in the name, and I changed the "TimeoutSeconds" value for all of them to 360 seconds.  I then reimported the management pack again, and now the script
    is completing.
    Thanks very much for your assistance with this and giving me a nudge in the right direction.
    http://www.dreamension.net

  • JavaScript error:Timeout

    Hello,
    I am calculating the value for the barcode (3 of 9) using JavaScript to generate a non-interactive PDF. On the Adobe Sever (ES LC 8.2), after running for 5 hours, I am experiencing script timeout error while calculating the barcode on the first page of every document that is getting processed. If I restart the Adobe server every thing is fine until the server hits the threashold of 5 hours.
    This only happens for the first page of every document, so if there are 10 pages then barcode gets calculated correctly from the second page. Very unusual behavior.
    Below is the exception,
    [5/25/10 20:30:25:976 EDT] 00000036 XMLFormServic W com.adobe.service.ProcessResource$ManagerImpl log ALC-XTG-102-001: [340010] Error: Timeout
    [5/25/10 20:30:25:987 EDT] 00000036 XMLFormServic W com.adobe.service.ProcessResource$ManagerImpl log ALC-XTG-102-001: [340010] Script failed (language is javascript; context is xfa[0].form[0].rcx[0].#pageSet[0].pageMain1[4].Code3of9BarCode1[0])
    Appreciate your help on this.
    Thanks,
    Laxman.

    Both are valid behaviors unfortunately.
    1) login portlet is showing up in specific portlet b/c inline navigation allows for you to create and load pages without affecting the overall portal.
    This happens when you use iframes (which behave in a similar fashion).
    - your only workaround is really to write some javascript function to "listen" to the portal login page getting loaded and then throwing the session into the parent browser (which is Portal). At least this is the only solution that I ever came up with when using Iframes.
    2) Don't know about out of memory error actually, but getting the "gatewy was not able to access requested content" is valid b/c the session died.
    - javascript errors require javascript solutions. Sorry I couldn't be more helpful than that.
    Maybe someone else will have better suggestions.
    The other suggestion is to use your app server to listen to the logout event and redirect appropriately to somewhere else, or have it do what you want it to do in situations as this.

Maybe you are looking for

  • Error while adding a 'Ext No' field to Activities Search Result List on UI

    Hi Experts, The requirement is to add a new display field u2018External Nou2019to the activities SEARCH Result list. At the moment activities are displayed with start date, end date and category, now the user want to display External No as well. The

  • Why does iTunes keeps resetting itself to default settings randomly??

    Downloaded three upgrades so far, and sometimes I turn on my computer to find that iTunes has all default settings, forgotten my library's name and lists. Upgrading/reinstalling did not solve the issue. It really ****** me off to "reprogram" the iTun

  • Mac Mail crashes every time I launch it

    Everything was working fine and now everytime I open Mac Mail I only have about ten seconds before it crashes. Below is the report that I get: Process:         Mail [1093] Path:            /Applications/Mail.app/Contents/MacOS/Mail Identifier:      c

  • 1 usb not working

    im running the following configuration Model Name:          MacBook Pro   Model Identifier:          MacBookPro8,1   Processor Name:          Intel Core i7   Processor Speed:          2.8 GHz   Number of Processors:          1   Total Number of Cores

  • House Bank selection at the time of Payment run

    Hello All, At the time of automatic payment program, The user has to select the house bank for the payment irrespective of ranking order maintained in the FBZP. And I dont want to give the house bank in all the line item at the time of posting or rea