FAIL - Application at context path [/server] could not be started

143 views
Skip to first unread message

Night Librarian

unread,
Mar 28, 2022, 3:57:45 PM3/28/22
to DSpace Technical Support

I am trying to install DSpace 7.2 on Ubuntu 20.04.3 LTS.  According to the instructions in step 11 here: Installing DSpace - DSpace 7.x Documentation - LYRASIS Wiki, I copied the "server" webapp from /dspace/webapps to /var/lib/tomcat9/webapps.  Now, "server" is showing in Tomcat Web Application Manager, but when I click on start next to it, the Manager says:

FAIL - Application at context path [/server] could not be started 

FAIL - Encountered exception [org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/server]]]  


What could be the problem here?

Tim Donohue

unread,
Mar 30, 2022, 3:51:58 PM3/30/22
to DSpace Technical Support
Hi,

You'd need to check the DSpace and Tomcat logs for information about the error.  The message you shared just shows that it failed to start, but it doesn't tell us "why".  The "why" part is usually in the logs.  Here's our troubleshooting guide for information on finding errors in logs (and elsewhere): https://wiki.lyrasis.org/display/DSPACE/Troubleshoot+an+error#Troubleshootanerror-DSpace7.x(orabove)

Tim

Night Librarian

unread,
Mar 31, 2022, 10:34:22 PM3/31/22
to DSpace Technical Support
Thank you, Tim.

There is nothing in Dspace logs, but Tomcat has it logged in two files. Catalina.log has this:

31-Mar-2022 23:11:01.216 WARNING [http-nio-8080-exec-15] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [server] appears to have started a thread named [org.dspace.services] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java...@11.0.14/java.lang.Object.wait(Native Method)
java...@11.0.14/java.lang.Object.wait(Object.java:328)
java...@11.0.14/java.util.TimerThread.mainLoop(Timer.java:527)
java...@11.0.14/java.util.TimerThread.run(Timer.java:506)
31-Mar-2022 23:11:01.239 WARNING [http-nio-8080-exec-15] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [server] appears to have started a thread named [Thread-18] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java...@11.0.14/java.lang.Object.wait(Native Method)
org.dspace.service.impl.HttpConnectionPoolService$IdleConnectionMonitorThread.run(HttpConnectionPoolService.java:176)
31-Mar-2022 23:11:30.963 INFO [http-nio-8080-exec-15] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 

There is also localhost.log, but it is over 200 lines long, so I copy/pasted it into a text file, if that is OK.
localhost_log.txt

Tim Donohue

unread,
Apr 1, 2022, 12:00:32 PM4/1/22
to Night Librarian, DSpace Technical Support
Hi,

In the "localhost_log" you attached, there's a major error at the very top of that file.  It ends with this text:

Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [/dspace/config/spring/api/core-hibernate.xml]: Invocation of init method failed; nested exception is org.hibernate.tool.schema.spi.SchemaManagementException: Schema-validation: missing column [uuid] in table [public.bitstream]

Notice that final line says that your database table "bitstream" is missing the required "uuid" column. This implies to me that you have skipped the Database setup step, or it failed in some other way.  See step #5 and #10 of the installation instructions: https://wiki.lyrasis.org/display/DSDOC7x/Installing+DSpace#InstallingDSpace-BackendInstallation

If you are performing an upgrade, see step #7 of the upgrade process: https://wiki.lyrasis.org/display/DSDOC7x/Upgrading+DSpace#UpgradingDSpace-UpgradingtheBackendSteps

After running the "dspace database migrate" command to initialize your database, you should check your dspace.log to make sure no errors are listed there.  If there are errors, they need to be resolved before your site will work.

Tim

From: dspac...@googlegroups.com <dspac...@googlegroups.com> on behalf of Night Librarian <stani...@gmail.com>
Sent: Thursday, March 31, 2022 9:34 PM
To: DSpace Technical Support <dspac...@googlegroups.com>
Subject: [dspace-tech] Re: FAIL - Application at context path [/server] could not be started
 
--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to a topic in the Google Groups "DSpace Technical Support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dspace-tech/j0XgHkeLxQM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/bad97042-e3d6-453d-8874-7f1fe65fd9cfn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages