Re: [WebDNA] WebDNA restart script

This WebDNA talk-list message is from

2015


It keeps the original formatting.
numero = 111970
interpreted = N
texte = Donovan, Most of my servers are stable all year long, but I have one or two bad apples that hiccup and give me the "template not found" error. It always aggravates me that parts of my CMS will run fine, but only one or two pages say they are not found. Even though the WebDNA Monitor says the engine is running, I stop it and restart it to solve this issue. Other than the "template not found" issue, there's another issue that goes unnoticed until it's way too late. Emails get stuck in the EMailFolder without any other hint of a problem. When this happens, it happens to all websites on the server all at once. A WebDNA stop/start does not solve this issue, so I have to reboot the server. This has been a problem for me since 1997 when I started using WebDNA. Every server I've ever had, from WebCat 3 on RedHat 3, WebCat 4 on RedHat 4, WebDNA 5 on RedHat 5, WebDNA 6 on RedHat 5 and CentOS 6.2/6.3/6.4 have all randomly decided to one day trap all the emails. Well, in early 2014 a mission critical server for my utility company client stopped sending emails. It only took us about 18 hours to notice, but they were livid. So I developed a bunch of triggers, and set up a dedicated server just to ping every one of my production servers. Now, twice a day, all at once, I get a series of emails from all the servers sent to my smartphone. I know everything is working as long as I see every email. It turns out that this is a really good DNS and network check too. Now, the other issue, and the one you are wondering about with the command not working started happening in November 2014 with one of the servers. This one server is a VPS from GoDaddy. I think it started right after they upgraded it from CentOS 6.3 to 6.4. This server is running the WebDNA 6.? Pre-Gold build you gave me in the summer of 2013. I have a form page for uploading images. Once submitted the script runs this command: [text]garbage=[Shell scriptid=jr4newslettersimages][/Shell][/text] Normally the images are processed through ImageMagick and we see them on he screen. But several times a day since November the images do not upload. Here's the script that's getting called: "[PathToImageMagick]convert" -size [smThumb]x[smThumb] "../../../newsletters/images/original/[uploadedimg]" -resize [smThumb]x[smThumb] +profile "*" "../../../newsletters/images/thumb/[uploadedimg]"[unurl][line_ending][/unurl][!] [/!]"[PathToImageMagick]convert" -size [medThumb]x[medThumb] "../../../newsletters/images/original/[uploadedimg]" -resize [medThumb]x[medThumb] +profile "*" "../../../newsletters/images/medThumb/[uploadedimg]"[unurl][line_ending][/unurl][!] [/!]"[PathToImageMagick]convert" -size [lgThumb]x[lgThumb] "../../../newsletters/images/original/[uploadedimg]" -resize [lgThumb]x[lgThumb] +profile "*" "../../../newsletters/images/[uploadedimg]"[unurl][line_ending][/unurl] Of course that script has not changed in years, so that's not the problem. Just like the "template not found" issue, a stop/start of the engine fixes this. I assume it's some strange disconnect with the OS 6.3 to 6.4 upgrade, perhaps a library. I also assume it will go away when I eventually upgrade to WebDNA 8. In the mean time I just have a cron job running this script every hour during normal business hours: /etc/rc.d/init.d/WebCatalogCtl stop sleep 5 /etc/rc.d/init.d/WebCatalogCtl start I love my cats, but I always seem to find new ways to skin them. ;-) -Matt On 1/20/2015 9:33 AM, Donovan Brooke wrote: > Hi Matt, > I have experienced the “template not found” error, currently only on my 6.2 Server boxes. It is rare (few times a year), so when it happens I just do a manual restart. I’m not sure what you mean by "commands stop working”. I haven’t experienced that. > > I have other (significant traffic) servers (6.3 and 8.0 Server versions) that have uptime’s over a year. That’s not to say that the “template not found” error couldn’t happen on those boxes someday. If you are experiencing these things regularly, it would be interesting to find out what is causing the issues. > > I don’t think switching to FastCGI is going to change your “stability issues” other than you won’t need a cron job if you have a server that is crashing. The engine is pretty much the same between Server and FastCGI, only FastCGI restarts itself inherently, without the need of a WebDNA Monitor app. If you have a server that is crashing, you may not notice things as much, but the event would still be recorded.. and things like sessions, or page loads could still be interrupted. The “template not found” error seems an error other than crashing. > > If I had to guess, this error has something to do with code... Maybe not bad code necessarily, but maybe task-oriented code that WebDNA fails to execute through in an ideal/complete fashion. I think the answer would eventually come in a keen eye on the WebDNA and Apache logs, and trying to isolate an exact time when WebDNA stops recognizing a file. > > Anyway, I’d be interested if you find anything, as I was aware of the “template not found" issue, but it was never a priority because of the rarity of the event. > > Sincerely, > Donovan > > > > > On Jan 20, 2015, at 5:23 AM, Matthew Perosi wrote: > >> This is exactly why I have to restart mine every once in a while. WebDNA says it's running, but some commands stop working. >> >> Sometimes pages give me a "template not found" type error while others are fine. >> >> On one of my servers running CentOS 6.3 and webDNA 6.2 I have a cron job restarting WebDNA every 2 hours during the work day because calls to ImageMagic stop working at random, but everything else works. >> >> A cron restart prevents it all. I'm looking forward to the inevitable switch to fastcgi to be free of these stability issues. >> >> Matt >> >> Sent from my European iPhone >> >>> On Jan 20, 2015, at 2:35 AM, Stuart Tremain wrote: >>> >>> Chris does the app just ping WebDNA or does it check if it is working ie checks that it is processing commands etc ? >>> >>> >>> >>> Kind regards >>> >>> Stuart Tremain >>> IDFK Web Developments >>> AUSTRALIA >>> webdna@idfk.com.au >>> >>> >>> >>> >>> >>>> On 20 Jan 2015, at 6:17 pm, christophe.billiottet@webdna.us wrote: >>>> >>>> Check that WebDNAMonitor is up and running: this small application monitors WebDNA server and restart it if necessary. >>>> >>>> - chris >>>> >>>> >>>> >>>> >>>> >>>>> On 20 Jan 2015, at 09:56, Stuart Tremain wrote: >>>>> >>>>> Every now and then WebDNA stops working ….. >>>>> >>>>> >>>>> >>>>> Kind regards >>>>> >>>>> Stuart Tremain >>>>> IDFK Web Developments >>>>> AUSTRALIA >>>>> webdna@idfk.com.au >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>> On 20 Jan 2015, at 5:37 pm, Dan Strong wrote: >>>>>> >>>>>> Why do you ask? >>>>>> >>>>>> ------------------------------------ >>>>>> Sent from phone >>>>>> >>>>>> -Dan Strong >>>>>> http://DanStrong.com >>>>>> >>>>>> On Jan 19, 2015 7:47 PM, "Stuart Tremain" wrote: >>>>>> I saw a couple of people are restarting WebDNA on a regular basis using CRON on Linux. >>>>>> >>>>>> May I ask as to why you feel this is necessary ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Kind regards >>>>>> >>>>>> Stuart Tremain >>>>>> IDFK Web Developments >>>>>> AUSTRALIA >>>>>> webdna@idfk.com.au >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> --------------------------------------------------------- >>>>>> 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 >>>> --------------------------------------------------------- >>>> 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 > --------------------------------------------------------- > 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 > > > > -- > Matthew A Perosi > Corporate Consultant > Mobile Marketing Expert > Senior Web Developer > SEO Analyst & Educator > matt@psiprime.com > > Psi Prime, Inc. > 323 Union Blvd. > Totowa, NJ 07512 > > Direct: 888.872.0274 > Fax: 888.488.5924 > > http://www.perosi.com Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] WebDNA restart script (christophe.billiottet@webdna.us 2015)
  2. Re: [WebDNA] WebDNA restart script (Dan Strong 2015)
  3. Re: [WebDNA] WebDNA restart script (Stuart Tremain 2015)
  4. Re: [WebDNA] WebDNA restart script (Kenneth Grome 2015)
  5. Re: [WebDNA] WebDNA restart script (Stuart Tremain 2015)
  6. Re: [WebDNA] WebDNA restart script (Stuart Tremain 2015)
  7. Re: [WebDNA] WebDNA restart script (Kenneth Grome 2015)
  8. Re: [WebDNA] WebDNA restart script (Stuart Tremain 2015)
  9. Re: [WebDNA] WebDNA restart script (Kenneth Grome 2015)
  10. Re: [WebDNA] WebDNA restart script ("Psi Prime Inc, Matthew A Perosi " 2015)
  11. Re: [WebDNA] WebDNA restart script (Kenneth Grome 2015)
  12. Re: [WebDNA] WebDNA restart script (Stuart Tremain 2015)
  13. Re: [WebDNA] WebDNA restart script (Kenneth Grome 2015)
  14. Re: [WebDNA] WebDNA restart script (Stuart Tremain 2015)
  15. Re: [WebDNA] WebDNA restart script (Kenneth Grome 2015)
  16. Re: [WebDNA] WebDNA restart script (Stuart Tremain 2015)
  17. Re: [WebDNA] WebDNA restart script (Kenneth Grome 2015)
  18. Re: [WebDNA] WebDNA restart script (Stuart Tremain 2015)
  19. Re: [WebDNA] WebDNA restart script (Dan Strong 2015)
  20. Re: [WebDNA] WebDNA restart script ("Psi Prime Inc, Matthew A Perosi " 2015)
  21. Re: [WebDNA] WebDNA restart script (christophe.billiottet@webdna.us 2015)
  22. Re: [WebDNA] WebDNA restart script (Dan Strong 2015)
  23. Re: [WebDNA] WebDNA restart script (Terry Wilson 2015)
  24. Re: [WebDNA] WebDNA restart script (Dan Strong 2015)
  25. Re: [WebDNA] WebDNA restart script ("Psi Prime Inc, Matthew A Perosi " 2015)
  26. Re: [WebDNA] WebDNA restart script (Donovan Brooke 2015)
  27. Re: [WebDNA] WebDNA restart script (Stuart Tremain 2015)
  28. Re: [WebDNA] WebDNA restart script (Matthew Perosi 2015)
  29. Re: [WebDNA] WebDNA restart script (Stuart Tremain 2015)
  30. Re: [WebDNA] WebDNA restart script (christophe.billiottet@webdna.us 2015)
  31. Re: [WebDNA] WebDNA restart script (Stuart Tremain 2015)
  32. Re: [WebDNA] WebDNA restart script (Dan Strong 2015)
  33. [WebDNA] WebDNA restart script (Stuart Tremain 2015)
Donovan, Most of my servers are stable all year long, but I have one or two bad apples that hiccup and give me the "template not found" error. It always aggravates me that parts of my CMS will run fine, but only one or two pages say they are not found. Even though the WebDNA Monitor says the engine is running, I stop it and restart it to solve this issue. Other than the "template not found" issue, there's another issue that goes unnoticed until it's way too late. Emails get stuck in the EMailFolder without any other hint of a problem. When this happens, it happens to all websites on the server all at once. A WebDNA stop/start does not solve this issue, so I have to reboot the server. This has been a problem for me since 1997 when I started using WebDNA. Every server I've ever had, from WebCat 3 on RedHat 3, WebCat 4 on RedHat 4, WebDNA 5 on RedHat 5, WebDNA 6 on RedHat 5 and CentOS 6.2/6.3/6.4 have all randomly decided to one day trap all the emails. Well, in early 2014 a mission critical server for my utility company client stopped sending emails. It only took us about 18 hours to notice, but they were livid. So I developed a bunch of triggers, and set up a dedicated server just to ping every one of my production servers. Now, twice a day, all at once, I get a series of emails from all the servers sent to my smartphone. I know everything is working as long as I see every email. It turns out that this is a really good DNS and network check too. Now, the other issue, and the one you are wondering about with the command not working started happening in November 2014 with one of the servers. This one server is a VPS from GoDaddy. I think it started right after they upgraded it from CentOS 6.3 to 6.4. This server is running the WebDNA 6.? Pre-Gold build you gave me in the summer of 2013. I have a form page for uploading images. Once submitted the script runs this command: [text]garbage=[Shell scriptid=jr4newslettersimages][/Shell][/text] Normally the images are processed through ImageMagick and we see them on he screen. But several times a day since November the images do not upload. Here's the script that's getting called: "[PathToImageMagick]convert" -size [smThumb]x[smThumb] "../../../newsletters/images/original/[uploadedimg]" -resize [smThumb]x[smThumb] +profile "*" "../../../newsletters/images/thumb/[uploadedimg]"[unurl][line_ending][/unurl][!] [/!]"[PathToImageMagick]convert" -size [medThumb]x[medThumb] "../../../newsletters/images/original/[uploadedimg]" -resize [medThumb]x[medThumb] +profile "*" "../../../newsletters/images/medThumb/[uploadedimg]"[unurl][line_ending][/unurl][!] [/!]"[PathToImageMagick]convert" -size [lgThumb]x[lgThumb] "../../../newsletters/images/original/[uploadedimg]" -resize [lgThumb]x[lgThumb] +profile "*" "../../../newsletters/images/[uploadedimg]"[unurl][line_ending][/unurl] Of course that script has not changed in years, so that's not the problem. Just like the "template not found" issue, a stop/start of the engine fixes this. I assume it's some strange disconnect with the OS 6.3 to 6.4 upgrade, perhaps a library. I also assume it will go away when I eventually upgrade to WebDNA 8. In the mean time I just have a cron job running this script every hour during normal business hours: /etc/rc.d/init.d/WebCatalogCtl stop sleep 5 /etc/rc.d/init.d/WebCatalogCtl start I love my cats, but I always seem to find new ways to skin them. ;-) -Matt On 1/20/2015 9:33 AM, Donovan Brooke wrote: > Hi Matt, > I have experienced the “template not found” error, currently only on my 6.2 Server boxes. It is rare (few times a year), so when it happens I just do a manual restart. I’m not sure what you mean by "commands stop working”. I haven’t experienced that. > > I have other (significant traffic) servers (6.3 and 8.0 Server versions) that have uptime’s over a year. That’s not to say that the “template not found” error couldn’t happen on those boxes someday. If you are experiencing these things regularly, it would be interesting to find out what is causing the issues. > > I don’t think switching to FastCGI is going to change your “stability issues” other than you won’t need a cron job if you have a server that is crashing. The engine is pretty much the same between Server and FastCGI, only FastCGI restarts itself inherently, without the need of a WebDNA Monitor app. If you have a server that is crashing, you may not notice things as much, but the event would still be recorded.. and things like sessions, or page loads could still be interrupted. The “template not found” error seems an error other than crashing. > > If I had to guess, this error has something to do with code... Maybe not bad code necessarily, but maybe task-oriented code that WebDNA fails to execute through in an ideal/complete fashion. I think the answer would eventually come in a keen eye on the WebDNA and Apache logs, and trying to isolate an exact time when WebDNA stops recognizing a file. > > Anyway, I’d be interested if you find anything, as I was aware of the “template not found" issue, but it was never a priority because of the rarity of the event. > > Sincerely, > Donovan > > > > > On Jan 20, 2015, at 5:23 AM, Matthew Perosi wrote: > >> This is exactly why I have to restart mine every once in a while. WebDNA says it's running, but some commands stop working. >> >> Sometimes pages give me a "template not found" type error while others are fine. >> >> On one of my servers running CentOS 6.3 and webDNA 6.2 I have a cron job restarting WebDNA every 2 hours during the work day because calls to ImageMagic stop working at random, but everything else works. >> >> A cron restart prevents it all. I'm looking forward to the inevitable switch to fastcgi to be free of these stability issues. >> >> Matt >> >> Sent from my European iPhone >> >>> On Jan 20, 2015, at 2:35 AM, Stuart Tremain wrote: >>> >>> Chris does the app just ping WebDNA or does it check if it is working ie checks that it is processing commands etc ? >>> >>> >>> >>> Kind regards >>> >>> Stuart Tremain >>> IDFK Web Developments >>> AUSTRALIA >>> webdna@idfk.com.au >>> >>> >>> >>> >>> >>>> On 20 Jan 2015, at 6:17 pm, christophe.billiottet@webdna.us wrote: >>>> >>>> Check that WebDNAMonitor is up and running: this small application monitors WebDNA server and restart it if necessary. >>>> >>>> - chris >>>> >>>> >>>> >>>> >>>> >>>>> On 20 Jan 2015, at 09:56, Stuart Tremain wrote: >>>>> >>>>> Every now and then WebDNA stops working ….. >>>>> >>>>> >>>>> >>>>> Kind regards >>>>> >>>>> Stuart Tremain >>>>> IDFK Web Developments >>>>> AUSTRALIA >>>>> webdna@idfk.com.au >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>> On 20 Jan 2015, at 5:37 pm, Dan Strong wrote: >>>>>> >>>>>> Why do you ask? >>>>>> >>>>>> ------------------------------------ >>>>>> Sent from phone >>>>>> >>>>>> -Dan Strong >>>>>> http://DanStrong.com >>>>>> >>>>>> On Jan 19, 2015 7:47 PM, "Stuart Tremain" wrote: >>>>>> I saw a couple of people are restarting WebDNA on a regular basis using CRON on Linux. >>>>>> >>>>>> May I ask as to why you feel this is necessary ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Kind regards >>>>>> >>>>>> Stuart Tremain >>>>>> IDFK Web Developments >>>>>> AUSTRALIA >>>>>> webdna@idfk.com.au >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> --------------------------------------------------------- >>>>>> 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 >>>> --------------------------------------------------------- >>>> 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 > --------------------------------------------------------- > 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 > > > > -- > Matthew A Perosi > Corporate Consultant > Mobile Marketing Expert > Senior Web Developer > SEO Analyst & Educator > matt@psiprime.com > > Psi Prime, Inc. > 323 Union Blvd. > Totowa, NJ 07512 > > Direct: 888.872.0274 > Fax: 888.488.5924 > > http://www.perosi.com "Psi Prime Inc, Matthew A Perosi "

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:

redirect with frames (1997) 2.0Beta Command Ref (can't find this instruction) (1997) Summing fields (1997) SKU (1997) Template Encryption (1998) WebDav (2001) [replace][founditems]? (2004) [format xs] freeze (1997) Hairy Shipping Monster (2006) generate sequential numbers (2000) Max Record length restated as maybe bug (1997) XMLNodes Error (2007) detecting if var is blank? (2007) Possible Bug in 2.0b15.acgi (1997) RE: Remote delivery (1998) Problem with broken images (2004) Robert Minor duplicate mail (1997) Quantity * price (1997) Sherlock and WebCat (1998) Item options w/ price adjustment (1997)