On 10/09/2021 11:53, Bernhard Krabina wrote:
Dear all,

I am trying to get the fuseki triple store to work for the first time. I have 
it running via tomcat on localhost:8080/fuseki
However, if I type any dataset name, select in-memory (or any other option), I 
just get the result

"Sorry, that didn't work because:

error"

Some kind of HTTP error response.

The error message is in the grey box below "Sorry, that didn't work because:"

For example, if you try when using the IP address of the machine, and not "localhost", it says "Forbidden." because of the default security means only localhost can make admin requests.

To get more detail, you could try using curl or wget to make the request copying the URL from the browser bar. You should be able to get he HTTP response code thatway.

Without any further indication. Is there a way to make this more verbose? I 
could not find any more detailed error message in any logs (but I might look in 
the wrong place).

Try in the tomcat logs under /var/log/...


Here is my setup:
Debian 10.8, Tomcat 9.0.5.2
I deployed the Fuseki 4.1.0 .war-File which worked great.
/etc/fuseki is owned by the tomcat user.

I tried to follow these directions:
https://jena.apache.org/documentation/fuseki2/fuseki-webapp.html#fuseki-web-application
I don't quite understand the "configuring logging" section. My path is  
/opt/tomcat/webapps/fuseki/log4j2.properties
The file is there. When the logging goes to the standard output, this would 
mean that the error message should be displayed in the browser, right?

No - it goes to wherever stdout is for the tomcat server.


Also the next paragraph "Fuseki with Tomcat9 and systemd" is confusing:
I have a path /etc/systemd/system with a file tomcat.service
I edited this file and added

# Allow access to the Fuseki area

     ReadWritePaths=/etc/fuseki/

     StandardOutput=file:/opt/tomcat/logs/catalina.out

But this does not solve the problem. There is still nor warning or error 
message ini Catalina.out


10-Sep-2021 10:46:11.229 INFO [main] 
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.

[2021-09-10 10:46:12] Config     INFO  FUSEKI_HOME=unset

[2021-09-10 10:46:12] Config     INFO  FUSEKI_BASE=/etc/fuseki

[2021-09-10 10:46:12] Config     INFO  Shiro file: file:///etc/fuseki/shiro.ini

[2021-09-10 10:46:13] Config     INFO  Context path = /fuseki

[2021-09-10 10:46:13] Server     INFO  Configuration file: 
/etc/fuseki/config.ttl

[2021-09-10 10:46:13] Server     INFO  System

[2021-09-10 10:46:13] Server     INFO    Memory: 910.5 MiB

[2021-09-10 10:46:13] Server     INFO    Java:   11.0.12

[2021-09-10 10:46:13] Server     INFO    OS:     Linux 5.4.34-1-pve amd64

[2021-09-10 10:46:13] Server     INFO    PID:    5322

If nothing comes from Fuseki after this line, then it is likely an access control problem.


10-Sep-2021 10:46:13.718 INFO [main] 
org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application 
archive [/opt/tomcat/webapps/fuseki.war] has finished in [4,605] ms

10-Sep-2021 10:46:13.719 INFO [main] 
org.apache.catalina.startup.HostConfig.deployDirectory Deploying web 
application directory [/opt/tomcat/webapps/ROOT]

10-Sep-2021 10:46:13.737 INFO [main] 
org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web 
application directory [/opt/tomcat/webapps/ROOT] has finished in [17] ms

10-Sep-2021 10:46:13.737 INFO [main] 
org.apache.catalina.startup.HostConfig.deployDirectory Deploying web 
application directory [/opt/tomcat/webapps/docs]

10-Sep-2021 10:46:13.754 INFO [main] 
org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web 
application directory [/opt/tomcat/webapps/docs] has finished in [17] ms

10-Sep-2021 10:46:13.754 INFO [main] 
org.apache.catalina.startup.HostConfig.deployDirectory Deploying web 
application directory [/opt/tomcat/webapps/host-manager]

10-Sep-2021 10:46:13.784 INFO [main] 
org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web 
application directory [/opt/tomcat/webapps/host-manager] has finished in [30] ms

10-Sep-2021 10:46:13.785 INFO [main] 
org.apache.catalina.startup.HostConfig.deployDirectory Deploying web 
application directory [/opt/tomcat/webapps/examples]

10-Sep-2021 10:46:14.196 INFO [main] 
org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web 
application directory [/opt/tomcat/webapps/examples] has finished in [411] ms

10-Sep-2021 10:46:14.196 INFO [main] 
org.apache.catalina.startup.HostConfig.deployDirectory Deploying web 
application directory [/opt/tomcat/webapps/manager]

10-Sep-2021 10:46:14.255 INFO [main] 
org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web 
application directory [/opt/tomcat/webapps/manager] has finished in [59] ms

10-Sep-2021 10:46:14.262 INFO [main] org.apache.coyote.AbstractProtocol.start Starting 
ProtocolHandler ["http-nio-8080"]

10-Sep-2021 10:46:14.298 INFO [main] org.apache.catalina.startup.Catalina.start 
Server startup in [9929] milliseconds

Any help is appreciated and sorry in case I am making any very basic mistakes.

Best regards,
Bernhard

Reply via email to