Stopping pack-demo Sakai

13 views
Skip to first unread message

Neal Caidin

unread,
Dec 9, 2015, 8:24:10 AM12/9/15
to sakai-dev
Hi sakai-dev,

For testing, I use pack-demo all the time:

mvn clean install -P pack-demo

Then I unpack a demo copy of Sakai. I'll have to do is hook it up to MySql with a property change, and the MySQL connector and I'm set to go. 

That's still working, but when I try stopping Sakai with 

./stop-sakai

I get a stack trace and Sakai won't stop. The only way I know to stop it is with a kill command.

I start sakai up using my account on my local machine (i.e. not root).  Currently working with a local copy of 10.x  .

Using CATALINA_BASE:   /opt/apache-tomcat-7.0.29

Using CATALINA_HOME:   /opt/apache-tomcat-7.0.29

Using CATALINA_TMPDIR: /opt/apache-tomcat-7.0.29/temp

Using JRE_HOME:        /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home

Using CLASSPATH:       /opt/apache-tomcat-7.0.29/bin/bootstrap.jar:/opt/apache-tomcat-7.0.29/bin/tomcat-juli.jar

Dec 09, 2015 8:19:02 AM org.apache.catalina.startup.Catalina stopServer

SEVERE: Catalina.stop: 

java.io.FileNotFoundException: /opt/apache-tomcat-7.0.29/conf/server.xml (Permission denied)

at java.io.FileInputStream.open(Native Method)

at java.io.FileInputStream.<init>(FileInputStream.java:146)

at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:458)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:371)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:453)


Any suggestions?


Thanks,

Neal

 

Leonardo Canessa

unread,
Dec 9, 2015, 8:58:44 AM12/9/15
to Neal Caidin, sakai-dev
java.io.FileNotFoundException: /opt/apache-tomcat-7.0.29/conf/server.xml (Permission denied)

That line I think is key. I would confirm that the file exists and the permissions are correct.



Leonardo Canessa
Web Developer - E-Learning

--
You received this message because you are subscribed to the Google Groups "Sakai Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sakai-dev+...@apereo.org.
To post to this group, send email to saka...@apereo.org.
Visit this group at http://groups.google.com/a/apereo.org/group/sakai-dev/.

Neal Caidin

unread,
Dec 9, 2015, 9:12:55 AM12/9/15
to Leonardo Canessa, sakai-dev
Ok. The file exists. And the permissions are root. Which explains the message .... except, I've run pack-demo for several years and never had this happen. Pack demo is supposed to be fairly self contained.

My hypothesis is that it should be looking for server.xml in the directory in which I've installed the pack-demo version. That is   ./conf/server.xml , a relative path from where I'm running it, rather than an absolute path ?

-- Neal

Leonardo Canessa

unread,
Dec 9, 2015, 9:43:52 AM12/9/15
to Neal Caidin, sakai-dev
I'm not sure. I'm not familiar with how pack-demo works.

The only other suggestion I have is to see if the issue persists in a previous revision. Hopefully someone else will be able to chime in with some more help. 

Leonardo Canessa
Web Developer - E-Learning

Neal Caidin

unread,
Dec 9, 2015, 9:54:16 AM12/9/15
to Leonardo Canessa, sakai-dev
Thanks. Yeah, same problem with 10.5 .   

Cheers

Reply all
Reply to author
Forward
0 new messages