<div dir="ltr">Dea Paolo,<div><br></div><div>I have tried to do as you mentioned but it gave following message:</div><div><br></div><div><div>root@geonode:~# sudo su postgres</div><div>postgres@geonode:/root$ psql geonode</div><div>could not change directory to "/root"</div><div>psql (9.1.13)</div></div><div><br></div><div>how can open the django_site to insert id, domain, name as you mentioned. What is <b>name </b>refers here database name/site name?</div><div><br></div><div>Regards</div><div>Rajib</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 23, 2015 at 3:43 AM, Paolo Corti <span dir="ltr"><<a href="mailto:pcorti@gmail.com" target="_blank">pcorti@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">something like (not tested it):<br>
<br>
ssh user@servername (not sure how it works on putty)<br>
sudo su postgres<br>
psql databasename<br>
insert into django_site (id, domain, name) values (1, 'domain', 'name');<br>
<br>
regards<br>
p<br>
<br>
On Tue, Dec 22, 2015 at 1:45 PM, Shah Md. Rajibul Islam<br>
<div class="HOEnZb"><div class="h5"><<a href="mailto:rajibul.islam@cdmp.org.bd">rajibul.islam@cdmp.org.bd</a>> wrote:<br>
> Dear Paolo,<br>
><br>
> Thank you for your reply. I am not good in psql and related coding as well<br>
> and have very limited programming knowledge. It would be very helpful for me<br>
> if you could also tell me the steps and codes that I have follow to do this.<br>
><br>
> Best regards<br>
> Rajib<br>
><br>
> On Tue, Dec 22, 2015 at 11:43 PM, Paolo Corti <<a href="mailto:pcorti@gmail.com">pcorti@gmail.com</a>> wrote:<br>
>><br>
>> Then do a ssh connection to the server, and use psql in place of pgadmin<br>
>> regards<br>
>> p<br>
>><br>
>> On Tue, Dec 22, 2015 at 3:55 AM, Shah Md. Rajibul Islam<br>
>> <<a href="mailto:rajibul.islam@cdmp.org.bd">rajibul.islam@cdmp.org.bd</a>> wrote:<br>
>> > Dear Ariel,<br>
>> ><br>
>> > Thank you for your reply and I am really sorry for late reply.<br>
>> ><br>
>> > Is there other way to do the required task you mentioned? It would be<br>
>> > better<br>
>> > if I can do this using ssh client putty.<br>
>> ><br>
>> > Looking forward to your reply.<br>
>> ><br>
>> > Best regards<br>
>> > Rajib<br>
>> ><br>
>> ><br>
>> > Sent from Samsung Mobile<br>
>> ><br>
>> ><br>
>> ><br>
>> > -------- Original message --------<br>
>> > From: Ariel Nunez <<a href="mailto:ingenieroariel@gmail.com">ingenieroariel@gmail.com</a>><br>
>> > Date: 12/14/2015 8:06 PM (GMT+06:00)<br>
>> > To: "Shah Md. Rajibul Islam" <<a href="mailto:rajibul.islam@cdmp.org.bd">rajibul.islam@cdmp.org.bd</a>><br>
>> > Cc: <a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
>> > Subject: Re: [GeoNode-users] Cannot load geonode page: DoesNotExist:<br>
>> > Site<br>
>> > matching query does not exist. IntegrityError: Problem installing<br>
>> > fixture<br>
>> ><br>
>> ><br>
>> > Hello Rajib,<br>
>> ><br>
>> > Since you deleted the default Site (with id=1) instead of editing the<br>
>> > site<br>
>> > name and url this caused problems with the permissions and all around<br>
>> > the<br>
>> > site.<br>
>> ><br>
>> > Your best bet is to create a new Site object with id =1 and the right<br>
>> > name<br>
>> > and dome. Are you familiar with pgadminIII ? You can use that to connect<br>
>> > to<br>
>> > your database and recreate the missing entry in sites_site graphically.<br>
>> ><br>
>> > -a<br>
>> ><br>
>> > On Sun, Dec 13, 2015 at 12:29 AM, Shah Md. Rajibul Islam<br>
>> > <<a href="mailto:rajibul.islam@cdmp.org.bd">rajibul.islam@cdmp.org.bd</a>> wrote:<br>
>> >><br>
>> >> Hi,<br>
>> >><br>
>> >><br>
>> >><br>
>> >> I am using geonode 2.0 on Ubuntu 12.04<br>
>> >><br>
>> >><br>
>> >><br>
>> >> I am having a problem while loading the geonode site as follows-<br>
>> >><br>
>> >> “There was a problem loading this page. Please contact your GeoNode<br>
>> >> administrator (he may have received an email automatically if he<br>
>> >> configured<br>
>> >> it properly). If you are the site administrator, enable debug mode to<br>
>> >> see<br>
>> >> the actual error and fix it or file an issue in GeoNode's issue<br>
>> >> tracker”<br>
>> >><br>
>> >><br>
>> >><br>
>> >> It probably happened when I deleted the IP address from geoserver site<br>
>> >> management and add a site name <a href="http://geonode.dmic.org.bd" rel="noreferrer" target="_blank">geonode.dmic.org.bd</a>. However, I have<br>
>> >> added<br>
>> >> the IP again to the site.<br>
>> >><br>
>> >><br>
>> >><br>
>> >> I tried to update the IP again using sudo geonode-updateip<br>
>> >> <a href="tel:203.83.183.18" value="+12038318318">203.83.183.18</a><br>
>> >> and gives following error:<br>
>> >><br>
>> >> DoesNotExist: Site matching query does not exist.<br>
>> >><br>
>> >><br>
>> >><br>
>> >> When I run the sudo apt-get install --reinstall geonode command it<br>
>> >> gives<br>
>> >> following error message:<br>
>> >><br>
>> >> IntegrityError: Problem installing fixture<br>
>> >> '/usr/local/lib/python2.7/dist-packag<br>
>> >> es/geonode/layers/fixtures/initial_data.json': Could not load<br>
>> >> security.GenericOb<br>
>> >> jectRoleMapping(pk=3): duplicate key value violates unique constraint<br>
>> >> "security_<br>
>> >> genericobjectrolemap_subject_object_ct_id_object_i_key"<br>
>> >><br>
>> >> DETAIL:  Key (subject, object_ct_id, object_id, role_id)=(anonymous,<br>
>> >> 42,<br>
>> >> 1, 4) already exists.<br>
>> >><br>
>> >><br>
>> >><br>
>> >> Is there any suggestions please?<br>
>> >><br>
>> >><br>
>> >><br>
>> >> Best regards<br>
>> >><br>
>> >> Rajib<br>
>> >><br>
>> >><br>
>> >><br>
>> >> Shah Md. Rajibul Islam<br>
>> >><br>
>> >> GIS Analyst<br>
>> >> CDMP – II, UNDP<br>
>> >> Disaster Management & Relief Bhaban<br>
>> >> 92-93, Mohakhali C/A, Dhaka - 1212<br>
>> >> Tel # 989 0937; 882 1255; 882 1459, Ext - 303<br>
>> >> Mobile: +88 01716 027389, E-mail: <a href="mailto:rajibul.islam@cdmp.org.bd">rajibul.islam@cdmp.org.bd</a><br>
>> >> Web: <a href="http://www.cdmp.org.bd" rel="noreferrer" target="_blank">www.cdmp.org.bd</a><br>
>> >><br>
>> >><br>
>> >><br>
>> >><br>
>> >> _______________________________________________<br>
>> >> geonode-users mailing list<br>
>> >> <a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
>> >> <a href="http://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/geonode-users</a><br>
>> >><br>
>> ><br>
>> ><br>
>> > _______________________________________________<br>
>> > geonode-users mailing list<br>
>> > <a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
>> > <a href="http://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/geonode-users</a><br>
>> ><br>
>><br>
>><br>
>><br>
>> --<br>
>> Paolo Corti<br>
>> Geospatial software developer<br>
>> web: <a href="http://www.paolocorti.net" rel="noreferrer" target="_blank">http://www.paolocorti.net</a><br>
>> twitter: @capooti<br>
>> skype: capooti<br>
><br>
><br>
><br>
><br>
> --<br>
> Shah Md. Rajibul Islam<br>
> GIS Analyst<br>
> CDMP – II, UNDP<br>
> Disaster Management & Relief Bhaban<br>
> 92-93, Mohakhali C/A, Dhaka - 1212<br>
> Tel # 989 0937; 882 1255; 882 1459, Ext - 303<br>
> Mobile: +88 01716 027389, E-mail: <a href="mailto:rajibul.islam@cdmp.org.bd">rajibul.islam@cdmp.org.bd</a><br>
> Web: <a href="http://www.cdmp.org.bd" rel="noreferrer" target="_blank">www.cdmp.org.bd</a><br>
<br>
<br>
<br>
--<br>
Paolo Corti<br>
Geospatial software developer<br>
web: <a href="http://www.paolocorti.net" rel="noreferrer" target="_blank">http://www.paolocorti.net</a><br>
twitter: @capooti<br>
skype: capooti<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><font><font face="Calibri, Verdana, Helvetica, Arial" style="color:rgb(0,0,128)" size="4"><b>Shah Md. Rajibul Islam</b></font></font></div><div dir="ltr"><font><font color="#000080" face="Calibri, Verdana, Helvetica, Arial"><b><font size="2">GIS Analyst</font><br></b></font><font size="2"><font face="arial narrow, sans-serif" style="color:rgb(0,0,128)">CDMP – II, UNDP</font><br><font face="arial narrow, sans-serif" style="color:rgb(0,0,128)">Disaster Management & Relief Bhaban</font><br><font face="arial narrow, sans-serif" style="color:rgb(0,0,128)">92-93, Mohakhali C/A, Dhaka - 1212</font><br><font face="arial narrow, sans-serif" style="color:rgb(0,0,128)">Tel # 989 0937; 882 1255; 882 1459, Ext - 303</font><br><font face="arial narrow, sans-serif" style="color:rgb(0,0,128)">Mobile: +88 </font><font color="#000080">01716 027389, </font><font face="arial narrow, sans-serif"><font color="#000080">E-mail: <a href="mailto:rajibul.islam@cdmp.org.bd" target="_blank">rajibul.islam@cdmp.org.bd</a></font></font></font></font><font face="arial narrow, sans-serif" size="2"><font color="#0000FF"><u><br></u></font><font color="#000080">Web: <a href="http://www.cdmp.org.bd/" style="color:rgb(17,85,204)" target="_blank">www.cdmp.org.bd</a></font></font><br></div></div></div></div></div></div></div></div>
</div>