[GeoNode-users] Geonode running

Pierre HARDY pierre.hardy5 at gmail.com
Mon May 23 02:02:26 PDT 2022


Thanks for your reply,

I noticed that added the following lines in
[image: image.png]
fixes the issue...
This seems strange to me.

[image: image.png]

Now I have this error that comes up:

django4geonode   | Traceback (most recent call last):
django4geonode   |   File
"/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line
84, in _execute
django4geonode   |     return self.cursor.execute(sql, params)
django4geonode   | psycopg2.errors.UniqueViolation: duplicate key value
violates unique constraint "monitoring_service_name_key"
django4geonode   | DETAIL:  Key (name)=(geoserver-hostgeoserver) already
exists.
django4geonode   |
django4geonode   |
django4geonode   | The above exception was the direct cause of the
following exception:
django4geonode   |
django4geonode   | Traceback (most recent call last):
django4geonode   |   File "/usr/local/bin/django-admin.py", line 5, in
<module>
django4geonode   |     management.execute_from_command_line()
django4geonode   |   File
"/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py",
line 381, in execute_from_command_line
django4geonode   |     utility.execute()
django4geonode   |   File
"/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py",
line 375, in execute
django4geonode   |
self.fetch_command(subcommand).run_from_argv(self.argv)
django4geonode   |   File
"/usr/local/lib/python3.8/site-packages/django/core/management/base.py",
line 323, in run_from_argv
django4geonode   |     self.execute(*args, **cmd_options)
django4geonode   |   File
"/usr/local/lib/python3.8/site-packages/django/core/management/base.py",
line 364, in execute
django4geonode   |     output = self.handle(*args, **options)
django4geonode   |   File
"/usr/local/lib/python3.8/site-packages/modeltranslation/management/commands/loaddata.py",
line 79, in handle
django4geonode   |     return super(Command, self).handle(*fixture_labels,
**options)
django4geonode   |   File
"/usr/local/lib/python3.8/site-packages/django/core/management/commands/loaddata.py",
line 72, in handle
django4geonode   |     self.loaddata(fixture_labels)
django4geonode   |   File
"/usr/local/lib/python3.8/site-packages/django/core/management/commands/loaddata.py",
line 114, in loaddata
django4geonode   |     self.load_label(fixture_label)
django4geonode   |   File
"/usr/local/lib/python3.8/site-packages/django/core/management/commands/loaddata.py",
line 181, in load_label
django4geonode   |     obj.save(using=self.using)
django4geonode   |   File
"/usr/local/lib/python3.8/site-packages/django/core/serializers/base.py",
line 223, in save
django4geonode   |     models.Model.save_base(self.object, using=using,
raw=True, **kwargs)
django4geonode   |   File
"/usr/local/lib/python3.8/site-packages/django/db/models/base.py", line
780, in save_base
django4geonode   |     updated = self._save_table(
django4geonode   |   File
"/usr/local/lib/python3.8/site-packages/django/db/models/base.py", line
853, in _save_table
django4geonode   |     updated = self._do_update(base_qs, using, pk_val,
values, update_fields,
django4geonode   |   File
"/usr/local/lib/python3.8/site-packages/django/db/models/base.py", line
903, in _do_update
django4geonode   |     return filtered._update(values) > 0
django4geonode   |   File
"/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line
760, in _update
django4geonode   |     return
query.get_compiler(self.db).execute_sql(CURSOR)
django4geonode   |   File
"/usr/local/lib/python3.8/site-packages/django/db/models/sql/compiler.py",
line 1471, in execute_sql
django4geonode   |     cursor = super().execute_sql(result_type)
django4geonode   |   File
"/usr/local/lib/python3.8/site-packages/django/db/models/sql/compiler.py",
line 1142, in execute_sql
django4geonode   |     cursor.execute(sql, params)
django4geonode   |   File
"/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line
67, in execute
django4geonode   |     return self._execute_with_wrappers(sql, params,
many=False, executor=self._execute)
django4geonode   |   File
"/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line
76, in _execute_with_wrappers
django4geonode   |     return executor(sql, params, many, context)
django4geonode   |   File
"/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line
84, in _execute
django4geonode   |     return self.cursor.execute(sql, params)
django4geonode   |   File
"/usr/local/lib/python3.8/site-packages/django/db/utils.py", line 89, in
__exit__
django4geonode   |     raise dj_exc_value.with_traceback(traceback) from
exc_value
django4geonode   |   File
"/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line
84, in _execute
django4geonode   |     return self.cursor.execute(sql, params)



*django4geonode   | django.db.utils.IntegrityError: Problem installing
fixture '/tmp/default_monitoring_apps_docker.json': Could not load
monitoring.Service(pk=3): duplicate key value violates unique constraint
"monitoring_service_name_key"django4geonode   | DETAIL:  Key
(name)=(geoserver-hostgeoserver) already exists.django4geonode   |
django4geonode   | ERROR installing monitoring fixture: Encountered a bad
command exit code!*
django4geonode   |
django4geonode   | Command: 'django-admin.py loaddata
/tmp/default_monitoring_apps_docker.json --settings=geonode.settings'
django4geonode   |
django4geonode   | Exit code: 1
django4geonode   |
django4geonode   | Stdout: already printed
django4geonode   |
django4geonode   | Stderr: n/a (PTYs have no stderr)
django4geonode   |
django4geonode   |
django4geonode   | monitoringfixture tasks done


Le lun. 23 mai 2022 à 10:12, Alessio Fabiani <
alessio.fabiani at geosolutionsgroup.com> a écrit :

> I guess you are missing some variables from the .env file
>
> Try to see if something missing accordingly to
> https://github.com/GeoNode/geonode/blob/3.3.x/.env#L35
>
> On Mon, May 23, 2022 at 10:06 AM Pierre HARDY <pierre.hardy5 at gmail.com>
> wrote:
>
>> Hello everyone,
>>
>> I am currently facing this error at running geonode 3.3.1:
>> [image: image.png]
>>
>> Do you have any idea of why this happens ?
>>
>> Thank you in advance for you help,
>>
>> --
>> Pierre HARDY
>> _______________________________________________
>> geonode-users mailing list
>> geonode-users at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/geonode-users
>>
>
>
> --
>
> Regards,
>
> Alessio Fabiani
>
> ==
> GeoServer Professional Services from the experts!
>
> Visit http://bit.ly/gs-services-us for more information.
> ==
>
> Ing. Alessio Fabiani
>
> @alfa7691
> Founder/Technical Lead
>
>
> GeoSolutions Group
> phone: +39 0584 962313
>
> fax:     +39 0584 1660272
>
> mob:   +39  333 8128928
>
> https://www.geosolutionsgroup.com/
>
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
> Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE
> 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si
> precisa che ogni circostanza inerente alla presente email (il suo
> contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
> riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
> messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
> operazione è illecita. Le sarei comunque grato se potesse darmene notizia.
>
> This email is intended only for the person or entity to which it is
> addressed and may contain information that is privileged, confidential or
> otherwise protected from disclosure. We remind that - as provided by
> European Regulation 2016/679 “GDPR” - copying, dissemination or use of this
> e-mail or the information herein by anyone other than the intended
> recipient is prohibited. If you have received this email by mistake, please
> notify us immediately by telephone or e-mail.
>


-- 
Pierre HARDY
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20220523/ef6509d6/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 43258 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20220523/ef6509d6/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 16634 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20220523/ef6509d6/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 1638 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20220523/ef6509d6/attachment-0005.png>


More information about the geonode-users mailing list