by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Toni
    @t-book
    one more idea. the wizard is making a request again /h_keywords_api as well. maybe you can find something by comparing both. (the one from the layer list page the other from the wizard)
    (as the one from the wizard is successfull)
    Maxime Audet-Roberge
    @audetrobergem
    I think I foud the issue
    Toni
    @t-book
    ?
    I removed the .order_by('name') and all the keywords were listed
    Toni
    @t-book
    strange really strange. But good to hear you made a progress!
    might be worth to open a ticket for it that we can try to reproduce if this is a bug in 10.x
    Maxime Audet-Roberge
    @audetrobergem
    Yep, really strange. I tried to change the order_by for another field and it didn't worked.
    I will open a ticket tomorrow morning.
    Again, thanks for your help!
    Japheth
    @Japhetho
    Hi guys, I'd like to start implementing GeoSites on Geonode 3.0 branch using django multitenancy. Anyone with any resources on this especially those who worked on the outdated geosites version (i.e. 2.4.x) can kindly share.
    adonis-albelda
    @adonis-albelda
    @afabiani , Hi, I already solved it by just upgrading to current branch, My last was 2.10.3, I've installed it using docker. The csrf is showing then I tried to login ( default credentials)
    adonis-albelda
    @adonis-albelda
    Hi, how to disable register button ? is there a configuration at admin panel ?
    Tsegaselassie Tadesse
    @tsega_gitlab
    Hey y’all! :wave:
    I need help with supporting netCDF; I couldn’t find any valuable info on it. Can anyone here point me to some documentation?
    Matuno
    @Matuno
    Hey everyone, congratulations on the release and great job on the new docs. Just got a new installation up and spinning without a single issue, which is much much better than the old situation!
    Toni
    @t-book
    Hi @tsega_gitlab there is no support for netcdf afaik. Maybe you can convert it f.e. to csv or some of the other supported formats and upload it. Further I know there is a netcdf Plugin for geoserver. But never installed it.
    Tsegaselassie Tadesse
    @tsega_gitlab
    Hi @t-book , I think the second option is the way to go for me. I’m trying to install the NetCDF extension for Geoserver, it seems that’s all I need. Thanks for the help!
    adonis-albelda
    @adonis-albelda
    @t-book thanks body!
    adonis-albelda
    @adonis-albelda
    Hi all, I added route inside urls.py and access it in browser but it seems it does not take effect. How do I apply the changes of it ?
    @t-book can you help with this ? please
    adonis-albelda
    @adonis-albelda
    It changes only when I tried to run docker-compose up again. How can reload it without running docker-compose ?
    Albert van Niekerk
    @albertStaalburger
    My understanding is that if you change any settings in the conf files, you will need to run docker-compose up -d
    Be careful! The following command drops any change you might have done manually inside the containers, except for the static volumes.
    Albert van Niekerk
    @albertStaalburger
    I am having trouble figuring out why I cannot import layers, the UI simply reports Unauthorised, and in the logs I see:
    Error creating import session
    Traceback (most recent call last):
      File "/usr/src/geonode/geonode/upload/upload.py", line 306, in save_step
        next_id = _get_next_id()
      File "/usr/src/geonode/geonode/upload/upload.py", line 229, in _get_next_id
        importer_sessions = gs_uploader.get_sessions()
      File "/usr/local/lib/python3.7/site-packages/gsimporter/client.py", line 47, in get_sessions
        return self._call(self.client.get_imports)
      File "/usr/local/lib/python3.7/site-packages/gsimporter/client.py", line 34, in _call
        robj = fun(*args)
      File "/usr/local/lib/python3.7/site-packages/gsimporter/client.py", line 221, in get_imports
        return parse_response(self._request(self.url("imports")))
      File "/usr/local/lib/python3.7/site-packages/gsimporter/client.py", line 198, in _request
        raise RequestFailed(resp.status, content)
    gsimporter.api.RequestFailed: (401, b'<!doctype html><html lang="en"><head><title>HTTP Status 401 \xe2\x80\x93 Unauthorized</title><style type="text/css">h1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} h2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} h3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} body {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} b {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} p {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;} a {color:black;} a.name {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 401 \xe2\x80\x93 Unauthorized</h1><hr class="line" /><p><b>Type</b> Status Report</p><p><b>Message</b> Unauthorized</p><p><b>Description</b> The request has not been applied because it lacks valid authentication credentials for the target resource.</p><hr class="line" /><h3>Apache Tomcat/9.0.20</h3></body></html>')
    request failed
    Traceback (most recent call last):
      File "/usr/src/geonode/geonode/upload/views.py", line 677, in view
        resp = _steps[step](req, upload_session)
      File "/usr/src/geonode/geonode/upload/views.py", line 201, in save_step_view
        charset_encoding=form.cleaned_data["charset"]
      File "/usr/src/geonode/geonode/upload/upload.py", line 409, in save_step
        raise e
      File "/usr/src/geonode/geonode/upload/upload.py", line 306, in save_step
        next_id = _get_next_id()
      File "/usr/src/geonode/geonode/upload/upload.py", line 229, in _get_next_id
        importer_sessions = gs_uploader.get_sessions()
      File "/usr/local/lib/python3.7/site-packages/gsimporter/client.py", line 47, in get_sessions
        return self._call(self.client.get_imports)
      File "/usr/local/lib/python3.7/site-packages/gsimporter/client.py", line 34, in _call
        robj = fun(*args)
      File "/usr/local/lib/python3.7/site-packages/gsimporter/client.py", line 221, in get_imports
        return parse_response(self._request(self.url("imports")))
      File "/usr/local/lib/python3.7/site-packages/gsimporter/client.py", line 198, in _request
        raise RequestFailed(resp.status, content)
    gsimporter.api.RequestFailed: (401, b'<!doctype html><html lang="en"><head><title>HTTP Status 401 \xe2\x80\x93 Unauthorized</title><style type="text/css">h1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} h2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} h3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} body {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} b {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} p {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;} a {color:black;} a.name {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 401 \xe2\x80\x93 Unauthori
    Can this issue be because of file access? The request has not been applied because it lacks valid authentication credentials for the target resource.
    Toni
    @t-book
    @adonis-albelda urls.py will be converted as pyc. You could try to log into the django container and delete the pyc file which should be regenerated and respect your changes. Another helpful trick If urls do not resolve as you expect is to set debug true and call some not existing url. Django will tell you which urls it knows of. Last but not least. I would suggest to develop with paver and push to production when ready.
    And if really needed you could also only up the Django service again.
    adonis-albelda
    @adonis-albelda
    @t-book , whats the exact file name of that pyc file ?
    Toni
    @t-book
    @albertStaalburger What happens when you try another importer? https://github.com/GeoNode/geonode/blob/master/geonode/settings.py#L927 does it work?
    Toni
    @t-book
    anybody experienced problems regarding the following migration? https://github.com/jazzband/django-taggit/blob/master/taggit/migrations/0003_taggeditem_add_unique_index.py#L12-L14 (run in a key error from a 2.10 database to gn3 ...)
    Scott McIntosh
    @smcintosh-icf
    I managed to create a new install of 3.0 via the doc that @afabiani created. The install went smoothly and everything came up. However, now I want to use my production db, which wasn't addressed in the documentation but the properties in the .env file seemed intuitive. But I don't think it's working as no tables get created (and I'm only assuming they would - maybe there is a db script?).

    Here are is the section of .env
    GEONODE_DATABASE=geonode
    GEONODE_DATABASE_PASSWORD=<secret>
    GEONODE_GEODATABASE=geonode_data
    GEONODE_GEODATABASE_PASSWORD=<secret>

    DATABASE_URL=postgres://geonode:<secret>@postgres.cb9sgrxx87k8.us-east-1.rds.amazonaws.com:5432/geonode
    GEODATABASE_URL=postgis://geonode:<secret>@postgres.cb9sgrxx87k8.us-east-1.rds.amazonaws.com:5432/geonode_data

    Toni
    @t-book

    @smcintosh-icf you're using docker, right? never wired the container with an external db. In any case I think as django might has set the db service as a dependency in docker-compose you would have to start it. I would suggest starting with small steps. First of all I would test if all works fine with your connection and the used docker network. Unsure if the django container has postgres-client installed if not you could test with something like:

    docker exec -it django4your_geonode bash
    apt-get update
    apt-get install -y postgresql-client
    psql --host=postgres.cb9sgrxx87k8.us-east-1.rds.amazonaws.com --port=5432 --username=geonode -c "SELECT 'Connection works;'"

    After that continue do update your env. file

    Scott McIntosh
    @smcintosh-icf
    @t-book yes, I'm using docker. I can test the connection easily. Mostly I was unclear on the URL format. I think I have the format correct (user:pwd@host etc.), although I did wonder why the password was supplies in the url if its set in the password properties.
    Toni
    @t-book
    ahm a password in the connection string :/ only thing I know where this happens is with basic auth. But maybe it is expected. You get something meaningful in startup log of django?
    like connection not successful ... ?
    Scott McIntosh
    @smcintosh-icf
    Connect worked fine. postgres client was already there.
    Nothing in the log that looked like connection attempt.
    Scott McIntosh
    @smcintosh-icf
    Let me look
    Scott McIntosh
    @smcintosh-icf
    Oh, yeah I did look at that.
    Toni
    @t-book
    the invoke tasks come from tasks.py . you should see that fixtures and migration run in your startup logs
    what is currently done should be printed like: https://github.com/GeoNode/geonode-project/blob/master/tasks.py#L194
    Scott McIntosh
    @smcintosh-icf
    Thanks. I'll look at logs some more
    Toni
    @t-book
    maybe only follow django logs : docker-compose logs -f django
    Scott McIntosh
    @smcintosh-icf
    ok