wail icon indicating copy to clipboard operation
wail copied to clipboard

Windows: Wayback status is not updated in the UI once launched

Open machawk1 opened this issue 10 years ago • 5 comments

machawk1 avatar May 25 '15 19:05 machawk1

Potentially malformed functionality in updateServiceStatuses() on Windows.

machawk1 avatar May 25 '15 19:05 machawk1

updateServiceStatuses() was rewritten in the commits leading up to the closing of #307. This needs verification with a more recent version of WAIL from source but I currently have issues getting Wayback running when building from fc82057.

machawk1 avatar Mar 13 '19 15:03 machawk1

Verified that OpenWayback launches but the STATE and STATUS in the WAIL UI are never updated. Built the Windows binary from current master (1c2e687420a6ca90b761282bc7b9cd12cbb86a4f).

Capture

machawk1 avatar Aug 09 '19 20:08 machawk1

A re-launch of WAIL (testing from the py src) sets the STATE and right-side buttons correctly. Perhaps it's the callback that's not firing. Killing the app via the UI causes the STATE and STATUS buttons to be correctly updated.

Starting WAIL.py (src) and hitting FIX button for Wayback in Advanced>Services:

PS C:\wail> python .\bundledApps\WAIL.py
Checking access to Heritrix at https://localhost:8443
Checking access to Heritrix at https://localhost:8443
MEMGATOR checking https://matkelly.com/wail
MEMGATOR
* URI-R: https://matkelly.com/wail
* URI-Ms 85
* Archives: 2
Service: Failed to access Heritrix service at https://localhost:8443
Service: Failed to access Heritrix service at https://localhost:8443
Wayback(): Failed to access Wayback service at http://localhost:8080/wayback/
Wayback(): Failed to access Wayback service at http://localhost:8080/wayback/
Wayback(): Failed to access Wayback service at http://localhost:8080/wayback/
Wayback(): Failed to access Wayback service at http://localhost:8080/wayback/
Writing path-index.txt file...COMPLETE
CDX: generating combining merging cleaning sorting DONE!
Checking access to Heritrix at https://localhost:8443

[WAIL]: Using JDK

[WAIL]: Seems fine!
[WAIL]: Set JAVA_HOME : "C:\wail\bundledApps\Java\Windows\jdk1.7.0_80\
[WAIL]: Set CATALINA_HOME : C:\wail\bundledApps\tomcat

The system cannot find the path specified.
Using CATALINA_BASE:   "C:\wail\bundledApps\tomcat"
Using CATALINA_HOME:   "C:\wail\bundledApps\tomcat"
Using CATALINA_TMPDIR: "C:\wail\bundledApps\tomcat\temp"
Using JRE_HOME:        "C:\wail\bundledApps\Java\Windows\jdk1.7.0_80\"
Using CLASSPATH:       "C:\wail\bundledApps\tomcat\bin\bootstrap.jar;C:\wail\bundledApps\tomcat\bin\tomcat-juli.jar"
Aug 09, 2019 4:14:03 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not fou
nd on the java.library.path: C:\wail\bundledApps\Java\Windows\jdk1.7.0_80\bin;C:\Windows\Sun\Java\bin;C:\Windows\system3
2;C:\Windows;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Progr
am Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShel
l\v1.0\;C:\Program Files\Git\cmd;C:\Users\Mat Kelly\AppData\Local\Programs\Python\Python37-32\Scripts\;C:\Users\Mat Kell
y\AppData\Local\Programs\Python\Python37-32\;C:\Users\Mat Kelly\AppData\Local\Microsoft\WindowsApps;C:\python27;C:\pytho
n27\scripts;;.
Aug 09, 2019 4:14:03 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Aug 09, 2019 4:14:03 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Aug 09, 2019 4:14:03 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 707 ms
Aug 09, 2019 4:14:03 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Aug 09, 2019 4:14:03 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.30
Aug 09, 2019 4:14:03 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\wail\bundledApps\tomcat\webapps\bin
Aug 09, 2019 4:14:04 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\wail\bundledApps\tomcat\webapps\host-manager
Aug 09, 2019 4:14:04 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\wail\bundledApps\tomcat\webapps\lib
Service: Failed to access Heritrix service at https://localhost:8443
Aug 09, 2019 4:14:04 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\wail\bundledApps\tomcat\webapps\ROOT
Wayback(): Failed to access Wayback service at http://localhost:8080/wayback/
Writing path-index.txt file...COMPLETE
CDX: generating combining merging cleaning sorting DONE!
Aug 09, 2019 4:14:08 PM org.archive.wayback.util.webapp.RequestFilter loadRequestMapper
INFO: Initializing Spring config at: C:\wail\bundledApps\tomcat\webapps\ROOT\WEB-INF\wayback.xml
Aug 09, 2019 4:14:08 PM org.archive.wayback.util.webapp.SpringReader readSpringConfig
INFO: Loading from config file C:\wail\bundledApps\tomcat\webapps\ROOT\WEB-INF\wayback.xml
19/08/09 16:14:08 INFO support.FileSystemXmlApplicationContext: Refreshing org.springframework.context.support.FileSyste
mXmlApplicationContext@68f277a2: startup date [Fri Aug 09 16:14:08 EDT 2019]; root of context hierarchy
19/08/09 16:14:08 INFO xml.XmlBeanDefinitionReader: Loading XML bean definitions from URL [file:C:/wail/bundledApps/tomc
at/webapps/ROOT/WEB-INF/wayback.xml]
19/08/09 16:14:09 INFO xml.XmlBeanDefinitionReader: Loading XML bean definitions from URL [file:C:/wail/bundledApps/tomc
at/webapps/ROOT/WEB-INF/CDXCollection.xml]
19/08/09 16:14:09 INFO xml.XmlBeanDefinitionReader: Loading XML bean definitions from URL [file:C:/wail/bundledApps/tomc
at/webapps/ROOT/WEB-INF/ArchivalUrlReplay.xml]
19/08/09 16:14:09 INFO xml.XmlBeanDefinitionReader: Loading XML bean definitions from URL [file:C:/wail/bundledApps/tomc
at/webapps/ROOT/WEB-INF/SWFReplayRenderer.xml]
19/08/09 16:14:09 INFO support.DefaultListableBeanFactory: Pre-instantiating singletons in org.springframework.beans.fac
tory.support.DefaultListableBeanFactory@21b44184: defining beans [org.springframework.beans.factory.config.PropertyPlace
holderConfigurer#0,waybackCanonicalizer,resourcefilelocationdb,localcdxcollection,archivalurlhttpheaderprocessor,archiva
lcssreplayrenderer,archivaljsreplayrenderer,archivalasxreplayrenderer,archivaltransparentreplayrenderer,identityreplayre
nderer,fastArchivalSAXDelegator,archivalsaxreplayrenderer,swfreplay,archivalurlreplay,archivalserversidehtmlreplayrender
er,archivalclientsidehtmlreplayrenderer,+,standardaccesspoint,minimumYearAllowed]; root of factory hierarchy
Aug 09, 2019 4:14:09 PM org.archive.wayback.util.webapp.RequestMapper <init>
INFO: Registering handlers.
Aug 09, 2019 4:14:09 PM org.archive.wayback.util.webapp.BeanNameRegistrar registerHandler
WARNING: Request handler with bean name + does not provide explict access point path. Will try to use the beanname to in
fer. This fallback is DEPRECATED and will be removed in the future. Please update configuration to explicitly set 'acces
sPointPath' property (and 'internalPort' if needed).
Aug 09, 2019 4:14:09 PM org.archive.wayback.util.webapp.BeanNameRegistrar registerHandler
INFO: Registering Global-post request handler:org.archive.wayback.webapp.ServerRelativeArchivalRedirect@74d70040
Aug 09, 2019 4:14:09 PM org.archive.wayback.util.webapp.PortMapper addRequestHandler
FINE: Registered requestHandler(port/host/path) (8080/null/wayback): /wayback
Aug 09, 2019 4:14:09 PM org.archive.wayback.util.webapp.RequestMapper addRequestHandler
INFO: Registered 8080/*/wayback --> org.archive.wayback.webapp.AccessPoint@26ca05b8
Aug 09, 2019 4:14:09 PM org.archive.wayback.util.webapp.RequestMapper <init>
INFO: Registering handlers complete.
Aug 09, 2019 4:14:09 PM org.archive.wayback.util.webapp.RequestFilter loadRequestMapper
INFO: Initialized Spring config at: C:\wail\bundledApps\tomcat\webapps\ROOT\WEB-INF\wayback.xml
Aug 09, 2019 4:14:09 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Aug 09, 2019 4:14:09 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Aug 09, 2019 4:14:09 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 6384 ms
Aug 09, 2019 4:14:10 PM org.archive.wayback.util.webapp.PortMapper getRequestHandlerContext
FINER: No mapping for localhost/wayback
Aug 09, 2019 4:14:10 PM org.archive.wayback.util.webapp.PortMapper getRequestHandlerContext
FINER: No mapping for localhost/wayback
Aug 09, 2019 4:14:10 PM org.archive.wayback.util.webapp.PortMapper getRequestHandlerContext
FINER: No mapping for localhost/
Aug 09, 2019 4:14:10 PM org.archive.wayback.util.webapp.PortMapper getRequestHandlerContext
FINER: No mapping for localhost/
Aug 09, 2019 4:14:10 PM org.archive.wayback.util.webapp.PortMapper getRequestHandlerContext
FINE: Mapped to RequestHandler with /wayback
Aug 09, 2019 4:14:10 PM org.archive.wayback.util.webapp.PortMapper getRequestHandlerContext
FINE: Mapped to RequestHandler with /wayback
Wayback(): Failed to access Wayback service at http://localhost:8080/wayback/
Writing path-index.txt file...COMPLETE

machawk1 avatar Aug 09 '19 20:08 machawk1

Can't close based of 763f308 just yet, as the UI does not update in the compiled version as it seems to work when calling the script directly.

machawk1 avatar Aug 09 '19 20:08 machawk1