Sign in to localhost in new Vocbench

364 views
Skip to first unread message

Pedro Paulo Favato Barcelos

unread,
Sep 29, 2021, 3:42:17 AM9/29/21
to vocbench-user
Hi, community!

After downloading the newest version of Vocbench, every time that I am trying to run it locally at http://localhost:1979/vocbench3/, a pop-up appears in my browser asking for username and password (image here attached). This prevents me from accessing Vocbench's interface.

How can I solve this problem?

Thank you in advance.

Kind regards,
Pedro Paulo F. Barcelos


Picture1.png

Tiziano Lorenzetti

unread,
Sep 29, 2021, 4:33:41 AM9/29/21
to Pedro Paulo Favato Barcelos, vocbench-user
Dear Pedro Paulo,
this issue makes me think that the Karaf container was not able to deploy the VocBench war correctly. Sometime, at the first run, this might happen due to non-deterministic factors, which vary from machine to machine, but are usually related to installation of bundles/web bundles.
Please, check if the Karaf console logged some error, something like the following:

Failed to install artifact: C:\TEMP\semanticturkey-10.1\deploy\vocbench3-10.1.0.war
java.lang.IllegalStateException: Unknown protocol: webbundle
        at org.apache.felix.framework.URLHandlersStreamHandlerProxy.toExternalForm(URLHandlersStreamHandlerProxy.java:482)
        ...


or

18:57:40.185 ERROR [fileinstall-C:\TEMP\semanticturkey-10.1/deploy] Registration exception. Skipping.
org.osgi.service.http.NamespaceException: alias: '/vocbench3' is already in use in this or another context
        at org.ops4j.pax.web.service.spi.model.ServerModel.addServletModel(ServerModel.java:124)
        ...


In such case case just restart the system (Karaf) and retry.

Best regards,
Tiziano

--
You received this message because you are subscribed to the Google Groups "vocbench-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vocbench-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vocbench-user/b63881fb-2002-4351-9a0f-dc984e7b083dn%40googlegroups.com.

Tommi Lehtonen

unread,
Sep 29, 2021, 5:14:00 AM9/29/21
to vocbench-user
Hello!

I have te exact same issue. I build it using the Docker, as described here:


I changed the dockerfile to match version 9.1.0

ROM adoptopenjdk/openjdk8:alpine

ENV vb_version=9.1.0
ENV st_version=9.1

Then:

docker run -p 1979:1979 --name vocbench3 -t vocbench3:9.1.0

09:10:03.627 ERROR [fileinstall-/opt/vocbench3/semanticturkey-9.1/deploy] Failed to install artifact: /opt/vocbench3/semanticturkey-9.1/deploy/vocbench3-9.1.0.war

java.lang.IllegalStateException: Unknown protocol: webbundle

at org.apache.felix.framework.URLHandlersStreamHandlerProxy.toExternalForm(URLHandlersStreamHandlerProxy.java:482)

at org.apache.felix.framework.URLHandlersStreamHandlerProxy.toExternalForm(URLHandlersStreamHandlerProxy.java:474)

at java.net.URL.toExternalForm(URL.java:947)

at java.net.URL.toString(URL.java:933)

at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:961)

at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:884)

at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:489)

at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365)

at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316)

Remote SPARQL Endpoints: []

Data dumps: []

Adding data located at: bundle://119.0:0/META-INF/it.uniroma2.art.maple/access_implementations.ttl

ST Home Directory: file:/opt/vocbench3/semanticturkey-9.1/

ST Started

Tommi Lehtonen

unread,
Sep 29, 2021, 5:24:37 AM9/29/21
to vocbench-user
Oh, it seem that restarting the container just fixed this for me. Thanks for the tip!

Best regards,

Tommi Lehtonen

Armando Stellato

unread,
Sep 29, 2021, 6:10:28 AM9/29/21
to Tommi Lehtonen, vocbench-user

Hi all,

 

I confirm what Tiziano said. One time it happened to me even after “ST Started” appeared on screen.

 

If a simple restart doesn’t work, I suggest to try one or both of the following:

 

  1. In any case, after a start, wait a little (e.g. couple of minutes) before doing anything
  2. Try an hard refresh on the browser; how to do that varies depending on browser and OS (see https://www.getfilecloud.com/blog/2015/03/tech-tip-how-to-do-hard-refresh-in-browsers/#.YVQ6rTHP38A )
  3. Tear down the console; remove the SemanticTurkeyData directory (unless you have a previously existing one that you want to keep), remove also the semanticturkey-<ver>\data\cache directory, completely and start it again, take a coffee, relax, and come back after a few minutes (probably not necessary, but take ur time :D )

 

Cheers,


Armando

Pedro Paulo Favato Barcelos

unread,
Oct 1, 2021, 12:03:47 PM10/1/21
to vocbench-user
Thank you all for the support!

I am running locally and karaf console does not report any errors.

After some ctrl + f5s the login request really disappears =)

Have a nice weekend!

Kind regards, 
Pedro Paulo F. Barcelos

Reply all
Reply to author
Forward
0 new messages