Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Andrea Aime
    @aaime
    saw it
    right so yeah, either the release scripts are updated to use their own local maven repo, or the shared repo needs fixing
    Jody Garnett
    @jodygarnett
    I think the only way I know to fix that is to ssh in, or make a new build job to clear it. I think I could just clear the geotools jars ...
    I gotta get back to work, have some customer training in 2 hours. After that is done I can look at release stuff.
    Andrea Aime
    @aaime
    @jodygarnett I should have fixed the metadata file (finger crossed)
    Jody Garnett
    @jodygarnett
    oh thanks, were you able to ssh in?
    Andrea Aime
    @aaime
    yes
    Jody Garnett
    @jodygarnett
    I have been working on the website a fair bit, trying to get it sorted before the 2.19.1 anouncement goes live tonight.
    tharun-allu
    @tharun-allu
    can someone point me to to what this error means ?
    2021-05-24 20:11:59,041 ERROR [geoserver.ows] -
    java.lang.NullPointerException
        at org.geoserver.catalog.impl.StyleInfoImpl.getStyle(StyleInfoImpl.java:110)
        at jdk.internal.reflect.GeneratedMethodAccessor313.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.geoserver.catalog.impl.ModificationProxy.invoke(ModificationProxy.java:127)
        at com.sun.proxy.$Proxy133.getStyle(Unknown Source)
        at org.geoserver.wms.map.GetMapKvpRequestReader.getDefaultStyle(GetMapKvpRequestReader.java:838)
        at org.geoserver.wms.map.GetMapKvpRequestReader.read(GetMapKvpRequestReader.java:550)
        at org.geoserver.wms.map.GetMapKvpRequestReader.read(GetMapKvpRequestReader.java:96)
        at org.geoserver.ows.Dispatcher.parseRequestKVP(Dispatcher.java:1544)
        at org.geoserver.ows.Dispatcher.dispatch(Dispatcher.java:690)
        at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:255)
        at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:177)
        at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:52)
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040)
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
        at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:626)
        at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
        at org.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:352)
        at org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:171)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
        at org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:26)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
        at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:69)
        at org.geoserver.wms.animate.AnimatorFilter.doFilter(AnimatorFilter.java:70)
        at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:66)
        at org.geoserver.monitor.MonitorFilter.doFilter(MonitorFilter.java:142)
        at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:66)
        at org.geoserver.flow.controller.IpBlacklistFilter.doFilter(IpBlacklistFilter.java:89)
        at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:66)
        at org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDelegatingFilter.java:41)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
        at org.geoserver.platform.AdvancedDispatchFilter.doFilter(AdvancedDispatchFilter.java:37)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
    James Hughes
    @jnh5y
    The request you made cannot get the necessary style for some reason. It'd depend on the request and the configuration of GeoServer. Most of that stack trace is unfortunately providing little information (at least to me)
    tharun-allu
    @tharun-allu
    is it something like get styles in geoserver or get details of a particular style
    this is result of some REST calls made to the geoserver so trying to see how to replicate this on the server to debug more
    James Hughes
    @jnh5y
    what request did you make?
    tharun-allu
    @tharun-allu
    trying to figure that out. It was done by someone else and I only have access to logs :(
    and I also have access to make calls to the geoserver to replicate what they did.
    James Hughes
    @jnh5y
    Oooohhhhh, that's rough. You could use GitHub, switch to the tag for the version of GeoServer, load up various files and go to the line numbers in the stack trace. That'd give one more context about the request.
    Admittedly, that could take awhile to figure anything out
    tharun-allu
    @tharun-allu
    got some progress looks like when passing empty style parameter to /wms it is throwing that error but when explicitly set it works as expected. I am now trying to figure out how wms API is implemented and how does it handle the style parameter by default.
    alexkey2
    @alexkey2
    Hi, I would like to implement an Oauth2 plugin for Geoserver for my custom Identity Provider. Where should I start?
    Jody Garnett
    @jodygarnett
    You probably want to look at the existing Oauth2 plugins, there are a number of them.
    Jody Garnett
    @jodygarnett
    don't suppose anyone wants to post the meeting notes?
    Toni
    @t-book
    Good morning, a question regarding cleanup. Is there some way to quickly identify styles that are not referenced by any layer?
    Brad Hards
    @bradh
    I am no-one servee. What context are you referring to as tiles (or stiles)?
    Toni
    @t-book
    Good morning brad, this should not sound offensive, sorry ;) I've corrected my question which is about styles.
    Mikko Kolehmainen
    @mikko-kolehmainen
    @t-book It seems that those could be checked layer by layer from Web UI: Style -> Publishing. But I didn't find a way to do it through REST where it could be checked by scripting
    Toni
    @t-book
    Hi @mikko-kolehmainen thanks but I would look for a automated way to check thousand of layers.
    Andrea Aime
    @aaime
    @t-book there is no such a way, you'll have to collect all references from layers and layer groups, and then scan the styles seeing if they are being referenced, or not
    will require a REST API script
    Toni
    @t-book
    Thanks, @aaime this is useful then I will stop searching and write something.
    Mikko Kolehmainen
    @mikko-kolehmainen

    @aaime I was checking solution for this one: https://osgeo-org.atlassian.net/browse/GEOS-9971 as we have an AWS environment where we have to give authorization to S3 through instance roles and are not allowed to create IAM keys.

    It seems to work by changing ".setRequired(true)" to ".setRequired(false)", but it leaves *-sign to fields. Now I'm checking if * can be removed by leaving out whole ".setRequired".

    What do you think, how should we proceed with this? Is it something that would go through as a pull request?

    Andrea Aime
    @aaime
    @mikko-kolehmainen I have no clue, sorry :-D
    just did a very small change in that module last year, but did not participate in its development, not sure how security works
    Mikko Kolehmainen
    @mikko-kolehmainen
    @aaime So I have it working as I want with those 2 changed lines, but the question was do you want the change back to github
    Andrea Aime
    @aaime
    The real question is, those two lines, will they affect other setups?
    Do they need to be made configurable?
    A change that fixes an issue for someone but breaks it for others is not going to be accepted, but I cannot tell you if this is the case or not, because I don't understand S3 auth well enough
    Mikko Kolehmainen
    @mikko-kolehmainen
    True. And not the simplest case for testing...
    Andrea Aime
    @aaime
    Making it configurable would probably solve the issue... those that might have trouble with it can just flip the flag and get back the old behavior
    Mikko Kolehmainen
    @mikko-kolehmainen

    Ok. Do you have some example of a good way to make that configurable?

    It seems I didn't get rid of that * - it comes from src\extension\gwc-s3\src\main\resources\GeoServerApplication.properties.

    Anyways, authorization seems to work as it should with following cases. I created two buckets, bucket1 allowing access with IAM role for my instance and on another account bucket2 allowing access with IAM Keys

    1. No IAM-keys & bucket1 -> OK. Uses instance role
    2. IAM Keys & Bucket2 > OK. Uses IAM Keys
    3. Wrong IAM Keys & Bucket2 -> AWS API returns signature failure
    4. No IAM-keys & Bucket2 -> AWS API returns Forbidden

    If I have understood right how AWS authentication chain works, client checks if following are available in this order:

    1. given IAM keys, empty in this case.
    2. credentials-file (~/.aws/credentials), in my case empty. As I had also ~/.aws/config empty, Geoserver managed to create a bucket to different region. So it seems, that buckets should be created before setting up BlobStore.
    3. Assumed role from the service, in my case ExecutionRole from ECS-service or InstanceRole for EC2-instance.
    Andrea Aime
    @aaime
    Looks ok but I'm out of my depth... anyone with more experience with AWS/S3 that can have a look at the above?
    About configuration, you just add a field in S3BlobStore, the config is then read/written from XML files using XStream, which does reflection on the S3BlobStore fields
    Mikko Kolehmainen
    @mikko-kolehmainen
    one of our developers also took a look on this and it seems that this shouldn't break anything as we set the fields from required to optional, add nothing and remove nothing
    rappidGIS
    @rappidGIS
    Hi guys. I'm running geoserver using tomcat9. our programmer develop a apps using leaflet with api and try to get the data from geoserver and an error cors. I amend the web.xml file at tomcat 9 as >> <filter>
    <filter-name>CorsFilter</filter-name>
    <filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
    <init-param>
    <param-name>cors.allowed.origins</param-name>
    <param-value></param-value>
    </init-param>
    </filter>
    <filter-mapping>
    <filter-name>CorsFilter</filter-name>
    <url-pattern>/
    </url-pattern>
    </filter-mapping>

    Hi guys. I'm running geoserver using tomcat9. our programmer develop a apps using leaflet with api and try to get the data from geoserver and an error cors. I amend the web.xml file at tomcat 9 as >> <filter>
    <filter-name>CorsFilter</filter-name>
    <filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
    <init-param>
    <param-name>cors.allowed.origins</param-name>
    <param-value></param-value>
    </init-param>
    </filter>
    <filter-mapping>
    <filter-name>CorsFilter</filter-name>
    <url-pattern>/
    </url-pattern>
    </filter-mapping>

    can somebody help about this cors..after restart the tomact and geoserver..the error still same.. pls advise guys...thanks

    Toni
    @t-book
    @rappidGIS this is how I did some time ago. https://gist.github.com/t-book/e86fb4006e47d87acc64ad3b64c0b352 maybe my web.xml can help you

    Hello, on a fresh 2.18.2 geoserver instance publishing a layer fails with following error 500:

    Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: org.geoserver.geofence.services.dto.AccessInfo.getClipAreaWkt()Ljava/lang/String;

    Full error message here: https://hastebin.com/xilupocuri.apache Verbose logging did not show any useful in logs. Does one has any idea what is going wrong and why getClipAreaWkt() is missing?

    Andrea Aime
    @aaime
    I'm guessing there is a mismatch between the geofence version and the geoserver one
    Toni
    @t-book
    @aaime it's you again coming to help. thanks! Mhhh I cannot see any movement the last time. https://github.com/GeoNode/geoserver-docker (it's the geoserver that ships with geonode) but will follow your hint and check the version. I did not run into that error yesterday when installing the stack on a different vm
    Andrea Aime
    @aaime
    no clue about that docker image