[Deploying Sakai] tomcat not working properly

Steve Swinsburg steve.swinsburg at gmail.com
Wed Jan 13 14:45:14 PST 2010


Hi Matthew,

From what you described and looking at the log, Tomcat is up fine, its just inaccessible remotely. Open it up and you'll be set.

cheers,
Steve

On 14/01/2010, at 5:51 AM, Matthew De Leon wrote:

> Thanks Kevin. I ran netstat -an and I got
> 
> : : : 9090
> 
> where the IP address should be. No IP address was displayed. Is this a non-issue?
> 
> Matt
> 
> On Wed, Jan 13, 2010 at 1:30 PM, Kevin P. Foote <kpfoote at iup.edu> wrote:
> 
> Matthew -
> 
> If accessing in that manor (from your desktop) you will need to verify
> that the server is accepting traffic to that port and thus the
> apache/tomcat instance you have up.
> 
> You can run netstat -an on the CLI to view whats accepting. Look at the
> first table. Should be something like below where nnn is your servers
> IP.
> 
> tcp        0      0 ::ffff:nnn.nnn.nnn.nnn:8080  :::* LISTEN
> 
> You can also use lsof -Pni to reveal open ports on this (assuming linux)
> which would show something like this
> 
> java    28468    sak  104u  IPv6 1821684       TCP *:8443 (LISTEN)
> 
> 
> If you don't have stuff like that displayed with your port in question
> (9090) then check your iptables config
> 
> 
> ------
> thanks
>  kevin.foote
> 
> On Wed, 13 Jan 2010, Matthew De Leon wrote:
> 
> -> Quick update: I might be slightly misleading everyone :p. I'm not accessing
> -> the pages via localhost but the VM's IP. In other word's, the page is timing
> -> out when I attempt to access http://ip_address:9090/portal. This is
> -> necessary because I only have access to the VM via shell. But, I thought it
> -> would be interesting to see what the VM itself sees when accessing via
> -> localhost, so I ran
> ->
> -> wget http://localhost:9090/portal
> ->
> -> and it retrieved the appropriate file. So now it looks as though tomcat is
> -> inaccessible only remotely. Any thoughts on what might be causing this? I'm
> -> now uncertain if this is a tomcat issue or a server issue that is
> -> independent of sakai/tomcat.
> ->
> -> Thanks,
> -> Matt
> ->
> -> On Wed, Jan 13, 2010 at 11:55 AM, Matthew De Leon <smidwap at gmail.com> wrote:
> ->
> -> > Thanks for the quick response, Steve. I've been working with the log file
> -> > for some time now trying to find the root of the problem, and after fixing a
> -> > couple issues (including changing the port from 8080 to 9090 and increasing
> -> > memory usage for java through JAVA_OPTS), I am once again stuck. I've
> -> > attached my log file.
> -> >
> -> > I've perused the log files and examined any WARN and ERROR messages that
> -> > appeared. None of them point to anything obviously wrong with my
> -> > installation and configuration. The only symptom I'm finding now is that
> -> > http://localhost:9090 isn't loading. In fact, the last few lines in the
> -> > log file are:
> -> >
> -> > 2010-01-13 10:38:59,603  INFO main org.apache.catalina.startup.Catalina -
> -> > Server startup in 227976 ms
> -> > 2010-01-13 10:42:18,774  INFO Timer-2
> -> > org.sakaiproject.email.impl.BasicEmailService - Preparing to send the mail
> -> > digests for 20100113060000000]20100114060000000
> -> > 2010-01-13 10:43:48,710  WARN SakaiClusterService.Maintenance
> -> > org.sakaiproject.cluster.impl.SakaiClusterService - run(): ghost-busting
> -> > server: localhost-1263399544288 from : localhost-1263400536809
> -> >
> -> > which look promising. I was able to successfully install the demo on my
> -> > local windows machine and this is similar to the messages I received before
> -> > tomcat began to operate properly.
> -> >
> -> > Thoughts? Any help is appreciated.
> -> >
> -> > Matt
> -> >
> -> >
> -> > On Tue, Jan 12, 2010 at 9:51 PM, Steve Swinsburg <
> -> > steve.swinsburg at gmail.com> wrote:
> -> >
> -> >> Hi Matthew,
> -> >>
> -> >> When you startup, the log should be available in
> -> >> /opt/tomcat/logs/catalina.out
> -> >>
> -> >> In a separate terminal window/tab, if you issue 'tail
> -> >> -f opt/tomcat/logs/catalina.out' as a command (without the ') then you'll
> -> >> see the log messages fly past. Check this for any exceptions or error
> -> >> messages, or just attach it here and we can take a look. However, delete the
> -> >> old one, then start Sakai again and send a fresh one so it doesn't contain
> -> >> multiple startups.
> -> >>
> -> >> Also, make sure you aren't running anything on port 8080 already? Run
> -> >> 'netstat' and check the first table for the ports that are up, see if 8080
> -> >> is amongst them.
> -> >>
> -> >> cheers,
> -> >> Steve
> -> >>
> -> >>
> -> >>
> -> >> On 13/01/2010, at 1:27 PM, Matthew De Leon wrote:
> -> >>
> -> >> Hi all,
> -> >>
> -> >> I am new to Sakai and I'm in the process of trying to install it for the
> -> >> first time (from the binary). I'm not an even a mildly experienced system
> -> >> administrator but nevertheless I've been charged with bringing this baby to
> -> >> fruition.
> -> >>
> -> >> I followed the iinstallation nstructions very closely each step of the
> -> >> way, but I've now encountered a roadblock: http://localhost:8080 isn't
> -> >> loading. Furthermore, http://localhost:4848 isn't loading either, which
> -> >> supposedly is an online console for java? (Not sure if this matters or not.)
> -> >> Anyways, my only lead so far is an error I am receiving when running
> -> >> shutdown.sh in tomcat/bin. Here's a brief excerpt of the error I get:
> -> >>
> -> >> Error main org.apache.catalina.startup.Catalina - Catalina.stop:
> -> >> java.net.ConnectException: Connection refused
> -> >>
> -> >> ......followed by a series of similar messages, like:
> -> >>
> -> >> at java.net.PlainSocketImp1.socketConnect(Native Method)
> -> >>
> -> >> The error is proceeded by this output:
> -> >>
> -> >> Using CATALINA_BASE: /opt/tomcat
> -> >> Using CATALINA_HOME: /opt/tomcat
> -> >> Using CATALINA_TMPDIR: /opt/tomcat/temp
> -> >> Using JRE_HOME: /usr/java/jre1.5.0_22
> -> >> Using CLASSPATH: /opt/tomcat/bin/bootstrap.jar
> -> >>
> -> >> Any thoughts on where I should look for mistakes in installations? This is
> -> >> the only evidence I have so far of things going awry; besides that error
> -> >> everything seems ok (including tomcat on startup). But, again, 8080 is not
> -> >> loading.
> -> >>
> -> >> Thank you in advance. Let me know if more information is needed.
> -> >>
> -> >> Matt
> -> >> _______________________________________________
> -> >> production mailing list
> -> >> production at collab.sakaiproject.org
> -> >> http://collab.sakaiproject.org/mailman/listinfo/production
> -> >>
> -> >> TO UNSUBSCRIBE: send email to
> -> >> production-unsubscribe at collab.sakaiproject.org with a subject of
> -> >> "unsubscribe"
> -> >>
> -> >>
> -> >>
> -> >
> ->
> 
> _______________________________________________
> production mailing list
> production at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/production
> 
> TO UNSUBSCRIBE: send email to production-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/production/attachments/20100114/7bc84bdf/attachment-0001.html 


More information about the production mailing list