[GeoNode-users] 502 Bad Gateway

Alessio Fabiani alessio.fabiani at geosolutionsgroup.com
Thu Sep 29 00:59:14 PDT 2022


Hi Ramesh,
make sure the "MONITORING_ENABLED" property is set to True on your
settings/environment and then run the management commands "makemigrations"
and "migrate".

Check the official GeoNode documentation for more information on how to
use/run them.

https://docs.geonode.org/en/master/



On Thu, Sep 29, 2022 at 6:48 AM Ramesh De Silva <desilvarami at gmail.com>
wrote:

> Dear Alessio,
>
> Thank you for your reply. Can you please provide me some guidance to
> resolve this error, as I don't have any idea of the same.
>
> Kind regards
> Ramesh
>
> On Wed, Sep 28, 2022 at 7:30 PM Alessio Fabiani <
> alessio.fabiani at geosolutionsgroup.com> wrote:
>
>> Hi Ramesh,
>> from the logs it looks like a "migration" is missing. In particular the
>> "monitoring" one.
>>
>> On Wed, Sep 28, 2022 at 6:39 AM Ramesh De Silva <desilvarami at gmail.com>
>> wrote:
>>
>>> Hi,
>>>
>>> I've installed GeoNode 4.X on Ubuntu 22.04 Server OS. The system is
>>> installed in a virtual private server. I used the GeoNode Core Advanced
>>> Installation Guide. All the commands were successfully executed. All
>>> services such as tomcat9, ngnix, uwsgi, postgres are active. I have already
>>> configured the public IP in geonode.ini etc. But when I try to access the
>>> GeoNode, I get *502 Bad Gateway* error. I can access the GeoServer from
>>> the configured IP.
>>>
>>> When I check the error logs, I see the following error (*ngnix
>>> errror.log*).
>>>
>>> "*2022/09/28 04:20:44 [error] 42102#42102: *99 connect() failed (111:
>>> Connection refused) while connecting to upstream, client: 188.185.122.120,
>>> server: 188.185.9.236, request: "GET / HTTP/1.1", upstream:
>>> "uwsgi://127.0.0.1:8000 <http://127.0.0.1:8000>", host: "188.185.9.236*"
>>>
>>> *ngnix* *access.log*
>>> "*188.185.122.120 - - [28/Sep/2022:04:23:16 +0000] "GET / HTTP/1.1" 502
>>> 166 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101
>>> Firefox/105.0"*
>>> *188.185.122.120 - - [28/Sep/2022:04:23:30 +0000] "GET /geoserver/web/
>>> HTTP/1.1" 200 2589 "http://188.185.9.236/geoserver/index.html
>>> <http://188.185.9.236/geoserver/index.html>" "Mozilla/5.0 (Windows NT 10.0;
>>> Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0*"
>>>
>>> */opt/data/logs/geonode.log*
>>> "  *File
>>> "/home/ubuntu/.virtualenvs/geonode/lib/python3.8/site-packages/django/db/backends/utils.py",
>>> line 84, in _execute*
>>>
>>>
>>> *    return self.cursor.execute(sql,
>>> params)django.db.utils.ProgrammingError: relation "monitoring_host" does
>>> not existLINE 1: ...oring_host"."ip", "monitoring_host"."active" FROM
>>> "monitorin...  *
>>>
>>>
>>> *unable to load app 0 (mountpoint='') (callable not found or import
>>> error)*** no app loaded. GAME OVER ****"
>>>
>>> This IP is not open to outside yet.
>>>
>>> Kindly help resolve this issue.
>>> Thank you.
>>>
>>> Kind Regards
>>> Ramesh
>>>
>>> _______________________________________________
>>> 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  331 6233686
>>
>> 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.
>>
>

-- 

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  331 6233686

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20220929/a3b77cde/attachment-0001.htm>


More information about the geonode-users mailing list