Discussion:
[Exist-open] apps no more available after restar with YAJSW
Pietro Liuzzo
2017-05-30 14:36:29 UTC
Permalink
Dear all,

after restarting with YAJSW my exist 3.1.1 instance none of my apps works
any more.

I get either an empty template or the following message.

<exception>
<path>/db/apps/monex/modules/view.xql</path>
<message>
exerr:ERROR The actual return type does not match the sequence type
declared in the function's signature: config:app-title(node(), map) text().
Expected cardinality: exactly one, got 0. [at line 63, column 50, source:
/db/apps/monex/modules/view.xql] In function: config:app-title(node(), map)
[217:18:/db/apps/monex/modules/config.xqm] templates:call-with-args(function,
function*, element(), map) [208:13:/home/liuzzo/exist/./webapp/WEB-INF/data/
expathrepo/shared-0.4.2/content/templates.xql]
templates:process-output(element(),
map, item()*, element()) [205:9:/home/liuzzo/exist/./webapp/WEB-INF/data/
expathrepo/shared-0.4.2/content/templates.xql]
templates:call-by-introspection(element(),
map, map, function) [187:28:/home/liuzzo/exist/./webapp/WEB-INF/data/
expathrepo/shared-0.4.2/content/templates.xql] templates:call(item(),
element(), map) [135:36:/home/liuzzo/exist/./webapp/WEB-INF/data/
expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*,
map) [146:81:/home/liuzzo/exist/./webapp/WEB-INF/data/
expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*,
map) [146:81:/home/liuzzo/exist/./webapp/WEB-INF/data/
expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*,
map) [465:17:/home/liuzzo/exist/./webapp/WEB-INF/data/
expathrepo/shared-0.4.2/content/templates.xql]
templates:process-output(element(),
map, item()*) [273:9:/home/liuzzo/exist/./webapp/WEB-INF/data/
expathrepo/shared-0.4.2/content/templates.xql]
templates:process-output(element(),
map, item()*, element()) [205:9:/home/liuzzo/exist/./webapp/WEB-INF/data/
expathrepo/shared-0.4.2/content/templates.xql]
templates:call-by-introspection(element(),
map, map, function) [187:28:/home/liuzzo/exist/./webapp/WEB-INF/data/
expathrepo/shared-0.4.2/content/templates.xql] templates:call(item(),
element(), map) [143:37:/home/liuzzo/exist/./webapp/WEB-INF/data/
expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*,
map) [131:51:/home/liuzzo/exist/./webapp/WEB-INF/data/
expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*,
map) [88:9:/home/liuzzo/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:apply(node()+, function, map?, map?) [43:5:/home/liuzzo/exist/./
webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
</message>
</exception>

this is what the console said:

sudo tools/yajsw/bin/startDaemon.sh

++++++++++ YAJSW SET ENV ++++++++++

openjdk version "1.8.0_111"

OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)

OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)

wrapper home : /home/liuzzo/exist/tools/yajsw

configuration: /home/liuzzo/exist/tools/yajsw/conf/wrapper.conf

openjdk version "1.8.0_111"

OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)

OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)

---------- YAJSW SET ENV ----------

++++++++++ YAJSW SET ENV ++++++++++

openjdk version "1.8.0_111"

OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)

OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)

wrapper home : /home/liuzzo/exist/tools/yajsw

configuration: /home/liuzzo/exist/tools/yajsw/conf/wrapper.conf

openjdk version "1.8.0_111"

OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)

OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)

---------- YAJSW SET ENV ----------

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/commons/
commons-httpclient-3.0.1.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/commons/
commons-codec-1.3.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/commons/
commons-net-3.2.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/regex/
automaton-1.11.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/
glazedlists/glazedlists-1.8.0_java15.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/
glazedlists/commons-beanutils-1.8.2.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/cron/joda-
time-2.7.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/cron/
yacron4j-00.03.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/jgoodies/
forms-1.2.0.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-webdav/
jackrabbit-webdav-1.5.6.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-webdav/
xercesImpl.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-webdav/
slf4j-jdk14-1.5.0.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-webdav/
slf4j-api-1.5.0.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-dbx/
vfs-dbx-00.02.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-dbx/
dropbox-core-sdk-1.7.7.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-dbx/
jackson-core-2.2.4.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/
glazedlists/commons-beanutils-1.8.2.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/
glazedlists/glazedlists-1.8.0_java15.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/keystore/
keystore.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/abeille/
formsrt.jar

YAJSW: yajsw-stable-12.08

OS : Linux/3.13.0-116-generic/amd64

JVM : Oracle Corporation/1.8.0_111//usr/lib/jvm/java-8-openjdk-amd64/jre/64

May 30, 2017 2:22:27 PM org.apache.commons.vfs2.VfsLog info

INFO: Using "/tmp/vfs_cache" as temporary files store.

May 30, 2017 2:22:28 PM org.rzo.yajsw.os.posix.PosixService init

INFO: /etc/init.d/eXist-db already exists

************* STARTING eXist-db ***********************


May 30, 2017 2:22:28 PM org.rzo.yajsw.os.posix.PosixService getPid

INFO: wrapper pid file: /run/wrapper.eXist-db.pid

May 30, 2017 2:22:32 PM org.rzo.yajsw.os.posix.PosixService start

INFO: Starting eXist-db ...

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/commons/
commons-httpclient-3.0.1.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/commons/
commons-codec-1.3.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/commons/
commons-net-3.2.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/regex/
automaton-1.11.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/
glazedlists/glazedlists-1.8.0_java15.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/
glazedlists/commons-beanutils-1.8.2.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/cron/joda-
time-2.7.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/cron/
yacron4j-00.03.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/jgoodies/
forms-1.2.0.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-webdav/
jackrabbit-webdav-1.5.6.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-webdav/
xercesImpl.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-webdav/
slf4j-jdk14-1.5.0.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-webdav/
slf4j-api-1.5.0.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-dbx/
vfs-dbx-00.02.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-dbx/
dropbox-core-sdk-1.7.7.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/vfs-dbx/
jackson-core-2.2.4.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/
glazedlists/commons-beanutils-1.8.2.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/
glazedlists/glazedlists-1.8.0_java15.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/keystore/
keystore.jar

INFO: lib not found: /home/liuzzo/exist/tools/yajsw/lib/extended/abeille/
formsrt.jar

YAJSW: yajsw-stable-12.08

OS : Linux/3.13.0-116-generic/amd64

JVM : Oracle Corporation/1.8.0_111//usr/lib/jvm/java-8-openjdk-amd64/jre/64

************* STARTING eXist-db ***********************


Service eXist-db started


May 30, 2017 2:22:32 PM org.rzo.yajsw.os.posix.PosixService getPid

INFO: wrapper pid file: /run/wrapper.eXist-db.pid

May 30, 2017 2:22:33 PM org.rzo.yajsw.os.posix.PosixService getPid

INFO: wrapper pid file: /run/wrapper.eXist-db.pid

May 30, 2017 2:22:33 PM org.rzo.yajsw.os.posix.PosixService getPid

INFO: wrapper pid file: /run/wrapper.eXist-db.pid

Service eXist-db started


I also get two java process started when I though one was enough...

12991 root 20 0 3973188 92708 14092 S 0.3 1.1 0:04.26 java


13009 root 20 0 6201528 614712 23600 S 0.3 7.5 1:14.54 java

can somebody help me to understand what has gone wrong and how to fix this?
thanks a lot!
--
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)
https://uk.linkedin.com/in/pietroliuzzo
Pietro Liuzzo
2017-05-30 16:18:52 UTC
Permalink
I have tried reindexing from command line with
bin/client.sh -i -c /db
and *repair:clean-all*(), *repair:repair*().

Dashboard, Monex, eXide are back, all the rest is visible via exide but
does not work. reindexing the apps does not help either. might it be that
clean-all has done is job but repair not?

if I do *repair:repair*(*xs:anyURI*('xmldb:exist:///db/apps/BetMas/'))
I get

<repair>
<package name="
http://betamasaheft.aai.uni-hamburg.de:8080/exist/apps/BetMas" restored=
"false"/>
</repair>

I cannot even download the .xar files any more from eXide. Being able to do
this at least would mean I could start anew reinstalling exist.

Thanks a lot for any hint

Sincerely

Pietro
Post by Pietro Liuzzo
Dear all,
after restarting with YAJSW my exist 3.1.1 instance none of my apps works
any more.
I get either an empty template or the following message.
<exception>
<path>/db/apps/monex/modules/view.xql</path>
<message>
exerr:ERROR The actual return type does not match the sequence type
declared in the function's signature: config:app-title(node(), map) text().
/db/apps/monex/modules/view.xql] In function: config:app-title(node(),
map) [217:18:/db/apps/monex/modules/config.xqm]
templates:call-with-args(function, function*, element(), map)
[208:13:/home/liuzzo/exist/./webapp/WEB-INF/data/expathrepo/
shared-0.4.2/content/templates.xql] templates:process-output(element(),
map, item()*, element()) [205:9:/home/liuzzo/exist/./we
bapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:call-by-introspection(element(), map, map, function)
[187:28:/home/liuzzo/exist/./webapp/WEB-INF/data/expathrepo/
shared-0.4.2/content/templates.xql] templates:call(item(), element(),
map) [135:36:/home/liuzzo/exist/./webapp/WEB-INF/data/expathrepo/
shared-0.4.2/content/templates.xql] templates:process(node()*, map)
[146:81:/home/liuzzo/exist/./webapp/WEB-INF/data/expathrepo/
shared-0.4.2/content/templates.xql] templates:process(node()*, map)
[146:81:/home/liuzzo/exist/./webapp/WEB-INF/data/expathrepo/
shared-0.4.2/content/templates.xql] templates:process(node()*, map)
[465:17:/home/liuzzo/exist/./webapp/WEB-INF/data/expathrepo/
shared-0.4.2/content/templates.xql] templates:process-output(element(),
map, item()*) [273:9:/home/liuzzo/exist/./webapp/WEB-INF/data/expathrepo/
shared-0.4.2/content/templates.xql] templates:process-output(element(),
map, item()*, element()) [205:9:/home/liuzzo/exist/./we
bapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:call-by-introspection(element(), map, map, function)
[187:28:/home/liuzzo/exist/./webapp/WEB-INF/data/expathrepo/
shared-0.4.2/content/templates.xql] templates:call(item(), element(),
map) [143:37:/home/liuzzo/exist/./webapp/WEB-INF/data/expathrepo/
shared-0.4.2/content/templates.xql] templates:process(node()*, map)
[131:51:/home/liuzzo/exist/./webapp/WEB-INF/data/expathrepo/
shared-0.4.2/content/templates.xql] templates:process(node()*, map)
[88:9:/home/liuzzo/exist/./webapp/WEB-INF/data/expathrepo/
shared-0.4.2/content/templates.xql] templates:apply(node()+, function,
map?, map?) [43:5:/home/liuzzo/exist/./webapp/WEB-INF/data/expathrepo/
shared-0.4.2/content/templates.xql]
</message>
</exception>
sudo tools/yajsw/bin/startDaemon.sh
++++++++++ YAJSW SET ENV ++++++++++
openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
wrapper home : /home/liuzzo/exist/tools/yajsw
configuration: /home/liuzzo/exist/tools/yajsw/conf/wrapper.conf
openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
---------- YAJSW SET ENV ----------
++++++++++ YAJSW SET ENV ++++++++++
openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
wrapper home : /home/liuzzo/exist/tools/yajsw
configuration: /home/liuzzo/exist/tools/yajsw/conf/wrapper.conf
openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
---------- YAJSW SET ENV ----------
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/commons/commons-httpclient-3.0.1.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/commons/commons-codec-1.3.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/commons/commons-net-3.2.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/regex/automaton-1.11.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/glazedlists/glazedlists-1.8.0_java15.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/glazedlists/commons-beanutils-1.8.2.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/cron/joda-time-2.7.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/cron/yacron4j-00.03.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/jgoodies/forms-1.2.0.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/vfs-webdav/jackrabbit-webdav-1.5.6.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/vfs-webdav/xercesImpl.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/vfs-webdav/slf4j-jdk14-1.5.0.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/vfs-webdav/slf4j-api-1.5.0.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/vfs-dbx/vfs-dbx-00.02.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/vfs-dbx/dropbox-core-sdk-1.7.7.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/vfs-dbx/jackson-core-2.2.4.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/glazedlists/commons-beanutils-1.8.2.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/glazedlists/glazedlists-1.8.0_java15.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/keystore/keystore.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/abeille/formsrt.jar
YAJSW: yajsw-stable-12.08
OS : Linux/3.13.0-116-generic/amd64
JVM : Oracle Corporation/1.8.0_111//usr/lib/jvm/java-8-openjdk-amd64/jre/
64
May 30, 2017 2:22:27 PM org.apache.commons.vfs2.VfsLog info
INFO: Using "/tmp/vfs_cache" as temporary files store.
May 30, 2017 2:22:28 PM org.rzo.yajsw.os.posix.PosixService init
INFO: /etc/init.d/eXist-db already exists
************* STARTING eXist-db ***********************
May 30, 2017 2:22:28 PM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.eXist-db.pid
May 30, 2017 2:22:32 PM org.rzo.yajsw.os.posix.PosixService start
INFO: Starting eXist-db ...
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/commons/commons-httpclient-3.0.1.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/commons/commons-codec-1.3.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/commons/commons-net-3.2.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/regex/automaton-1.11.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/glazedlists/glazedlists-1.8.0_java15.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/glazedlists/commons-beanutils-1.8.2.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/cron/joda-time-2.7.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/cron/yacron4j-00.03.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/jgoodies/forms-1.2.0.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/vfs-webdav/jackrabbit-webdav-1.5.6.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/vfs-webdav/xercesImpl.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/vfs-webdav/slf4j-jdk14-1.5.0.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/vfs-webdav/slf4j-api-1.5.0.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/vfs-dbx/vfs-dbx-00.02.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/vfs-dbx/dropbox-core-sdk-1.7.7.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/vfs-dbx/jackson-core-2.2.4.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/glazedlists/commons-beanutils-1.8.2.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/glazedlists/glazedlists-1.8.0_java15.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/keystore/keystore.jar
INFO: lib not found: /home/liuzzo/exist/tools/yajsw
/lib/extended/abeille/formsrt.jar
YAJSW: yajsw-stable-12.08
OS : Linux/3.13.0-116-generic/amd64
JVM : Oracle Corporation/1.8.0_111//usr/lib/jvm/java-8-openjdk-amd64/jre/
64
************* STARTING eXist-db ***********************
Service eXist-db started
May 30, 2017 2:22:32 PM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.eXist-db.pid
May 30, 2017 2:22:33 PM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.eXist-db.pid
May 30, 2017 2:22:33 PM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.eXist-db.pid
Service eXist-db started
I also get two java process started when I though one was enough...
12991 root 20 0 3973188 92708 14092 S 0.3 1.1 0:04.26 java
13009 root 20 0 6201528 614712 23600 S 0.3 7.5 1:14.54 java
can somebody help me to understand what has gone wrong and how to fix
this? thanks a lot!
--
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)
https://uk.linkedin.com/in/pietroliuzzo
--
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)
https://uk.linkedin.com/in/pietroliuzzo
Wolfgang Meier
2017-05-31 10:30:36 UTC
Permalink
Dashboard, Monex, eXide are back, all the rest is visible via exide but does not work. reindexing the apps does not help either. might it be that clean-all has done is job but repair not?
Could you check expath-repo.log if it says anything about invalid packages? You may also want to inspect your data directory, sub-directory expathrepo/.expath-pkg/. The two files there list all installed packages. Do they look ok?

Wolfgang
Pietro Liuzzo
2017-05-31 11:24:32 UTC
Permalink
Thank you very much for the answer!

I actually used old backups which I had (lesson learned...) and saved by
end individual modified files, I then upgraded to 3.2 and then restarted
all over again.

expath-repo.log reports the following warnings.

2017-05-31 13:04:19,909 [main] WARN (ClasspathHelper.java
[scanPackages]:90) - Package https://www.betamasaheft.uni-hamburg.de/BetMas
is not compatible with this version of eXist. To avoid conflicts, Java
libraries shipping with this package are not loaded.

2017-05-31 13:04:19,909 [main] WARN (ClasspathHelper.java
[scanPackages]:90) - Package http://exist-db.org/apps/shared is not
compatible with this version of eXist. To avoid conflicts, Java libraries
shipping with this package are not loaded.

2017-05-31 13:04:19,910 [main] WARN (ClasspathHelper.java
[scanPackages]:90) - Package http://xqilla.sourceforge.net/pkg/xqjson is
not compatible with this version of eXist. To avoid conflicts, Java
libraries shipping with this package are not loaded.

2017-05-31 13:04:19,910 [main] WARN (ClasspathHelper.java
[scanPackages]:90) - Package http://betamasaheft.aai.uni-hamburg.de/dict/
is not compatible with this version of eXist. To avoid conflicts, Java
libraries shipping with this package are not loaded.

2017-05-31 13:04:19,913 [main] WARN (ClasspathHelper.java
[scanPackages]:90) - Package http://exist-db.org/apps/dashboard is not
compatible with this version of eXist. To avoid conflicts, Java libraries
shipping with this package are not loaded.


the list of packages in the expathrepo/.expath-pkg/ directory looks ok, but
there are two apps I could not upload and I created manually, importing the
collection from Oxygen. These two are not there. and they are not mentioned
in the log above. May be that is what is causing trouble?? Just as a note,
these two apps which I have added like this work fine now, while some of
the ones I have imported with Package Manager not yet.

There are still problems in downloading .xar from eXide. When I click
download app it does not download any file beside the ones in the main app
collection, no modules, no data, etc. ...


Thanks a lot!
Post by Pietro Liuzzo
Post by Pietro Liuzzo
Dashboard, Monex, eXide are back, all the rest is visible via exide but
does not work. reindexing the apps does not help either. might it be that
clean-all has done is job but repair not?
Could you check expath-repo.log if it says anything about invalid
packages? You may also want to inspect your data directory, sub-directory
expathrepo/.expath-pkg/. The two files there list all installed packages.
Do they look ok?
Wolfgang
--
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)
https://uk.linkedin.com/in/pietroliuzzo
Wolfgang Meier
2017-05-31 12:40:57 UTC
Permalink
Post by Pietro Liuzzo
expath-repo.log reports the following warnings.
2017-05-31 13:04:19,909 [main] WARN (ClasspathHelper.java [scanPackages]:90) - Package https://www.betamasaheft.uni-hamburg.de/BetMas is not compatible with this version of eXist. To avoid conflicts, Java libraries shipping with this package are not loaded.
Those warnings are only relevant for packages containing Java jar files. If there are no other errors, all packages listed in .expath-pkg should have been registered with the package manager and should appear in the dashboard. If not, could you run repo:list() from eXide and compare the list of URIs it returns?

Wolfgang
Pietro Liuzzo
2017-06-01 06:13:43 UTC
Permalink
Dear all,

the problem persists, and my apps were this morning again all down. I have
simply stopped and started exist with the wrapper command stopDeamon.sh and
startDeamon.sh.

I am now running exist-db 3.2 installed from git master branch on Ubuntu
14.04.5 LTS (GNU/Linux 3.13.0-116-generic x86_64)

I am back to the initial stage, when I find that this is starting 2 java
processes, although I thought there should be one only, my apps are visible
via Oxygen but I see either an empty template or I get this error

<path>/db/apps/monex/modules/view.xql</path>
<message>
exerr:ERROR The actual return type does not match the sequence type
declared in the function's signature: config:app-title(node(), map) text().
Expected cardinality: exactly one, got 0. [at line 63, column 50, source:
/db/apps/monex/modules/view.xql] In function: config:app-title(node(), map)
[217:18:/db/apps/monex/modules/config.xqm]
templates:call-with-args(function, function*, element(), map)
[208:13:/home/liuzzo/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:process-output(element(), map, item()*, element())
[205:9:/home/liuzzo/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:call-by-introspection(element(), map, map, function)
[187:28:/home/liuzzo/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:call(item(), element(), map)
[135:36:/home/liuzzo/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:process(node()*, map)
[146:81:/home/liuzzo/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:process(node()*, map)
[146:81:/home/liuzzo/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:process(node()*, map)
[465:17:/home/liuzzo/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:process-output(element(), map, item()*)
[273:9:/home/liuzzo/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:process-output(element(), map, item()*, element())
[205:9:/home/liuzzo/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:call-by-introspection(element(), map, map, function)
[187:28:/home/liuzzo/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:call(item(), element(), map)
[143:37:/home/liuzzo/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:process(node()*, map)
[131:51:/home/liuzzo/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:process(node()*, map)
[88:9:/home/liuzzo/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:apply(node()+, function, map?, map?)
[43:5:/home/liuzzo/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
</message>


I have used bin/client.sh -i -c /db

and Dashboard and Monex could be accessed again as well as some of my apps.
eXide gives error 500

javax.servlet.ServletException: An error occurred while processing
request to /exist/apps/eXide/index.html: exerr:ERROR The actual return
type does not match the sequence type declared in the function's
signature: config:get-configuration() element(). Expected cardinality:
exactly one, got 0. [at line 42, column 42, source:
/db/apps/eXide/controller.xql]
In function:
config:get-configuration() [68:10:/db/apps/eXide/modules/config.xqm]
local:user-allowed() [140:9:/db/apps/eXide/controller.xql]
at org.exist.http.urlrewrite.XQueryURLRewrite.service(XQueryURLRewrite.java:378)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:845)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1689)
at de.betterform.agent.web.filter.XFormsFilter.doFilter(XFormsFilter.java:171)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1174)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1106)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)
at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:459)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
at org.eclipse.jetty.server.Server.handle(Server.java:524)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:319)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:253)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.exist.xquery.XPathException: exerr:ERROR The actual
return type does not match the sequence type declared in the
function's signature: config:get-configuration() element(). Expected
cardinality: exactly one, got 0. [at line 42, column 42, source:
/db/apps/eXide/controller.xql]
In function:
config:get-configuration() [68:10:/db/apps/eXide/modules/config.xqm]
local:user-allowed() [140:9:/db/apps/eXide/controller.xql]
at org.exist.xquery.DynamicCardinalityCheck.eval(DynamicCardinalityCheck.java:86)
at org.exist.xquery.DynamicTypeCheck.eval(DynamicTypeCheck.java:61)
at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:302)
at org.exist.xquery.FunctionCall.eval(FunctionCall.java:223)
at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
at org.exist.xquery.PathExpr.eval(PathExpr.java:276)
at org.exist.xquery.GeneralComparison.genericCompare(GeneralComparison.java:520)
at org.exist.xquery.GeneralComparison.eval(GeneralComparison.java:476)
at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
at org.exist.xquery.PathExpr.eval(PathExpr.java:276)
at org.exist.xquery.OpOr.eval(OpOr.java:90)
at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:155)
at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:302)
at org.exist.xquery.FunctionCall.eval(FunctionCall.java:223)
at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:97)
at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:100)
at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)
at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102)
at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)
at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102)
at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)
at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102)
at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)
at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102)
at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)
at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102)
at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
at org.exist.xquery.PathExpr.eval(PathExpr.java:276)
at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
at org.exist.xquery.XQuery.execute(XQuery.java:253)
at org.exist.xquery.XQuery.execute(XQuery.java:185)
at org.exist.http.urlrewrite.XQueryURLRewrite.runQuery(XQueryURLRewrite.java:697)
at org.exist.http.urlrewrite.XQueryURLRewrite.service(XQueryURLRewrite.java:256)
... 30 more

Caused by:

org.exist.xquery.XPathException: exerr:ERROR The actual return type
does not match the sequence type declared in the function's signature:
config:get-configuration() element(). Expected cardinality: exactly
one, got 0. [at line 42, column 42, source:
/db/apps/eXide/controller.xql]
In function:
config:get-configuration() [68:10:/db/apps/eXide/modules/config.xqm]
local:user-allowed() [140:9:/db/apps/eXide/controller.xql]
at org.exist.xquery.DynamicCardinalityCheck.eval(DynamicCardinalityCheck.java:86)
at org.exist.xquery.DynamicTypeCheck.eval(DynamicTypeCheck.java:61)
at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:302)
at org.exist.xquery.FunctionCall.eval(FunctionCall.java:223)
at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
at org.exist.xquery.PathExpr.eval(PathExpr.java:276)
at org.exist.xquery.GeneralComparison.genericCompare(GeneralComparison.java:520)
at org.exist.xquery.GeneralComparison.eval(GeneralComparison.java:476)
at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
at org.exist.xquery.PathExpr.eval(PathExpr.java:276)
at org.exist.xquery.OpOr.eval(OpOr.java:90)
at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:155)
at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:302)
at org.exist.xquery.FunctionCall.eval(FunctionCall.java:223)
at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:97)
at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:100)
at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)
at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102)
at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)
at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102)
at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)
at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102)
at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)
at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102)
at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)
at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102)
at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
at org.exist.xquery.PathExpr.eval(PathExpr.java:276)
at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
at org.exist.xquery.XQuery.execute(XQuery.java:253)
at org.exist.xquery.XQuery.execute(XQuery.java:185)
at org.exist.http.urlrewrite.XQueryURLRewrite.runQuery(XQueryURLRewrite.java:697)
at org.exist.http.urlrewrite.XQueryURLRewrite.service(XQueryURLRewrite.java:256)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:845)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1689)
at de.betterform.agent.web.filter.XFormsFilter.doFilter(XFormsFilter.java:171)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1174)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1106)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)
at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:459)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
at org.eclipse.jetty.server.Server.handle(Server.java:524)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:319)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:253)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)

at java.lang.Thread.run(Thread.java:745)


I have tried

xquery version "3.0";
import module namespace repair="http://exist-db.org/xquery/repo/repair"
at "resource:org/exist/xquery/modules/expathrepo/repair.xql";
repair:clean-all(),
repair:repair()

without success for eXide and the other apps not working.

there are now also double packages in data/expathrepo, and those are in the
pacakges.xml file where eXide is not anymore.

<packages xmlns="http://expath.org/ns/repo/packages">

<package version="0.9.8" dir="monex-0.9.8__1" name="
http://exist-db.org/apps/monex"/>

<package version="0.4.2" dir="shared-0.4.2__1" name="
http://exist-db.org/apps/shared"/>

<package version="1.0" dir="gez-en-1.0__1" name="
http://betamasaheft.aai.uni-hamburg.de/dict/"/>

<package version="0.1" dir="ueduc-0.1" name="http://oeduc.eu"/>

<package version="0.4.7" dir="dashboard-0.4.7__1" name="
http://exist-db.org/apps/dashboard"/>

<package version="1.13" dir="BetaMasaheft-1.13__1" name="
https://www.betamasaheft.uni-hamburg.de/BetMas"/>

</packages>

In Monex I can see that no indexes have been preserved. I reindexed running
the command from xquery in oxygen and the reindex was successful, but monex
does not show anything in indexes.html and says "No Index Configurations
were found in the /db/system/config collection."

There are some messages starting with DEBUG in expath-repo.log

2017-06-01 07:04:42,414 [qtp967531000-26] DEBUG (Logger.java [fine]:38) -
Package 'http://exist-db.org/apps/eXide', resolve in XQUERY: '
http://exist-db.or

g/xquery/templates' (true)

2017-06-01 07:04:42,415 [qtp967531000-26] DEBUG (Logger.java [fine]:38) -
Package 'http://exist-db.org/apps/eXide', no URI in XQUERY

2017-06-01 07:04:42,415 [qtp967531000-26] DEBUG (Logger.java [fine]:38) -
Package 'http://exist-db.org/apps/shared', resolve in XQUERY: '
http://exist-db.o

rg/xquery/templates' (true)

2017-06-01 07:04:42,415 [qtp967531000-26] DEBUG (Logger.java [fine]:38) -
Package 'http://exist-db.org/apps/shared', resolved '
http://exist-db.org/xquery/

templates' in XQUERY to 'templates.xql'

2017-06-01 07:04:42,416 [qtp967531000-26] DEBUG (Logger.java [fine]:38) -
Trying to resolve 'templates.xql' within
'/home/liuzzo/exist/webapp/WEB-INF/data

/expathrepo/shared-0.4.2/content'

2017-06-01 07:04:42,669 [qtp967531000-26] DEBUG (Logger.java [fine]:38) -
Package 'http://exist-db.org/apps/eXide', resolve in XQUERY: '
http://exist-db.or

g/apps/site-utils' (true)

2017-06-01 07:04:42,670 [qtp967531000-26] DEBUG (Logger.java [fine]:38) -
Package 'http://exist-db.org/apps/eXide', no URI in XQUERY

2017-06-01 07:04:42,670 [qtp967531000-26] DEBUG (Logger.java [fine]:38) -
Package 'http://exist-db.org/apps/shared', resolve in XQUERY: '
http://exist-db.o

rg/apps/site-utils' (true)

2017-06-01 07:04:42,670 [qtp967531000-26] DEBUG (Logger.java [fine]:38) -
Package 'http://exist-db.org/apps/shared', resolved '
http://exist-db.org/apps/si

te-utils' in XQUERY to 'siteutils.xql'

2017-06-01 07:04:42,671 [qtp967531000-26] DEBUG (Logger.java [fine]:38) -
Trying to resolve 'siteutils.xql' within
'/home/liuzzo/exist/webapp/WEB-INF/data

/expathrepo/shared-0.4.2/content'

2017-06-01 07:04:42,694 [qtp967531000-26] DEBUG (Logger.java [fine]:38) -
Package 'http://exist-db.org/apps/eXide', resolve in XQUERY: '
http://exist-db.or

g/xquery/apps' (true)

2017-06-01 07:04:42,702 [qtp967531000-26] DEBUG (Logger.java [fine]:38) -
Package 'http://exist-db.org/apps/eXide', no URI in XQUERY

2017-06-01 07:04:42,702 [qtp967531000-26] DEBUG (Logger.java [fine]:38) -
Package 'http://exist-db.org/apps/shared', resolve in XQUERY: '
http://exist-db.o

rg/xquery/apps' (true)

2017-06-01 07:04:42,703 [qtp967531000-26] DEBUG (Logger.java [fine]:38) -
Package 'http://exist-db.org/apps/shared', resolved '
http://exist-db.org/xquery/

apps' in XQUERY to 'apputil.xql'

2017-06-01 07:04:42,703 [qtp967531000-26] DEBUG (Logger.java [fine]:38) -
Trying to resolve 'apputil.xql' within
'/home/liuzzo/exist/webapp/WEB-INF/data/e

xpathrepo/shared-0.4.2/content'

2017-06-01 07:05:19,526 [qtp967531000-21] DEBUG (Logger.java [fine]:38) -
Package 'http://exist-db.org/apps/eXide', resolve in XQUERY: '
http://exist-db.or

g/xquery/templates' (true)

2017-06-01 07:05:19,526 [qtp967531000-21] DEBUG (Logger.java [fine]:38) -
Package 'http://exist-db.org/apps/eXide', no URI in XQUERY

2017-06-01 07:05:19,527 [qtp967531000-21] DEBUG (Logger.java [fine]:38) -
Package 'http://exist-db.org/apps/shared', resolve in XQUERY: '
http://exist-db.o

rg/xquery/templates' (true)

2017-06-01 07:05:19,527 [qtp967531000-21] DEBUG (Logger.java [fine]:38) -
Package 'http://exist-db.org/apps/shared', resolved '
http://exist-db.org/xquery/

templates' in XQUERY to 'templates.xql'

2017-06-01 07:05:19,527 [qtp967531000-21] DEBUG (Logger.java [fine]:38) -
Trying to resolve 'templates.xql' within
'/home/liuzzo/exist/webapp/WEB-INF/data

/expathrepo/shared-0.4.2/content'

Is anyone else experiencing such problems? Could anyone please help me to
understand what might be going on? It would be mostly important for me to
be able to access eXide to download the .xar (correctly) or to have an
alternative way to save my apps and the data (xml and code). this used to
work well in 3.1.1 until I had the problem I reported initially.

Thanks a lot!
Sincerely yours

Pietro
Yes, those regularly imported with package manager do appear there and
also in the result of repo:list() in the same way as in the .expath-pkg.
Only those which I have imported as collections are not there. Can I add
them manually?
Do you have any suggestions on way I cannot download those apps any more
from eXide as .xar?
Thanks a lot!
Pietro
Post by Pietro Liuzzo
Post by Pietro Liuzzo
expath-repo.log reports the following warnings.
2017-05-31 13:04:19,909 [main] WARN (ClasspathHelper.java
[scanPackages]:90) - Package https://www.betamasaheft.uni-h
amburg.de/BetMas is not compatible with this version of eXist. To avoid
conflicts, Java libraries shipping with this package are not loaded.
Those warnings are only relevant for packages containing Java jar files.
If there are no other errors, all packages listed in .expath-pkg should
have been registered with the package manager and should appear in the
dashboard. If not, could you run repo:list() from eXide and compare the
list of URIs it returns?
Wolfgang
--
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)
https://uk.linkedin.com/in/pietroliuzzo
--
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)
https://uk.linkedin.com/in/pietroliuzzo
Pietro Liuzzo
2017-06-01 07:19:43 UTC
Permalink
Just an update: after running again stop and start from the wrapper the
situation remained as described above, and eXide was reinstalled and now
works, although I am still not able to download the apps as .xar. indexing
data in the app runs but then no indexes are visible in Monex, neither are
they used as for what the profiling says, only eXide indexes are there.
Thanks a lot for any help you might give me to solve this issue.
Post by Pietro Liuzzo
Dear all,
the problem persists, and my apps were this morning again all down. I have
simply stopped and started exist with the wrapper command stopDeamon.sh and
startDeamon.sh.
I am now running exist-db 3.2 installed from git master branch on Ubuntu
14.04.5 LTS (GNU/Linux 3.13.0-116-generic x86_64)
I am back to the initial stage, when I find that this is starting 2 java
processes, although I thought there should be one only, my apps are visible
via Oxygen but I see either an empty template or I get this error
<path>/db/apps/monex/modules/view.xql</path>
<message>
exerr:ERROR The actual return type does not match the sequence type
declared in the function's signature: config:app-title(node(), map) text().
/db/apps/monex/modules/view.xql] In function: config:app-title(node(),
map) [217:18:/db/apps/monex/modules/config.xqm] templates:call-with-args(function,
function*, element(), map) [208:13:/home/liuzzo/exist/./
webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:process-output(element(), map, item()*, element())
[205:9:/home/liuzzo/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:call-by-introspection(element(), map, map, function)
[187:28:/home/liuzzo/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:call(item(), element(), map) [135:36:/home/liuzzo/exist/./
webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:process(node()*, map) [146:81:/home/liuzzo/exist/./
webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:process(node()*, map) [146:81:/home/liuzzo/exist/./
webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:process(node()*, map) [465:17:/home/liuzzo/exist/./
webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:process-output(element(), map, item()*)
[273:9:/home/liuzzo/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:process-output(element(), map, item()*, element())
[205:9:/home/liuzzo/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:call-by-introspection(element(), map, map, function)
[187:28:/home/liuzzo/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:call(item(), element(), map) [143:37:/home/liuzzo/exist/./
webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:process(node()*, map) [131:51:/home/liuzzo/exist/./
webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:process(node()*, map) [88:9:/home/liuzzo/exist/./
webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:apply(node()+, function, map?, map?) [43:5:/home/liuzzo/exist/./
webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
</message>
I have used bin/client.sh -i -c /db
and Dashboard and Monex could be accessed again as well as some of my
apps. eXide gives error 500
javax.servlet.ServletException: An error occurred while processing request to /exist/apps/eXide/index.html: exerr:ERROR The actual return type does not match the sequence type declared in the function's signature: config:get-configuration() element(). Expected cardinality: exactly one, got 0. [at line 42, column 42, source: /db/apps/eXide/controller.xql]
config:get-configuration() [68:10:/db/apps/eXide/modules/config.xqm]
local:user-allowed() [140:9:/db/apps/eXide/controller.xql]
at org.exist.http.urlrewrite.XQueryURLRewrite.service(XQueryURLRewrite.java:378)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:845)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1689)
at de.betterform.agent.web.filter.XFormsFilter.doFilter(XFormsFilter.java:171)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1174)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1106)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)
at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:459)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
at org.eclipse.jetty.server.Server.handle(Server.java:524)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:319)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:253)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.exist.xquery.XPathException: exerr:ERROR The actual return type does not match the sequence type declared in the function's signature: config:get-configuration() element(). Expected cardinality: exactly one, got 0. [at line 42, column 42, source: /db/apps/eXide/controller.xql]
config:get-configuration() [68:10:/db/apps/eXide/modules/config.xqm]
local:user-allowed() [140:9:/db/apps/eXide/controller.xql]
at org.exist.xquery.DynamicCardinalityCheck.eval(DynamicCardinalityCheck.java:86)
at org.exist.xquery.DynamicTypeCheck.eval(DynamicTypeCheck.java:61)
at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:302)
at org.exist.xquery.FunctionCall.eval(FunctionCall.java:223)
at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
at org.exist.xquery.PathExpr.eval(PathExpr.java:276)
at org.exist.xquery.GeneralComparison.genericCompare(GeneralComparison.java:520)
at org.exist.xquery.GeneralComparison.eval(GeneralComparison.java:476)
at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
at org.exist.xquery.PathExpr.eval(PathExpr.java:276)
at org.exist.xquery.OpOr.eval(OpOr.java:90)
at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:155)
at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:302)
at org.exist.xquery.FunctionCall.eval(FunctionCall.java:223)
at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:97)
at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:100)
at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)
at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102)
at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)
at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102)
at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)
at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102)
at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)
at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102)
at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)
at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102)
at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
at org.exist.xquery.PathExpr.eval(PathExpr.java:276)
at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
at org.exist.xquery.XQuery.execute(XQuery.java:253)
at org.exist.xquery.XQuery.execute(XQuery.java:185)
at org.exist.http.urlrewrite.XQueryURLRewrite.runQuery(XQueryURLRewrite.java:697)
at org.exist.http.urlrewrite.XQueryURLRewrite.service(XQueryURLRewrite.java:256)
... 30 more
org.exist.xquery.XPathException: exerr:ERROR The actual return type does not match the sequence type declared in the function's signature: config:get-configuration() element(). Expected cardinality: exactly one, got 0. [at line 42, column 42, source: /db/apps/eXide/controller.xql]
config:get-configuration() [68:10:/db/apps/eXide/modules/config.xqm]
local:user-allowed() [140:9:/db/apps/eXide/controller.xql]
at org.exist.xquery.DynamicCardinalityCheck.eval(DynamicCardinalityCheck.java:86)
at org.exist.xquery.DynamicTypeCheck.eval(DynamicTypeCheck.java:61)
at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:302)
at org.exist.xquery.FunctionCall.eval(FunctionCall.java:223)
at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
at org.exist.xquery.PathExpr.eval(PathExpr.java:276)
at org.exist.xquery.GeneralComparison.genericCompare(GeneralComparison.java:520)
at org.exist.xquery.GeneralComparison.eval(GeneralComparison.java:476)
at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
at org.exist.xquery.PathExpr.eval(PathExpr.java:276)
at org.exist.xquery.OpOr.eval(OpOr.java:90)
at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:155)
at org.exist.xquery.FunctionCall.evalFunction(FunctionCall.java:302)
at org.exist.xquery.FunctionCall.eval(FunctionCall.java:223)
at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:97)
at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:100)
at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)
at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102)
at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)
at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102)
at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)
at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102)
at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)
at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102)
at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58)
at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:102)
at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
at org.exist.xquery.PathExpr.eval(PathExpr.java:276)
at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71)
at org.exist.xquery.XQuery.execute(XQuery.java:253)
at org.exist.xquery.XQuery.execute(XQuery.java:185)
at org.exist.http.urlrewrite.XQueryURLRewrite.runQuery(XQueryURLRewrite.java:697)
at org.exist.http.urlrewrite.XQueryURLRewrite.service(XQueryURLRewrite.java:256)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:845)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1689)
at de.betterform.agent.web.filter.XFormsFilter.doFilter(XFormsFilter.java:171)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1174)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1106)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)
at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:459)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
at org.eclipse.jetty.server.Server.handle(Server.java:524)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:319)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:253)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
at java.lang.Thread.run(Thread.java:745)
I have tried
xquery version "3.0";
import module namespace repair="http://exist-db.org/xquery/repo/repair"
at "resource:org/exist/xquery/modules/expathrepo/repair.xql";
repair:clean-all(),
repair:repair()
without success for eXide and the other apps not working.
there are now also double packages in data/expathrepo, and those are in
the pacakges.xml file where eXide is not anymore.
<packages xmlns="http://expath.org/ns/repo/packages">
<package version="0.9.8" dir="monex-0.9.8__1" name="http://exist-db.org/
apps/monex"/>
<package version="0.4.2" dir="shared-0.4.2__1" name="http://exist-db.org/
apps/shared"/>
<package version="1.0" dir="gez-en-1.0__1" name="http://betamasaheft.aai.
uni-hamburg.de/dict/"/>
<package version="0.1" dir="ueduc-0.1" name="http://oeduc.eu"/>
<package version="0.4.7" dir="dashboard-0.4.7__1" name="
http://exist-db.org/apps/dashboard"/>
<package version="1.13" dir="BetaMasaheft-1.13__1" name="https://www.
betamasaheft.uni-hamburg.de/BetMas"/>
</packages>
In Monex I can see that no indexes have been preserved. I reindexed
running the command from xquery in oxygen and the reindex was successful,
but monex does not show anything in indexes.html and says "No Index
Configurations were found in the /db/system/config collection."
There are some messages starting with DEBUG in expath-repo.log
2017-06-01 07:04:42,414 [qtp967531000-26] DEBUG (Logger.java [fine]:38) -
Package 'http://exist-db.org/apps/eXide', resolve in XQUERY: '
http://exist-db.or
g/xquery/templates' (true)
2017-06-01 07:04:42,415 [qtp967531000-26] DEBUG (Logger.java [fine]:38) -
Package 'http://exist-db.org/apps/eXide', no URI in XQUERY
2017-06-01 07:04:42,415 [qtp967531000-26] DEBUG (Logger.java [fine]:38) -
Package 'http://exist-db.org/apps/shared', resolve in XQUERY: '
http://exist-db.o
rg/xquery/templates' (true)
2017-06-01 07:04:42,415 [qtp967531000-26] DEBUG (Logger.java [fine]:38) -
Package 'http://exist-db.org/apps/shared', resolved '
http://exist-db.org/xquery/
templates' in XQUERY to 'templates.xql'
2017-06-01 07:04:42,416 [qtp967531000-26] DEBUG (Logger.java [fine]:38) -
Trying to resolve 'templates.xql' within '/home/liuzzo/exist/webapp/
WEB-INF/data
/expathrepo/shared-0.4.2/content'
2017-06-01 07:04:42,669 [qtp967531000-26] DEBUG (Logger.java [fine]:38) -
Package 'http://exist-db.org/apps/eXide', resolve in XQUERY: '
http://exist-db.or
g/apps/site-utils' (true)
2017-06-01 07:04:42,670 [qtp967531000-26] DEBUG (Logger.java [fine]:38) -
Package 'http://exist-db.org/apps/eXide', no URI in XQUERY
2017-06-01 07:04:42,670 [qtp967531000-26] DEBUG (Logger.java [fine]:38) -
Package 'http://exist-db.org/apps/shared', resolve in XQUERY: '
http://exist-db.o
rg/apps/site-utils' (true)
2017-06-01 07:04:42,670 [qtp967531000-26] DEBUG (Logger.java [fine]:38) -
Package 'http://exist-db.org/apps/shared', resolved '
http://exist-db.org/apps/si
te-utils' in XQUERY to 'siteutils.xql'
2017-06-01 07:04:42,671 [qtp967531000-26] DEBUG (Logger.java [fine]:38) -
Trying to resolve 'siteutils.xql' within '/home/liuzzo/exist/webapp/
WEB-INF/data
/expathrepo/shared-0.4.2/content'
2017-06-01 07:04:42,694 [qtp967531000-26] DEBUG (Logger.java [fine]:38) -
Package 'http://exist-db.org/apps/eXide', resolve in XQUERY: '
http://exist-db.or
g/xquery/apps' (true)
2017-06-01 07:04:42,702 [qtp967531000-26] DEBUG (Logger.java [fine]:38) -
Package 'http://exist-db.org/apps/eXide', no URI in XQUERY
2017-06-01 07:04:42,702 [qtp967531000-26] DEBUG (Logger.java [fine]:38) -
Package 'http://exist-db.org/apps/shared', resolve in XQUERY: '
http://exist-db.o
rg/xquery/apps' (true)
2017-06-01 07:04:42,703 [qtp967531000-26] DEBUG (Logger.java [fine]:38) -
Package 'http://exist-db.org/apps/shared', resolved '
http://exist-db.org/xquery/
apps' in XQUERY to 'apputil.xql'
2017-06-01 07:04:42,703 [qtp967531000-26] DEBUG (Logger.java [fine]:38) -
Trying to resolve 'apputil.xql' within '/home/liuzzo/exist/webapp/
WEB-INF/data/e
xpathrepo/shared-0.4.2/content'
2017-06-01 07:05:19,526 [qtp967531000-21] DEBUG (Logger.java [fine]:38) -
Package 'http://exist-db.org/apps/eXide', resolve in XQUERY: '
http://exist-db.or
g/xquery/templates' (true)
2017-06-01 07:05:19,526 [qtp967531000-21] DEBUG (Logger.java [fine]:38) -
Package 'http://exist-db.org/apps/eXide', no URI in XQUERY
2017-06-01 07:05:19,527 [qtp967531000-21] DEBUG (Logger.java [fine]:38) -
Package 'http://exist-db.org/apps/shared', resolve in XQUERY: '
http://exist-db.o
rg/xquery/templates' (true)
2017-06-01 07:05:19,527 [qtp967531000-21] DEBUG (Logger.java [fine]:38) -
Package 'http://exist-db.org/apps/shared', resolved '
http://exist-db.org/xquery/
templates' in XQUERY to 'templates.xql'
2017-06-01 07:05:19,527 [qtp967531000-21] DEBUG (Logger.java [fine]:38) -
Trying to resolve 'templates.xql' within '/home/liuzzo/exist/webapp/
WEB-INF/data
/expathrepo/shared-0.4.2/content'
Is anyone else experiencing such problems? Could anyone please help me to
understand what might be going on? It would be mostly important for me to
be able to access eXide to download the .xar (correctly) or to have an
alternative way to save my apps and the data (xml and code). this used to
work well in 3.1.1 until I had the problem I reported initially.
Thanks a lot!
Sincerely yours
Pietro
Yes, those regularly imported with package manager do appear there and
also in the result of repo:list() in the same way as in the .expath-pkg.
Only those which I have imported as collections are not there. Can I add
them manually?
Do you have any suggestions on way I cannot download those apps any more
from eXide as .xar?
Thanks a lot!
Pietro
Post by Pietro Liuzzo
Post by Pietro Liuzzo
expath-repo.log reports the following warnings.
2017-05-31 13:04:19,909 [main] WARN (ClasspathHelper.java
[scanPackages]:90) - Package https://www.betamasaheft.uni-h
amburg.de/BetMas is not compatible with this version of eXist. To avoid
conflicts, Java libraries shipping with this package are not loaded.
Those warnings are only relevant for packages containing Java jar files.
If there are no other errors, all packages listed in .expath-pkg should
have been registered with the package manager and should appear in the
dashboard. If not, could you run repo:list() from eXide and compare the
list of URIs it returns?
Wolfgang
--
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)
https://uk.linkedin.com/in/pietroliuzzo
--
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)
https://uk.linkedin.com/in/pietroliuzzo
--
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)
https://uk.linkedin.com/in/pietroliuzzo
Wolfgang Meier
2017-06-01 09:20:56 UTC
Permalink
Just an update: after running again stop and start from the wrapper the situation remained as described above, and eXide was reinstalled and now works, although I am still not able to download the apps as .xar. indexing data in the app runs but then no indexes are visible in Monex, neither are they used as for what the profiling says, only eXide indexes are there.
Ok, since your install seems messed up, I would use the following approach myself:

1) create a complete backup and unzip it into a directory,
2) start a clean eXist
3) restore /db/system/security only to get your users back
4) install those apps from the public repo you need
5) selectively restore your own app packages into the database, one by one. Run the repo:repair step after each to see if it works

Wolfgang
Pietro Liuzzo
2017-06-01 11:53:11 UTC
Permalink
Thank you very much,
I will try tomorrow morning. For the moment it looks like all is mostly
working, but I want to fix this so that it does not occur anymore and my
install does look like is messed up a lot!
I will remove the current exist and install it from bintray rather than
from github.
is repo:repair different from repair:repair ?
Thanks again
Sincerely yours
Pietro
Post by Pietro Liuzzo
Post by Pietro Liuzzo
Just an update: after running again stop and start from the wrapper the
situation remained as described above, and eXide was reinstalled and now
works, although I am still not able to download the apps as .xar. indexing
data in the app runs but then no indexes are visible in Monex, neither are
they used as for what the profiling says, only eXide indexes are there.
1) create a complete backup and unzip it into a directory,
2) start a clean eXist
3) restore /db/system/security only to get your users back
4) install those apps from the public repo you need
5) selectively restore your own app packages into the database, one by
one. Run the repo:repair step after each to see if it works
Wolfgang
--
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)
https://uk.linkedin.com/in/pietroliuzzo
Pietro Liuzzo
2017-06-02 06:54:58 UTC
Permalink
Dear Wolfgang,

I have proceeded as you suggested and now everything is back and in proper
order. Thank you so much!

I still wonder why this occurred. This time I installed from the .jar
instead of git, is that perhaps the difference?

Thanks a lot again

Pietro
Post by Pietro Liuzzo
Post by Pietro Liuzzo
Just an update: after running again stop and start from the wrapper the
situation remained as described above, and eXide was reinstalled and now
works, although I am still not able to download the apps as .xar. indexing
data in the app runs but then no indexes are visible in Monex, neither are
they used as for what the profiling says, only eXide indexes are there.
1) create a complete backup and unzip it into a directory,
2) start a clean eXist
3) restore /db/system/security only to get your users back
4) install those apps from the public repo you need
5) selectively restore your own app packages into the database, one by
one. Run the repo:repair step after each to see if it works
Wolfgang
--
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)
https://uk.linkedin.com/in/pietroliuzzo
Loading...