Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    zahirulislamovich
    @zahirulislamovich
    Finally able to change password. its double checked in settings.py; env_dev; geoserver user. succed to login logout and revisit form geoserver-geonode-geoserver interface but facing this error,
    Toni
    @t-book
    have you checked the environment var inside your Django container?
    MatiasAllay
    @MatiasAllay
    Hi,
    I am running OSGeoLive in a virtual machine. I know that I can run geonode from Geospatial ‣ Browser Clients ‣ GeoNode ‣ Start GeoNode. Now, I would like to set my own server. But for me is unclear from what step of the GeoNode Basic Installation guide (https://docs.geonode.org/en/master/install/basic/index.html) should I begin. I guess that Geonode is somehow preinstalled and I dont need to go though all the steps. Thanks!
    AlexGacon
    @AlexGacon
    @MatiasAllay OSGeoLive provides a GeoNode instance to test quickly stuff with GeoNode. If you want to set your own server, you cannot use OSGeoLive. If you want to install your own server, the link you mention is a good place to start. You need to have a linux VM available with docker installed on it.
    MatiasAllay
    @MatiasAllay
    @AlexGacon Thanks! Okay. But why I cannot use OSGeoLive? Is it a Ubuntu-based distribution?
    AlexGacon
    @AlexGacon
    I don't know how it is build but to me, the goal of OSGeoLive is to have something easy to TRY solutions, but should not be used to install your own environment
    You can perhaps have a look on the GitHub page of OSGeoLive (https://github.com/OSGeo/OSGeoLive). Apparently you can use their install scripts for individual components but only in a Lubuntu based system
    MatiasAllay
    @MatiasAllay
    @AlexGacon Thanks!
    MatiasAllay
    @MatiasAllay
    Hi again,
    Now I'm running Ubuntu 20.04 in a VM. I have gone through the Basic Installation Guide and everything seems to work fine until the Second Step. I can access GeoNode with localhost.
    When I modify the .\env file I am not able to reach the HTTPS channel with the new address. When I try
    docker-compose exec genode sh
    I get
    geo.png
    Alessio Fabiani
    @afabiani
    HTTPS works only with public accessible DNS names
    2 replies
    not local ones
    Jean Carlo Sanchuki Filho
    @jean.sanchuki_gitlab
    Hello all, is there a way to set geonode url to something like www.companymainwebsite.com/geonode?
    8 replies
    baermatthias
    @baermatthias
    Hey guys, it seems I need some help insta
    I followed the basic instruction guide and even installed Ubuntu 18.0.4, however I run into the same problem every time after using the /.docker-setup.sh instruction

    Successfully built humanize
    Installing collected packages: tornado, humanize, flower
    Successfully installed flower-0.9.4 humanize-0.5.1 tornado-6.1
    WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
    WARNING: You are using pip version 21.2.1; however, version 21.2.4 is available.
    You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
    Removing intermediate container df9e0cf8ab02
    ---> 3c2220ee900d
    Step 27/32 : RUN pip install --upgrade -e .
    ---> Running in 44616fa106a5
    Obtaining file:///usr/src/%7B%7Bproject_name%7D%7D
    ERROR: Command errored out with exit status 1:
    command: /usr/local/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/usr/src/{{project_name}}/setup.py'"'"'; file='"'"'/usr/src/{{project_name}}/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-3dz61pj1
    cwd: /usr/src/{{project_name}}/
    Complete output (2 lines):
    running egg_info

    error: Invalid distribution name or version syntax: -project-name--3.2.1
    ----------------------------------------

    WARNING: Discarding file:///usr/src/%7B%7Bproject_name%7D%7D. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
    ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
    WARNING: You are using pip version 21.2.1; however, version 21.2.4 is available.
    You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
    ERROR: Service 'django' failed to build: The command '/bin/sh -c pip install --upgrade -e .' returned a non-zero code: 1
    Creating network "projectname_default" with the default driver
    Creating volume "{{project_name}}-tmp" with default driver
    ERROR: create {{project_name}}-tmp: "{{projectname}}-tmp" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9.-]" are allowed. If you intended to pass a host directory, use absolute path
    WARNING! This will remove:

    • all stopped containers
    • all networks not used by at least one container
    • all images without at least one container associated to them
    • all build cache

    Are you sure you want to continue? [y/N] N
    (my_geonode) webgis@pc-webgis:~/geonode-project$

    it stops at Step 27/32. Did i missed anything?
    Alessio Fabiani
    @afabiani
    @baermatthias not sure which instructions you followed exactly, but for sure you missed some passages... you must create a concrete instance of the geonode-project, you cannot use it as is... moreover, I don't remember having seen Ubuntu 18 in the current documentation
    baermatthias
    @baermatthias
    ok, thx for the quick hint
    baermatthias
    @baermatthias
    So there is no instruction on how to build a concrete instance of geonode, it only states to switch to the non existing directory "cd my_geonode" and run the ./docker-setup.sh
    Alessio Fabiani
    @afabiani
    here
    django-admin startproject --template=./geonode-project -e py,sh,md,rst,json,yml,ini,env,sample,properties -n monitoring-cron -n Dockerfile my_geonode
    baermatthias
    @baermatthias
    i thought this is only for cent OS, then my appolgies
    MatiasAllay
    @MatiasAllay
    Hi all,
    I don't quite understand step 2 of the Basic Installation Guide. When I deploy GeoNode on a production server, the server address I guess is not random. Do I need to use a register domain name. Right?
    4 replies
    wshilman
    @wshilman_gitlab
    hi! anyone has the steps to install a new pip library in the geonode docker installation? im in 3.2.x
    1 reply
    Dave Kennewell
    @davekennewell

    Good morning all. Has anyone by chance translated any of the geonode user documentation into Spanish?

    Something like this one:
    https://docs.geonode.org/en/master/usage/index.html

    Thanks for any help :)

    pfaraldo
    @pfaraldo
    Hi everyone!! I am new here, I would like to make a query via github but I can't understand it.
    My problem is similar to "Sometimes NGINX fails to connect to GeoNode # 4230" but the solution did not work for me and I have noticed that when loading the pages in the geonode, the error in the index is random, but in the links on the page gives me an error loading for example "https://www.example.com/layers/?limit=5" but if I paste the word "& offset = 0" so that it stays "https: // www. example.com/layers/?limit=5&offset=0 "It works !! .
    Could someone help me or give me some clue as to where the problem can come from?
    Use Geonode 3.2.2
    Ubuntu 20.04 LTs
    nginx 1.18
    uwsgi 1.0.18
    Thank you very much and excuse my English, I use a translator
    Rebecca Dittmann
    @Saxas13_twitter

    Hi all, due to a mix up between some geonode installations we needed to remove all images/containers and rebuild one geonode from base. But unfortunately it cant build the geoserver because it cannot connect to dropbox to get the file. The vanilla geoserver from sourceforge.net gets loaded but it will stop wenn trying to get the version from dropbox. I dont think i can just skip the dropbox version.
    Geonode 3.1.1 / SPCDocker (to revive an already running geonode which was having issues due to trying to run a seconde geonode on the same server wih different port)
    Hope someone can help.

    [0mConnecting to www.dropbox.com (162.125.65.18:443)
    Connecting to ucf85ee9a1a69b11c37fd76242b8.dl.dropboxusercontent.com (162.125.65.15:443)
    wget: server returned error: HTTP/1.1 400 Bad Request
    Service 'geoserver' failed to build: The command '/bin/sh -c echo "Download geoserver for geonode" && wget https://downloads.sourceforge.net/project/geoserver/GeoServer/$version/geoserver-$version-bin.zip && wget https://www.dropbox.com/s/bdl6p64cuh4xu33/geoserver-$branch.war?dl=1 -O geoserver-$branch.war --no-check-certificate && mkdir -p geoserver-$version && unzip geoserver-$version-bin.zip -d geoserver-$version && mv geoserver-$version geoserver && rm /geoserver-$version-bin.zip && rm /geoserver-$version/webapps/geoserver/* -rf && unzip -o geoserver-$branch.war -d /geoserver/webapps/geoserver/ && rm /geoserver-$branch.war' returned a non-zero code: 1

    4 replies
    MatiasAllay
    @MatiasAllay

    Hi guys, I’m trying to setup geonode in an Ubuntu VM.

    I'm stuck in step two of the Basic Installation Guide. After modifying the ./env file (adding my domain name and ip) and restarting the containers I can reach reach the HTTPS channel but only from the VM. If I do

    docker-compose exec geonode sh

    I get. Any suggestion of how to move forward?
    Thanks!!

    6 replies
    pregunta1.png
    shruti-perpetualny
    @shruti-perpetualny
    Hi, anyone integrated aws cognito for authentication with geonode?
    Toni
    @t-book
    @gannebamm Do you know if the changed licensing of docker (https://preettheman.medium.com/why-you-shouldnt-use-docker-anymore-47b7053559ce) affects Server installs as well? In particular in the context of federal authorities? :))
    2 replies
    Pieter Provoost
    @pieterprovoost
    What would be the easiest way to import a batch of shapefiles and metadata sets into a GeoNode instance that has a few custom fields (abstract class inherited by Layer)? Should I be looking at importlayers, the REST API, loaddata, or a combination of the above?
    Rebecca Dittmann
    @Saxas13_twitter
    Hi, i have a question. We use the first time geonode 3.2.1 with Docker (former only used spcgeonode-docker) . We installed and configured it to run on a public domain (https) and its running. We uploaed a large dataset (about 2GB) to the server and it is showing as layer in geonode and geoserver. Nethertheless, the dataset is loading really slow. We are not sure if it is only due to the large size or maybe the host (32GB Ram) or a not perfect geoserver config? We just checked the running containers and gsconfig4geonode is restarting in a loop. Is this the intended behaviour? may this cause our geoserver to react so slowly? just need your thoughts and experience if this restaring container is normal and we need to search/investigate other parts of the system. Thx in advance and all a nice weekend :)
    4 replies
    Adam Cox
    @mradamcox
    Hello all, one thing I'm trying to do is programmatically create a Map with a couple of new layers in it. I was working with the Map().create_from_layer_list() method, but the MapLayers created therein are incomplete, for example they don't have a store property, or layer_params. While store was easy enough to add, as far as I can tell the layer_params object is only really generated within geonode.maps.views.add_layers_to_map_config() and it looks complex. Any pointers for how to achieve this?
    8 replies
    Seperately, is there any documentation about the mosaic/granule pattern? I see references to it in the interface and code, but didn't find anything in the docs.
    Jose Caceres
    @jcaceres85

    Hi everyone. Whenever I try to add a local resource to a Geostory, like a Map, I get this error:

    Geostory

    I'm running Geonode 3.2.1 using Docker. Does anyone know what could be happening?

    Toni
    @t-book
    Bildschirmfoto 2021-09-25 um 09.59.29.png
    @Saxas13_twitter ;)
    Dave Kennewell
    @davekennewell
    image.png
    @mradamcox - screenshot from our thread discussion
    baermatthias
    @baermatthias
    Hey guys! I am trying to update my Layer on a regular basis (1 hour interval). I want to use the updateLayer function provided by geoserver. However the comand provided by the documentation results in a "No module named 'django' xeption by trying to get the help of the function DJANGO_SETTINGS_MODULE=geonode.settings python3 manage.py importlayers --help
    Is there any way to update the tables in the postgis database itself? I don't understand how to connect to the my_geonode_data DB
    Dave Kennewell
    @davekennewell
    @baermatthias - where are you getting the updated layer from? For example, is it a shapefile download or produced locally on your server or something different?
    baermatthias
    @baermatthias
    well before i used Geonode I used QGIS-Server and updated the GeoJSON entry throughout a python script. Now i uploaded the GeoJSON to geoNode and as far as i understand it is now living inside the Postgis database and Geoserver is connected with the DB. I have an URL with updated parameters and i now need to update the DB accordingly. As for now I succesfully connected to the postgres DB inside the Docker Container by running "docker exec -it <postgis-container-id> bash" followed by the command "psql -h localhost -p 5432 -U postgres -W"
    I might be able to change the table values for all polygons for the layer. I hope Geoserver will recognize it
    Toni
    @t-book

    @baermatthias you could link the db container port 5432 to your host. Then you could reach it. Or you could create a little service container that links it. But why not use the geoserver api? For example, to create a new feature you would post:

    Endpoint
    https://your.geonode.org/geoserver/ows?service=WFS&outputFormat=json&access_token=<token>
    Payload

    <wfs:GetFeature service="WFS" version="1.1.0" xmlns:gml="http://www.opengis.net/gml" xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" startIndex="0" maxFeatures="20"><wfs:Query typeName="geonode:test_dbqg0" srsName="EPSG:4326"><wfs:SortBy><wfs:SortProperty><ogc:PropertyName>fid_1</ogc:PropertyName><wfs:SortOrder>A</wfs:SortOrder></wfs:SortProperty></wfs:SortBy><ogc:Filter><ogc:And>undefined</ogc:And></ogc:Filter></wfs:Query></wfs:GetFeature>

    https://docs.geoserver.org/latest/en/api/#1.0.0/layers.yaml

    baermatthias
    @baermatthias
    @t-book Thx for the hint. I am currently not familiar with it but I will read about that. I managed to updated the entries in the db but geoserver does not recognize it yet. Do I have to restart geoserver manually or is there a way to update the sources of geoserver after editing the DB?