Open dizzzz opened 10 years ago
@dizzzz Is this still a problem?
yes ; during startup still 'something' makes a HTTP request....
actually... it is during database start... not shutdown ; I am wondering why I wrote this...
So we could easily trace this with Wireshark, no?
yes, that should be rather easy. somehow i never did it :-/
here it is:
Hypertext Transfer Protocol
GET /xquery/console HTTP/1.1\r\n
User-Agent: Java/1.8.0_162\r\n
Host: exist-db.org\r\n
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2\r\n
Connection: keep-alive\r\n
\r\n
[Full request URI: http://exist-db.org/xquery/console]
[HTTP request 1/1]
[Response in frame: 92]
response
Hypertext Transfer Protocol
HTTP/1.1 404 Not Found\r\n
Date: Sat, 17 Feb 2018 18:14:03 GMT\r\n
Server: Jetty(9.4.6.v20170531)\r\n
Cache-Control: must-revalidate,no-cache,no-store\r\n
Content-Type: text/html;charset=iso-8859-1\r\n
Content-Length: 336\r\n
Set-Cookie: JSESSIONID=node01do3dpruj5q3q1f3ozp325gnxq1423628.node0;Path=/exist\r\n
Keep-Alive: timeout=15, max=100\r\n
Connection: Keep-Alive\r\n
\r\n
[HTTP response 1/1]
[Time since request: 0.040570000 seconds]
[Request in frame: 90]
File Data: 336 bytes
I fear that one of these try to resolve the external URL instead of resolving it locally:
monex
webapp/WEB-INF/data/expathrepo/monex-0.9.12/exist.xml:4: <namespace>http://exist-db.org/xquery/console</namespace>
webapp/WEB-INF/data/expathrepo/monex-0.9.12/console.html:66: <pre data-language="xquery">import module namespace console="http://exist-db.org/xquery/console";
webapp/WEB-INF/data/expathrepo/monex-0.9.12/modules/test-app.xql:6:import module namespace console="http://exist-db.org/xquery/console";
webapp/WEB-INF/data/expathrepo/monex-0.9.12/modules/test-timeline-prof.xql:9:import module namespace console="http://exist-db.org/xquery/console";
webapp/WEB-INF/data/expathrepo/monex-0.9.12/modules/app.xql:12:(: import module namespace console="http://exist-db.org/xquery/console" at "java:org.exist.console.xquery.ConsoleModule"; :)
webapp/WEB-INF/data/expathrepo/monex-0.9.12/modules/app.xql:28: util:import-module(xs:anyURI("http://exist-db.org/xquery/console"), "console", xs:anyURI("java:org.exist.console.xquery.ConsoleModule")),
webapp/WEB-INF/data/expathrepo/monex-0.9.12/modules/indexes.xqm:15:import module namespace console="http://exist-db.org/xquery/console";
webapp/WEB-INF/data/expathrepo/monex-0.9.12/modules/job.xql:5:import module namespace console="http://exist-db.org/xquery/console";
webapp/WEB-INF/data/expathrepo/monex-0.9.12/modules/test-timeline.xql:9:import module namespace console="http://exist-db.org/xquery/console";
webapp/WEB-INF/data/expathrepo/monex-0.9.12/modules/suite.xql:3:import module namespace console="http://exist-db.org/xquery/console";
webapp/WEB-INF/data/expathrepo/monex-0.9.12/modules/notification.xql:7:import module namespace console="http://exist-db.org/xquery/console" at "java:org.exist.console.xquery.ConsoleModule";
webapp/WEB-INF/data/expathrepo/monex-0.9.12/modules/hipchat.xql:8:import module namespace console="http://exist-db.org/xquery/console";
webapp/WEB-INF/data/fs/db/apps/monex/modules/test-app.xql:6:import module namespace console="http://exist-db.org/xquery/console";
webapp/WEB-INF/data/fs/db/apps/monex/modules/test-timeline-prof.xql:9:import module namespace console="http://exist-db.org/xquery/console";
webapp/WEB-INF/data/fs/db/apps/monex/modules/app.xql:12:(: import module namespace console="http://exist-db.org/xquery/console" at "java:org.exist.console.xquery.ConsoleModule"; :)
webapp/WEB-INF/data/fs/db/apps/monex/modules/app.xql:28: util:import-module(xs:anyURI("http://exist-db.org/xquery/console"), "console", xs:anyURI("java:org.exist.console.xquery.ConsoleModule")),
webapp/WEB-INF/data/fs/db/apps/monex/modules/indexes.xqm:15:import module namespace console="http://exist-db.org/xquery/console";
webapp/WEB-INF/data/fs/db/apps/monex/modules/job.xql:5:import module namespace console="http://exist-db.org/xquery/console";
webapp/WEB-INF/data/fs/db/apps/monex/modules/test-timeline.xql:9:import module namespace console="http://exist-db.org/xquery/console";
webapp/WEB-INF/data/fs/db/apps/monex/modules/suite.xql:3:import module namespace console="http://exist-db.org/xquery/console";
webapp/WEB-INF/data/fs/db/apps/monex/modules/notification.xql:7:import module namespace console="http://exist-db.org/xquery/console" at "java:org.exist.console.xquery.ConsoleModule";
webapp/WEB-INF/data/fs/db/apps/monex/modules/hipchat.xql:8:import module namespace console="http://exist-db.org/xquery/console";
usermanager
webapp/WEB-INF/data/expathrepo/usermanager-0.15.1/controller.xql:41:import module namespace console="http://exist-db.org/xquery/console";
webapp/WEB-INF/data/expathrepo/usermanager-0.15.1/modules/userManager.xqm:36:import module namespace console="http://exist-db.org/xquery/console";
webapp/WEB-INF/data/fs/db/apps/usermanager/controller.xql:41:import module namespace console="http://exist-db.org/xquery/console";
webapp/WEB-INF/data/fs/db/apps/usermanager/modules/userManager.xqm:36:import module namespace console="http://exist-db.org/xquery/console";
exide
webapp/WEB-INF/data/expathrepo/eXide-2.4.3/templates/namespaces.json:17: "console": "http://exist-db.org/xquery/console"
webapp/WEB-INF/data/fs/db/apps/eXide/templates/namespaces.json:17: "console": "http://exist-db.org/xquery/console"
in the logs:
webapp/WEB-INF/logs/expath-repo.log:27:2018-02-17 19:14:03,435 [main] DEBUG (Logger.java [fine]:38) - Package 'http://exist-db.org/apps/shared', resolve in XQUERY: 'http://exist-db.org/xquery/console' (true)
webapp/WEB-INF/logs/expath-repo.log:28:2018-02-17 19:14:03,435 [main] DEBUG (Logger.java [fine]:38) - Package 'http://exist-db.org/apps/shared', not in XQUERY: 'http://exist-db.org/xquery/console'
webapp/WEB-INF/logs/expath-repo.log:29:2018-02-17 19:14:03,436 [main] DEBUG (Logger.java [fine]:38) - Package 'http://exist-db.org/apps/usermanager', resolve in XQUERY: 'http://exist-db.org/xquery/console' (true)
webapp/WEB-INF/logs/exist.log:72:2018-02-17 19:14:03,669 [main] ERROR (DocumentTriggers.java [afterCreateDocument]:238) - Invalid URI: xmldb URI scheme does not start with xmldb:: http://exist-db.org/xquery/console
webapp/WEB-INF/logs/exist.log:73:java.lang.IllegalArgumentException: Invalid URI: xmldb URI scheme does not start with xmldb:: http://exist-db.org/xquery/console
@dizzzz Okay, so er... it is a problem with an App?
Looks like it....
Removing the <trigger class="org.exist.extensions.exquery.restxq.impl.RestXqTrigger"/>
from collection.xconf.init
solves the problem.
Okay but that isn't the cause
sure ; there is an ordering issue, where the console extension is not yet available when the RestXQtrigger is being initialised. Potential solution: move the console-extension into the exist-db core. @wolfgangmm agree?
often exist-db shuts slowely down because of hanging locks: