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

Error while setup on 20.04 #425

Open
hassanayoub1985 opened this issue Dec 17, 2022 · 4 comments
Open

Error while setup on 20.04 #425

hassanayoub1985 opened this issue Dec 17, 2022 · 4 comments

Comments

@hassanayoub1985
Copy link

connection.prepare_database()

File "/var/www/roundware/lib/python3.8/site-packages/django/contrib/gis/db/backends/postgis/base.py", line 26, in prepare_database
cursor.execute("CREATE EXTENSION IF NOT EXISTS postgis")
File "/var/www/roundware/lib/python3.8/site-packages/django/db/backends/utils.py", line 68, in execute
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
File "/var/www/roundware/lib/python3.8/site-packages/django/db/backends/utils.py", line 77, in _execute_with_wrappers
return executor(sql, params, many, context)
File "/var/www/roundware/lib/python3.8/site-packages/django/db/backends/utils.py", line 86, in _execute
return self.cursor.execute(sql, params)
File "/var/www/roundware/lib/python3.8/site-packages/django/db/utils.py", line 90, in exit
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/var/www/roundware/lib/python3.8/site-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql)
django.db.utils.OperationalError: could not open extension control file "/usr/share/postgresql/12/extension/postgis.control": No such file or directory

@hburgund
Copy link
Member

a few more details on when this happens would be useful. is this thrown during install.sh?

also, let me know what branch you are trying; and if you haven't tried admin-updates, give that a shot...

@hassanayoub1985
Copy link
Author

hassanayoub1985 commented Dec 18, 2022

Hi, thank you for the fast reply :)
yes the error appears after running sudo ./install.sh
and switched to admin-updates then re run sudo ./install.sh, same error

@hburgund
Copy link
Member

hburgund commented Dec 18, 2022

I tried a fresh install on vagrant and it worked fine, but clearly there are some differences between that and a production install. This error strikes me as related to your environment. Are you working with a plain vanilla 20.04 VM?

@hassanayoub1985
Copy link
Author

Sorry for late reply,
On ubuntu 20.04 fresh on digitalocean:
apt install vagrant -y

git clone https://github.com/roundware/roundware-server.git
cd roundware-server
vagrant up
Error:
image

I tried also:
git clone https://github.com/roundware/roundware-server.git
cd roundware-server
./install.sh
Error:
image

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

No branches or pull requests

2 participants