Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Advanced Installation steps to work against Ubuntu 20.04LTS #64

Merged
merged 1 commit into from
Oct 23, 2020

Conversation

afabiani
Copy link
Member

No description provided.

@afabiani afabiani self-assigned this Oct 14, 2020
@gannebamm
Copy link
Collaborator

I can test this later today

@iamtekson
Copy link
Contributor

I already installed geonode 2 times on ubuntu 20.04LTS. For me, installation of geonode in 18.04 also works fine.

@t-book
Copy link
Collaborator

t-book commented Oct 14, 2020

@afabiani Thanks. This is a great step forward! I've gone through the changes and haven't found anything. Unfortunately I won't find time to do a test install before Monday. It would be awesome if you @gannebamm could do a test install?!

@afabiani
Copy link
Member Author

@t-book @gannebamm I wrote those changes by following a new setup from scratch on a brand new WSL2 Ubuntu 20 instance on Windows 10

Nevertheless, it would be good that you could find some time to go through the steps and see if I missed something.

We don't want users getting angry with us anymore (hopefully)!

@t-book
Copy link
Collaborator

t-book commented Oct 14, 2020

We don't want users getting angry with us anymore (hopefully)!

Well true, but one should never forget that we all invest a lot of voluntary work ;)

@t-book
Copy link
Collaborator

t-book commented Oct 14, 2020

This might be connected to not run too often in outdated links : #57

@afabiani
Copy link
Member Author

@gannebamm
Copy link
Collaborator

It works but throws some errors / warnings. Some may be related to my virtualization software (hyper-v). I installed it up to paver setup/sync/start and uploaded a ~20mb shapefile successfully. Here are my findings:

geonode@geonode-Virtual-Machine:~$ sudo add-apt-repository ppa:ubuntugis/ppa
E: The repository 'http://ppa.launchpad.net/ubuntugis/ppa/ubuntu focal Release' does not have a Release file.

I think we can safely ignore this.

geonode@geonode-Virtual-Machine:~$ sudo update-java-alternatives --jre-headless --jre --set java-1.8.0-openjdk-amd64
update-alternatives: error: no alternatives for policytool
update-alternatives: error: no alternatives for policytool

I encounter this all the time and up to now never had issues related to it. What do you guys say @afabiani @t-book

on layer upload:

Handler dispatch failed; nested exception is java.awt.AWTError: Assistive Technology not found: org.GNOME.Accessibility.AtkWrapper
Traceback (most recent call last):
  File "/home/geonode/.virtualenvs/geonode/lib/python3.8/site-packages/django/db/models/query.py", line 538, in get_or_create
    return self.get(**kwargs), False
  File "/home/geonode/.virtualenvs/geonode/lib/python3.8/site-packages/django/db/models/query.py", line 406, in get
    raise self.model.DoesNotExist(
geonode.layers.models.Layer.DoesNotExist: Layer matching query does not exist.

as well as:

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/geonode/geonode/layers/utils.py", line 1055, in create_thumbnail
    image = _prepare_thumbnail_body_from_opts(request_body)
  File "/opt/geonode/geonode/geoserver/helpers.py", line 2191, in _prepare_thumbnail_body_from_opts
    raise e
  File "/opt/geonode/geonode/geoserver/helpers.py", line 2187, in _prepare_thumbnail_body_from_opts
    image = _render_thumbnail(_img_request_template, width=width, height=height)
  File "/opt/geonode/geonode/geoserver/helpers.py", line 1995, in _render_thumbnail
    raise e
  File "/opt/geonode/geonode/geoserver/helpers.py", line 1976, in _render_thumbnail
    raise Exception(content)
Exception: Handler dispatch failed; nested exception is java.awt.AWTError: Assistive Technology not found: org.GNOME.Accessibility.AtkWrapper
Internal Server Error: /api/o/v4/tokeninfo/
Traceback (most recent call last):
  File "/home/geonode/.virtualenvs/geonode/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "/home/geonode/.virtualenvs/geonode/lib/python3.8/site-packages/django/db/backends/sqlite3/base.py", line 383, in execute
    return Database.Cursor.execute(self, query, params)
sqlite3.OperationalError: database is locked

I think both are also not critical, since the upload worked and the thumbnail was created.

@gannebamm
Copy link
Collaborator

I now have to switch to some other tasks, but if I shall also test the rest of the setup, drop me a line here and I´ll come back to it later.

@afabiani
Copy link
Member Author

@gannebamm those errors are normal when using SQLite. They will disappear with postgis.

There's a big warning for that on the docs.

@jkariscodes
Copy link
Contributor

jkariscodes commented Feb 4, 2022

It works but throws some errors / warnings. Some may be related to my virtualization software (hyper-v). I installed it up to paver setup/sync/start and uploaded a ~20mb shapefile successfully. Here are my findings:

geonode@geonode-Virtual-Machine:~$ sudo add-apt-repository ppa:ubuntugis/ppa
E: The repository 'http://ppa.launchpad.net/ubuntugis/ppa/ubuntu focal Release' does not have a Release file.

I think we can safely ignore this.

geonode@geonode-Virtual-Machine:~$ sudo update-java-alternatives --jre-headless --jre --set java-1.8.0-openjdk-amd64
update-alternatives: error: no alternatives for policytool
update-alternatives: error: no alternatives for policytool

I encounter this all the time and up to now never had issues related to it. What do you guys say @afabiani @t-book

on layer upload:

Handler dispatch failed; nested exception is java.awt.AWTError: Assistive Technology not found: org.GNOME.Accessibility.AtkWrapper
Traceback (most recent call last):
  File "/home/geonode/.virtualenvs/geonode/lib/python3.8/site-packages/django/db/models/query.py", line 538, in get_or_create
    return self.get(**kwargs), False
  File "/home/geonode/.virtualenvs/geonode/lib/python3.8/site-packages/django/db/models/query.py", line 406, in get
    raise self.model.DoesNotExist(
geonode.layers.models.Layer.DoesNotExist: Layer matching query does not exist.

as well as:

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/geonode/geonode/layers/utils.py", line 1055, in create_thumbnail
    image = _prepare_thumbnail_body_from_opts(request_body)
  File "/opt/geonode/geonode/geoserver/helpers.py", line 2191, in _prepare_thumbnail_body_from_opts
    raise e
  File "/opt/geonode/geonode/geoserver/helpers.py", line 2187, in _prepare_thumbnail_body_from_opts
    image = _render_thumbnail(_img_request_template, width=width, height=height)
  File "/opt/geonode/geonode/geoserver/helpers.py", line 1995, in _render_thumbnail
    raise e
  File "/opt/geonode/geonode/geoserver/helpers.py", line 1976, in _render_thumbnail
    raise Exception(content)
Exception: Handler dispatch failed; nested exception is java.awt.AWTError: Assistive Technology not found: org.GNOME.Accessibility.AtkWrapper
Internal Server Error: /api/o/v4/tokeninfo/
Traceback (most recent call last):
  File "/home/geonode/.virtualenvs/geonode/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "/home/geonode/.virtualenvs/geonode/lib/python3.8/site-packages/django/db/backends/sqlite3/base.py", line 383, in execute
    return Database.Cursor.execute(self, query, params)
sqlite3.OperationalError: database is locked

I think both are also not critical, since the upload worked and the thumbnail was created.

Use sudo update-alternatives --config java command to show available java configs. The output is as below in Ubuntu 18.04.

There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
------------------------------------------------------------
  0            /usr/lib/jvm/java-11-openjdk-amd64/bin/java      1111      auto mode
  1            /usr/lib/jvm/java-11-openjdk-amd64/bin/java      1111      manual mode
* 2            /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java   1081      manual mode

Press <enter> to keep the current choice[*], or type selection number:

In this case number 2 is the default (indicated by the asterisk). If not type the number and click enter on your keyboard. I hope this information helps. I would propose we add this in the documentation as the previous command shows error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants