Site Restart

View: New views
15 Messages — Rating Filter:   Alert me  

Site Restart

by Pier Kuipers :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,

It's only Monday morning, and I've already hit a brick wall.

One of my sites is causing problems, possibly linked to Lasso not
closing MySQL connections etc. But that's a different problem, need a
quick fix for now.

I need to allow one of my customers (you've guessed it, the one whose
site is causing problems) to restart his site by simply entering a URL
in his browser (i.e. clicking a link in an email I'm going to send
him). I don't want to give him access to the auth admin details for
obvious reasons, so I may have to embed un/pw in the page that is
loaded by the url.

Any suggestions would be greatly appreciated!

Cheers

Pier

--
Pier Kuipers
Visual ID
Unit S02
Synergy Centre
ITT Tallaght
Dublin 24
Ireland
Tel. +353 1 9022 575
Mobile +353 87 294 3063
Web http://www.visualid.com

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/



Re: Site Restart

by Adam de Zoete-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Pier,

I imagine that you could do this easily with the [Site_Restart] tag. You
could probably setup a separate user and group (that doesn't admin the
site) to authenticate the page on his site.

http://reference.lassosoft.com/Reference.LassoApp?[Site_Restart]

Adam


Pier Kuipers wrote:

> Hi All,
>
> It's only Monday morning, and I've already hit a brick wall.
>
> One of my sites is causing problems, possibly linked to Lasso not
> closing MySQL connections etc. But that's a different problem, need a
> quick fix for now.
>
> I need to allow one of my customers (you've guessed it, the one whose
> site is causing problems) to restart his site by simply entering a URL
> in his browser (i.e. clicking a link in an email I'm going to send
> him). I don't want to give him access to the auth admin details for
> obvious reasons, so I may have to embed un/pw in the page that is
> loaded by the url.
>
> Any suggestions would be greatly appreciated!
>
> Cheers
>
> Pier
>

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/



Re: Site Restart

by Johan Solve :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Does it work to wrap site_restart in an inline that supplies server
admin credentials?

On Mon, Nov 9, 2009 at 11:38 AM, Pier Kuipers <pierkuipers@...> wrote:

> Hi All,
>
> It's only Monday morning, and I've already hit a brick wall.
>
> One of my sites is causing problems, possibly linked to Lasso not
> closing MySQL connections etc. But that's a different problem, need a
> quick fix for now.
>
> I need to allow one of my customers (you've guessed it, the one whose
> site is causing problems) to restart his site by simply entering a URL
> in his browser (i.e. clicking a link in an email I'm going to send
> him). I don't want to give him access to the auth admin details for
> obvious reasons, so I may have to embed un/pw in the page that is
> loaded by the url.
>
> Any suggestions would be greatly appreciated!
>
> Cheers
>
> Pier
>
> --
> Pier Kuipers
> Visual ID
> Unit S02
> Synergy Centre
> ITT Tallaght
> Dublin 24
> Ireland
> Tel. +353 1 9022 575
> Mobile +353 87 294 3063
> Web http://www.visualid.com
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>
>



--
Mvh
Johan Sölve
____________________________________
Montania System AB
Halmstad   Stockholm   Malmö
http://www.montania.se

Johan Sölve
Mobil +46 709-51 55 70
johan@...

Kristinebergsvägen 17, S-302 41 Halmstad, Sweden
Telefon +46 35-136800 |  Fax +46 35-136801

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/



Re: Site Restart

by Pier Kuipers :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Wow, fast response :-)

I looked at Site_Restart, but one of the problems is that the entire
site becomes unresponsive, including siteadmin.lassoapp. The only
thing I can access is serveradmin.lassoapp, and it seems that there is
no simple "server_siterestart" tag, just a "stop" and "start" version.
I like the idea of a separate user and group, but that would bring us
back to the inaccessible siteadmin section...

Thanks a million

Pier

On Mon, Nov 9, 2009 at 10:53 AM, Adam de Zoete <lists@...> wrote:

> Hi Pier,
>
> I imagine that you could do this easily with the [Site_Restart] tag. You
> could probably setup a separate user and group (that doesn't admin the site)
> to authenticate the page on his site.
>
> http://reference.lassosoft.com/Reference.LassoApp?[Site_Restart]
>
> Adam
>
>
> Pier Kuipers wrote:
>>
>> Hi All,
>>
>> It's only Monday morning, and I've already hit a brick wall.
>>
>> One of my sites is causing problems, possibly linked to Lasso not
>> closing MySQL connections etc. But that's a different problem, need a
>> quick fix for now.
>>
>> I need to allow one of my customers (you've guessed it, the one whose
>> site is causing problems) to restart his site by simply entering a URL
>> in his browser (i.e. clicking a link in an email I'm going to send
>> him). I don't want to give him access to the auth admin details for
>> obvious reasons, so I may have to embed un/pw in the page that is
>> loaded by the url.
>>
>> Any suggestions would be greatly appreciated!
>>
>> Cheers
>>
>> Pier
>>
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>
>



--
Pier Kuipers
Visual ID
Unit S02
Synergy Centre
ITT Tallaght
Dublin 24
Ireland
Tel. +353 1 9022 575
Mobile +353 87 294 3063
Web http://www.visualid.com

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/



Re: Site Restart

by Adam de Zoete-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

How about:

http://reference.lassosoft.com/Reference.LassoApp?[Server_SiteStop]
http://reference.lassosoft.com/Reference.LassoApp?[Server_SiteStart]

Adam


Pier Kuipers wrote:

> Wow, fast response :-)
>
> I looked at Site_Restart, but one of the problems is that the entire
> site becomes unresponsive, including siteadmin.lassoapp. The only
> thing I can access is serveradmin.lassoapp, and it seems that there is
> no simple "server_siterestart" tag, just a "stop" and "start" version.
> I like the idea of a separate user and group, but that would bring us
> back to the inaccessible siteadmin section...
>
> Thanks a million
>
> Pier
>
> On Mon, Nov 9, 2009 at 10:53 AM, Adam de Zoete <lists@...> wrote:
>> Hi Pier,
>>
>> I imagine that you could do this easily with the [Site_Restart] tag. You
>> could probably setup a separate user and group (that doesn't admin the site)
>> to authenticate the page on his site.
>>
>> http://reference.lassosoft.com/Reference.LassoApp?[Site_Restart]
>>
>> Adam
>>
>>
>> Pier Kuipers wrote:
>>> Hi All,
>>>
>>> It's only Monday morning, and I've already hit a brick wall.
>>>
>>> One of my sites is causing problems, possibly linked to Lasso not
>>> closing MySQL connections etc. But that's a different problem, need a
>>> quick fix for now.
>>>
>>> I need to allow one of my customers (you've guessed it, the one whose
>>> site is causing problems) to restart his site by simply entering a URL
>>> in his browser (i.e. clicking a link in an email I'm going to send
>>> him). I don't want to give him access to the auth admin details for
>>> obvious reasons, so I may have to embed un/pw in the page that is
>>> loaded by the url.
>>>
>>> Any suggestions would be greatly appreciated!
>>>
>>> Cheers
>>>
>>> Pier
>>>
>> --
>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>
>>
>>
>
>
>

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/



Re: Site Restart

by Pier Kuipers :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Mmm... I was looking at tsomething like

[
inline(-username='adminun', -password='adminpw');
    server_sitestop(3);
/inline;
inline(-username='adminun', -password='adminpw');
    server_sitestart(3);
/inline;
]

But that gives me an error:

An invalid parameter was passed to a tag
at: sitestop with params: 3

I thought that maybe the tag didn't like colons for some strange
reasons, but [server_sitestop:3] gives the same error.

The plot thickens...

Thanks much

Pier

On Mon, Nov 9, 2009 at 11:09 AM, Johan Solve <johan.solve@...> wrote:

> Does it work to wrap site_restart in an inline that supplies server
> admin credentials?
>
> On Mon, Nov 9, 2009 at 11:38 AM, Pier Kuipers <pierkuipers@...> wrote:
>> Hi All,
>>
>> It's only Monday morning, and I've already hit a brick wall.
>>
>> One of my sites is causing problems, possibly linked to Lasso not
>> closing MySQL connections etc. But that's a different problem, need a
>> quick fix for now.
>>
>> I need to allow one of my customers (you've guessed it, the one whose
>> site is causing problems) to restart his site by simply entering a URL
>> in his browser (i.e. clicking a link in an email I'm going to send
>> him). I don't want to give him access to the auth admin details for
>> obvious reasons, so I may have to embed un/pw in the page that is
>> loaded by the url.
>>
>> Any suggestions would be greatly appreciated!
>>
>> Cheers
>>
>> Pier
>>
>> --
>> Pier Kuipers
>> Visual ID
>> Unit S02
>> Synergy Centre
>> ITT Tallaght
>> Dublin 24
>> Ireland
>> Tel. +353 1 9022 575
>> Mobile +353 87 294 3063
>> Web http://www.visualid.com
>>
>> --
>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>
>>
>>
>
>
>
> --
> Mvh
> Johan Sölve
> ____________________________________
> Montania System AB
> Halmstad   Stockholm   Malmö
> http://www.montania.se
>
> Johan Sölve
> Mobil +46 709-51 55 70
> johan@...
>
> Kristinebergsvägen 17, S-302 41 Halmstad, Sweden
> Telefon +46 35-136800 |  Fax +46 35-136801
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>
>



--
Pier Kuipers
Visual ID
Unit S02
Synergy Centre
ITT Tallaght
Dublin 24
Ireland
Tel. +353 1 9022 575
Mobile +353 87 294 3063
Web http://www.visualid.com

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/



Re: Site Restart

by Adam de Zoete-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

A quick look at the reference claims that this can only be run from
serveradmin. If you authenticate this with serveradmin username and
password does it work?

Something to look at for some inspiration is Bil's excellent
lp_site_restart tag that uses both these tags.

Adam


Pier Kuipers wrote:

> Mmm... I was looking at tsomething like
>
> [
> inline(-username='adminun', -password='adminpw');
>     server_sitestop(3);
> /inline;
> inline(-username='adminun', -password='adminpw');
>     server_sitestart(3);
> /inline;
> ]
>
> But that gives me an error:
>
> An invalid parameter was passed to a tag
> at: sitestop with params: 3
>
> I thought that maybe the tag didn't like colons for some strange
> reasons, but [server_sitestop:3] gives the same error.
>
> The plot thickens...
>
> Thanks much
>
> Pier
>
> On Mon, Nov 9, 2009 at 11:09 AM, Johan Solve <johan.solve@...> wrote:
>> Does it work to wrap site_restart in an inline that supplies server
>> admin credentials?
>>
>> On Mon, Nov 9, 2009 at 11:38 AM, Pier Kuipers <pierkuipers@...> wrote:
>>> Hi All,
>>>
>>> It's only Monday morning, and I've already hit a brick wall.
>>>
>>> One of my sites is causing problems, possibly linked to Lasso not
>>> closing MySQL connections etc. But that's a different problem, need a
>>> quick fix for now.
>>>
>>> I need to allow one of my customers (you've guessed it, the one whose
>>> site is causing problems) to restart his site by simply entering a URL
>>> in his browser (i.e. clicking a link in an email I'm going to send
>>> him). I don't want to give him access to the auth admin details for
>>> obvious reasons, so I may have to embed un/pw in the page that is
>>> loaded by the url.
>>>
>>> Any suggestions would be greatly appreciated!
>>>
>>> Cheers
>>>
>>> Pier
>>>
>>> --
>>> Pier Kuipers
>>> Visual ID
>>> Unit S02
>>> Synergy Centre
>>> ITT Tallaght
>>> Dublin 24
>>> Ireland
>>> Tel. +353 1 9022 575
>>> Mobile +353 87 294 3063
>>> Web http://www.visualid.com
>>>
>>> --
>>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>>
>>>
>>>
>>
>>
>> --
>> Mvh
>> Johan Sölve
>> ____________________________________
>> Montania System AB
>> Halmstad   Stockholm   Malmö
>> http://www.montania.se
>>
>> Johan Sölve
>> Mobil +46 709-51 55 70
>> johan@...
>>
>> Kristinebergsvägen 17, S-302 41 Halmstad, Sweden
>> Telefon +46 35-136800 |  Fax +46 35-136801
>>
>> --
>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>
>>
>>
>
>
>

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/



Re: Site Restart

by Pier Kuipers :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Bingo! Thanks for the pointer, *of course* Bil has a tag for that.
Just tried it out and it appears to work perfectly - now I just have
to wait until the site "freezes" completely to see if this tag will
still do the trick.

Thanks a million

Pier

On Mon, Nov 9, 2009 at 11:30 AM, Adam de Zoete <lists@...> wrote:

> A quick look at the reference claims that this can only be run from
> serveradmin. If you authenticate this with serveradmin username and password
> does it work?
>
> Something to look at for some inspiration is Bil's excellent lp_site_restart
> tag that uses both these tags.
>
> Adam
>
>
> Pier Kuipers wrote:
>>
>> Mmm... I was looking at tsomething like
>>
>> [
>> inline(-username='adminun', -password='adminpw');
>>    server_sitestop(3);
>> /inline;
>> inline(-username='adminun', -password='adminpw');
>>    server_sitestart(3);
>> /inline;
>> ]
>>
>> But that gives me an error:
>>
>> An invalid parameter was passed to a tag
>> at: sitestop with params: 3
>>
>> I thought that maybe the tag didn't like colons for some strange
>> reasons, but [server_sitestop:3] gives the same error.
>>
>> The plot thickens...
>>
>> Thanks much
>>
>> Pier
>>
>> On Mon, Nov 9, 2009 at 11:09 AM, Johan Solve <johan.solve@...>
>> wrote:
>>>
>>> Does it work to wrap site_restart in an inline that supplies server
>>> admin credentials?
>>>
>>> On Mon, Nov 9, 2009 at 11:38 AM, Pier Kuipers <pierkuipers@...>
>>> wrote:
>>>>
>>>> Hi All,
>>>>
>>>> It's only Monday morning, and I've already hit a brick wall.
>>>>
>>>> One of my sites is causing problems, possibly linked to Lasso not
>>>> closing MySQL connections etc. But that's a different problem, need a
>>>> quick fix for now.
>>>>
>>>> I need to allow one of my customers (you've guessed it, the one whose
>>>> site is causing problems) to restart his site by simply entering a URL
>>>> in his browser (i.e. clicking a link in an email I'm going to send
>>>> him). I don't want to give him access to the auth admin details for
>>>> obvious reasons, so I may have to embed un/pw in the page that is
>>>> loaded by the url.
>>>>
>>>> Any suggestions would be greatly appreciated!
>>>>
>>>> Cheers
>>>>
>>>> Pier
>>>>
>>>> --
>>>> Pier Kuipers
>>>> Visual ID
>>>> Unit S02
>>>> Synergy Centre
>>>> ITT Tallaght
>>>> Dublin 24
>>>> Ireland
>>>> Tel. +353 1 9022 575
>>>> Mobile +353 87 294 3063
>>>> Web http://www.visualid.com
>>>>
>>>> --
>>>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>>>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>>>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Mvh
>>> Johan Sölve
>>> ____________________________________
>>> Montania System AB
>>> Halmstad   Stockholm   Malmö
>>> http://www.montania.se
>>>
>>> Johan Sölve
>>> Mobil +46 709-51 55 70
>>> johan@...
>>>
>>> Kristinebergsvägen 17, S-302 41 Halmstad, Sweden
>>> Telefon +46 35-136800 |  Fax +46 35-136801
>>>
>>> --
>>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>>
>>>
>>>
>>
>>
>>
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>
>



--
Pier Kuipers
Visual ID
Unit S02
Synergy Centre
ITT Tallaght
Dublin 24
Ireland
Tel. +353 1 9022 575
Mobile +353 87 294 3063
Web http://www.visualid.com

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/



Re: Site Restart

by bilcorry :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Pier Kuipers wrote on 11/9/2009 3:41 AM:
> Bingo! Thanks for the pointer, *of course* Bil has a tag for that.
> Just tried it out and it appears to work perfectly - now I just have
> to wait until the site "freezes" completely to see if this tag will
> still do the trick.

Jason has one too, [site_refresh]:

        http://tagswap.net/site_refresh

The difference between them is mine creates an async process that listens in Site 0 for a restart command, but the ctag doesn't need the Lasso admin un/pw.  Jason's creates no extra processes (thus, no extra load), but does require you hardcode (or pass in) the Lasso admin un/pw into the ctag.  Mine has to be loaded via LassoStartup, his I think doesn't.


- Bil


--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/



Re: Site Restart

by Pier Kuipers :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Excellent, thanks for that. I'll pass on a URL to my client to trigger
a site restart if and when he feels that's needed, and see if that
helps him.

Many thanks

Pier

On Mon, Nov 9, 2009 at 3:13 PM, Bil Corry <bil@...> wrote:

> Pier Kuipers wrote on 11/9/2009 3:41 AM:
>> Bingo! Thanks for the pointer, *of course* Bil has a tag for that.
>> Just tried it out and it appears to work perfectly - now I just have
>> to wait until the site "freezes" completely to see if this tag will
>> still do the trick.
>
> Jason has one too, [site_refresh]:
>
>        http://tagswap.net/site_refresh
>
> The difference between them is mine creates an async process that listens in Site 0 for a restart command, but the ctag doesn't need the Lasso admin un/pw.  Jason's creates no extra processes (thus, no extra load), but does require you hardcode (or pass in) the Lasso admin un/pw into the ctag.  Mine has to be loaded via LassoStartup, his I think doesn't.
>
>
> - Bil
>
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>
>



--
Pier Kuipers
Visual ID
Unit S02
Synergy Centre
ITT Tallaght
Dublin 24
Ireland
Tel. +353 1 9022 575
Mobile +353 87 294 3063
Web http://www.visualid.com

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/



Re: Site Restart

by Pier Kuipers :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Me again - problem still not sorted :-(

When I use lp_site_restart, it does indeed restart the site - but in
doing so, loses all connection to MySQL (which is on a different box).
Looking at siteadmin after such a restart, all databases are set as
"unavailable" and the only thing that brings them back, is doing a
complete Lasso restart (lasso8ctl restart).

What am I doing wrong...?

Pier

On Mon, Nov 9, 2009 at 5:03 PM, Pier Kuipers <pierkuipers@...> wrote:

> Excellent, thanks for that. I'll pass on a URL to my client to trigger
> a site restart if and when he feels that's needed, and see if that
> helps him.
>
> Many thanks
>
> Pier
>
> On Mon, Nov 9, 2009 at 3:13 PM, Bil Corry <bil@...> wrote:
>> Pier Kuipers wrote on 11/9/2009 3:41 AM:
>>> Bingo! Thanks for the pointer, *of course* Bil has a tag for that.
>>> Just tried it out and it appears to work perfectly - now I just have
>>> to wait until the site "freezes" completely to see if this tag will
>>> still do the trick.
>>
>> Jason has one too, [site_refresh]:
>>
>>        http://tagswap.net/site_refresh
>>
>> The difference between them is mine creates an async process that listens in Site 0 for a restart command, but the ctag doesn't need the Lasso admin un/pw.  Jason's creates no extra processes (thus, no extra load), but does require you hardcode (or pass in) the Lasso admin un/pw into the ctag.  Mine has to be loaded via LassoStartup, his I think doesn't.
>>
>>
>> - Bil
>>
>>
>> --
>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>
>>
>>
>
>
>
> --
> Pier Kuipers
> Visual ID
> Unit S02
> Synergy Centre
> ITT Tallaght
> Dublin 24
> Ireland
> Tel. +353 1 9022 575
> Mobile +353 87 294 3063
> Web http://www.visualid.com
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>
>



--
Pier Kuipers
Visual ID
Unit S02
Synergy Centre
ITT Tallaght
Dublin 24
Ireland
Tel. +353 1 9022 575
Mobile +353 87 294 3063
Web http://www.visualid.com

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/



Re: Site Restart

by Pier Kuipers :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Mmm... fwiw, I'm trying to use this tag on a machine that's in a
heavily locked-down environment - and as a result, the normal loopback
address 127.0.0.1 is disabled. Could that be my problem?

I need more coffee.

Pier

On Tue, Nov 17, 2009 at 11:04 AM, Pier Kuipers <pierkuipers@...> wrote:

> Me again - problem still not sorted :-(
>
> When I use lp_site_restart, it does indeed restart the site - but in
> doing so, loses all connection to MySQL (which is on a different box).
> Looking at siteadmin after such a restart, all databases are set as
> "unavailable" and the only thing that brings them back, is doing a
> complete Lasso restart (lasso8ctl restart).
>
> What am I doing wrong...?
>
> Pier
>
> On Mon, Nov 9, 2009 at 5:03 PM, Pier Kuipers <pierkuipers@...> wrote:
>> Excellent, thanks for that. I'll pass on a URL to my client to trigger
>> a site restart if and when he feels that's needed, and see if that
>> helps him.
>>
>> Many thanks
>>
>> Pier
>>
>> On Mon, Nov 9, 2009 at 3:13 PM, Bil Corry <bil@...> wrote:
>>> Pier Kuipers wrote on 11/9/2009 3:41 AM:
>>>> Bingo! Thanks for the pointer, *of course* Bil has a tag for that.
>>>> Just tried it out and it appears to work perfectly - now I just have
>>>> to wait until the site "freezes" completely to see if this tag will
>>>> still do the trick.
>>>
>>> Jason has one too, [site_refresh]:
>>>
>>>        http://tagswap.net/site_refresh
>>>
>>> The difference between them is mine creates an async process that listens in Site 0 for a restart command, but the ctag doesn't need the Lasso admin un/pw.  Jason's creates no extra processes (thus, no extra load), but does require you hardcode (or pass in) the Lasso admin un/pw into the ctag.  Mine has to be loaded via LassoStartup, his I think doesn't.
>>>
>>>
>>> - Bil
>>>
>>>
>>> --
>>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>>
>>>
>>>
>>
>>
>>
>> --
>> Pier Kuipers
>> Visual ID
>> Unit S02
>> Synergy Centre
>> ITT Tallaght
>> Dublin 24
>> Ireland
>> Tel. +353 1 9022 575
>> Mobile +353 87 294 3063
>> Web http://www.visualid.com
>>
>> --
>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>
>>
>>
>
>
>
> --
> Pier Kuipers
> Visual ID
> Unit S02
> Synergy Centre
> ITT Tallaght
> Dublin 24
> Ireland
> Tel. +353 1 9022 575
> Mobile +353 87 294 3063
> Web http://www.visualid.com
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>
>



--
Pier Kuipers
Visual ID
Unit S02
Synergy Centre
ITT Tallaght
Dublin 24
Ireland
Tel. +353 1 9022 575
Mobile +353 87 294 3063
Web http://www.visualid.com

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/



Re: Site Restart

by Adam de Zoete-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 From looking at the tag, I think 127.0.0.1 would be required.

#outbound->(connect: '127.0.0.1', 21012);

Not sure whether that would explain why the databases are losing their
connection though. Are you sure it was lp_site_restart actually doing
the restarting?

Adam


Pier Kuipers wrote:

> Mmm... fwiw, I'm trying to use this tag on a machine that's in a
> heavily locked-down environment - and as a result, the normal loopback
> address 127.0.0.1 is disabled. Could that be my problem?
>
> I need more coffee.
>
> Pier
>
> On Tue, Nov 17, 2009 at 11:04 AM, Pier Kuipers <pierkuipers@...> wrote:
>> Me again - problem still not sorted :-(
>>
>> When I use lp_site_restart, it does indeed restart the site - but in
>> doing so, loses all connection to MySQL (which is on a different box).
>> Looking at siteadmin after such a restart, all databases are set as
>> "unavailable" and the only thing that brings them back, is doing a
>> complete Lasso restart (lasso8ctl restart).
>>
>> What am I doing wrong...?
>>
>> Pier
>>
>> On Mon, Nov 9, 2009 at 5:03 PM, Pier Kuipers <pierkuipers@...> wrote:
>>> Excellent, thanks for that. I'll pass on a URL to my client to trigger
>>> a site restart if and when he feels that's needed, and see if that
>>> helps him.
>>>
>>> Many thanks
>>>
>>> Pier
>>>
>>> On Mon, Nov 9, 2009 at 3:13 PM, Bil Corry <bil@...> wrote:
>>>> Pier Kuipers wrote on 11/9/2009 3:41 AM:
>>>>> Bingo! Thanks for the pointer, *of course* Bil has a tag for that.
>>>>> Just tried it out and it appears to work perfectly - now I just have
>>>>> to wait until the site "freezes" completely to see if this tag will
>>>>> still do the trick.
>>>> Jason has one too, [site_refresh]:
>>>>
>>>>        http://tagswap.net/site_refresh
>>>>
>>>> The difference between them is mine creates an async process that listens in Site 0 for a restart command, but the ctag doesn't need the Lasso admin un/pw.  Jason's creates no extra processes (thus, no extra load), but does require you hardcode (or pass in) the Lasso admin un/pw into the ctag.  Mine has to be loaded via LassoStartup, his I think doesn't.
>>>>
>>>>
>>>> - Bil
>>>>
>>>>
>>>> --
>>>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>>>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>>>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Pier Kuipers
>>> Visual ID
>>> Unit S02
>>> Synergy Centre
>>> ITT Tallaght
>>> Dublin 24
>>> Ireland
>>> Tel. +353 1 9022 575
>>> Mobile +353 87 294 3063
>>> Web http://www.visualid.com
>>>
>>> --
>>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>>
>>>
>>>
>>
>>
>> --
>> Pier Kuipers
>> Visual ID
>> Unit S02
>> Synergy Centre
>> ITT Tallaght
>> Dublin 24
>> Ireland
>> Tel. +353 1 9022 575
>> Mobile +353 87 294 3063
>> Web http://www.visualid.com
>>
>> --
>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>
>>
>>
>
>
>

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/



Re: Site Restart

by Pier Kuipers :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yep, definitely. I called the url that uses the tag, and the site did
indeed restart. Whoosh! MySQL gone.
I edited the tag to call the machine's external IP IP address instead,
but the problem persists...

Thanks Adam!

Pier

On Tue, Nov 17, 2009 at 11:46 AM, Adam de Zoete <lists@...> wrote:

> From looking at the tag, I think 127.0.0.1 would be required.
>
> #outbound->(connect: '127.0.0.1', 21012);
>
> Not sure whether that would explain why the databases are losing their
> connection though. Are you sure it was lp_site_restart actually doing the
> restarting?
>
> Adam
>
>
> Pier Kuipers wrote:
>>
>> Mmm... fwiw, I'm trying to use this tag on a machine that's in a
>> heavily locked-down environment - and as a result, the normal loopback
>> address 127.0.0.1 is disabled. Could that be my problem?
>>
>> I need more coffee.
>>
>> Pier
>>
>> On Tue, Nov 17, 2009 at 11:04 AM, Pier Kuipers <pierkuipers@...>
>> wrote:
>>>
>>> Me again - problem still not sorted :-(
>>>
>>> When I use lp_site_restart, it does indeed restart the site - but in
>>> doing so, loses all connection to MySQL (which is on a different box).
>>> Looking at siteadmin after such a restart, all databases are set as
>>> "unavailable" and the only thing that brings them back, is doing a
>>> complete Lasso restart (lasso8ctl restart).
>>>
>>> What am I doing wrong...?
>>>
>>> Pier
>>>
>>> On Mon, Nov 9, 2009 at 5:03 PM, Pier Kuipers <pierkuipers@...>
>>> wrote:
>>>>
>>>> Excellent, thanks for that. I'll pass on a URL to my client to trigger
>>>> a site restart if and when he feels that's needed, and see if that
>>>> helps him.
>>>>
>>>> Many thanks
>>>>
>>>> Pier
>>>>
>>>> On Mon, Nov 9, 2009 at 3:13 PM, Bil Corry <bil@...> wrote:
>>>>>
>>>>> Pier Kuipers wrote on 11/9/2009 3:41 AM:
>>>>>>
>>>>>> Bingo! Thanks for the pointer, *of course* Bil has a tag for that.
>>>>>> Just tried it out and it appears to work perfectly - now I just have
>>>>>> to wait until the site "freezes" completely to see if this tag will
>>>>>> still do the trick.
>>>>>
>>>>> Jason has one too, [site_refresh]:
>>>>>
>>>>>       http://tagswap.net/site_refresh
>>>>>
>>>>> The difference between them is mine creates an async process that
>>>>> listens in Site 0 for a restart command, but the ctag doesn't need the Lasso
>>>>> admin un/pw.  Jason's creates no extra processes (thus, no extra load), but
>>>>> does require you hardcode (or pass in) the Lasso admin un/pw into the ctag.
>>>>>  Mine has to be loaded via LassoStartup, his I think doesn't.
>>>>>
>>>>>
>>>>> - Bil
>>>>>
>>>>>
>>>>> --
>>>>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>>>>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>>>>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Pier Kuipers
>>>> Visual ID
>>>> Unit S02
>>>> Synergy Centre
>>>> ITT Tallaght
>>>> Dublin 24
>>>> Ireland
>>>> Tel. +353 1 9022 575
>>>> Mobile +353 87 294 3063
>>>> Web http://www.visualid.com
>>>>
>>>> --
>>>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>>>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>>>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Pier Kuipers
>>> Visual ID
>>> Unit S02
>>> Synergy Centre
>>> ITT Tallaght
>>> Dublin 24
>>> Ireland
>>> Tel. +353 1 9022 575
>>> Mobile +353 87 294 3063
>>> Web http://www.visualid.com
>>>
>>> --
>>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>>
>>>
>>>
>>
>>
>>
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>
>



--
Pier Kuipers
Visual ID
Unit S02
Synergy Centre
ITT Tallaght
Dublin 24
Ireland
Tel. +353 1 9022 575
Mobile +353 87 294 3063
Web http://www.visualid.com

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/



Re: Site Restart

by bilcorry :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Pier Kuipers wrote on 11/17/2009 3:57 AM:
> Yep, definitely. I called the url that uses the tag, and the site did
> indeed restart. Whoosh! MySQL gone.
> I edited the tag to call the machine's external IP IP address instead,
> but the problem persists...

Internally, my tag uses these to stop and start the site:

        http://reference.lassosoft.com/Reference.LassoApp?[Lasso_SiteStart]
        http://reference.lassosoft.com/Reference.LassoApp?[Lasso_SiteStop]

Maybe try Jason Huck's tag instead.  His simulates clicking the site restart button in LassoAdmin.  Maybe there's more to starting a site than my tag currently handles...

- Bil


--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/