restart lasso 8.6 using os_process

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

restart lasso 8.6 using os_process

Tom Fortis
I am running Mac OS X Lion and would like to restart the lasso server using os_process. I am not sure how to give the lasso user privileges to execute the "lasso8ctl restart" command.

code:

<?LassoScript
        Var: 'os' = (OS_Process: '/usr/sbin/lasso8ctl',(Array('restart')));
        Encode_HTML: $os->Read;
        $os->Close;
?>

I get "This script must be run as the system administrator."

Trying to automate the restart for the Email_Send failure problem.

I have been manually dealing with this as it only occurred every few months or so. This week it has been happening several times a day and I can't deal with it anymore.

Thank you.

Tom



--------
Tom Fortis
BFTV Cluster IT
UC Davis


#############################################################

Attend the Lasso Developer Conference 2013!
Sept 12-14, 2013 in Niagara Falls, Canada
http://www.lassosoft.com/LDC-niagara-falls-2013

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: restart lasso 8.6 using os_process

fletcher sandbeck-2
On Jun 13, 2013, at 5:05 PM, Tom Fortis <[hidden email]> wrote:

> I am running Mac OS X Lion and would like to restart the lasso server using os_process. I am not sure how to give the lasso user privileges to execute the "lasso8ctl restart" command.
>
> code:
>
> <?LassoScript
> Var: 'os' = (OS_Process: '/usr/sbin/lasso8ctl',(Array('restart')));
> Encode_HTML: $os->Read;
> $os->Close;
> ?>
>
> I get "This script must be run as the system administrator."
>
> Trying to automate the restart for the Email_Send failure problem.
>
> I have been manually dealing with this as it only occurred every few months or so. This week it has been happening several times a day and I can't deal with it anymore.

If Lasso is running then [site_restart] will stop the current Lasso process and it will be restarted automatically by the server process.  If you schedule a page with just this command it should restart Lasso on your schedule.

Otherwise it is better to restart Lasso from outside Lasso so you can be sure that the automatic process is running.  An entry like this in the /etc/crontab file will cause Lasso to restart every morning at 3 a.m.  Look at e.g. http://www.manpagez.com/man/5/crontab/ for examples of how the crontab is formatted.

0       3       *       *       *       root    /usr/sbin/lasso8ctl restart

Hope this helps,

[fletcher]


#############################################################

Attend the Lasso Developer Conference 2013!
Sept 12-14, 2013 in Niagara Falls, Canada
http://www.lassosoft.com/LDC-niagara-falls-2013

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: restart lasso 8.6 using os_process

Laurent-40
site_restart tag requires user/pass of Lasso siteadmin which make it
unusable with Lasso event queue or I missed something?

Laurent

From:  Fletcher Sandbeck <[hidden email]>
Reply-To:  <[hidden email]>
Date:  jeudi 13 juin 2013 20:43
To:  <[hidden email]>
Subject:  Re: restart lasso 8.6 using os_process

On Jun 13, 2013, at 5:05 PM, Tom Fortis <[hidden email]> wrote:

>  I am running Mac OS X Lion and would like to restart the lasso server using
> os_process. I am not sure how to give the lasso user privileges to execute the
> "lasso8ctl restart" command.
>  
>  code:
>  
>  <?LassoScript
>  Var: 'os' = (OS_Process: '/usr/sbin/lasso8ctl',(Array('restart')));
>  Encode_HTML: $os->Read;
>  $os->Close;
>  ?>
>  
>  I get "This script must be run as the system administrator."
>  
>  Trying to automate the restart for the Email_Send failure problem.
>  
>  I have been manually dealing with this as it only occurred every few months
> or so. This week it has been happening several times a day and I can't deal
> with it anymore.

If Lasso is running then [site_restart] will stop the current Lasso process
and it will be restarted automatically by the server process.  If you
schedule a page with just this command it should restart Lasso on your
schedule.

Otherwise it is better to restart Lasso from outside Lasso so you can be
sure that the automatic process is running.  An entry like this in the
/etc/crontab file will cause Lasso to restart every morning at 3 a.m.  Look
at e.g. http://www.manpagez.com/man/5/crontab/ for examples of how the
crontab is formatted.

0       3       *       *       *       root    /usr/sbin/lasso8ctl restart

Hope this helps,

[fletcher]


#############################################################

Attend the Lasso Developer Conference 2013!
Sept 12-14, 2013 in Niagara Falls, Canada
http://www.lassosoft.com/LDC-niagara-falls-2013

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>




#############################################################

Attend the Lasso Developer Conference 2013!
Sept 12-14, 2013 in Niagara Falls, Canada
http://www.lassosoft.com/LDC-niagara-falls-2013

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: restart lasso 8.6 using os_process

stevepiercy
 From the Language Guide:

     The [Site_Restart] tag immediately halts the current Lasso
site. It is no
     different than stopping the corre-sponding Lasso Service
process using
     the controls in Server Administration, the lasso8ctl tools,
or the
     Services control panel.  The tag performs an implicit
[Abort] on every
     page in the site that is currently processing. Since the [Site_Restart]
     tag requires administrator permissions it is necessary to
either use
     [Auth_Admin], wrap the tag in a -Privileged custom tag, or
surround the
     tag by an [Inline] … [/Inline] which provides the site adminstrator
     username and password.

Another workaround is to use monit to restart Lasso:
http://www.lassosoft.com/Monitoring-Lasso-with-Monit

Which requires:
http://www.lassosoft.com/tagswap/detail/RD_lassoService_pid

Ultimately working around the (herein vaguely defined)
[email_send] issue is suboptimal.  For high volume mail, I
either don't use Lasso's email queue and use
email_send(-immediate), or I use transactional email services
like MailGun or Mandrill.  For email lists, I use MailChimp.

--steve


On 6/13/13 at 10:16 PM, [hidden email] (Laurent) pronounced:

>site_restart tag requires user/pass of Lasso siteadmin which make it
>unusable with Lasso event queue or I missed something?
>
>Laurent
>
>From:  Fletcher Sandbeck <[hidden email]>
>Reply-To:  <[hidden email]>
>Date:  jeudi 13 juin 2013 20:43
>To:  <[hidden email]>
>Subject:  Re: restart lasso 8.6 using os_process
>
>On Jun 13, 2013, at 5:05 PM, Tom Fortis <[hidden email]> wrote:
>
>>I am running Mac OS X Lion and would like to restart the lasso server using
>>os_process. I am not sure how to give the lasso user privileges to execute the
>>"lasso8ctl restart" command.
>>
>>code:
>>
>><?LassoScript
>>Var: 'os' = (OS_Process: '/usr/sbin/lasso8ctl',(Array('restart')));
>>Encode_HTML: $os->Read;
>>$os->Close;
>>?>
>>
>>I get "This script must be run as the system administrator."
>>
>>Trying to automate the restart for the Email_Send failure problem.
>>
>>I have been manually dealing with this as it only occurred every few months
>>or so. This week it has been happening several times a day and I can't deal
>>with it anymore.
>
>If Lasso is running then [site_restart] will stop the current Lasso process
>and it will be restarted automatically by the server process.  If you
>schedule a page with just this command it should restart Lasso on your
>schedule.
>
>Otherwise it is better to restart Lasso from outside Lasso so you can be
>sure that the automatic process is running.  An entry like this in the
>/etc/crontab file will cause Lasso to restart every morning at 3 a.m.  Look
>at e.g. http://www.manpagez.com/man/5/crontab/ for examples of how the
>crontab is formatted.
>
>0       3       *       *       *       root    /usr/sbin/lasso8ctl restart
>
>Hope this helps,
>
>[fletcher]
>
>
>#############################################################
>
>Attend the Lasso Developer Conference 2013!
>Sept 12-14, 2013 in Niagara Falls, Canada
>http://www.lassosoft.com/LDC-niagara-falls-2013
>
>#############################################################
>This message is sent to you because you are subscribed to
>the mailing list Lasso
>[hidden email]
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>
>
>
>
>
>#############################################################
>
>Attend the Lasso Developer Conference 2013!
>Sept 12-14, 2013 in Niagara Falls, Canada
>http://www.lassosoft.com/LDC-niagara-falls-2013
>
>#############################################################
>This message is sent to you because you are subscribed to
>the mailing list Lasso
>[hidden email]
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Steve Piercy               Web Site Builder              
Soquel, CA
<[hidden email]>                  <http://www.StevePiercy.com/>


#############################################################

Attend the Lasso Developer Conference 2013!
Sept 12-14, 2013 in Niagara Falls, Canada
http://www.lassosoft.com/LDC-niagara-falls-2013

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: restart lasso 8.6 using os_process

Marc Vos
And you can also provide the username and password in the appropriate fields when scheduling an event.

- -
Marc


On 14 jun. 2013, at 06:14, Steve Piercy - Web Site Builder <[hidden email]> wrote:

> From the Language Guide:
>
>    The [Site_Restart] tag immediately halts the current Lasso site. It is no
>    different than stopping the corre-sponding Lasso Service process using
>    the controls in Server Administration, the lasso8ctl tools, or the
>    Services control panel.  The tag performs an implicit [Abort] on every
>    page in the site that is currently processing. Since the [Site_Restart]
>    tag requires administrator permissions it is necessary to either use
>    [Auth_Admin], wrap the tag in a -Privileged custom tag, or surround the
>    tag by an [Inline] … [/Inline] which provides the site adminstrator
>    username and password.
>
> Another workaround is to use monit to restart Lasso:
> http://www.lassosoft.com/Monitoring-Lasso-with-Monit
>
> Which requires:
> http://www.lassosoft.com/tagswap/detail/RD_lassoService_pid
>
> Ultimately working around the (herein vaguely defined) [email_send] issue is suboptimal.  For high volume mail, I either don't use Lasso's email queue and use email_send(-immediate), or I use transactional email services like MailGun or Mandrill.  For email lists, I use MailChimp.
>
> --steve
>
>
> On 6/13/13 at 10:16 PM, [hidden email] (Laurent) pronounced:
>
>> site_restart tag requires user/pass of Lasso siteadmin which make it
>> unusable with Lasso event queue or I missed something?
>>
>> Laurent
>>
>> From:  Fletcher Sandbeck <[hidden email]>
>> Reply-To:  <[hidden email]>
>> Date:  jeudi 13 juin 2013 20:43
>> To:  <[hidden email]>
>> Subject:  Re: restart lasso 8.6 using os_process
>>
>> On Jun 13, 2013, at 5:05 PM, Tom Fortis <[hidden email]> wrote:
>>
>>> I am running Mac OS X Lion and would like to restart the lasso server using
>>> os_process. I am not sure how to give the lasso user privileges to execute the
>>> "lasso8ctl restart" command.
>>>
>>> code:
>>>
>>> <?LassoScript
>>> Var: 'os' = (OS_Process: '/usr/sbin/lasso8ctl',(Array('restart')));
>>> Encode_HTML: $os->Read;
>>> $os->Close;
>>> ?>
>>>
>>> I get "This script must be run as the system administrator."
>>>
>>> Trying to automate the restart for the Email_Send failure problem.
>>>
>>> I have been manually dealing with this as it only occurred every few months
>>> or so. This week it has been happening several times a day and I can't deal
>>> with it anymore.
>>
>> If Lasso is running then [site_restart] will stop the current Lasso process
>> and it will be restarted automatically by the server process.  If you
>> schedule a page with just this command it should restart Lasso on your
>> schedule.
>>
>> Otherwise it is better to restart Lasso from outside Lasso so you can be
>> sure that the automatic process is running.  An entry like this in the
>> /etc/crontab file will cause Lasso to restart every morning at 3 a.m.  Look
>> at e.g. http://www.manpagez.com/man/5/crontab/ for examples of how the
>> crontab is formatted.
>>
>> 0       3       *       *       *       root    /usr/sbin/lasso8ctl restart
>>
>> Hope this helps,
>>
>> [fletcher]
>>
>>
>> #############################################################
>>
>> Attend the Lasso Developer Conference 2013!
>> Sept 12-14, 2013 in Niagara Falls, Canada
>> http://www.lassosoft.com/LDC-niagara-falls-2013
>>
>> #############################################################
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso
>> [hidden email]
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>>
>>
>>
>>
>> #############################################################
>>
>> Attend the Lasso Developer Conference 2013!
>> Sept 12-14, 2013 in Niagara Falls, Canada
>> http://www.lassosoft.com/LDC-niagara-falls-2013
>>
>> #############################################################
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso
>> [hidden email]
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> Steve Piercy               Web Site Builder               Soquel, CA
> <[hidden email]>                  <http://www.StevePiercy.com/>
>
>
> #############################################################
>
> Attend the Lasso Developer Conference 2013!
> Sept 12-14, 2013 in Niagara Falls, Canada
> http://www.lassosoft.com/LDC-niagara-falls-2013
>
> #############################################################
> This message is sent to you because you are subscribed to
> the mailing list Lasso
> [hidden email]
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

#############################################################

Attend the Lasso Developer Conference 2013!
Sept 12-14, 2013 in Niagara Falls, Canada
http://www.lassosoft.com/LDC-niagara-falls-2013

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: restart lasso 8.6 using os_process

Tom Fortis
Marc, Steve, Fletcher,

You guys are great! Thank you all so much!

Tom

On Jun 14, 2013, at 12:17 AM, Marc Vos wrote:

> And you can also provide the username and password in the appropriate fields when scheduling an event.
>
> - -
> Marc
>
>
> On 14 jun. 2013, at 06:14, Steve Piercy - Web Site Builder <[hidden email]> wrote:
>
>> From the Language Guide:
>>
>>   The [Site_Restart] tag immediately halts the current Lasso site. It is no
>>   different than stopping the corre-sponding Lasso Service process using
>>   the controls in Server Administration, the lasso8ctl tools, or the
>>   Services control panel.  The tag performs an implicit [Abort] on every
>>   page in the site that is currently processing. Since the [Site_Restart]
>>   tag requires administrator permissions it is necessary to either use
>>   [Auth_Admin], wrap the tag in a -Privileged custom tag, or surround the
>>   tag by an [Inline] … [/Inline] which provides the site adminstrator
>>   username and password.
>>
>> Another workaround is to use monit to restart Lasso:
>> http://www.lassosoft.com/Monitoring-Lasso-with-Monit
>>
>> Which requires:
>> http://www.lassosoft.com/tagswap/detail/RD_lassoService_pid
>>
>> Ultimately working around the (herein vaguely defined) [email_send] issue is suboptimal.  For high volume mail, I either don't use Lasso's email queue and use email_send(-immediate), or I use transactional email services like MailGun or Mandrill.  For email lists, I use MailChimp.
>>
>> --steve
>>
>>
>> On 6/13/13 at 10:16 PM, [hidden email] (Laurent) pronounced:
>>
>>> site_restart tag requires user/pass of Lasso siteadmin which make it
>>> unusable with Lasso event queue or I missed something?
>>>
>>> Laurent
>>>
>>> From:  Fletcher Sandbeck <[hidden email]>
>>> Reply-To:  <[hidden email]>
>>> Date:  jeudi 13 juin 2013 20:43
>>> To:  <[hidden email]>
>>> Subject:  Re: restart lasso 8.6 using os_process
>>>
>>> On Jun 13, 2013, at 5:05 PM, Tom Fortis <[hidden email]> wrote:
>>>
>>>> I am running Mac OS X Lion and would like to restart the lasso server using
>>>> os_process. I am not sure how to give the lasso user privileges to execute the
>>>> "lasso8ctl restart" command.
>>>>
>>>> code:
>>>>
>>>> <?LassoScript
>>>> Var: 'os' = (OS_Process: '/usr/sbin/lasso8ctl',(Array('restart')));
>>>> Encode_HTML: $os->Read;
>>>> $os->Close;
>>>> ?>
>>>>
>>>> I get "This script must be run as the system administrator."
>>>>
>>>> Trying to automate the restart for the Email_Send failure problem.
>>>>
>>>> I have been manually dealing with this as it only occurred every few months
>>>> or so. This week it has been happening several times a day and I can't deal
>>>> with it anymore.
>>>
>>> If Lasso is running then [site_restart] will stop the current Lasso process
>>> and it will be restarted automatically by the server process.  If you
>>> schedule a page with just this command it should restart Lasso on your
>>> schedule.
>>>
>>> Otherwise it is better to restart Lasso from outside Lasso so you can be
>>> sure that the automatic process is running.  An entry like this in the
>>> /etc/crontab file will cause Lasso to restart every morning at 3 a.m.  Look
>>> at e.g. http://www.manpagez.com/man/5/crontab/ for examples of how the
>>> crontab is formatted.
>>>
>>> 0       3       *       *       *       root    /usr/sbin/lasso8ctl restart
>>>
>>> Hope this helps,
>>>
>>> [fletcher]
>>>
>>>
>>> #############################################################
>>>
>>> Attend the Lasso Developer Conference 2013!
>>> Sept 12-14, 2013 in Niagara Falls, Canada
>>> http://www.lassosoft.com/LDC-niagara-falls-2013
>>>
>>> #############################################################
>>> This message is sent to you because you are subscribed to
>>> the mailing list Lasso
>>> [hidden email]
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>>
>>>
>>>
>>>
>>> #############################################################
>>>
>>> Attend the Lasso Developer Conference 2013!
>>> Sept 12-14, 2013 in Niagara Falls, Canada
>>> http://www.lassosoft.com/LDC-niagara-falls-2013
>>>
>>> #############################################################
>>> This message is sent to you because you are subscribed to
>>> the mailing list Lasso
>>> [hidden email]
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>
>> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>> Steve Piercy               Web Site Builder               Soquel, CA
>> <[hidden email]>                  <http://www.StevePiercy.com/>
>>
>>
>> #############################################################
>>
>> Attend the Lasso Developer Conference 2013!
>> Sept 12-14, 2013 in Niagara Falls, Canada
>> http://www.lassosoft.com/LDC-niagara-falls-2013
>>
>> #############################################################
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso
>> [hidden email]
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
> #############################################################
>
> Attend the Lasso Developer Conference 2013!
> Sept 12-14, 2013 in Niagara Falls, Canada
> http://www.lassosoft.com/LDC-niagara-falls-2013
>
> #############################################################
> This message is sent to you because you are subscribed to
>  the mailing list Lasso
> [hidden email]
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>


#############################################################

Attend the Lasso Developer Conference 2013!
Sept 12-14, 2013 in Niagara Falls, Canada
http://www.lassosoft.com/LDC-niagara-falls-2013

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: restart lasso 8.6 using os_process

Seth Ganahl
Restarting the Lasso site is only half the issue.  How does one go about
re-queuing all of the stuck email?


On 6/14/13 10:38 AM, "Tom Fortis" <[hidden email]> did quoth:

> Marc, Steve, Fletcher,
>
> You guys are great! Thank you all so much!
>
> Tom
>
> On Jun 14, 2013, at 12:17 AM, Marc Vos wrote:
>
>> And you can also provide the username and password in the appropriate fields
>> when scheduling an event.
>>
>> - -
>> Marc
>>
>>
>> On 14 jun. 2013, at 06:14, Steve Piercy - Web Site Builder
>> <[hidden email]> wrote:
>>
>>> From the Language Guide:
>>>
>>>   The [Site_Restart] tag immediately halts the current Lasso site. It is no
>>>   different than stopping the corre-sponding Lasso Service process using
>>>   the controls in Server Administration, the lasso8ctl tools, or the
>>>   Services control panel.  The tag performs an implicit [Abort] on every
>>>   page in the site that is currently processing. Since the [Site_Restart]
>>>   tag requires administrator permissions it is necessary to either use
>>>   [Auth_Admin], wrap the tag in a -Privileged custom tag, or surround the
>>>   tag by an [Inline] Š [/Inline] which provides the site adminstrator
>>>   username and password.
>>>
>>> Another workaround is to use monit to restart Lasso:
>>> http://www.lassosoft.com/Monitoring-Lasso-with-Monit
>>>
>>> Which requires:
>>> http://www.lassosoft.com/tagswap/detail/RD_lassoService_pid
>>>
>>> Ultimately working around the (herein vaguely defined) [email_send] issue is
>>> suboptimal.  For high volume mail, I either don't use Lasso's email queue
>>> and use email_send(-immediate), or I use transactional email services like
>>> MailGun or Mandrill.  For email lists, I use MailChimp.
>>>
>>> --steve
>>>
>>>
>>> On 6/13/13 at 10:16 PM, [hidden email] (Laurent) pronounced:
>>>
>>>> site_restart tag requires user/pass of Lasso siteadmin which make it
>>>> unusable with Lasso event queue or I missed something?
>>>>
>>>> Laurent
>>>>
>>>> From:  Fletcher Sandbeck <[hidden email]>
>>>> Reply-To:  <[hidden email]>
>>>> Date:  jeudi 13 juin 2013 20:43
>>>> To:  <[hidden email]>
>>>> Subject:  Re: restart lasso 8.6 using os_process
>>>>
>>>> On Jun 13, 2013, at 5:05 PM, Tom Fortis <[hidden email]> wrote:
>>>>
>>>>> I am running Mac OS X Lion and would like to restart the lasso server
>>>>> using
>>>>> os_process. I am not sure how to give the lasso user privileges to execute
>>>>> the
>>>>> "lasso8ctl restart" command.
>>>>>
>>>>> code:
>>>>>
>>>>> <?LassoScript
>>>>> Var: 'os' = (OS_Process: '/usr/sbin/lasso8ctl',(Array('restart')));
>>>>> Encode_HTML: $os->Read;
>>>>> $os->Close;
>>>>> ?>
>>>>>
>>>>> I get "This script must be run as the system administrator."
>>>>>
>>>>> Trying to automate the restart for the Email_Send failure problem.
>>>>>
>>>>> I have been manually dealing with this as it only occurred every few
>>>>> months
>>>>> or so. This week it has been happening several times a day and I can't
>>>>> deal
>>>>> with it anymore.
>>>>
>>>> If Lasso is running then [site_restart] will stop the current Lasso process
>>>> and it will be restarted automatically by the server process.  If you
>>>> schedule a page with just this command it should restart Lasso on your
>>>> schedule.
>>>>
>>>> Otherwise it is better to restart Lasso from outside Lasso so you can be
>>>> sure that the automatic process is running.  An entry like this in the
>>>> /etc/crontab file will cause Lasso to restart every morning at 3 a.m.  Look
>>>> at e.g. http://www.manpagez.com/man/5/crontab/ for examples of how the
>>>> crontab is formatted.
>>>>
>>>> 0       3       *       *       *       root    /usr/sbin/lasso8ctl restart
>>>>
>>>> Hope this helps,
>>>>
>>>> [fletcher]
>>>>
>>>>
>>>> #############################################################
>>>>
>>>> Attend the Lasso Developer Conference 2013!
>>>> Sept 12-14, 2013 in Niagara Falls, Canada
>>>> http://www.lassosoft.com/LDC-niagara-falls-2013
>>>>
>>>> #############################################################
>>>> This message is sent to you because you are subscribed to
>>>> the mailing list Lasso
>>>> [hidden email]
>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>> Send administrative queries to  <[hidden email]>
>>>>
>>>>
>>>>
>>>>
>>>> #############################################################
>>>>
>>>> Attend the Lasso Developer Conference 2013!
>>>> Sept 12-14, 2013 in Niagara Falls, Canada
>>>> http://www.lassosoft.com/LDC-niagara-falls-2013
>>>>
>>>> #############################################################
>>>> This message is sent to you because you are subscribed to
>>>> the mailing list Lasso
>>>> [hidden email]
>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>> Send administrative queries to  <[hidden email]>
>>>
>>> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>> Steve Piercy               Web Site Builder               Soquel, CA
>>> <[hidden email]>                  <http://www.StevePiercy.com/>
>>>
>>>
>>> #############################################################
>>>
>>> Attend the Lasso Developer Conference 2013!
>>> Sept 12-14, 2013 in Niagara Falls, Canada
>>> http://www.lassosoft.com/LDC-niagara-falls-2013
>>>
>>> #############################################################
>>> This message is sent to you because you are subscribed to
>>> the mailing list Lasso
>>> [hidden email]
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>
>> #############################################################
>>
>> Attend the Lasso Developer Conference 2013!
>> Sept 12-14, 2013 in Niagara Falls, Canada
>> http://www.lassosoft.com/LDC-niagara-falls-2013
>>
>> #############################################################
>> This message is sent to you because you are subscribed to
>>  the mailing list Lasso
>> [hidden email]
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
>
> #############################################################
>
> Attend the Lasso Developer Conference 2013!
> Sept 12-14, 2013 in Niagara Falls, Canada
> http://www.lassosoft.com/LDC-niagara-falls-2013
>
> #############################################################
> This message is sent to you because you are subscribed to
>   the mailing list Lasso
> [hidden email]
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

-------------------------------------------------------
Seth C Ganahl (501) 282-4867
Ganahl Consulting ­ Web Applications
http://www.ganahlconsulting.com/
[hidden email]
-------------------------------------------------------



#############################################################

Attend the Lasso Developer Conference 2013!
Sept 12-14, 2013 in Niagara Falls, Canada
http://www.lassosoft.com/LDC-niagara-falls-2013

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: restart lasso 8.6 using os_process

Steffan A. Cline
Issue a sqlite command to update the email table so that it will look at
the emails and think it's new. Sorry, can't remember the exact query but
you can figure it out using the sql browser to check the sqlite tables.
I've done it before so if you can't get it, let me know and I'll look at
it for you.



Thanks

Steffan

---------------------------------------------------------------
T E L  6 0 2 . 7 9 3 . 0 0 1 4 | F A X  6 0 2 . 9 7 1 . 1 6 9 4
Steffan A. Cline   [hidden email]
http://www.ExecuChoice.net                 Phoenix, Arizona USA
                 
---------------------------------------------------------------






On 6/15/13 7:12 PM, "Seth Ganahl" <[hidden email]> wrote:

>Restarting the Lasso site is only half the issue.  How does one go about
>re-queuing all of the stuck email?
>
>
>On 6/14/13 10:38 AM, "Tom Fortis" <[hidden email]> did quoth:
>
>> Marc, Steve, Fletcher,
>>
>> You guys are great! Thank you all so much!
>>
>> Tom
>>
>> On Jun 14, 2013, at 12:17 AM, Marc Vos wrote:
>>
>>> And you can also provide the username and password in the appropriate
>>>fields
>>> when scheduling an event.
>>>
>>> - -
>>> Marc
>>>
>>>
>>> On 14 jun. 2013, at 06:14, Steve Piercy - Web Site Builder
>>> <[hidden email]> wrote:
>>>
>>>> From the Language Guide:
>>>>
>>>>   The [Site_Restart] tag immediately halts the current Lasso site. It
>>>>is no
>>>>   different than stopping the corre-sponding Lasso Service process
>>>>using
>>>>   the controls in Server Administration, the lasso8ctl tools, or the
>>>>   Services control panel.  The tag performs an implicit [Abort] on
>>>>every
>>>>   page in the site that is currently processing. Since the
>>>>[Site_Restart]
>>>>   tag requires administrator permissions it is necessary to either use
>>>>   [Auth_Admin], wrap the tag in a -Privileged custom tag, or surround
>>>>the
>>>>   tag by an [Inline] � [/Inline] which provides the site adminstrator
>>>>   username and password.
>>>>
>>>> Another workaround is to use monit to restart Lasso:
>>>> http://www.lassosoft.com/Monitoring-Lasso-with-Monit
>>>>
>>>> Which requires:
>>>> http://www.lassosoft.com/tagswap/detail/RD_lassoService_pid
>>>>
>>>> Ultimately working around the (herein vaguely defined) [email_send]
>>>>issue is
>>>> suboptimal.  For high volume mail, I either don't use Lasso's email
>>>>queue
>>>> and use email_send(-immediate), or I use transactional email services
>>>>like
>>>> MailGun or Mandrill.  For email lists, I use MailChimp.
>>>>
>>>> --steve
>>>>
>>>>
>>>> On 6/13/13 at 10:16 PM, [hidden email] (Laurent) pronounced:
>>>>
>>>>> site_restart tag requires user/pass of Lasso siteadmin which make it
>>>>> unusable with Lasso event queue or I missed something?
>>>>>
>>>>> Laurent
>>>>>
>>>>> From:  Fletcher Sandbeck <[hidden email]>
>>>>> Reply-To:  <[hidden email]>
>>>>> Date:  jeudi 13 juin 2013 20:43
>>>>> To:  <[hidden email]>
>>>>> Subject:  Re: restart lasso 8.6 using os_process
>>>>>
>>>>> On Jun 13, 2013, at 5:05 PM, Tom Fortis <[hidden email]> wrote:
>>>>>
>>>>>> I am running Mac OS X Lion and would like to restart the lasso
>>>>>>server
>>>>>> using
>>>>>> os_process. I am not sure how to give the lasso user privileges to
>>>>>>execute
>>>>>> the
>>>>>> "lasso8ctl restart" command.
>>>>>>
>>>>>> code:
>>>>>>
>>>>>> <?LassoScript
>>>>>> Var: 'os' = (OS_Process: '/usr/sbin/lasso8ctl',(Array('restart')));
>>>>>> Encode_HTML: $os->Read;
>>>>>> $os->Close;
>>>>>> ?>
>>>>>>
>>>>>> I get "This script must be run as the system administrator."
>>>>>>
>>>>>> Trying to automate the restart for the Email_Send failure problem.
>>>>>>
>>>>>> I have been manually dealing with this as it only occurred every few
>>>>>> months
>>>>>> or so. This week it has been happening several times a day and I
>>>>>>can't
>>>>>> deal
>>>>>> with it anymore.
>>>>>
>>>>> If Lasso is running then [site_restart] will stop the current Lasso
>>>>>process
>>>>> and it will be restarted automatically by the server process.  If you
>>>>> schedule a page with just this command it should restart Lasso on
>>>>>your
>>>>> schedule.
>>>>>
>>>>> Otherwise it is better to restart Lasso from outside Lasso so you
>>>>>can be
>>>>> sure that the automatic process is running.  An entry like this in
>>>>>the
>>>>> /etc/crontab file will cause Lasso to restart every morning at 3
>>>>>a.m.  Look
>>>>> at e.g. http://www.manpagez.com/man/5/crontab/ for examples of how
>>>>>the
>>>>> crontab is formatted.
>>>>>
>>>>> 0       3       *       *       *       root    /usr/sbin/lasso8ctl
>>>>>restart
>>>>>
>>>>> Hope this helps,
>>>>>
>>>>> [fletcher]
>>>>>
>>>>>
>>>>> #############################################################
>>>>>
>>>>> Attend the Lasso Developer Conference 2013!
>>>>> Sept 12-14, 2013 in Niagara Falls, Canada
>>>>> http://www.lassosoft.com/LDC-niagara-falls-2013
>>>>>
>>>>> #############################################################
>>>>> This message is sent to you because you are subscribed to
>>>>> the mailing list Lasso
>>>>> [hidden email]
>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>> Send administrative queries to  <[hidden email]>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> #############################################################
>>>>>
>>>>> Attend the Lasso Developer Conference 2013!
>>>>> Sept 12-14, 2013 in Niagara Falls, Canada
>>>>> http://www.lassosoft.com/LDC-niagara-falls-2013
>>>>>
>>>>> #############################################################
>>>>> This message is sent to you because you are subscribed to
>>>>> the mailing list Lasso
>>>>> [hidden email]
>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>> Send administrative queries to  <[hidden email]>
>>>>
>>>> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>> Steve Piercy               Web Site Builder               Soquel, CA
>>>> <[hidden email]>                  <http://www.StevePiercy.com/>
>>>>
>>>>
>>>> #############################################################
>>>>
>>>> Attend the Lasso Developer Conference 2013!
>>>> Sept 12-14, 2013 in Niagara Falls, Canada
>>>> http://www.lassosoft.com/LDC-niagara-falls-2013
>>>>
>>>> #############################################################
>>>> This message is sent to you because you are subscribed to
>>>> the mailing list Lasso
>>>> [hidden email]
>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>> Send administrative queries to  <[hidden email]>
>>>
>>> #############################################################
>>>
>>> Attend the Lasso Developer Conference 2013!
>>> Sept 12-14, 2013 in Niagara Falls, Canada
>>> http://www.lassosoft.com/LDC-niagara-falls-2013
>>>
>>> #############################################################
>>> This message is sent to you because you are subscribed to
>>>  the mailing list Lasso
>>> [hidden email]
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>
>>
>> #############################################################
>>
>> Attend the Lasso Developer Conference 2013!
>> Sept 12-14, 2013 in Niagara Falls, Canada
>> http://www.lassosoft.com/LDC-niagara-falls-2013
>>
>> #############################################################
>> This message is sent to you because you are subscribed to
>>   the mailing list Lasso
>> [hidden email]
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
>-------------------------------------------------------
>Seth C Ganahl (501) 282-4867
>Ganahl Consulting ­ Web Applications
>http://www.ganahlconsulting.com/
>[hidden email]
>-------------------------------------------------------
>
>
>
>#############################################################
>
>Attend the Lasso Developer Conference 2013!
>Sept 12-14, 2013 in Niagara Falls, Canada
>http://www.lassosoft.com/LDC-niagara-falls-2013
>
>#############################################################
>This message is sent to you because you are subscribed to
>  the mailing list Lasso
>[hidden email]
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>
>



#############################################################

Attend the Lasso Developer Conference 2013!
Sept 12-14, 2013 in Niagara Falls, Canada
http://www.lassosoft.com/LDC-niagara-falls-2013

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: restart lasso 8.6 using os_process

Bil Corry-3
In reply to this post by fletcher sandbeck-2
Unless it's changed, site_restart actually just stops the site process, which means the mail queue is stopped too.  It doesn't start again until someone makes a request to the site via their browser, that request will fail since the site isn't running, but then Lasso starts the site and all subsequent requests will work.

Jason Huck and myself each had a ctag on tagswap to actually fully restart a site, might check those out if using site_restart.


- Bil



On Jun 14, 2013, at 2:43 AM, Fletcher Sandbeck <[hidden email]> wrote:

> On Jun 13, 2013, at 5:05 PM, Tom Fortis <[hidden email]> wrote:
>
>> I am running Mac OS X Lion and would like to restart the lasso server using os_process. I am not sure how to give the lasso user privileges to execute the "lasso8ctl restart" command.
>>
>> code:
>>
>> <?LassoScript
>>    Var: 'os' = (OS_Process: '/usr/sbin/lasso8ctl',(Array('restart')));
>>    Encode_HTML: $os->Read;
>>    $os->Close;
>> ?>
>>
>> I get "This script must be run as the system administrator."
>>
>> Trying to automate the restart for the Email_Send failure problem.
>>
>> I have been manually dealing with this as it only occurred every few months or so. This week it has been happening several times a day and I can't deal with it anymore.
>
> If Lasso is running then [site_restart] will stop the current Lasso process and it will be restarted automatically by the server process.  If you schedule a page with just this command it should restart Lasso on your schedule.
>
> Otherwise it is better to restart Lasso from outside Lasso so you can be sure that the automatic process is running.  An entry like this in the /etc/crontab file will cause Lasso to restart every morning at 3 a.m.  Look at e.g. http://www.manpagez.com/man/5/crontab/ for examples of how the crontab is formatted.
>
> 0       3       *       *       *       root    /usr/sbin/lasso8ctl restart
>
> Hope this helps,
>
> [fletcher]
>
>
> #############################################################
>
> Attend the Lasso Developer Conference 2013!
> Sept 12-14, 2013 in Niagara Falls, Canada
> http://www.lassosoft.com/LDC-niagara-falls-2013
>
> #############################################################
> This message is sent to you because you are subscribed to
>  the mailing list Lasso
> [hidden email]
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

#############################################################

Attend the Lasso Developer Conference 2013!
Sept 12-14, 2013 in Niagara Falls, Canada
http://www.lassosoft.com/LDC-niagara-falls-2013

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>