Re: [WebDNA] Sorry WebDNA server not running

This WebDNA talk-list message is from

2014


It keeps the original formatting.
numero = 111415
interpreted = N
texte = --Apple-Mail=_820589E5-DAAE-44D4-B956-8CF236E7026C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Hi Matt, I wrote a shell script a while back to check and restart webDNA as = necessary. It runs on Mac OSX but you should be able to adapt it (see = below). Phil #!/bin/sh = #-------------------------------------------------------------------------= ------ # This script will: # (1) Check for a named process and relaunch it if it is not running; # (2) Check a URL and relaunch a process if it gets an error message; or # (3) Relaunch the process if the URL does not load withing a set time. # # To install place in /usr/local/bin/ and create a launchdaemon or=20 # add following 2 lines to crontab: ## WebDNA Checker #*/4 * * * * root = /usr/local/bin/check-webdna-mk2.sh # # Phil Ronchetti # modified 2011/10/18 = #-------------------------------------------------------------------------= ------ #Settings ThisHost=3D$(hostname) ProcessName=3D"WebCatalog" = Command1=3D"/Library/WebServer/CGI-Executables/WebCatalogEngine/WebCatalog= Ctl stop" = Command2=3D"/Library/WebServer/CGI-Executables/WebCatalogEngine/WebCatalog= Ctl start" #Checks CheckProcess=3D$(ps axc | grep -i $ProcessName) #Gets info on the = process with this name CheckHTTP=3D$(curl -m 12 http://$ThisHost/webcatalog/) case $CheckHTTP in *""*) HTTP_Error=3D"False" ;; *) HTTP_Error=3D"True" ;; esac case $CheckHTTP in *"WebDNA server not running"*) WebDNA_Error=3D"True" ;; *) WebDNA_Error=3D"False" ;; esac if [ "$CheckProcess" =3D "" ] || [ "$WebDNA_Error" =3D "True" ] || [ = "$HTTP_Error" =3D "True" ] #i.e. no process was found or WebDNA server = not running or page not loaded in time then thisyear=3D$(date +%Y) #today's year YYYY thismonth=3D$(date +%m) #today's month mm (01 to 12) thisday=3D$(date +%d) #today's day of month dd (01 to 31) LogTail=3D$(tail = /var/log/httpd/$thisyear-$thismonth-$thisday-server-a.log) ServerLoad=3D$(uptime) $Command1 sleep 5 #Seconds to wait for the previous command to be completed $Command2 sleep 5 #Seconds to wait for the previous command to be completed echo "$ProcessName Relaunched" echo "CheckProcess=3D$CheckProcess" echo "WebDNA_Error=3D$WebDNA_Error" echo "HTTP_Error=3D $HTTP_Error" NewProcess=3D$(ps axc | grep -i $ProcessName) echo -e "CheckProcess=3D$CheckProcess\n\n" = "WebDNA_Error=3D$WebDNA_Error\n\n" "HTTP_Error=3D$HTTP_Error\n\n" = "NewProcess=3D$NewProcess\n\n" "LogTail=3D$LogTail\n\n" "uptime (N.B. = load averages are 1, 5 & 15 minutes)=3D$ServerLoad\n" | mail -s = "$ProcessName Relaunched" {your email address} else echo "$ProcessName is OK" fi On 27 Jun 2014, at 16:05, Matthew Perisi wrote: > This is a common occurrence on all my WebDNA servers running 6.x on my = RedHat and CentOS servers.=20 >=20 > It has been such an issue over the years that I have another server = set up specifically to ping each of my other webDNA servers to look for = that error message.=20 >=20 > At least once a day one of my servers goes down with that error = message. The pinging server emails me within five minutes and I use = Webmin from any device to login to stop, then start the webDNA daemon = again.=20 >=20 > The whole set up limits my ability to be off the grid. And I have to = say that my servers know when I am. My servers love to fail when I am on = an airplane, swimming, or taking a jungle walk! >=20 > -Matt >=20 > Sent from my European iPhone >=20 > On Jun 27, 2014, at 9:57 AM, frederite wrote: >=20 >> It appears that your WebCatalogCTL file is in the WebCatalogEngine = folder. On my server the WebCatalogEngine folder is in the default = location here: >>=20 >> /usr/lib/cgi-bin/WebCatalogEngine >>=20 >> I just tried the stop and start commands with the correct path and = they worked fine. Thank you! >>=20 >>=20 >> On Fri, Jun 27, 2014 at 8:50 AM, Paul Willis = wrote: >> On our Ubuntu server (not 12.04 though) we use=85 >>=20 >> /var/www/cgi-bin/WebCatalogEngine/WebCatalogCtl start >> /var/www/cgi-bin/WebCatalogEngine/WebCatalogCtl stop >>=20 >> Paul >>=20 >>=20 >> On 27 Jun 2014, at 14:32, frederite wrote: >>=20 >>> I tried your suggestion but it seems there is no WebDNA folder: >>>=20 >>> -bash: cd: /var/www/WebDNA: No such file or directory >>>=20 >>> What shall I try next? >>>=20 >>>=20 >>>=20 >>> On Fri, Jun 27, 2014 at 8:16 AM, = wrote: >>> Connecting as root and try to restart WebDNA. >>>=20 >>> do a >>>=20 >>> ./WebCatalogCtl stop >>> followed by >>> ./WebCatalogCtl start >>>=20 >>> from the /WebDNA folder >>>=20 >>> If there is a problem, you should get some debug info. >>>=20 >>> You can also do >>>=20 >>> /etc/rc.d/init.d/WebCatalogCtl stop >>> followed by >>> /etc/rc.d/init.d/WebCatalogCtl start >>>=20 >>> - chris >>>=20 >>>=20 >>> On Jun 27, 2014, at 15:25, frederite wrote: >>>=20 >>> > Hello chris, >>> > >>> > The client does not allow third party access. Please tell me what = to look for so I can diagnose the problem personally. >>> > >>> > >>> > On Fri, Jun 27, 2014 at 7:17 AM, = wrote: >>> > Hi Frederite, >>> > >>> > this is strange. Maybe something changed few months ago on your = server, without restarting WebDNA, then WebDNAMonitor had to restart = WebDNA last night and the problem showed up. >>> > >>> > If you can give us a ssh access (to support@webdna.us, not on the = list) we will have a look at it. >>> > >>> > - chris >>> > >>> > >>> > >>> > On Jun 27, 2014, at 14:59, frederite wrote: >>> > >>> > > This morning I woke to this error: "Sorry WebDNA server not = running". The host says nothing has changed and I haven't done anything = on the server for four months yet the problem exists so something is = wrong. >>> > > >>> > > Rebooting the server failed to get WebDNA running again. = Restarting Apache2 failed as well. >>> > > >>> > > How do I fix this problem? How can I diagnose what's wrong so I = can resolve the issue quickly and prevent it from happening again? >>> > > >>> > > WebDNA 6.2 >>> > > Ubuntu 12.04 >>> > > Apache 2.2.22 >>> > > --------------------------------------------------------- This = message is sent to you because you are subscribed to the mailing list . = To unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us Bug Reporting: = support@webdna.us >>> > >>> > --------------------------------------------------------- >>> > This message is sent to you because you are subscribed to >>> > the mailing list . >>> > To unsubscribe, E-mail to: >>> > archives: http://mail.webdna.us/list/talk@webdna.us >>> > Bug Reporting: support@webdna.us >>> > >>> > --------------------------------------------------------- This = message is sent to you because you are subscribed to the mailing list . = To unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us Bug Reporting: = support@webdna.us >>>=20 >>> --------------------------------------------------------- >>> This message is sent to you because you are subscribed to >>> the mailing list . >>> To unsubscribe, E-mail to: >>> archives: http://mail.webdna.us/list/talk@webdna.us >>> Bug Reporting: support@webdna.us >>>=20 >>> --------------------------------------------------------- This = message is sent to you because you are subscribed to the mailing list . = To unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us Bug Reporting: = support@webdna.us >>=20 >> --------------------------------------------------------- This = message is sent to you because you are subscribed to the mailing list . = To unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us Bug Reporting: = support@webdna.us >>=20 >> --------------------------------------------------------- This = message is sent to you because you are subscribed to the mailing list . = To unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us Bug Reporting: = support@webdna.us > --------------------------------------------------------- This message = is sent to you because you are subscribed to the mailing list . To = unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us Bug Reporting: = support@webdna.us --Apple-Mail=_820589E5-DAAE-44D4-B956-8CF236E7026C Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 Hi Matt,

I = wrote a shell script a while back to check and restart webDNA as = necessary. It runs on Mac OSX but you should be able to adapt it (see = below).

Phil

#!/bin/sh
#-------------------------------------------------------------------= ------------
# This script will:
# (1) Check for a named process = and relaunch it if it is not running;
# (2) Check a URL and relaunch = a process if it gets an error message; or
# (3) Relaunch the process = if the URL does not load withing a set time.
#
# To install place = in /usr/local/bin/ and create a launchdaemon or 
# add following = 2 lines to crontab:
## WebDNA Checker
#*/4     *   =     *       *       *   =     root   =  /usr/local/bin/check-webdna-mk2.sh
#
# Phil Ronchetti
# = modified = 2011/10/18
#-----------------------------------------------------------= --------------------


#Settings
ThisHost=3D$(hostname)
Pro= cessName=3D"WebCatalog"
Command1=3D"/Library/WebServer/CGI-Executables/= WebCatalogEngine/WebCatalogCtl = stop"
Command2=3D"/Library/WebServer/CGI-Executables/WebCatalogEngine/W= ebCatalogCtl start"

#Checks
CheckProcess=3D$(ps axc | grep -i = $ProcessName) #Gets info on the process with this = name
CheckHTTP=3D$(curl -m 12 http://$ThisHost/webcatalog/)
case $CheckHTTP in
*"</html>"*) =  HTTP_Error=3D"False"
       ;;
*)   =   HTTP_Error=3D"True"
      =  ;;
esac

case $CheckHTTP in
*"WebDNA server not = running"*)  WebDNA_Error=3D"True"
      =  ;;
*)     WebDNA_Error=3D"False"
    =    ;;
esac

if [ "$CheckProcess" =3D "" ] || [ = "$WebDNA_Error" =3D "True" ] || [ "$HTTP_Error" =3D "True" ] #i.e. no = process was found or WebDNA server not running or page not loaded in = time
then
  thisyear=3D$(date +%Y) #today's year = YYYY
  thismonth=3D$(date +%m) #today's month mm (01 to = 12)
  thisday=3D$(date +%d) #today's day of month dd (01 to = 31)
  LogTail=3D$(tail = /var/log/httpd/$thisyear-$thismonth-$thisday-server-a.log)
  = ServerLoad=3D$(uptime)
  $Command1
  sleep 5 #Seconds to = wait for the previous command to be completed
  = $Command2
  sleep 5 #Seconds to wait for the previous command to = be completed
  echo "$ProcessName Relaunched"
  echo = "CheckProcess=3D$CheckProcess"
  echo = "WebDNA_Error=3D$WebDNA_Error"
  echo "HTTP_Error=3D = $HTTP_Error"
  NewProcess=3D$(ps axc | grep -i = $ProcessName)
  echo -e "CheckProcess=3D$CheckProcess\n\n" = "WebDNA_Error=3D$WebDNA_Error\n\n" "HTTP_Error=3D$HTTP_Error\n\n" = "NewProcess=3D$NewProcess\n\n" "LogTail=3D$LogTail\n\n" "uptime (N.B. = load averages are 1, 5 & 15 minutes)=3D$ServerLoad\n" | mail -s = "$ProcessName Relaunched" {your email address}
else
  echo = "$ProcessName is OK"
fi

On 27 Jun 2014, = at 16:05, Matthew Perisi <matt@psiprime.com> = wrote:

This is a common occurrence on = all my WebDNA servers running 6.x on my RedHat and CentOS = servers. 

It has been such an issue over = the years that I have another server set up specifically to ping each of = my other webDNA servers to look for that error = message. 

At least once a day one of my = servers goes down with that error message. The pinging server emails me = within five minutes and I use Webmin from any device to login to stop, = then start the webDNA daemon again. 

The whole set up limits = my ability to be off the grid. And I have to say that my servers know = when I am. My servers love to fail when I am on an airplane, swimming, = or taking a jungle walk!

-Matt

Sent from = my European iPhone

On Jun 27, 2014, at 9:57 AM, frederite = <frederite@gmail.com> = wrote:

It = appears that your WebCatalogCTL file is in the WebCatalogEngine = folder.  On my server the WebCatalogEngine folder is in the default = location here:

/usr/lib/cgi-bin/WebCatalogEngine

I just tried the stop and start commands with the correct path and they = worked fine. Thank you!


On Fri, Jun 27, 2014 at 8:50 AM, Paul Willis <paul.willis@me.com> wrote:
On our Ubuntu server (not 12.04 though) = we = use=85

/var/www/cgi-bin/WebCatalogEngine/WebCatalogCtl = start
/var/www/cgi-bin/WebCatalogEngine/WebCatalogCtl stop

Paul


On 27 Jun 2014, at 14:32, frederite = <frederite@gmail.com> wrote:

I tried your suggestion = but it seems there is no WebDNA folder:

-bash: cd: = /var/www/WebDNA: No such file or directory

What shall I try = next?



On Fri, Jun 27, 2014 at 8:16 AM, = <christophe.billiottet@webdna.us> = wrote:
Connecting as root and try to restart WebDNA.

do a

./WebCatalogCtl stop
followed by
./WebCatalogCtl start

from the /WebDNA folder

If there is a problem, you should get some debug info.

You can also do

/etc/rc.d/init.d/WebCatalogCtl stop
followed by
/etc/rc.d/init.d/WebCatalogCtl start

- chris


On Jun 27, 2014, at 15:25, frederite <frederite@gmail.com> wrote:

> Hello chris,
>
> The client does not allow third party access. Please tell me what = to look for so I can diagnose the problem personally.
>
>
> On Fri, Jun 27, 2014 at 7:17 AM, <christophe.billiottet@webdna.us> wrote:
> Hi Frederite,
>
> this is strange. Maybe something changed few months ago on your = server, without restarting WebDNA, then WebDNAMonitor had to restart = WebDNA last night and the problem showed up.
>
> If you can give us a ssh access (to support@webdna.us,= not on the list) we will have a look at it.
>
> - chris
>
>
>
> On Jun 27, 2014, at 14:59, frederite <frederite@gmail.com> wrote:
>
> > This morning I woke to this error:  "Sorry WebDNA server = not running". The host says nothing has changed and I haven't done = anything on the server for four months yet the problem exists so = something is wrong.
> >
> > Rebooting the server failed to get WebDNA running again. = Restarting Apache2 failed as well.
> >
> > How do I fix this problem? How can I diagnose what's wrong so = I can resolve the issue quickly and prevent it from happening again?
> >
> > WebDNA 6.2
> > Ubuntu 12.04
> > Apache 2.2.22
> > --------------------------------------------------------- This = message is sent to you because you are subscribed to the mailing list . = To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug = Reporting: support@webdna.us
>
> ---------------------------------------------------------
> This message is sent to you because you are subscribed to
> the mailing list <talk@webdna.us>.
> To unsubscribe, E-mail to: <talk-leave@webdna.us>
> archives: http://mail.webdna.us/list/talk@webdna.us
> Bug Reporting: support@webdna.us
>
> --------------------------------------------------------- This = message is sent to you because you are subscribed to the mailing list . = To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug = Reporting: support@webdna.us

---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <talk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: support@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us

=
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/l= ist/talk@webdna.us Bug Reporting: support@webdna.us
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/l= ist/talk@webdna.us Bug Reporting: support@webdna.us

= --Apple-Mail=_820589E5-DAAE-44D4-B956-8CF236E7026C-- Associated Messages, from the most recent to the oldest:

    
  1. RE: [WebDNA] Sorry WebDNA server not running /Template ERROR/ Slow speeds ("Terry Nair" 2019)
  2. Re: [WebDNA] Sorry WebDNA server not running /Template ERROR/ Slow (Stuart Tremain 2019)
  3. Re: [WebDNA] Sorry WebDNA server not running /Template ERROR/ Slow speeds (Tom Duke 2019)
  4. RE: [WebDNA] Sorry WebDNA server not running /Template ERROR/ Slow ("Scott @ Itsula" 2019)
  5. Re: [WebDNA] Sorry WebDNA server not running /Template ERROR/ Slow (christophe.billiottet@webdna.us 2019)
  6. RE: [WebDNA] Sorry WebDNA server not running /Template ERROR/ Slow ("Scott @ Itsula" 2019)
  7. Re: [WebDNA] Sorry WebDNA server not running /Template ERROR/ Slow (WebDNA Solutions 2019)
  8. RE: [WebDNA] Sorry WebDNA server not running /Template ERROR/ Slow ("Scott @ Itsula" 2019)
  9. RE: [WebDNA] Sorry WebDNA server not running /Template ERROR/ Slow ("Scott @ Itsula" 2019)
  10. Re: [WebDNA] Sorry WebDNA server not running /Template ERROR/ Slow (WebDNA Solutions 2019)
  11. Re: [WebDNA] Sorry WebDNA server not running /Template ERROR/ Slow (WebDNA Solutions 2019)
  12. Re: [WebDNA] Sorry WebDNA server not running /Template ERROR/ Slow (Patrick McCormick 2019)
  13. Re: [WebDNA] Sorry WebDNA server not running /Template ERROR/ Slow speeds (Brian Harrington 2019)
  14. RE: [WebDNA] Sorry WebDNA server not running /Template ERROR/ Slow ("Scott @ Itsula" 2019)
  15. Re: [WebDNA] Sorry WebDNA server not running /Template ERROR/ Slow speeds (Brian Harrington 2019)
  16. Re: [WebDNA] Sorry WebDNA server not running /Template ERROR/ Slow speeds (Stuart Tremain 2019)
  17. Re: [WebDNA] Sorry WebDNA server not running /Template ERROR/ Slow speeds (Brian Harrington 2019)
  18. Re: [WebDNA] Sorry WebDNA server not running /Template ERROR/ Slow (WebDNA Solutions 2019)
  19. Re: [WebDNA] Sorry WebDNA server not running /Template ERROR/ Slow (WebDNA Solutions 2019)
  20. RE: [WebDNA] Sorry WebDNA server not running /Template ERROR/ Slow ("Scott @ Itsula" 2019)
  21. Re: [WebDNA] Sorry WebDNA server not running /Template ERROR/ Slow speeds (Brian Harrington 2019)
  22. Re: [WebDNA] Sorry WebDNA server not running /Template ERROR/ Slow (WebDNA Solutions 2019)
  23. Re: [WebDNA] Sorry WebDNA server not running /Template ERROR/ Slow (Stuart Tremain 2019)
  24. Re: [WebDNA] Sorry WebDNA server not running /Template ERROR/ Slow speeds (Brian Harrington 2019)
  25. Re: [WebDNA] Sorry WebDNA server not running /Template ERROR/ Slow (H - Powerpalle 2019)
  26. [WebDNA] Sorry WebDNA server not running /Template ERROR/ Slow speeds (Brian Harrington 2019)
  27. Re: [WebDNA] Sorry WebDNA server not running - September 2019 Edition (H - Powerpalle 2019)
  28. Re: [WebDNA] Sorry WebDNA server not running - September 2019 Edition (christophe.billiottet@webdna.us 2019)
  29. Re: [WebDNA] Sorry WebDNA server not running - September 2019 Edition (H - Powerpalle 2019)
  30. Re: [WebDNA] Sorry WebDNA server not running - September 2019 Edition (H - Powerpalle 2019)
  31. Re: [WebDNA] Sorry WebDNA server not running - September 2019 Edition (christophe.billiottet@webdna.us 2019)
  32. Re: [WebDNA] Sorry WebDNA server not running - September 2019 Edition (H - Powerpalle 2019)
  33. Re: [WebDNA] Sorry WebDNA server not running - September 2019 Edition (Donovan Brooke 2019)
  34. Re: [WebDNA] Sorry WebDNA server not running - September 2019 Edition (H - Powerpalle 2019)
  35. Re: [WebDNA] Sorry WebDNA server not running - September 2019 Edition (H - Powerpalle 2019)
  36. Re: [WebDNA] Sorry WebDNA server not running - September 2019 Edition (christophe.billiottet@webdna.us 2019)
  37. Re: [WebDNA] Sorry WebDNA server not running - September 2019 Edition (Donovan Brooke 2019)
  38. Re: [WebDNA] Sorry WebDNA server not running - September 2019 Edition (H - Powerpalle 2019)
  39. Re: [WebDNA] Sorry WebDNA server not running - September 2019 Edition (H - Powerpalle 2019)
  40. Re: [WebDNA] Sorry WebDNA server not running - September 2019 Edition (Donovan Brooke 2019)
  41. Re: [WebDNA] Sorry WebDNA server not running - September 2019 Edition (H - Powerpalle 2019)
  42. Re: [WebDNA] Sorry WebDNA server not running - September 2019 Edition (Donovan Brooke 2019)
  43. [WebDNA] Sorry WebDNA server not running - September 2019 Edition (H - Powerpalle 2019)
  44. Re: [WebDNA] Sorry WebDNA server not running. (christophe.billiottet@webdna.us 2017)
  45. Re: [WebDNA] Sorry WebDNA server not running. (Kenneth Grome 2017)
  46. Re: [WebDNA] Sorry WebDNA server not running. (Kenneth Grome 2017)
  47. Re: [WebDNA] Sorry WebDNA server not running. (Bob Minor 2017)
  48. [WebDNA] Sorry WebDNA server not running. (Kenneth Grome 2017)
  49. Re: [WebDNA] Sorry WebDNA server not running (Palle Bo Nielsen 2015)
  50. Re: [WebDNA] Sorry WebDNA server not running (christophe.billiottet@webdna.us 2015)
  51. Re: [WebDNA] Sorry WebDNA server not running (Palle Bo Nielsen 2015)
  52. Re: [WebDNA] Sorry WebDNA server not running. (Dan Strong 2015)
  53. Re: [WebDNA] Sorry WebDNA server not running. (Kenneth Grome 2015)
  54. Re: [WebDNA] Sorry WebDNA server not running. (Dan Strong 2015)
  55. Re: [WebDNA] Sorry WebDNA server not running. (Kenneth Grome 2015)
  56. Re: [WebDNA] Sorry WebDNA server not running. (Dan Strong 2015)
  57. Re: [WebDNA] Sorry WebDNA server not running. ("Psi Prime Inc, Matthew A Perosi " 2015)
  58. Re: [WebDNA] Sorry WebDNA server not running. (Dan Strong 2015)
  59. Re: [WebDNA] Sorry WebDNA server not running. (Kenneth Grome 2015)
  60. Re: [WebDNA] Sorry WebDNA server not running. (christophe.billiottet@webdna.us 2015)
  61. Re: [WebDNA] Sorry WebDNA server not running. (christophe.billiottet@webdna.us 2015)
  62. Re: [WebDNA] Sorry WebDNA server not running. (Steve Craig 2015)
  63. [WebDNA] Sorry WebDNA server not running. (Kenneth Grome 2015)
  64. Re: [WebDNA] Sorry WebDNA server not running (christophe.billiottet@webdna.us 2014)
  65. [WebDNA] Sorry WebDNA server not running ("mainlighting ." 2014)
  66. Re: [WebDNA] Sorry WebDNA server not running (christophe.billiottet@webdna.us 2014)
  67. Re: [WebDNA] Sorry WebDNA server not running (Palle 2014)
  68. Re: [WebDNA] Sorry WebDNA server not running (christophe.billiottet@webdna.us 2014)
  69. Re: [WebDNA] Sorry WebDNA server not running (Stephen Reiss 2014)
  70. Re: [WebDNA] Sorry WebDNA server not running (christophe.billiottet@webdna.us 2014)
  71. Re: [WebDNA] Sorry WebDNA server not running (Palle 2014)
  72. Re: [WebDNA] Sorry WebDNA server not running (Donovan Brooke 2014)
  73. Re: [WebDNA] Sorry WebDNA server not running ("Psi Prime Inc, Matthew A Perosi " 2014)
  74. Re: [WebDNA] Sorry WebDNA server not running (Donovan Brooke 2014)
  75. Re: [WebDNA] Sorry WebDNA server not running (Donovan Brooke 2014)
  76. Re: [WebDNA] Sorry WebDNA server not running (Marc Thompson 2014)
  77. Re: [WebDNA] Sorry WebDNA server not running (Phil Ronchetti 2014)
  78. Re: [WebDNA] Sorry WebDNA server not running (christophe.billiottet@webdna.us 2014)
  79. Re: [WebDNA] Sorry WebDNA server not running (Matthew Perisi 2014)
  80. Re: [WebDNA] Sorry WebDNA server not running (Paul Willis 2014)
  81. Re: [WebDNA] Sorry WebDNA server not running (frederite 2014)
  82. Re: [WebDNA] Sorry WebDNA server not running (Paul Willis 2014)
  83. Re: [WebDNA] Sorry WebDNA server not running (frederite 2014)
  84. Re: [WebDNA] Sorry WebDNA server not running (christophe.billiottet@webdna.us 2014)
  85. Re: [WebDNA] Sorry WebDNA server not running (frederite 2014)
  86. Re: [WebDNA] Sorry WebDNA server not running (christophe.billiottet@webdna.us 2014)
  87. [WebDNA] Sorry WebDNA server not running (frederite 2014)
  88. Re: [WebDNA] Sorry WebDNA server not running. (Clint Davis 2008)
  89. Re: [WebDNA] Sorry WebDNA server not running. (christophe.billiottet@webdna.us 2008)
  90. [WebDNA] Sorry WebDNA server not running. (Kenneth Grome 2008)
--Apple-Mail=_820589E5-DAAE-44D4-B956-8CF236E7026C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Hi Matt, I wrote a shell script a while back to check and restart webDNA as = necessary. It runs on Mac OSX but you should be able to adapt it (see = below). Phil #!/bin/sh = #-------------------------------------------------------------------------= ------ # This script will: # (1) Check for a named process and relaunch it if it is not running; # (2) Check a URL and relaunch a process if it gets an error message; or # (3) Relaunch the process if the URL does not load withing a set time. # # To install place in /usr/local/bin/ and create a launchdaemon or=20 # add following 2 lines to crontab: ## WebDNA Checker #*/4 * * * * root = /usr/local/bin/check-webdna-mk2.sh # # Phil Ronchetti # modified 2011/10/18 = #-------------------------------------------------------------------------= ------ #Settings ThisHost=3D$(hostname) ProcessName=3D"WebCatalog" = Command1=3D"/Library/WebServer/CGI-Executables/WebCatalogEngine/WebCatalog= Ctl stop" = Command2=3D"/Library/WebServer/CGI-Executables/WebCatalogEngine/WebCatalog= Ctl start" #Checks CheckProcess=3D$(ps axc | grep -i $ProcessName) #Gets info on the = process with this name CheckHTTP=3D$(curl -m 12 http://$ThisHost/webcatalog/) case $CheckHTTP in *""*) HTTP_Error=3D"False" ;; *) HTTP_Error=3D"True" ;; esac case $CheckHTTP in *"WebDNA server not running"*) WebDNA_Error=3D"True" ;; *) WebDNA_Error=3D"False" ;; esac if [ "$CheckProcess" =3D "" ] || [ "$WebDNA_Error" =3D "True" ] || [ = "$HTTP_Error" =3D "True" ] #i.e. no process was found or WebDNA server = not running or page not loaded in time then thisyear=3D$(date +%Y) #today's year YYYY thismonth=3D$(date +%m) #today's month mm (01 to 12) thisday=3D$(date +%d) #today's day of month dd (01 to 31) LogTail=3D$(tail = /var/log/httpd/$thisyear-$thismonth-$thisday-server-a.log) ServerLoad=3D$(uptime) $Command1 sleep 5 #Seconds to wait for the previous command to be completed $Command2 sleep 5 #Seconds to wait for the previous command to be completed echo "$ProcessName Relaunched" echo "CheckProcess=3D$CheckProcess" echo "WebDNA_Error=3D$WebDNA_Error" echo "HTTP_Error=3D $HTTP_Error" NewProcess=3D$(ps axc | grep -i $ProcessName) echo -e "CheckProcess=3D$CheckProcess\n\n" = "WebDNA_Error=3D$WebDNA_Error\n\n" "HTTP_Error=3D$HTTP_Error\n\n" = "NewProcess=3D$NewProcess\n\n" "LogTail=3D$LogTail\n\n" "uptime (N.B. = load averages are 1, 5 & 15 minutes)=3D$ServerLoad\n" | mail -s = "$ProcessName Relaunched" {your email address} else echo "$ProcessName is OK" fi On 27 Jun 2014, at 16:05, Matthew Perisi wrote: > This is a common occurrence on all my WebDNA servers running 6.x on my = RedHat and CentOS servers.=20 >=20 > It has been such an issue over the years that I have another server = set up specifically to ping each of my other webDNA servers to look for = that error message.=20 >=20 > At least once a day one of my servers goes down with that error = message. The pinging server emails me within five minutes and I use = Webmin from any device to login to stop, then start the webDNA daemon = again.=20 >=20 > The whole set up limits my ability to be off the grid. And I have to = say that my servers know when I am. My servers love to fail when I am on = an airplane, swimming, or taking a jungle walk! >=20 > -Matt >=20 > Sent from my European iPhone >=20 > On Jun 27, 2014, at 9:57 AM, frederite wrote: >=20 >> It appears that your WebCatalogCTL file is in the WebCatalogEngine = folder. On my server the WebCatalogEngine folder is in the default = location here: >>=20 >> /usr/lib/cgi-bin/WebCatalogEngine >>=20 >> I just tried the stop and start commands with the correct path and = they worked fine. Thank you! >>=20 >>=20 >> On Fri, Jun 27, 2014 at 8:50 AM, Paul Willis = wrote: >> On our Ubuntu server (not 12.04 though) we use=85 >>=20 >> /var/www/cgi-bin/WebCatalogEngine/WebCatalogCtl start >> /var/www/cgi-bin/WebCatalogEngine/WebCatalogCtl stop >>=20 >> Paul >>=20 >>=20 >> On 27 Jun 2014, at 14:32, frederite wrote: >>=20 >>> I tried your suggestion but it seems there is no WebDNA folder: >>>=20 >>> -bash: cd: /var/www/WebDNA: No such file or directory >>>=20 >>> What shall I try next? >>>=20 >>>=20 >>>=20 >>> On Fri, Jun 27, 2014 at 8:16 AM, = wrote: >>> Connecting as root and try to restart WebDNA. >>>=20 >>> do a >>>=20 >>> ./WebCatalogCtl stop >>> followed by >>> ./WebCatalogCtl start >>>=20 >>> from the /WebDNA folder >>>=20 >>> If there is a problem, you should get some debug info. >>>=20 >>> You can also do >>>=20 >>> /etc/rc.d/init.d/WebCatalogCtl stop >>> followed by >>> /etc/rc.d/init.d/WebCatalogCtl start >>>=20 >>> - chris >>>=20 >>>=20 >>> On Jun 27, 2014, at 15:25, frederite wrote: >>>=20 >>> > Hello chris, >>> > >>> > The client does not allow third party access. Please tell me what = to look for so I can diagnose the problem personally. >>> > >>> > >>> > On Fri, Jun 27, 2014 at 7:17 AM, = wrote: >>> > Hi Frederite, >>> > >>> > this is strange. Maybe something changed few months ago on your = server, without restarting WebDNA, then WebDNAMonitor had to restart = WebDNA last night and the problem showed up. >>> > >>> > If you can give us a ssh access (to support@webdna.us, not on the = list) we will have a look at it. >>> > >>> > - chris >>> > >>> > >>> > >>> > On Jun 27, 2014, at 14:59, frederite wrote: >>> > >>> > > This morning I woke to this error: "Sorry WebDNA server not = running". The host says nothing has changed and I haven't done anything = on the server for four months yet the problem exists so something is = wrong. >>> > > >>> > > Rebooting the server failed to get WebDNA running again. = Restarting Apache2 failed as well. >>> > > >>> > > How do I fix this problem? How can I diagnose what's wrong so I = can resolve the issue quickly and prevent it from happening again? >>> > > >>> > > WebDNA 6.2 >>> > > Ubuntu 12.04 >>> > > Apache 2.2.22 >>> > > --------------------------------------------------------- This = message is sent to you because you are subscribed to the mailing list . = To unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us Bug Reporting: = support@webdna.us >>> > >>> > --------------------------------------------------------- >>> > This message is sent to you because you are subscribed to >>> > the mailing list . >>> > To unsubscribe, E-mail to: >>> > archives: http://mail.webdna.us/list/talk@webdna.us >>> > Bug Reporting: support@webdna.us >>> > >>> > --------------------------------------------------------- This = message is sent to you because you are subscribed to the mailing list . = To unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us Bug Reporting: = support@webdna.us >>>=20 >>> --------------------------------------------------------- >>> This message is sent to you because you are subscribed to >>> the mailing list . >>> To unsubscribe, E-mail to: >>> archives: http://mail.webdna.us/list/talk@webdna.us >>> Bug Reporting: support@webdna.us >>>=20 >>> --------------------------------------------------------- This = message is sent to you because you are subscribed to the mailing list . = To unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us Bug Reporting: = support@webdna.us >>=20 >> --------------------------------------------------------- This = message is sent to you because you are subscribed to the mailing list . = To unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us Bug Reporting: = support@webdna.us >>=20 >> --------------------------------------------------------- This = message is sent to you because you are subscribed to the mailing list . = To unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us Bug Reporting: = support@webdna.us > --------------------------------------------------------- This message = is sent to you because you are subscribed to the mailing list . To = unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us Bug Reporting: = support@webdna.us --Apple-Mail=_820589E5-DAAE-44D4-B956-8CF236E7026C Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 Hi Matt,

I = wrote a shell script a while back to check and restart webDNA as = necessary. It runs on Mac OSX but you should be able to adapt it (see = below).

Phil

#!/bin/sh
#-------------------------------------------------------------------= ------------
# This script will:
# (1) Check for a named process = and relaunch it if it is not running;
# (2) Check a URL and relaunch = a process if it gets an error message; or
# (3) Relaunch the process = if the URL does not load withing a set time.
#
# To install place = in /usr/local/bin/ and create a launchdaemon or 
# add following = 2 lines to crontab:
## WebDNA Checker
#*/4     *   =     *       *       *   =     root   =  /usr/local/bin/check-webdna-mk2.sh
#
# Phil Ronchetti
# = modified = 2011/10/18
#-----------------------------------------------------------= --------------------


#Settings
ThisHost=3D$(hostname)
Pro= cessName=3D"WebCatalog"
Command1=3D"/Library/WebServer/CGI-Executables/= WebCatalogEngine/WebCatalogCtl = stop"
Command2=3D"/Library/WebServer/CGI-Executables/WebCatalogEngine/W= ebCatalogCtl start"

#Checks
CheckProcess=3D$(ps axc | grep -i = $ProcessName) #Gets info on the process with this = name
CheckHTTP=3D$(curl -m 12 http://$ThisHost/webcatalog/)
case $CheckHTTP in
*"</html>"*) =  HTTP_Error=3D"False"
       ;;
*)   =   HTTP_Error=3D"True"
      =  ;;
esac

case $CheckHTTP in
*"WebDNA server not = running"*)  WebDNA_Error=3D"True"
      =  ;;
*)     WebDNA_Error=3D"False"
    =    ;;
esac

if [ "$CheckProcess" =3D "" ] || [ = "$WebDNA_Error" =3D "True" ] || [ "$HTTP_Error" =3D "True" ] #i.e. no = process was found or WebDNA server not running or page not loaded in = time
then
  thisyear=3D$(date +%Y) #today's year = YYYY
  thismonth=3D$(date +%m) #today's month mm (01 to = 12)
  thisday=3D$(date +%d) #today's day of month dd (01 to = 31)
  LogTail=3D$(tail = /var/log/httpd/$thisyear-$thismonth-$thisday-server-a.log)
  = ServerLoad=3D$(uptime)
  $Command1
  sleep 5 #Seconds to = wait for the previous command to be completed
  = $Command2
  sleep 5 #Seconds to wait for the previous command to = be completed
  echo "$ProcessName Relaunched"
  echo = "CheckProcess=3D$CheckProcess"
  echo = "WebDNA_Error=3D$WebDNA_Error"
  echo "HTTP_Error=3D = $HTTP_Error"
  NewProcess=3D$(ps axc | grep -i = $ProcessName)
  echo -e "CheckProcess=3D$CheckProcess\n\n" = "WebDNA_Error=3D$WebDNA_Error\n\n" "HTTP_Error=3D$HTTP_Error\n\n" = "NewProcess=3D$NewProcess\n\n" "LogTail=3D$LogTail\n\n" "uptime (N.B. = load averages are 1, 5 & 15 minutes)=3D$ServerLoad\n" | mail -s = "$ProcessName Relaunched" {your email address}
else
  echo = "$ProcessName is OK"
fi

On 27 Jun 2014, = at 16:05, Matthew Perisi <matt@psiprime.com> = wrote:

This is a common occurrence on = all my WebDNA servers running 6.x on my RedHat and CentOS = servers. 

It has been such an issue over = the years that I have another server set up specifically to ping each of = my other webDNA servers to look for that error = message. 

At least once a day one of my = servers goes down with that error message. The pinging server emails me = within five minutes and I use Webmin from any device to login to stop, = then start the webDNA daemon again. 

The whole set up limits = my ability to be off the grid. And I have to say that my servers know = when I am. My servers love to fail when I am on an airplane, swimming, = or taking a jungle walk!

-Matt

Sent from = my European iPhone

On Jun 27, 2014, at 9:57 AM, frederite = <frederite@gmail.com> = wrote:

It = appears that your WebCatalogCTL file is in the WebCatalogEngine = folder.  On my server the WebCatalogEngine folder is in the default = location here:

/usr/lib/cgi-bin/WebCatalogEngine

I just tried the stop and start commands with the correct path and they = worked fine. Thank you!


On Fri, Jun 27, 2014 at 8:50 AM, Paul Willis <paul.willis@me.com> wrote:
On our Ubuntu server (not 12.04 though) = we = use=85

/var/www/cgi-bin/WebCatalogEngine/WebCatalogCtl = start
/var/www/cgi-bin/WebCatalogEngine/WebCatalogCtl stop

Paul


On 27 Jun 2014, at 14:32, frederite = <frederite@gmail.com> wrote:

I tried your suggestion = but it seems there is no WebDNA folder:

-bash: cd: = /var/www/WebDNA: No such file or directory

What shall I try = next?



On Fri, Jun 27, 2014 at 8:16 AM, = <christophe.billiottet@webdna.us> = wrote:
Connecting as root and try to restart WebDNA.

do a

./WebCatalogCtl stop
followed by
./WebCatalogCtl start

from the /WebDNA folder

If there is a problem, you should get some debug info.

You can also do

/etc/rc.d/init.d/WebCatalogCtl stop
followed by
/etc/rc.d/init.d/WebCatalogCtl start

- chris


On Jun 27, 2014, at 15:25, frederite <frederite@gmail.com> wrote:

> Hello chris,
>
> The client does not allow third party access. Please tell me what = to look for so I can diagnose the problem personally.
>
>
> On Fri, Jun 27, 2014 at 7:17 AM, <christophe.billiottet@webdna.us> wrote:
> Hi Frederite,
>
> this is strange. Maybe something changed few months ago on your = server, without restarting WebDNA, then WebDNAMonitor had to restart = WebDNA last night and the problem showed up.
>
> If you can give us a ssh access (to support@webdna.us,= not on the list) we will have a look at it.
>
> - chris
>
>
>
> On Jun 27, 2014, at 14:59, frederite <frederite@gmail.com> wrote:
>
> > This morning I woke to this error:  "Sorry WebDNA server = not running". The host says nothing has changed and I haven't done = anything on the server for four months yet the problem exists so = something is wrong.
> >
> > Rebooting the server failed to get WebDNA running again. = Restarting Apache2 failed as well.
> >
> > How do I fix this problem? How can I diagnose what's wrong so = I can resolve the issue quickly and prevent it from happening again?
> >
> > WebDNA 6.2
> > Ubuntu 12.04
> > Apache 2.2.22
> > --------------------------------------------------------- This = message is sent to you because you are subscribed to the mailing list . = To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug = Reporting: support@webdna.us
>
> ---------------------------------------------------------
> This message is sent to you because you are subscribed to
> the mailing list <talk@webdna.us>.
> To unsubscribe, E-mail to: <talk-leave@webdna.us>
> archives: http://mail.webdna.us/list/talk@webdna.us
> Bug Reporting: support@webdna.us
>
> --------------------------------------------------------- This = message is sent to you because you are subscribed to the mailing list . = To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug = Reporting: support@webdna.us

---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <talk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: support@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us

=
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/l= ist/talk@webdna.us Bug Reporting: support@webdna.us
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/l= ist/talk@webdna.us Bug Reporting: support@webdna.us

= --Apple-Mail=_820589E5-DAAE-44D4-B956-8CF236E7026C-- Phil Ronchetti

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

download a file (2001) database paths/names, and a typo (1997) auto number (2005) Duplicates (1998) Help Please WebDNA 6 Secure Forms Problem (2004) ShowNext (1997) Unknown error: OrderNotCreated (1997) Summing fields (1997) authenticating a second user (1997) Can't use old cart file (was One more try) (1997) Internet backup (2000) form data submission gets truncated (1997) Limiting user access to .tmpl files (1997) [WebDNA] Chatroom with Webcatalog (2011) Not really WebCat- (1997) Mac carriage returns (2004) redirect with frames (1997) Need relative path explanation (1997) FW: ANother SHOWIF problem (1997) Bug Report, maybe (1997)