Re: [Geoserver-users] Seeding layers tiling fails

2018-01-04 Thread Carsten Rossau Christiansen
Hi Torben, Andrea,

I have found a solution that appears to remove the problem.

I found out that if I installed GeoServer and just used the default user, 
admin, i.e. I did not create customized users/groups/roles, I did not have a 
problem seeding, so I figured it had to do with my custom settings.

To make a long story short, I found that in the GeoServer's data directory in 
the security folder, there is a file named rest.properties. In that file there 
are two lines:

/**;GET=ADMIN
/**;POST,DELETE,PUT=ADMIN

As far as I can tell/guess, that allows the default ADMIN role to access the 
REST interface. When I created a new role service and supplied a new role name 
as an administrator, it no longer worked. So I changed the two lines in the 
rest.properties file to this:

/**;GET=ROLE_ADMINISTRATOR
/**;POST,DELETE,PUT=ROLE_ADMINISTRATOR

And then it worked. Thanks for your input on this!


Med venlig hilsen

Carsten Rossau Christiansen
GIS konsulent


ARTOGIS a/s 
Direkte 
+45 76 30 82 20 
Eltangvej 61 
Mobil 
+45 60 21 96 88 
6000 Kolding 
Tlf. 
+45 75 53 73 93 
c...@artogis.dk 

Fra: Torben Barsballe [mailto:tbarsba...@boundlessgeo.com] 
Sendt: 2. januar 2018 21:00
Til: Andrea Aime
Cc: Carsten Rossau Christiansen; Kevin Smith; GeoServer Mailing List List
Emne: Re: [Geoserver-users] Seeding layers tiling fails

Hi Carsten,

What version of GeoWebCache are / GeoServer are you using? If you are using GWC 
1.12.* / GeoServer 2.12.*, then you may have encountered one of the recent bugs 
in the seeding page:
• GEOS-8471
• GEOS-8401
• GEOS-8312
I believe at some point between those various issues (possibly in GeoServer 
2.12.1?), certain configurations would give a 403 error (instead of one of the 
errors mentioned in those bug reports) when seeding.
The latest 2.12 nightly should be working properly (Or 2.12.2, when it is 
released later this month).

Torben




On Thu, Dec 28, 2017 at 2:26 AM, Andrea Aime  
wrote:
On Thu, Dec 21, 2017 at 8:55 AM, Carsten Rossau Christiansen  
wrote:
I've defined a gridset and applied it to a layer or a layer group. I select
'Tile Layers' and find the layer or layer group I want to seed, click on
Seed/Truncate and I end up with 'HTTP status 403 - Access is denied'.

This is just a guess, but maybe the layer is subject to security, the thread 
pools
running seeding lack the authentication information, does not matter if you
start them as admin, as far as I know the auth is not passed down in the 
seeding threads.

I believe there is a design mismatch between GWC (whose code is used to do the 
seeding),
assuming all that's needed to talk to the WMS is in the layer configuration 
(including
eventual credentials) and the GeoServer integration, where the users can change 
and
are normally attached to the request as a thread local.

Some redesign is likely needed so that GeoServer can pass down the information 
of
who submitted the seeding request (and/or just mark the seeding thread in a 
special
way so that GeoServer can assume the admin user "safely").

As said, just a guess.

Cheers
Andrea

==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V 
for more information.
==

Ing. Andrea Aime 
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i 
file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo 
è consentito esclusivamente al destinatario del messaggio, per le finalità 
indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne 
il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di 
procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro 
sistema. Conservare il messaggio stesso, divulgarlo anche in parte, 
distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, 
costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.
The information in this message and/or attachments, is intended solely for the 
attention and use of the named addressee(s) and may be confidential or 
proprietary in nature or covered by the provisions of privacy act (Legislative 
Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in 
accord with its purpose, any disclosure, reproduction, copying, distribution, 
or either dissemination, either whole or partial, is strictly forbidden except 
previous formal approval of the named addressee(s). If you are not the intended 
recipient, please contact immediately the sender by telephone, fax or e-mail 
and delete the information in this message that has been received in error. The 
sender does not give any warranty or accept liability as the content, accurac

Re: [Geoserver-users] Seeding layers tiling fails

2018-01-02 Thread Torben Barsballe
Hi Carsten,

What version of GeoWebCache are / GeoServer are you using? If you are using
GWC 1.12.* / GeoServer 2.12.*, then you may have encountered one of the
recent bugs in the seeding page:

   - GEOS-8471 
   - GEOS-8401 
   - GEOS-8312 

I believe at some point between those various issues (possibly in GeoServer
2.12.1?), certain configurations would give a 403 error (instead of one of
the errors mentioned in those bug reports) when seeding.
The latest 2.12 nightly should be working properly (Or 2.12.2, when it is
released later this month).

Torben




On Thu, Dec 28, 2017 at 2:26 AM, Andrea Aime 
wrote:

> On Thu, Dec 21, 2017 at 8:55 AM, Carsten Rossau Christiansen <
> c...@artogis.dk> wrote:
>
>> I've defined a gridset and applied it to a layer or a layer group. I
>> select
>> 'Tile Layers' and find the layer or layer group I want to seed, click on
>> Seed/Truncate and I end up with 'HTTP status 403 - Access is denied'.
>>
>
> This is just a guess, but maybe the layer is subject to security, the
> thread pools
> running seeding lack the authentication information, does not matter if you
> start them as admin, as far as I know the auth is not passed down in the
> seeding threads.
>
> I believe there is a design mismatch between GWC (whose code is used to do
> the seeding),
> assuming all that's needed to talk to the WMS is in the layer
> configuration (including
> eventual credentials) and the GeoServer integration, where the users can
> change and
> are normally attached to the request as a thread local.
>
> Some redesign is likely needed so that GeoServer can pass down the
> information of
> who submitted the seeding request (and/or just mark the seeding thread in
> a special
> way so that GeoServer can assume the admin user "safely").
>
> As said, just a guess.
>
> Cheers
> Andrea
>
> ==
>
> GeoServer Professional Services from the experts! Visit
> http://goo.gl/it488V for more information.
> ==
>
> Ing. Andrea Aime
> @geowolf
> Technical Lead
>
> GeoSolutions S.A.S.
> Via di Montramito 3/A
> 55054  Massarosa (LU)
> phone: +39 0584 962313 <+39%200584%20962313>
> fax: +39 0584 1660272 <+39%200584%20166%200272>
> mob: +39  339 8844549 <+39%20339%20884%204549>
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
>
> Le informazioni contenute in questo messaggio di posta elettronica e/o
> nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
> loro utilizzo è consentito esclusivamente al destinatario del messaggio,
> per le finalità indicate nel messaggio stesso. Qualora riceviate questo
> messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
> darcene notizia via e-mail e di procedere alla distruzione del messaggio
> stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
> divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
> utilizzarlo per finalità diverse, costituisce comportamento contrario ai
> principi dettati dal D.Lgs. 196/2003.
>
> The information in this message and/or attachments, is intended solely for
> the attention and use of the named addressee(s) and may be confidential or
> proprietary in nature or covered by the provisions of privacy act
> (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
> Code).Any use not in accord with its purpose, any disclosure, reproduction,
> copying, distribution, or either dissemination, either whole or partial, is
> strictly forbidden except previous formal approval of the named
> addressee(s). If you are not the intended recipient, please contact
> immediately the sender by telephone, fax or e-mail and delete the
> information in this message that has been received in error. The sender
> does not give any warranty or accept liability as the content, accuracy or
> completeness of sent messages and accepts no responsibility  for changes
> made after they were sent or for other risks which arise as a result of
> e-mail transmission, viruses, etc.
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Geoserver-users mailing list
>
> Please make sure you read the following two resources before posting to
> this list:
> - Earning your support instead of buying it, but Ian Turton:
> http://www.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines: http://geoserver.org/comm/
> userlist-guidelines.html
>
> If you want to request a feature or an improvement, also see this:
> https://github.com/geoserver/geoserver/wiki/Successfully-
> requesting-and-integrating-new-features-an

Re: [Geoserver-users] Seeding layers tiling fails

2017-12-28 Thread Andrea Aime
On Thu, Dec 21, 2017 at 8:55 AM, Carsten Rossau Christiansen  wrote:

> I've defined a gridset and applied it to a layer or a layer group. I select
> 'Tile Layers' and find the layer or layer group I want to seed, click on
> Seed/Truncate and I end up with 'HTTP status 403 - Access is denied'.
>

This is just a guess, but maybe the layer is subject to security, the
thread pools
running seeding lack the authentication information, does not matter if you
start them as admin, as far as I know the auth is not passed down in the
seeding threads.

I believe there is a design mismatch between GWC (whose code is used to do
the seeding),
assuming all that's needed to talk to the WMS is in the layer configuration
(including
eventual credentials) and the GeoServer integration, where the users can
change and
are normally attached to the request as a thread local.

Some redesign is likely needed so that GeoServer can pass down the
information of
who submitted the seeding request (and/or just mark the seeding thread in a
special
way so that GeoServer can assume the admin user "safely").

As said, just a guess.

Cheers
Andrea

==

GeoServer Professional Services from the experts! Visit http://goo.gl/it488V
for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility  for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Seeding layers tiling fails

2017-12-21 Thread Carsten Rossau Christiansen
Hi,

I am struggling with seeding layers to GWC (the built-in version, not the
standalone) in Geoserver on Windows. I see different behavior from one
installation to another although I believe that they were installed the same
way.

I've defined a gridset and applied it to a layer or a layer group. I select
'Tile Layers' and find the layer or layer group I want to seed, click on
Seed/Truncate and I end up with 'HTTP status 403 - Access is denied'.

I have also tried to seed the same layer using curl from a command line -
with the same result.

Curiously, this works fine on a similar installation - I can't seem to find
where the difference lies.

On one installation I have two Geoserver webapps under the same Tomcat - a
customized one where the Geoserver data folder has been moved from the
default location and an "out-of-the-box" installation of Geoserver where
everything remains default, including the data folder
The latter will let me seed the layers whereas the first customized
Geoserver instance won't - gives the HTTP status 403 error.

Does anybody have any experience with this and perhaps some clue as to what
prevents seeding the layers?



Best regards

Carsten Rossau Christiansen
GIS Consultant


ARTOGIS a/s 
Direkte 
+45 76 30 82 20 
Eltangvej 61 
Mobil 
+45 60 21 96 88 
6000 Kolding 
Tlf. 
+45 75 53 73 93 
c...@artogis.dk 



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Seeding Layers

2013-11-26 Thread stephanos_ch

Hello,
I think I found a way to handle the Layer seeding in PNG8 but I need your
opinion
I have check the png8 option in Geowebcache general options and now I have
as an option to cache every new layer in png8.

However, the layergroups that I had created before i checked the png8 option
could not be cached in png8.
 
Therefore to resolve this issue, I created new layergroups like the old ones
that are okay with the caching in png8.
Then, in order not to lose the tiles that are already generated in gwc for
the old layergroups, I think an option is to rename the old layergroup
within geoserver admin panel eg 'Layergroup' to 'Layergroup_prev'.
This will have as an effect the changing of the name of the folder of the
layer in gwc to 'Layergroup_prev'.
After that, within geoserver admin panel we rename the newly created
layergroup to 'Layergroup'.
Finally, in gwc folder we rename the folder of the old layergroup from
'Layergroup_prev' in 'Layergroup'.
 
Based on your experience, will this process give me the chance to keep the
already generated tiles for the new layergroups while I coul reseed some
areas in png8?

Thanks in advance,

Stephanos  



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Seeding-Layers-tp5075832p5091293.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Seeding Layers

2013-09-03 Thread cmaul
Stephanos,

add-on
if you talk about stand-alone GWC there is the following tag in each
 tag of the geowebcache.xml:
 
image/jpeg
image/png
image/png8


whatever format you define in there you may use.

Cheers

Christian



-


Dr Christian Maul
Project Manager

Information Services Branch
Department of Sustainability and Environment
Level13, Marland House, 570 Bourke Street
Melbourne 3000

PO Box 500, East Melbourne Vic 3002


Telephone:+61-3-8636 2325
Telefax:  +61-3-8636 2813
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Seeding-Layers-tp5075832p5075920.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Seeding Layers

2013-09-03 Thread cmaul
Hi Stephanos,
have you under 'caching defaults' the png8 format turned on? Because out of
the box it is not, only png and jpeg are as far as I recall. 

Cheers

Christian



-


Dr Christian Maul
Project Manager

Information Services Branch
Department of Sustainability and Environment
Level13, Marland House, 570 Bourke Street
Melbourne 3000

PO Box 500, East Melbourne Vic 3002


Telephone:+61-3-8636 2325
Telefax:  +61-3-8636 2813
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Seeding-Layers-tp5075832p5075906.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Seeding Layers

2013-09-03 Thread Stephanos Charalambous
Hello,

I want to ask why in GWC Demos Page some layers can be seeded in png8 format, 
the format that we need to seed all our layers, and some not. Specifically some 
layers can be seeded in png and png8 format and some others in png and jpeg.

My ultimate goal is to seed specific layers in png8 using the GWC Demos page 
and the command Seed this Layer

Thanks in advance,
Stephanos
--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users