You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Sorin Gheorghiu <so...@uni-konstanz.de> on 2015/04/05 20:24:57 UTC
Fuseki User Interface unmanageable
Hi,
after starting the server without errors and loading few triples
successfully, no dataset is shown on the server web interface (neither
on port 3030 nor 8080).
Moreover it is not posible to manage the datasets. What am I doing
wrong? The server runs under Ubuntu 12.04.
Thanks,
Sorin
# java -Xmx8G -jar fuseki-server.jar --config=/etc/fuseki/config.ttl
[2015-04-05 19:48:02] Server INFO Fuseki 2.0.0 2015-03-08T09:49:20+0000
[2015-04-05 19:48:02] Config INFO
FUSEKI_HOME=/opt/apache-jena-fuseki-2.0.0/.
[2015-04-05 19:48:02] Config INFO
FUSEKI_BASE=/opt/apache-jena-fuseki-2.0.0/run
[2015-04-05 19:48:02] Servlet INFO Initializing Shiro environment
[2015-04-05 19:48:02] Config INFO Shiro file:
file:///opt/apache-jena-fuseki-2.0.0/run/shiro.ini
[2015-04-05 19:48:02] Config INFO Configuration file:
/etc/fuseki/config.ttl
[2015-04-05 19:48:03] Builder INFO Service: TDB/text service
[2015-04-05 19:48:03] Config INFO Register: /GND030215
[2015-04-05 19:48:03] Server INFO Started 2015/04/05 19:48:03 CEST
on port 3030
# /opt/apache-jena-2.13.0/bin/tdbloader --loc:GND030215 GND_example.ttl
19:36:37 INFO loader :: -- Start triples data phase
19:36:37 INFO loader :: ** Load empty triples table
19:36:37 INFO loader :: -- Start quads data phase
19:36:37 INFO loader :: ** Load empty quads table
19:36:37 INFO loader :: Load: GND_example.ttl --
2015/04/05 19:36:37 CEST
19:36:38 INFO loader :: -- Finish triples data phase
19:36:38 INFO loader :: ** Data: 196 triples loaded in
0,41 seconds [Rate: 483,95 per second]
19:36:38 INFO loader :: -- Finish quads data phase
19:36:38 INFO loader :: -- Start triples index phase
19:36:38 INFO loader :: ** Index SPO->POS: 194 slots
indexed in 0,02 seconds [Rate: 12.125,00 per second]
19:36:38 INFO loader :: ** Index SPO->OSP: 194 slots
indexed in 0,01 seconds [Rate: 12.933,33 per second]
19:36:38 INFO loader :: -- Finish triples index phase
19:36:38 INFO loader :: ** 194 triples indexed in 0,03
seconds [Rate: 6.258,06 per second]
19:36:38 INFO loader :: -- Finish triples load
19:36:38 INFO loader :: ** Completed: 196 triples loaded
in 0,46 seconds [Rate: 428,88 per second]
19:36:38 INFO loader :: -- Finish quads load
http://134.34.201.195:3030/GND030215/query?query=SELECT%20*%20%7B%3Fs%20%3Fp%20%3Fo%7D%20limit%205
[2015-04-05 19:40:38] Fuseki INFO [1] GET
http://134.34.201.195:3030/GND030215/query?query=SELECT%20*%20%7B%3Fs%20%3Fp%20%3Fo%7D%20limit%205
[2015-04-05 19:40:38] Fuseki INFO [1] GET /GND030215 :: 'query' ::
<none> ? query=SELECT%20*%20%7B%3Fs%20%3Fp%20%3Fo%7D%20limit%205
[2015-04-05 19:40:38] Fuseki INFO [1] Query = SELECT * {?s ?p ?o}
limit 5
[2015-04-05 19:40:38] Fuseki INFO [1] exec/select
[2015-04-05 19:40:38] Fuseki INFO [1] 200 OK (86 ms)
Re: Fuseki User Interface unmanageable
Posted by Andy Seaborne <an...@apache.org>.
On 08/04/15 12:16, Sorin Gheorghiu wrote:
> Hi Stain,
>
> you're right, I don't want anyone to access the server. I learnt from
> Andy it is working without restriction on /$/** and using the simple
> user/password.
> My misunderstanding was I could replace 'localhost' with a specific IP
> address and restrict the access, like 'pg_hba.conf' for Postgres does. I
> guess Shiro can filter it, as discussed here:
> http://stackoverflow.com/questions/7584484/is-there-a-way-to-get-the-ip-address-of-the-client-caller-in-a-shiro-filter-in-g
> but . Just for my information, do you know is there a easier way?
>
> Thank you,
> Sorin
So I'll change the name to "localhostFilter" to make that part clearer.
The Shiro filter actually used is provided by Fuseki:
https://github.com/apache/jena/blob/master/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/authz/LocalhostFilter.java
(Contributed back to Shiro so eventually it will appear there, I hope)
A specific IP address version could be created - the problem is that
with proxies and reverse proxies, and "X-Forwarded-For" and load
balancers, it is really a complicated matter of knowing the true remote
client, if it is possible at all.
A "SpecificHostFilter" would be OK for local LAN deployments.
It would be nice to have a digest password filter as well. "Basic" is
really too basic unless https is used. Digest is an extra round trip :
return 401 with a WWW-Authenticate header but I don't see why the filter
can't do that if it can force the first response via onAccessDenied.
Does anyone know of one for shiro anywhere to use an an example starting
point?
Andy
SHIRO-20 is caught up in other more complicated setups.
>
> Am 08.04.2015 um 10:59 schrieb Stian Soiland-Reyes:
>> If you are unable to access Fuseki from the actual localhost for
>> dataset management (e.g. it's a remote server and you don't want to
>> use tricks like SSH tunnels), then you still probably do not want
>> anyone on your network which can access the server from being able to
>> change the datasets, right?
>>
>> (I've checked that I can't access it from the internet, so either you
>> have a firewall sorted, or have turned it off for now)
>>
>> If you don't already have a firewall that restricts 134...195:3030 to
>> only be accessed by client IPs which are allowed to manage your Fuseki
>> installation, then you will probably want to set up username/password
>> protection in your shiro.ini.
>>
>>
>> Unfortunately the Fuseki 2 user interface is not yet very good yet at
>> "hiding" bits you don't have access to - so if you enable
>> username/password, it will easily ask other visitors for the password
>> as soon as they click on "manage".
>>
>> Here's the shiro.ini I use for username/password:
>>
>> https://github.com/stain/jena/blob/fuseki2-docker-maven/jena-fuseki2/jena-fuseki-docker/shiro.ini
>>
>>
>> You will probably want a better password than "pw" :)
>>
>> ("pw" above is search-replaced with a random password in my Docker
>> deployment)
>>
>> On 5 April 2015 at 19:24, Sorin Gheorghiu
>> <sorin.gheorghiu@uni-konstanz.de
>> <ma...@uni-konstanz.de>> wrote:
>>
>> Hi,
>>
>> after starting the server without errors and loading few triples
>> successfully, no dataset is shown on the server web interface
>> (neither on port 3030 nor 8080).
>> Moreover it is not posible to manage the datasets. What am I doing
>> wrong? The server runs under Ubuntu 12.04.
>>
>> Thanks,
>> Sorin
>>
>> # java -Xmx8G -jar fuseki-server.jar --config=/etc/fuseki/config.ttl
>> [2015-04-05 19:48:02] Server INFO Fuseki 2.0.0
>> 2015-03-08T09:49:20+0000
>> [2015-04-05 19:48:02] Config INFO
>> FUSEKI_HOME=/opt/apache-jena-fuseki-2.0.0/.
>> [2015-04-05 19:48:02] Config INFO
>> FUSEKI_BASE=/opt/apache-jena-fuseki-2.0.0/run
>> [2015-04-05 19:48:02] Servlet INFO Initializing Shiro environment
>> [2015-04-05 19:48:02] Config INFO Shiro file:
>> file:///opt/apache-jena-fuseki-2.0.0/run/shiro.ini
>> [2015-04-05 19:48:02] Config INFO Configuration file:
>> /etc/fuseki/config.ttl
>> [2015-04-05 19:48:03] Builder INFO Service: TDB/text service
>> [2015-04-05 19:48:03] Config INFO Register: /GND030215
>> [2015-04-05 19:48:03] Server INFO Started 2015/04/05 19:48:03
>> CEST on port 3030
>>
>> # /opt/apache-jena-2.13.0/bin/tdbloader --loc:GND030215
>> GND_example.ttl
>> 19:36:37 INFO loader :: -- Start triples data phase
>> 19:36:37 INFO loader :: ** Load empty triples table
>> 19:36:37 INFO loader :: -- Start quads data phase
>> 19:36:37 INFO loader :: ** Load empty quads table
>> 19:36:37 INFO loader :: Load: GND_example.ttl --
>> 2015/04/05 19:36:37 CEST
>> 19:36:38 INFO loader :: -- Finish triples data phase
>> 19:36:38 INFO loader :: ** Data: 196 triples loaded
>> in 0,41 seconds [Rate: 483,95 per second]
>> 19:36:38 INFO loader :: -- Finish quads data phase
>> 19:36:38 INFO loader :: -- Start triples index phase
>> 19:36:38 INFO loader :: ** Index SPO->POS: 194
>> slots indexed in 0,02 seconds [Rate: 12.125,00 per second]
>> 19:36:38 INFO loader :: ** Index SPO->OSP: 194
>> slots indexed in 0,01 seconds [Rate: 12.933,33 per second]
>> 19:36:38 INFO loader :: -- Finish triples index phase
>> 19:36:38 INFO loader :: ** 194 triples indexed in
>> 0,03 seconds [Rate: 6.258,06 per second]
>> 19:36:38 INFO loader :: -- Finish triples load
>> 19:36:38 INFO loader :: ** Completed: 196 triples
>> loaded in 0,46 seconds [Rate: 428,88 per second]
>> 19:36:38 INFO loader :: -- Finish quads load
>>
>>
>>
>>
>> http://134.34.201.195:3030/GND030215/query?query=SELECT%20*%20%7B%3Fs%20%3Fp%20%3Fo%7D%20limit%205
>>
>>
>> [2015-04-05 19:40:38] Fuseki INFO [1] GET
>>
>> http://134.34.201.195:3030/GND030215/query?query=SELECT%20*%20%7B%3Fs%20%3Fp%20%3Fo%7D%20limit%205
>>
>> [2015-04-05 19:40:38] Fuseki INFO [1] GET /GND030215 ::
>> 'query' :: <none> ?
>> query=SELECT%20*%20%7B%3Fs%20%3Fp%20%3Fo%7D%20limit%205
>> [2015-04-05 19:40:38] Fuseki INFO [1] Query = SELECT * {?s ?p
>> ?o} limit 5
>> [2015-04-05 19:40:38] Fuseki INFO [1] exec/select
>> [2015-04-05 19:40:38] Fuseki INFO [1] 200 OK (86 ms)
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> --
>> Stian Soiland-Reyes
>> Apache Taverna (incubating), Apache Commons RDF (incubating)
>> http://orcid.org/0000-0001-9842-9718
>
Re: Fuseki User Interface unmanageable
Posted by Sorin Gheorghiu <so...@uni-konstanz.de>.
Hi Stain,
you're right, I don't want anyone to access the server. I learnt from
Andy it is working without restriction on /$/** and using the simple
user/password.
My misunderstanding was I could replace 'localhost' with a specific IP
address and restrict the access, like 'pg_hba.conf' for Postgres does. I
guess Shiro can filter it, as discussed here:
http://stackoverflow.com/questions/7584484/is-there-a-way-to-get-the-ip-address-of-the-client-caller-in-a-shiro-filter-in-g
but . Just for my information, do you know is there a easier way?
Thank you,
Sorin
Am 08.04.2015 um 10:59 schrieb Stian Soiland-Reyes:
> If you are unable to access Fuseki from the actual localhost for
> dataset management (e.g. it's a remote server and you don't want to
> use tricks like SSH tunnels), then you still probably do not want
> anyone on your network which can access the server from being able to
> change the datasets, right?
>
> (I've checked that I can't access it from the internet, so either you
> have a firewall sorted, or have turned it off for now)
>
> If you don't already have a firewall that restricts 134...195:3030 to
> only be accessed by client IPs which are allowed to manage your Fuseki
> installation, then you will probably want to set up username/password
> protection in your shiro.ini.
>
>
> Unfortunately the Fuseki 2 user interface is not yet very good yet at
> "hiding" bits you don't have access to - so if you enable
> username/password, it will easily ask other visitors for the password
> as soon as they click on "manage".
>
> Here's the shiro.ini I use for username/password:
>
> https://github.com/stain/jena/blob/fuseki2-docker-maven/jena-fuseki2/jena-fuseki-docker/shiro.ini
>
> You will probably want a better password than "pw" :)
>
> ("pw" above is search-replaced with a random password in my Docker
> deployment)
>
> On 5 April 2015 at 19:24, Sorin Gheorghiu
> <sorin.gheorghiu@uni-konstanz.de
> <ma...@uni-konstanz.de>> wrote:
>
> Hi,
>
> after starting the server without errors and loading few triples
> successfully, no dataset is shown on the server web interface
> (neither on port 3030 nor 8080).
> Moreover it is not posible to manage the datasets. What am I doing
> wrong? The server runs under Ubuntu 12.04.
>
> Thanks,
> Sorin
>
> # java -Xmx8G -jar fuseki-server.jar --config=/etc/fuseki/config.ttl
> [2015-04-05 19:48:02] Server INFO Fuseki 2.0.0
> 2015-03-08T09:49:20+0000
> [2015-04-05 19:48:02] Config INFO
> FUSEKI_HOME=/opt/apache-jena-fuseki-2.0.0/.
> [2015-04-05 19:48:02] Config INFO
> FUSEKI_BASE=/opt/apache-jena-fuseki-2.0.0/run
> [2015-04-05 19:48:02] Servlet INFO Initializing Shiro environment
> [2015-04-05 19:48:02] Config INFO Shiro file:
> file:///opt/apache-jena-fuseki-2.0.0/run/shiro.ini
> [2015-04-05 19:48:02] Config INFO Configuration file:
> /etc/fuseki/config.ttl
> [2015-04-05 19:48:03] Builder INFO Service: TDB/text service
> [2015-04-05 19:48:03] Config INFO Register: /GND030215
> [2015-04-05 19:48:03] Server INFO Started 2015/04/05 19:48:03
> CEST on port 3030
>
> # /opt/apache-jena-2.13.0/bin/tdbloader --loc:GND030215
> GND_example.ttl
> 19:36:37 INFO loader :: -- Start triples data phase
> 19:36:37 INFO loader :: ** Load empty triples table
> 19:36:37 INFO loader :: -- Start quads data phase
> 19:36:37 INFO loader :: ** Load empty quads table
> 19:36:37 INFO loader :: Load: GND_example.ttl --
> 2015/04/05 19:36:37 CEST
> 19:36:38 INFO loader :: -- Finish triples data phase
> 19:36:38 INFO loader :: ** Data: 196 triples loaded
> in 0,41 seconds [Rate: 483,95 per second]
> 19:36:38 INFO loader :: -- Finish quads data phase
> 19:36:38 INFO loader :: -- Start triples index phase
> 19:36:38 INFO loader :: ** Index SPO->POS: 194
> slots indexed in 0,02 seconds [Rate: 12.125,00 per second]
> 19:36:38 INFO loader :: ** Index SPO->OSP: 194
> slots indexed in 0,01 seconds [Rate: 12.933,33 per second]
> 19:36:38 INFO loader :: -- Finish triples index phase
> 19:36:38 INFO loader :: ** 194 triples indexed in
> 0,03 seconds [Rate: 6.258,06 per second]
> 19:36:38 INFO loader :: -- Finish triples load
> 19:36:38 INFO loader :: ** Completed: 196 triples
> loaded in 0,46 seconds [Rate: 428,88 per second]
> 19:36:38 INFO loader :: -- Finish quads load
>
>
>
> http://134.34.201.195:3030/GND030215/query?query=SELECT%20*%20%7B%3Fs%20%3Fp%20%3Fo%7D%20limit%205
>
> [2015-04-05 19:40:38] Fuseki INFO [1] GET
> http://134.34.201.195:3030/GND030215/query?query=SELECT%20*%20%7B%3Fs%20%3Fp%20%3Fo%7D%20limit%205
> [2015-04-05 19:40:38] Fuseki INFO [1] GET /GND030215 ::
> 'query' :: <none> ?
> query=SELECT%20*%20%7B%3Fs%20%3Fp%20%3Fo%7D%20limit%205
> [2015-04-05 19:40:38] Fuseki INFO [1] Query = SELECT * {?s ?p
> ?o} limit 5
> [2015-04-05 19:40:38] Fuseki INFO [1] exec/select
> [2015-04-05 19:40:38] Fuseki INFO [1] 200 OK (86 ms)
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> --
> Stian Soiland-Reyes
> Apache Taverna (incubating), Apache Commons RDF (incubating)
> http://orcid.org/0000-0001-9842-9718
--
Sorin Gheorghiu Tel: +49 7531 88-3198
Universität Konstanz Raum: B703
78464 Konstanz sorin.gheorghiu@uni-konstanz.de
- KIM: Abteilung Contentdienste -
Re: Fuseki User Interface unmanageable
Posted by Stian Soiland-Reyes <st...@apache.org>.
If you are unable to access Fuseki from the actual localhost for dataset
management (e.g. it's a remote server and you don't want to use tricks like
SSH tunnels), then you still probably do not want anyone on your network
which can access the server from being able to change the datasets, right?
(I've checked that I can't access it from the internet, so either you have
a firewall sorted, or have turned it off for now)
If you don't already have a firewall that restricts 134...195:3030 to only
be accessed by client IPs which are allowed to manage your Fuseki
installation, then you will probably want to set up username/password
protection in your shiro.ini.
Unfortunately the Fuseki 2 user interface is not yet very good yet at
"hiding" bits you don't have access to - so if you enable
username/password, it will easily ask other visitors for the password as
soon as they click on "manage".
Here's the shiro.ini I use for username/password:
https://github.com/stain/jena/blob/fuseki2-docker-maven/jena-fuseki2/jena-fuseki-docker/shiro.ini
You will probably want a better password than "pw" :)
("pw" above is search-replaced with a random password in my Docker
deployment)
On 5 April 2015 at 19:24, Sorin Gheorghiu <so...@uni-konstanz.de>
wrote:
> Hi,
>
> after starting the server without errors and loading few triples
> successfully, no dataset is shown on the server web interface (neither on
> port 3030 nor 8080).
> Moreover it is not posible to manage the datasets. What am I doing wrong?
> The server runs under Ubuntu 12.04.
>
> Thanks,
> Sorin
>
> # java -Xmx8G -jar fuseki-server.jar --config=/etc/fuseki/config.ttl
> [2015-04-05 19:48:02] Server INFO Fuseki 2.0.0
> 2015-03-08T09:49:20+0000
> [2015-04-05 19:48:02] Config INFO
> FUSEKI_HOME=/opt/apache-jena-fuseki-2.0.0/.
> [2015-04-05 19:48:02] Config INFO
> FUSEKI_BASE=/opt/apache-jena-fuseki-2.0.0/run
> [2015-04-05 19:48:02] Servlet INFO Initializing Shiro environment
> [2015-04-05 19:48:02] Config INFO Shiro file:
> file:///opt/apache-jena-fuseki-2.0.0/run/shiro.ini
> [2015-04-05 19:48:02] Config INFO Configuration file:
> /etc/fuseki/config.ttl
> [2015-04-05 19:48:03] Builder INFO Service: TDB/text service
> [2015-04-05 19:48:03] Config INFO Register: /GND030215
> [2015-04-05 19:48:03] Server INFO Started 2015/04/05 19:48:03 CEST on
> port 3030
>
> # /opt/apache-jena-2.13.0/bin/tdbloader --loc:GND030215 GND_example.ttl
> 19:36:37 INFO loader :: -- Start triples data phase
> 19:36:37 INFO loader :: ** Load empty triples table
> 19:36:37 INFO loader :: -- Start quads data phase
> 19:36:37 INFO loader :: ** Load empty quads table
> 19:36:37 INFO loader :: Load: GND_example.ttl -- 2015/04/05
> 19:36:37 CEST
> 19:36:38 INFO loader :: -- Finish triples data phase
> 19:36:38 INFO loader :: ** Data: 196 triples loaded in 0,41
> seconds [Rate: 483,95 per second]
> 19:36:38 INFO loader :: -- Finish quads data phase
> 19:36:38 INFO loader :: -- Start triples index phase
> 19:36:38 INFO loader :: ** Index SPO->POS: 194 slots
> indexed in 0,02 seconds [Rate: 12.125,00 per second]
> 19:36:38 INFO loader :: ** Index SPO->OSP: 194 slots
> indexed in 0,01 seconds [Rate: 12.933,33 per second]
> 19:36:38 INFO loader :: -- Finish triples index phase
> 19:36:38 INFO loader :: ** 194 triples indexed in 0,03
> seconds [Rate: 6.258,06 per second]
> 19:36:38 INFO loader :: -- Finish triples load
> 19:36:38 INFO loader :: ** Completed: 196 triples loaded in
> 0,46 seconds [Rate: 428,88 per second]
> 19:36:38 INFO loader :: -- Finish quads load
>
>
>
>
> http://134.34.201.195:3030/GND030215/query?query=SELECT%20*%20%7B%3Fs%20%3Fp%20%3Fo%7D%20limit%205
>
> [2015-04-05 19:40:38] Fuseki INFO [1] GET
> http://134.34.201.195:3030/GND030215/query?query=SELECT%20*%20%7B%3Fs%20%3Fp%20%3Fo%7D%20limit%205
> [2015-04-05 19:40:38] Fuseki INFO [1] GET /GND030215 :: 'query' ::
> <none> ? query=SELECT%20*%20%7B%3Fs%20%3Fp%20%3Fo%7D%20limit%205
> [2015-04-05 19:40:38] Fuseki INFO [1] Query = SELECT * {?s ?p ?o}
> limit 5
> [2015-04-05 19:40:38] Fuseki INFO [1] exec/select
> [2015-04-05 19:40:38] Fuseki INFO [1] 200 OK (86 ms)
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
--
Stian Soiland-Reyes
Apache Taverna (incubating), Apache Commons RDF (incubating)
http://orcid.org/0000-0001-9842-9718
Re: Fuseki User Interface unmanageable
Posted by Andy Seaborne <an...@apache.org>.
On 06/04/15 12:43, Sorin Gheorghiu wrote:
> Hi Andy,
>
> thank you pointing my to the right direction. My first attempt to replace:
> /$/** = localhost
> with
> /$/** = 127.0.0.1
That "localhost" is referring to the line in [main]. That's the bit that
controls the filtering. See the Shiro documentation.
First try no restriction on /$/** and/or the simple user/password
version shown.
Andy
http://shiro.apache.org/web.html#Web-DefaultFilters
>
> has failed with the following error:
>
> [2015-04-06 13:18:35] EnvironmentLoader ERROR Shiro environment
> initialization failed
> java.lang.IllegalArgumentException: There is no filter with name
> '127.0.0.1' to apply to chain [/$/**] in the pool of available Filters.
> Ensure a filter with that name/path has first been registered with the
> addFilter method(s).
> ...
> [2015-04-06 13:18:35] WebAppContext WARN Failed startup of context
> o.e.j.w.WebAppContext@1e36c1da{/,file:/opt/apache-jena-fuseki-2.0.0/webapp/,STARTING}
> java.lang.IllegalArgumentException: There is no filter with name
> '127.0.0.1' to apply to chain [/$/**] in the pool of available Filters.
> Ensure a filter with that name/path has first been registered with the
> addFilter method(s).
> ...
>
> The second attempt succeeded after I commented the line out:
>
> ## /$/** = localhost
>
>
>
>
> It seems 'localhost' is defined as a filter name for the chain [/$/**]
> whereas a hostname or 127.0.0.1 or [::1] won't be found within the file
>
> localhost=org.apache.jena.fuseki.authz.LocalhostFilter
>
> Do you have by chance an example of /shiro.ini/ with your suggested
> solution please?
>
> Regards,
> Sorin
>
>
> Am 06.04.2015 um 11:17 schrieb Andy Seaborne:
>> On 05/04/15 19:24, Sorin Gheorghiu wrote:
>>> Hi,
>>>
>>> after starting the server without errors and loading few triples
>>> successfully, no dataset is shown on the server web interface (neither
>>> on port 3030 nor 8080).
>>> Moreover it is not posible to manage the datasets. What am I doing
>>> wrong? The server runs under Ubuntu 12.04.
>>>
>>> Thanks,
>>> Sorin
>>
>> Hi Sorin,
>>
>> Thank you for providing a complete report - it makes answering
>> questions a whole lot easier.
>>
>> The default setup is to restrict access to the admin interface to
>> "localhost" - you are using 134.34.201.195.
>>
>> Even if that is the IP address of the local machine, it is restricted.
>>
>> Change shiro.ini to change this.
>>
>> "localhost" can be the name or 127.0.0.1 or [::1]
>>
>> Drafted documentation;
>>
>> http://jena.staging.apache.org/documentation/fuseki2/fuseki-security.html
>>
>> Andy
>>
>>>
>>> # java -Xmx8G -jar fuseki-server.jar --config=/etc/fuseki/config.ttl
>>> [2015-04-05 19:48:02] Server INFO Fuseki 2.0.0
>>> 2015-03-08T09:49:20+0000
>>> [2015-04-05 19:48:02] Config INFO
>>> FUSEKI_HOME=/opt/apache-jena-fuseki-2.0.0/.
>>> [2015-04-05 19:48:02] Config INFO
>>> FUSEKI_BASE=/opt/apache-jena-fuseki-2.0.0/run
>>> [2015-04-05 19:48:02] Servlet INFO Initializing Shiro environment
>>> [2015-04-05 19:48:02] Config INFO Shiro file:
>>> file:///opt/apache-jena-fuseki-2.0.0/run/shiro.ini
>>> [2015-04-05 19:48:02] Config INFO Configuration file:
>>> /etc/fuseki/config.ttl
>>> [2015-04-05 19:48:03] Builder INFO Service: TDB/text service
>>> [2015-04-05 19:48:03] Config INFO Register: /GND030215
>>> [2015-04-05 19:48:03] Server INFO Started 2015/04/05 19:48:03 CEST
>>> on port 3030
>>>
>>> # /opt/apache-jena-2.13.0/bin/tdbloader --loc:GND030215 GND_example.ttl
>>> 19:36:37 INFO loader :: -- Start triples data phase
>>> 19:36:37 INFO loader :: ** Load empty triples table
>>> 19:36:37 INFO loader :: -- Start quads data phase
>>> 19:36:37 INFO loader :: ** Load empty quads table
>>> 19:36:37 INFO loader :: Load: GND_example.ttl --
>>> 2015/04/05 19:36:37 CEST
>>> 19:36:38 INFO loader :: -- Finish triples data phase
>>> 19:36:38 INFO loader :: ** Data: 196 triples loaded in
>>> 0,41 seconds [Rate: 483,95 per second]
>>> 19:36:38 INFO loader :: -- Finish quads data phase
>>> 19:36:38 INFO loader :: -- Start triples index phase
>>> 19:36:38 INFO loader :: ** Index SPO->POS: 194 slots
>>> indexed in 0,02 seconds [Rate: 12.125,00 per second]
>>> 19:36:38 INFO loader :: ** Index SPO->OSP: 194 slots
>>> indexed in 0,01 seconds [Rate: 12.933,33 per second]
>>> 19:36:38 INFO loader :: -- Finish triples index phase
>>> 19:36:38 INFO loader :: ** 194 triples indexed in 0,03
>>> seconds [Rate: 6.258,06 per second]
>>> 19:36:38 INFO loader :: -- Finish triples load
>>> 19:36:38 INFO loader :: ** Completed: 196 triples loaded
>>> in 0,46 seconds [Rate: 428,88 per second]
>>> 19:36:38 INFO loader :: -- Finish quads load
>>>
>>>
>>>
>>> http://134.34.201.195:3030/GND030215/query?query=SELECT%20*%20%7B%3Fs%20%3Fp%20%3Fo%7D%20limit%205
>>>
>>>
>>> [2015-04-05 19:40:38] Fuseki INFO [1] GET
>>> http://134.34.201.195:3030/GND030215/query?query=SELECT%20*%20%7B%3Fs%20%3Fp%20%3Fo%7D%20limit%205
>>>
>>> [2015-04-05 19:40:38] Fuseki INFO [1] GET /GND030215 :: 'query' ::
>>> <none> ? query=SELECT%20*%20%7B%3Fs%20%3Fp%20%3Fo%7D%20limit%205
>>> [2015-04-05 19:40:38] Fuseki INFO [1] Query = SELECT * {?s ?p ?o}
>>> limit 5
>>> [2015-04-05 19:40:38] Fuseki INFO [1] exec/select
>>> [2015-04-05 19:40:38] Fuseki INFO [1] 200 OK (86 ms)
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>
> --
> Sorin Gheorghiu Tel: +49 7531 88-3198
> Universität Konstanz Raum: B703
> 78464 Konstanzsorin.gheorghiu@uni-konstanz.de
>
> - KIM: Abteilung Contentdienste -
>
Re: Fuseki User Interface unmanageable
Posted by Sorin Gheorghiu <so...@uni-konstanz.de>.
Hi Andy,
thank you pointing my to the right direction. My first attempt to replace:
/$/** = localhost
with
/$/** = 127.0.0.1
has failed with the following error:
[2015-04-06 13:18:35] EnvironmentLoader ERROR Shiro environment
initialization failed
java.lang.IllegalArgumentException: There is no filter with name
'127.0.0.1' to apply to chain [/$/**] in the pool of available Filters.
Ensure a filter with that name/path has first been registered with the
addFilter method(s).
...
[2015-04-06 13:18:35] WebAppContext WARN Failed startup of context
o.e.j.w.WebAppContext@1e36c1da{/,file:/opt/apache-jena-fuseki-2.0.0/webapp/,STARTING}
java.lang.IllegalArgumentException: There is no filter with name
'127.0.0.1' to apply to chain [/$/**] in the pool of available Filters.
Ensure a filter with that name/path has first been registered with the
addFilter method(s).
...
The second attempt succeeded after I commented the line out:
## /$/** = localhost
It seems 'localhost' is defined as a filter name for the chain [/$/**]
whereas a hostname or 127.0.0.1 or [::1] won't be found within the file
localhost=org.apache.jena.fuseki.authz.LocalhostFilter
Do you have by chance an example of /shiro.ini/ with your suggested
solution please?
Regards,
Sorin
Am 06.04.2015 um 11:17 schrieb Andy Seaborne:
> On 05/04/15 19:24, Sorin Gheorghiu wrote:
>> Hi,
>>
>> after starting the server without errors and loading few triples
>> successfully, no dataset is shown on the server web interface (neither
>> on port 3030 nor 8080).
>> Moreover it is not posible to manage the datasets. What am I doing
>> wrong? The server runs under Ubuntu 12.04.
>>
>> Thanks,
>> Sorin
>
> Hi Sorin,
>
> Thank you for providing a complete report - it makes answering
> questions a whole lot easier.
>
> The default setup is to restrict access to the admin interface to
> "localhost" - you are using 134.34.201.195.
>
> Even if that is the IP address of the local machine, it is restricted.
>
> Change shiro.ini to change this.
>
> "localhost" can be the name or 127.0.0.1 or [::1]
>
> Drafted documentation;
>
> http://jena.staging.apache.org/documentation/fuseki2/fuseki-security.html
>
> Andy
>
>>
>> # java -Xmx8G -jar fuseki-server.jar --config=/etc/fuseki/config.ttl
>> [2015-04-05 19:48:02] Server INFO Fuseki 2.0.0
>> 2015-03-08T09:49:20+0000
>> [2015-04-05 19:48:02] Config INFO
>> FUSEKI_HOME=/opt/apache-jena-fuseki-2.0.0/.
>> [2015-04-05 19:48:02] Config INFO
>> FUSEKI_BASE=/opt/apache-jena-fuseki-2.0.0/run
>> [2015-04-05 19:48:02] Servlet INFO Initializing Shiro environment
>> [2015-04-05 19:48:02] Config INFO Shiro file:
>> file:///opt/apache-jena-fuseki-2.0.0/run/shiro.ini
>> [2015-04-05 19:48:02] Config INFO Configuration file:
>> /etc/fuseki/config.ttl
>> [2015-04-05 19:48:03] Builder INFO Service: TDB/text service
>> [2015-04-05 19:48:03] Config INFO Register: /GND030215
>> [2015-04-05 19:48:03] Server INFO Started 2015/04/05 19:48:03 CEST
>> on port 3030
>>
>> # /opt/apache-jena-2.13.0/bin/tdbloader --loc:GND030215 GND_example.ttl
>> 19:36:37 INFO loader :: -- Start triples data phase
>> 19:36:37 INFO loader :: ** Load empty triples table
>> 19:36:37 INFO loader :: -- Start quads data phase
>> 19:36:37 INFO loader :: ** Load empty quads table
>> 19:36:37 INFO loader :: Load: GND_example.ttl --
>> 2015/04/05 19:36:37 CEST
>> 19:36:38 INFO loader :: -- Finish triples data phase
>> 19:36:38 INFO loader :: ** Data: 196 triples loaded in
>> 0,41 seconds [Rate: 483,95 per second]
>> 19:36:38 INFO loader :: -- Finish quads data phase
>> 19:36:38 INFO loader :: -- Start triples index phase
>> 19:36:38 INFO loader :: ** Index SPO->POS: 194 slots
>> indexed in 0,02 seconds [Rate: 12.125,00 per second]
>> 19:36:38 INFO loader :: ** Index SPO->OSP: 194 slots
>> indexed in 0,01 seconds [Rate: 12.933,33 per second]
>> 19:36:38 INFO loader :: -- Finish triples index phase
>> 19:36:38 INFO loader :: ** 194 triples indexed in 0,03
>> seconds [Rate: 6.258,06 per second]
>> 19:36:38 INFO loader :: -- Finish triples load
>> 19:36:38 INFO loader :: ** Completed: 196 triples loaded
>> in 0,46 seconds [Rate: 428,88 per second]
>> 19:36:38 INFO loader :: -- Finish quads load
>>
>>
>>
>> http://134.34.201.195:3030/GND030215/query?query=SELECT%20*%20%7B%3Fs%20%3Fp%20%3Fo%7D%20limit%205
>>
>>
>> [2015-04-05 19:40:38] Fuseki INFO [1] GET
>> http://134.34.201.195:3030/GND030215/query?query=SELECT%20*%20%7B%3Fs%20%3Fp%20%3Fo%7D%20limit%205
>>
>> [2015-04-05 19:40:38] Fuseki INFO [1] GET /GND030215 :: 'query' ::
>> <none> ? query=SELECT%20*%20%7B%3Fs%20%3Fp%20%3Fo%7D%20limit%205
>> [2015-04-05 19:40:38] Fuseki INFO [1] Query = SELECT * {?s ?p ?o}
>> limit 5
>> [2015-04-05 19:40:38] Fuseki INFO [1] exec/select
>> [2015-04-05 19:40:38] Fuseki INFO [1] 200 OK (86 ms)
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
--
Sorin Gheorghiu Tel: +49 7531 88-3198
Universität Konstanz Raum: B703
78464 Konstanz sorin.gheorghiu@uni-konstanz.de
- KIM: Abteilung Contentdienste -
Re: Fuseki User Interface unmanageable
Posted by Andy Seaborne <an...@apache.org>.
On 05/04/15 19:24, Sorin Gheorghiu wrote:
> Hi,
>
> after starting the server without errors and loading few triples
> successfully, no dataset is shown on the server web interface (neither
> on port 3030 nor 8080).
> Moreover it is not posible to manage the datasets. What am I doing
> wrong? The server runs under Ubuntu 12.04.
>
> Thanks,
> Sorin
Hi Sorin,
Thank you for providing a complete report - it makes answering questions
a whole lot easier.
The default setup is to restrict access to the admin interface to
"localhost" - you are using 134.34.201.195.
Even if that is the IP address of the local machine, it is restricted.
Change shiro.ini to change this.
"localhost" can be the name or 127.0.0.1 or [::1]
Drafted documentation;
http://jena.staging.apache.org/documentation/fuseki2/fuseki-security.html
Andy
>
> # java -Xmx8G -jar fuseki-server.jar --config=/etc/fuseki/config.ttl
> [2015-04-05 19:48:02] Server INFO Fuseki 2.0.0 2015-03-08T09:49:20+0000
> [2015-04-05 19:48:02] Config INFO
> FUSEKI_HOME=/opt/apache-jena-fuseki-2.0.0/.
> [2015-04-05 19:48:02] Config INFO
> FUSEKI_BASE=/opt/apache-jena-fuseki-2.0.0/run
> [2015-04-05 19:48:02] Servlet INFO Initializing Shiro environment
> [2015-04-05 19:48:02] Config INFO Shiro file:
> file:///opt/apache-jena-fuseki-2.0.0/run/shiro.ini
> [2015-04-05 19:48:02] Config INFO Configuration file:
> /etc/fuseki/config.ttl
> [2015-04-05 19:48:03] Builder INFO Service: TDB/text service
> [2015-04-05 19:48:03] Config INFO Register: /GND030215
> [2015-04-05 19:48:03] Server INFO Started 2015/04/05 19:48:03 CEST
> on port 3030
>
> # /opt/apache-jena-2.13.0/bin/tdbloader --loc:GND030215 GND_example.ttl
> 19:36:37 INFO loader :: -- Start triples data phase
> 19:36:37 INFO loader :: ** Load empty triples table
> 19:36:37 INFO loader :: -- Start quads data phase
> 19:36:37 INFO loader :: ** Load empty quads table
> 19:36:37 INFO loader :: Load: GND_example.ttl --
> 2015/04/05 19:36:37 CEST
> 19:36:38 INFO loader :: -- Finish triples data phase
> 19:36:38 INFO loader :: ** Data: 196 triples loaded in
> 0,41 seconds [Rate: 483,95 per second]
> 19:36:38 INFO loader :: -- Finish quads data phase
> 19:36:38 INFO loader :: -- Start triples index phase
> 19:36:38 INFO loader :: ** Index SPO->POS: 194 slots
> indexed in 0,02 seconds [Rate: 12.125,00 per second]
> 19:36:38 INFO loader :: ** Index SPO->OSP: 194 slots
> indexed in 0,01 seconds [Rate: 12.933,33 per second]
> 19:36:38 INFO loader :: -- Finish triples index phase
> 19:36:38 INFO loader :: ** 194 triples indexed in 0,03
> seconds [Rate: 6.258,06 per second]
> 19:36:38 INFO loader :: -- Finish triples load
> 19:36:38 INFO loader :: ** Completed: 196 triples loaded
> in 0,46 seconds [Rate: 428,88 per second]
> 19:36:38 INFO loader :: -- Finish quads load
>
>
>
> http://134.34.201.195:3030/GND030215/query?query=SELECT%20*%20%7B%3Fs%20%3Fp%20%3Fo%7D%20limit%205
>
> [2015-04-05 19:40:38] Fuseki INFO [1] GET
> http://134.34.201.195:3030/GND030215/query?query=SELECT%20*%20%7B%3Fs%20%3Fp%20%3Fo%7D%20limit%205
> [2015-04-05 19:40:38] Fuseki INFO [1] GET /GND030215 :: 'query' ::
> <none> ? query=SELECT%20*%20%7B%3Fs%20%3Fp%20%3Fo%7D%20limit%205
> [2015-04-05 19:40:38] Fuseki INFO [1] Query = SELECT * {?s ?p ?o}
> limit 5
> [2015-04-05 19:40:38] Fuseki INFO [1] exec/select
> [2015-04-05 19:40:38] Fuseki INFO [1] 200 OK (86 ms)
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>