<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Troubleshooting</title><link>https://sourceforge.net/p/cellx/wiki/Troubleshooting/</link><description>Recent changes to Troubleshooting</description><atom:link href="https://sourceforge.net/p/cellx/wiki/Troubleshooting/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 08 Oct 2015 17:05:29 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/cellx/wiki/Troubleshooting/feed" rel="self" type="application/rss+xml"/><item><title>Troubleshooting modified by Keith Ching</title><link>https://sourceforge.net/p/cellx/wiki/Troubleshooting/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v6
+++ v7
@@ -19,5 +19,6 @@
 /usr/bin/sudo service httpd start
 ~~~~~~

+10/08/2015

-
+The Rserve seems to still be flakey on AWS.  Not sure if its due to Tomcat as the internal server uses JBoss without issues.  Added a cron job to shutdown the Rsever every day at midnight Pacific time and restart 2 minutes later.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Keith Ching</dc:creator><pubDate>Thu, 08 Oct 2015 17:05:29 -0000</pubDate><guid>https://sourceforge.netf08ebacc5a1a447e125eb2f6f9be2f618aac4f53</guid></item><item><title>Troubleshooting modified by Keith Ching</title><link>https://sourceforge.net/p/cellx/wiki/Troubleshooting/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v5
+++ v6
@@ -1,13 +1,14 @@
 Troubleshooting

-If only things worked the same way everytime.

 Q: Plots are not rendering and the cgi seems to hang.

 A: Plot rendering requires that the cgi get the data from the database and write the data to the html directory. Then the Tomcat servlet reads the data from the html dir and sends it to Rserve.  Rserve renders the plot, then sends the pdf back to the html dir where the cgi embeds it into the html page.  A quirk I have found on AWS is that periodically the plots will fail to render.

+I just noticed that the rserve was configured with the IP for the AWS instance, not the redirect alias so I updated that. Hopefully, it will be more stable.

-Not sure why the problem is occurring only on the AWS tomcat implementation and not the JBOSS internal implementation.  I have installed a crontab to try to reinitialize the service every night.
+
+steps to restart Rserve

 ~~~~~~
 /usr/bin/sudo service httpd stop
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Keith Ching</dc:creator><pubDate>Mon, 13 Apr 2015 19:40:10 -0000</pubDate><guid>https://sourceforge.net11e758f270b657d72e4d922489601bd02de6733b</guid></item><item><title>Troubleshooting modified by Keith Ching</title><link>https://sourceforge.net/p/cellx/wiki/Troubleshooting/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -6,19 +6,16 @@

 A: Plot rendering requires that the cgi get the data from the database and write the data to the html directory. Then the Tomcat servlet reads the data from the html dir and sends it to Rserve.  Rserve renders the plot, then sends the pdf back to the html dir where the cgi embeds it into the html page.  A quirk I have found on AWS is that periodically the plots will fail to render.

-The fix seems to be to run the R command from the shell once:
+
+Not sure why the problem is occurring only on the AWS tomcat implementation and not the JBOSS internal implementation.  I have installed a crontab to try to reinitialize the service every night.

 ~~~~~~
-cd /tmp/Rserv/connX  ( where X is one of the connection numbers there )
-R --vanilla &amp;lt; XXXXXX.R ( where XXXXX is one of the date files there )
-
-# more drastic measures
-# kill rserves
-
-sudo killall Rserve
-
-# restart tomcat
-sudo service tomcat6 restart
+/usr/bin/sudo service httpd stop
+/usr/bin/sudo service tomcat6 stop
+/usr/bin/sudo killall Rserve
+/usr/bin/sudo /disk1/src/rserve/./startRservecmdVM
+/usr/bin/sudo service tomcat6 start
+/usr/bin/sudo service httpd start
 ~~~~~~

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Keith Ching</dc:creator><pubDate>Wed, 08 Apr 2015 19:20:57 -0000</pubDate><guid>https://sourceforge.net510cffbb8926707093f4eac5a47bc91f2dce334a</guid></item><item><title>Troubleshooting modified by Keith Ching</title><link>https://sourceforge.net/p/cellx/wiki/Troubleshooting/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -11,8 +11,15 @@
 ~~~~~~
 cd /tmp/Rserv/connX  ( where X is one of the connection numbers there )
 R --vanilla &amp;lt; XXXXXX.R ( where XXXXX is one of the date files there )
+
+# more drastic measures
+# kill rserves
+
+sudo killall Rserve
+
+# restart tomcat
+sudo service tomcat6 restart
 ~~~~~~

-might also help to restart tomcat

-sudo service tomcat6 restart
+
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Keith Ching</dc:creator><pubDate>Thu, 12 Mar 2015 18:12:25 -0000</pubDate><guid>https://sourceforge.netbc2646cdaaef36f9076b00cbad0ce4961598c9e2</guid></item><item><title>Troubleshooting modified by Keith Ching</title><link>https://sourceforge.net/p/cellx/wiki/Troubleshooting/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -12,3 +12,7 @@
 cd /tmp/Rserv/connX  ( where X is one of the connection numbers there )
 R --vanilla &amp;lt; XXXXXX.R ( where XXXXX is one of the date files there )
 ~~~~~~
+
+might also help to restart tomcat
+
+sudo service tomcat6 restart
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Keith Ching</dc:creator><pubDate>Thu, 12 Mar 2015 18:04:30 -0000</pubDate><guid>https://sourceforge.net798ae6acaf3ed7e9f0e12cb4416cd9fcc16b2040</guid></item><item><title>Troubleshooting modified by Keith Ching</title><link>https://sourceforge.net/p/cellx/wiki/Troubleshooting/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -8,7 +8,7 @@

 The fix seems to be to run the R command from the shell once:

+~~~~~~
 cd /tmp/Rserv/connX  ( where X is one of the connection numbers there )
 R --vanilla &amp;lt; XXXXXX.R ( where XXXXX is one of the date files there )
-
-
+~~~~~~
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Keith Ching</dc:creator><pubDate>Mon, 22 Dec 2014 21:17:49 -0000</pubDate><guid>https://sourceforge.net5cc9ba465ed35aeac71afe597402489df0a1eb41</guid></item><item><title>Troubleshooting modified by Keith Ching</title><link>https://sourceforge.net/p/cellx/wiki/Troubleshooting/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Troubleshooting&lt;/p&gt;
&lt;p&gt;If only things worked the same way everytime.&lt;/p&gt;
&lt;p&gt;Q: Plots are not rendering and the cgi seems to hang.&lt;/p&gt;
&lt;p&gt;A: Plot rendering requires that the cgi get the data from the database and write the data to the html directory. Then the Tomcat servlet reads the data from the html dir and sends it to Rserve.  Rserve renders the plot, then sends the pdf back to the html dir where the cgi embeds it into the html page.  A quirk I have found on AWS is that periodically the plots will fail to render.&lt;/p&gt;
&lt;p&gt;The fix seems to be to run the R command from the shell once:&lt;/p&gt;
&lt;p&gt;cd /tmp/Rserv/connX  ( where X is one of the connection numbers there )&lt;br /&gt;
R --vanilla &amp;lt; XXXXXX.R ( where XXXXX is one of the date files there )&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Keith Ching</dc:creator><pubDate>Mon, 22 Dec 2014 21:14:46 -0000</pubDate><guid>https://sourceforge.net86b0328cbae04124ae6eb5cffb3e8637a2bcb334</guid></item></channel></rss>