You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Andy Seaborne <an...@apache.org> on 2021/09/10 13:08:13 UTC

Re: basic error when trying to add a new dataset


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
> 

AW: AW: basic error when trying to add a new dataset

Posted by Bernhard Krabina <kr...@kdz.or.at>.
Dear Andy,

thank you, indeed, setting 
/$/** = anon
in shiro.ini solved the problem.

Regards,
Bernhard

-----Ursprüngliche Nachricht-----
Von: Andy Seaborne <an...@apache.org> 
Gesendet: Freitag, 10. September 2021 17:15
An: users@jena.apache.org
Betreff: Re: AW: basic error when trying to add a new dataset

There is nothing more in the URL than
http://192.xxxx.143:8080/fuseki/manage.html
<http://192.xxxx.143:8080/fuseki/manage.html>

----

Digression: nothing to hide here.

192.168,... presumably - that's a purely local IP address - no one can use it from outside the VPN.

https://en.wikipedia.org/wiki/Private_network

----

If you are using the IP address it will not work. Use "localhost", or
127.0.0.1

The default shiro.ini is set to block admin operations coming from anywhere but localhost - and that means the special localhost adapter, not the IP address of the machine (that will go on the normal physical network adapter.

If it is on another machine, you'll need to change shiro.ini. The instructions are in that file.

     Andy


On 10/09/2021 14:35, Bernhard Krabina wrote:
>
> Dear Andy,
>
> thank you for your help.
>
> > Some kind of HTTP error response.
>
> > The error message is in the grey box below "Sorry, that didn't work because:"
>
> Yes, but in the grey box below, it just says "error"
>
> >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.
>
> Following this
> https://stackoverflow.com/questions/6246127/cant-access-tomcat-using-i
> p-address 
> <https://stackoverflow.com/questions/6246127/cant-access-tomcat-using-
> ip-address>
>
> I changed the server.xml file accordingly, without success.
>
> >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.
>
> There is nothing more in the URL than
> http://192.xxxx.143:8080/fuseki/manage.html
> <http://192.xxxx.143:8080/fuseki/manage.html>
>
> >Try in the tomcat logs under /var/log/...
>
> I don't have any tomcat under this directory.
>
> Regards,
>
> Bernhard
>

Re: AW: basic error when trying to add a new dataset

Posted by Andy Seaborne <an...@apache.org>.
There is nothing more in the URL than
http://192.xxxx.143:8080/fuseki/manage.html 
<http://192.xxxx.143:8080/fuseki/manage.html>

----

Digression: nothing to hide here.

192.168,... presumably - that's a purely local IP address - no one can 
use it from outside the VPN.

https://en.wikipedia.org/wiki/Private_network

----

If you are using the IP address it will not work. Use "localhost", or 
127.0.0.1

The default shiro.ini is set to block admin operations coming from 
anywhere but localhost - and that means the special localhost adapter, 
not the IP address of the machine (that will go on the normal physical 
network adapter.

If it is on another machine, you'll need to change shiro.ini. The 
instructions are in that file.

     Andy


On 10/09/2021 14:35, Bernhard Krabina wrote:
>
> Dear Andy,
>
> thank you for your help.
>
> > Some kind of HTTP error response.
>
> > The error message is in the grey box below "Sorry, that didn't work because:"
>
> Yes, but in the grey box below, it just says "error"
>
> >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.
>
> Following this 
> https://stackoverflow.com/questions/6246127/cant-access-tomcat-using-ip-address 
> <https://stackoverflow.com/questions/6246127/cant-access-tomcat-using-ip-address>
>
> I changed the server.xml file accordingly, without success.
>
> >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.
>
> There is nothing more in the URL than
> http://192.xxxx.143:8080/fuseki/manage.html 
> <http://192.xxxx.143:8080/fuseki/manage.html>
>
> >Try in the tomcat logs under /var/log/...
>
> I don't have any tomcat under this directory.
>
> Regards,
>
> Bernhard
>

AW: basic error when trying to add a new dataset

Posted by Bernhard Krabina <kr...@kdz.or.at>.
Dear Andy,



thank you for your help.



> Some kind of HTTP error response.

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



Yes, but in the grey box below, it just says "error"

[cid:image001.png@01D7A659.6BD57390]



>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.



Following this https://stackoverflow.com/questions/6246127/cant-access-tomcat-using-ip-address

I changed the server.xml file accordingly, without success.



>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.



There is nothing more in the URL than
http://192.xxxx.143:8080/fuseki/manage.html



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

I don't have any tomcat under this directory.



Regards,

Bernhard