Hi Alan, OK, mostly looks good -- Tomcat can see your webapps (looks like you've copied or symlink'd them to the Tomcat 8 default webapp base) and is deploying them -- although I can't see a reference to jspui in there... maybe the log file is just trimmed, or maybe something went wrong with the copy or linking? Could you show output of *ls -la /var/lib/tomcat8/webapps * ?
There is definitely a problem with file ownership, at least over the logs... you shouldn't have to reinstall dspace to change ownership, just a *chown -R tomcat8 /dspace * and *chown -R tomcat8 /var/lib/tomcat8/webapps *should be enough. Once you've updated file permissions and restarted tomcat8, you should at least be able to get to http://your-url:8080/xmlui , I think - it looked like it was deployed OK. And perhaps jspui will work as well. If not, we could look further into your URL / hostname / port configuration in dspace.cfg and make sure there are no firewall issues on the host stopping traffic to 8080 ,etc. I'll be around in the #tech-support channel on the DSpace Slack on and off over the next 5 hours. If you'd like some more interactive help you could request an invite at https://wiki.duraspace.org/display/DSPACE/Slack or join #dspace on irc.freenode.net Cheers Kim On Thursday, March 15, 2018 at 1:57:43 AM UTC+13, Alan Z wrote: > > The logs report various problems, but it's hard for me to tell if they are > the same, related, or independent. > I think I would like to start again reinstalling dspace, setting its owner > to tomcat8. This is because I see a the error line > > > log4j:ERROR setFile(null,true) call failed. > > java.io.FileNotFoundException: /dspace/log/cocoon.log.2018-03-14 > (Permission denied) > > > over and over in the catalina.out file. For what it's worth I will attach > a "tail" of that file. > I hope that starting again and using tomcat8 rather than a new dspace > account will help. > But I would like to avoid starting with a virgin system-- is there a way > to simply uninstall all traces of DSpace? Actually, will I need to make > changes inside Postgresql as well? I can see that having the Linux tomcat8 > user be associated with the postgresql dspace user (as it is currently > configured) will be confusing down the line. Have you had a problem with > that? > > A > > On Tuesday, March 13, 2018 at 12:06:05 AM UTC-4, Alan Z wrote: >> >> I am having troubles getting started due to my not understanding some >> basics about Tomcat and DSpace configuration. >> (This is with AWS "AMI" virtual with Tomcat 8, Postgresql 9.6, and DSpace >> 6.2.) All pieces seem installed correctly, but for the life of me I cannot >> get Tomcat to serve out the DSpace jspui index.jsp page. >> >> In the Dspace conf.cfg I have the following values: >> >> dspace.dir = /home/ec2-user/dspace-6.2-src-release/dspace >> >> dspace.hostname = states.xxxxx.net >> >> dspace.baseUrl = http://states.xxxxx.net:8080 >> >> >> I commented out the line >> >> #dspace.url = ${dspace.baseUrl}/${dspace.ui} >> because in the Tomcat server.xml I have NOT changed the <Host> element. >> Rather I copied all the files and folders from >> /home/ec2-user/dspace-6.2-src-release/dspace/webapps >> to the Tomcat webapps folder. >> Shoudn't this be enough to make possible browsers addressing >> http://states.xxxxx.net:8080/jspui >> to get the index.jsp file under jspui ? >> >> I would be happy to edit the <Host> element to set the appBase to the >> DSpace installation's webapps folder, except that my efforts to do all >> failed. I tried various combinations such as >> >> <Host name="states.xxxxx.net"" >> appBase="/home/ec2-user/dspace-6.2-src-release/dspace/webapps" >> >> and also >> >> <Host name="localhost" >> appBase="/home/ec2-user/dspace-6.2-src-release/dspace/webapps" >> >> BUT finally the only way I could get even the default Tomcat page to >> display was to revert back to >> >> <Host name="localhost" appBase="webapps" >> That's when I thought I would just copy all the DSpace apps into the >> default Tomcat webapps directory. >> >> I apologize for the newbie nature of the above. A gently hint would be >> most appreciated! >> >> A >> >> >> >> >> -- You received this message because you are subscribed to the Google Groups "DSpace Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/dspace-community. For more options, visit https://groups.google.com/d/optout.
