<div dir="ltr">Take a look at this thread if it helps <div><a href="https://wiki.postgresql.org/wiki/May_2015_Fsync_Permissions_Bug">https://wiki.postgresql.org/wiki/May_2015_Fsync_Permissions_Bug</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-07-01 10:52 GMT+02:00 Jeffy John Tomarong <span dir="ltr"><<a href="mailto:jeffytoms@gmail.com" target="_blank">jeffytoms@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Simone,<div><br></div><div>I got this error when I restarted postgresql and it's quite persistent:</div><div><br></div><div><div style="font-size:12.8000001907349px"> Restarting PostgreSQL 9.1 database server                                     * The PostgreSQL server failed to start. Please check the log output:</div><div style="font-size:12.8000001907349px">2015-07-01 16:49:11 PHT LOG:  database system was interrupted; last known up at 2015-05-27 23:25:59 PHT</div><div style="font-size:12.8000001907349px">2015-07-01 16:49:11 PHT FATAL:  could not open file "/etc/ssl/certs/ssl-cert-snakeoil.pem": Permission denied</div><div style="font-size:12.8000001907349px">2015-07-01 16:49:11 PHT LOG:  startup process (PID 5730) exited with exit code 1</div><div style="font-size:12.8000001907349px">2015-07-01 16:49:11 PHT LOG:  aborting startup due to startup process failure</div><div style="font-size:12.8000001907349px">                                                                         [fail]</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 1, 2015 at 4:11 PM, Simone Dalmasso <span dir="ltr"><<a href="mailto:simone.dalmasso@gmail.com" target="_blank">simone.dalmasso@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">There's no way to restore, but you can add back your db configuration. Check whether the local_settings.py file contains the correct db connection parameters and that postgres is up and running.</div><div class="gmail_extra"><div><div><br><div class="gmail_quote">2015-07-01 10:08 GMT+02:00 Jeffy John Tomarong <span dir="ltr"><<a href="mailto:jeffytoms@gmail.com" target="_blank">jeffytoms@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Nope we dont have a custom configuration. After I installed geonode, all I editted were on the ipaddress part or the site url. I did not touch the DB config in the local_settings.py ..<div><br></div><div>Or is there a way to restore back the local_settings.py, say restore it back to two days ago? Because I'm afraid I might have overwritten the local_settings.py with the old backup file of local_settings.py the moment it got the internal server error..</div><div><br></div><div>Thank you Simone!</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 1, 2015 at 3:54 PM, Simone Dalmasso <span dir="ltr"><<a href="mailto:simone.dalmasso@gmail.com" target="_blank">simone.dalmasso@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">That is because it can't connect to postgresql. Do you have some kind of custom configuration?<div>That command uses /etc/geonode/local_settings.py to get the db configuration</div><div class="gmail_extra"><div><div><br><div class="gmail_quote">2015-07-01 9:43 GMT+02:00 Jeffy John Tomarong <span dir="ltr"><<a href="mailto:jeffytoms@gmail.com" target="_blank">jeffytoms@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Simone,<div><br></div><div>It did help! Thank you very much for your quick response.. I also did pip install django-request after that.</div><div><br></div><div>However, when I issued updateip again, I got this:</div><div><br></div><div><span style="font-size:12.8000001907349px"><div>/usr/lib/python2.7/dist-packages/django/conf/__init__.py:221: DeprecationWarning: You have no filters defined on the 'mail_admins' logging handler: adding implicit debug-false-only filter. See<a href="http://docs.djangoproject.com/en/dev/releases/1.4/#request-exceptions-are-now-always-logged" target="_blank">http://docs.djangoproject.com/en/dev/releases/1.4/#request-exceptions-are-now-always-logged</a></div><div>  DeprecationWarning)</div><div><br></div></span><div style="font-size:12.8000001907349px">OperationalError: could not connect to server: Connection refused</div><div style="font-size:12.8000001907349px"><span style="white-space:pre-wrap">      </span>Is the server running on host "localhost" (127.0.0.1) and accepting</div><div style="font-size:12.8000001907349px"><span style="white-space:pre-wrap">     </span>TCP/IP connections on port 5432?</div></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Hmm.. ??</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 1, 2015 at 3:31 PM, Simone Dalmasso <span dir="ltr"><<a href="mailto:simone.dalmasso@gmail.com" target="_blank">simone.dalmasso@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, I see you are using geonode 2.0<div><br></div><div>the missing package should be django-relationships and since your geonode is installed systemwide you have to use sudo so:</div><div>$ sudo pip install  django-relationships</div><div><br></div><div>Hope this helps</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>2015-07-01 9:23 GMT+02:00 Jeffy John Tomarong <span dir="ltr"><<a href="mailto:jeffytoms@gmail.com" target="_blank">jeffytoms@gmail.com</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hi Good Fellas!<div><br></div><div>Our GeoNode instance was running well in the previous months. But now, it got Internal Server Error 500. </div><div>What I did was to update the IP of geonode (which is just the same anyway), and it caused me this error:I also tried "pip install relationship" since it displayed there "Error: No Module named relationships". But it caused another set of error. GeoNode has been running well in the last months, I do not know what happened.</div><div><br></div><div>I need your help guys on this. I'm at the end of my wits.</div><div><br></div><div>Will be very much appreciated. Thank you!</div><div><br></div><div>Here's the error message:</div><div><br></div><div><div style="font-size:12.8000001907349px">Replacing SITEURL in /etc/geonode/local_settings.py</div><div style="font-size:12.8000001907349px">Adding entry for local ip in /usr/share/geoserver/data//printing/config.yaml</div><div style="font-size:12.8000001907349px">  IP was already added to the printing whitelist.</div><div style="font-size:12.8000001907349px">Replacing ALLOWED_HOSTS in /etc/geonode/local_settings.py</div><div style="font-size:12.8000001907349px"> * Restarting web server apache2                                                apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName</div><div style="font-size:12.8000001907349px"> ... waiting .apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName</div><div style="font-size:12.8000001907349px">                                                                         [ OK ]</div><div style="font-size:12.8000001907349px">/usr/lib/python2.7/dist-packages/django/conf/__init__.py:221: DeprecationWarning: You have no filters defined on the 'mail_admins' logging handler: adding implicit debug-false-only filter. See<a href="http://docs.djangoproject.com/en/dev/releases/1.4/#request-exceptions-are-now-always-logged" target="_blank">http://docs.djangoproject.com/en/dev/releases/1.4/#request-exceptions-are-now-always-logged</a></div><div style="font-size:12.8000001907349px">  DeprecationWarning)</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Traceback (most recent call last):</div><div style="font-size:12.8000001907349px">  File "/usr/bin/django-admin", line 5, in <module></div><div style="font-size:12.8000001907349px">    management.execute_from_command_line()</div><div style="font-size:12.8000001907349px">  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 453, in execute_from_command_line</div><div style="font-size:12.8000001907349px">    utility.execute()</div><div style="font-size:12.8000001907349px">  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 392, in execute</div><div style="font-size:12.8000001907349px">    self.fetch_command(subcommand).run_from_argv(self.argv)</div><div style="font-size:12.8000001907349px">  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 272, in fetch_command</div><div style="font-size:12.8000001907349px">    klass = load_command_class(app_name, subcommand)</div><div style="font-size:12.8000001907349px">  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 77, in load_command_class</div><div style="font-size:12.8000001907349px">    module = import_module('%s.management.commands.%s' % (app_name, name))</div><div style="font-size:12.8000001907349px">  File "/usr/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module</div><div style="font-size:12.8000001907349px">    __import__(name)</div><div style="font-size:12.8000001907349px">  File "/usr/local/lib/python2.7/dist-packages/geonode/layers/management/commands/updatelayers.py", line 23, in <module></div><div style="font-size:12.8000001907349px">    from geonode.geoserver.helpers import gs_slurp</div><div style="font-size:12.8000001907349px">  File "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/helpers.py", line 31, in <module></div><div style="font-size:12.8000001907349px">    from geonode.utils import _user, _password, ogc_server_settings</div><div style="font-size:12.8000001907349px">  File "/usr/local/lib/python2.7/dist-packages/geonode/utils.py", line 36, in <module></div><div style="font-size:12.8000001907349px">    from geonode.security.enumerations import AUTHENTICATED_USERS, ANONYMOUS_USERS, INVALID_PERMISSION_MESSAGE</div><div style="font-size:12.8000001907349px">  File "/usr/local/lib/python2.7/dist-packages/geonode/security/enumerations.py", line 28, in <module></div><div style="font-size:12.8000001907349px">    ANONYMOUS_USERS: _('Anonymous Users'),</div><div style="font-size:12.8000001907349px">  File "/usr/lib/python2.7/dist-packages/django/utils/translation/__init__.py", line 71, in ugettext</div><div style="font-size:12.8000001907349px">    return _trans.ugettext(message)</div><div style="font-size:12.8000001907349px">  File "/usr/lib/python2.7/dist-packages/django/utils/translation/trans_real.py", line 276, in ugettext</div><div style="font-size:12.8000001907349px">    return do_translate(message, 'ugettext')</div><div style="font-size:12.8000001907349px">  File "/usr/lib/python2.7/dist-packages/django/utils/translation/trans_real.py", line 258, in do_translate</div><div style="font-size:12.8000001907349px">    _default = translation(settings.LANGUAGE_CODE)</div><div style="font-size:12.8000001907349px">  File "/usr/lib/python2.7/dist-packages/django/utils/translation/trans_real.py", line 172, in translation</div><div style="font-size:12.8000001907349px">    default_translation = _fetch(settings.LANGUAGE_CODE)</div><div style="font-size:12.8000001907349px">  File "/usr/lib/python2.7/dist-packages/django/utils/translation/trans_real.py", line 154, in _fetch</div><div style="font-size:12.8000001907349px">    app = import_module(appname)</div><div style="font-size:12.8000001907349px">  File "/usr/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module</div><div style="font-size:12.8000001907349px">    __import__(name)</div><div style="font-size:12.8000001907349px">ImportError: No module named relationships</div><div style="font-size:12.8000001907349px">jjqt@GeoNode:/usr/local/lib/python2.7/dist-packages/geonode$ sudo pico local_settings.py</div><div style="font-size:12.8000001907349px">jjqt@GeoNode:/usr/local/lib/python2.7/dist-packages/geonode$ sudo pico settings.py</div><div style="font-size:12.8000001907349px">jjqt@GeoNode:/usr/local/lib/python2.7/dist-packages/geonode$ sudo pip install -e.</div><div style="font-size:12.8000001907349px">[sudo] password for jjqt: </div><div style="font-size:12.8000001907349px">--editable=. should be formatted with svn+URL, git+URL, hg+URL or bzr+URL</div><div style="font-size:12.8000001907349px">Storing complete log in /home/jjqt/.pip/pip.log</div><div style="font-size:12.8000001907349px">jjqt@GeoNode:/usr/local/lib/python2.7/dist-packages/geonode$ sudo geonode-updateip<a href="http://crisp.norminet.org.ph/" target="_blank">crisp.norminet.org.ph</a></div><div style="font-size:12.8000001907349px">Replacing SITEURL in /etc/geonode/local_settings.py</div><div style="font-size:12.8000001907349px">Adding entry for local ip in /usr/share/geoserver/data//printing/config.yaml</div><div style="font-size:12.8000001907349px">  IP was already added to the printing whitelist.</div><div style="font-size:12.8000001907349px">Replacing ALLOWED_HOSTS in /etc/geonode/local_settings.py</div><div style="font-size:12.8000001907349px"> * Restarting web server apache2                                                apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName</div><div style="font-size:12.8000001907349px"> ... waiting .apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName</div><div style="font-size:12.8000001907349px">                                                                         [ OK ]</div><div style="font-size:12.8000001907349px">/usr/lib/python2.7/dist-packages/django/conf/__init__.py:221: DeprecationWarning: You have no filters defined on the 'mail_admins' logging handler: adding implicit debug-false-only filter. See<a href="http://docs.djangoproject.com/en/dev/releases/1.4/#request-exceptions-are-now-always-logged" target="_blank">http://docs.djangoproject.com/en/dev/releases/1.4/#request-exceptions-are-now-always-logged</a></div><div style="font-size:12.8000001907349px">  DeprecationWarning)</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Traceback (most recent call last):</div><div style="font-size:12.8000001907349px">  File "/usr/bin/django-admin", line 5, in <module></div><div style="font-size:12.8000001907349px">    management.execute_from_command_line()</div><div style="font-size:12.8000001907349px">  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 453, in execute_from_command_line</div><div style="font-size:12.8000001907349px">    utility.execute()</div><div style="font-size:12.8000001907349px">  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 392, in execute</div><div style="font-size:12.8000001907349px">    self.fetch_command(subcommand).run_from_argv(self.argv)</div><div style="font-size:12.8000001907349px">  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 272, in fetch_command</div><div style="font-size:12.8000001907349px">    klass = load_command_class(app_name, subcommand)</div><div style="font-size:12.8000001907349px">  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 77, in load_command_class</div><div style="font-size:12.8000001907349px">    module = import_module('%s.management.commands.%s' % (app_name, name))</div><div style="font-size:12.8000001907349px">  File "/usr/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module</div><div style="font-size:12.8000001907349px">    __import__(name)</div><div style="font-size:12.8000001907349px">  File "/usr/local/lib/python2.7/dist-packages/geonode/layers/management/commands/updatelayers.py", line 23, in <module></div><div style="font-size:12.8000001907349px">    from geonode.geoserver.helpers import gs_slurp</div><div style="font-size:12.8000001907349px">  File "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/helpers.py", line 31, in <module></div><div style="font-size:12.8000001907349px">    from geonode.utils import _user, _password, ogc_server_settings</div><div style="font-size:12.8000001907349px">  File "/usr/local/lib/python2.7/dist-packages/geonode/utils.py", line 36, in <module></div><div style="font-size:12.8000001907349px">    from geonode.security.enumerations import AUTHENTICATED_USERS, ANONYMOUS_USERS, INVALID_PERMISSION_MESSAGE</div><div style="font-size:12.8000001907349px">  File "/usr/local/lib/python2.7/dist-packages/geonode/security/enumerations.py", line 28, in <module></div><div style="font-size:12.8000001907349px">    ANONYMOUS_USERS: _('Anonymous Users'),</div><div style="font-size:12.8000001907349px">  File "/usr/lib/python2.7/dist-packages/django/utils/translation/__init__.py", line 71, in ugettext</div><div style="font-size:12.8000001907349px">    return _trans.ugettext(message)</div><div style="font-size:12.8000001907349px">  File "/usr/lib/python2.7/dist-packages/django/utils/translation/trans_real.py", line 276, in ugettext</div><div style="font-size:12.8000001907349px">    return do_translate(message, 'ugettext')</div><div style="font-size:12.8000001907349px">  File "/usr/lib/python2.7/dist-packages/django/utils/translation/trans_real.py", line 258, in do_translate</div><div style="font-size:12.8000001907349px">    _default = translation(settings.LANGUAGE_CODE)</div><div style="font-size:12.8000001907349px">  File "/usr/lib/python2.7/dist-packages/django/utils/translation/trans_real.py", line 172, in translation</div><div style="font-size:12.8000001907349px">    default_translation = _fetch(settings.LANGUAGE_CODE)</div><div style="font-size:12.8000001907349px">  File "/usr/lib/python2.7/dist-packages/django/utils/translation/trans_real.py", line 154, in _fetch</div><div style="font-size:12.8000001907349px">    app = import_module(appname)</div><div style="font-size:12.8000001907349px">  File "/usr/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module</div><div style="font-size:12.8000001907349px">    __import__(name)</div><div style="font-size:12.8000001907349px">ImportError: No module named relationships</div><div style="font-size:12.8000001907349px">jjqt@GeoNode:/usr/local/lib/python2.7/dist-packages/geonode$ pip install relationships</div><div style="font-size:12.8000001907349px">Downloading/unpacking relationships</div><div style="font-size:12.8000001907349px">Exception:</div><div style="font-size:12.8000001907349px">Traceback (most recent call last):</div><div style="font-size:12.8000001907349px">  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 126, in main</div><div style="font-size:12.8000001907349px">    self.run(options, args)</div><div style="font-size:12.8000001907349px">  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 223, in run</div><div style="font-size:12.8000001907349px">    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)</div><div style="font-size:12.8000001907349px">  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 942, in prepare_files</div><div style="font-size:12.8000001907349px">    location = req_to_install.build_location(self.build_dir, not self.is_download)</div><div style="font-size:12.8000001907349px">  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 144, in build_location</div><div style="font-size:12.8000001907349px">    _make_build_dir(build_dir)</div><div style="font-size:12.8000001907349px">  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1185, in _make_build_dir</div><div style="font-size:12.8000001907349px">    os.makedirs(build_dir)</div><div style="font-size:12.8000001907349px">  File "/usr/lib/python2.7/os.py", line 157, in makedirs</div><div style="font-size:12.8000001907349px">    mkdir(name, mode)</div><div style="font-size:12.8000001907349px">OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/geonode/build'</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Storing complete log in /home/jjqt/.pip/pip.log</div><div style="font-size:12.8000001907349px">Traceback (most recent call last):</div><div style="font-size:12.8000001907349px">  File "/usr/bin/pip", line 9, in <module></div><div style="font-size:12.8000001907349px">    load_entry_point('pip==1.0', 'console_scripts', 'pip')()</div><div style="font-size:12.8000001907349px">  File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 116, in main</div><div style="font-size:12.8000001907349px">    return command.main(initial_args, args[1:], options)</div><div style="font-size:12.8000001907349px">  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 147, in main</div><div style="font-size:12.8000001907349px">    log_fp = open_logfile(log_fn, 'w')</div><div style="font-size:12.8000001907349px">  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 176, in open_logfile</div><div style="font-size:12.8000001907349px">    log_fp = open(filename, mode)</div><div style="font-size:12.8000001907349px">IOError: [Errno 13] Permission denied: '/home/jjqt/.pip/pip.log'</div></div></div>
<br></div></div>_______________________________________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><span><font color="#888888"><span><font color="#888888"><div><br></div>-- <br><div>Simone </div>
</font></span></font></span></font></span></div><span><font color="#888888">
</font></span></blockquote></div><span><font color="#888888"><br></font></span></div><span><font color="#888888">
</font></span></blockquote></div><span><font color="#888888"><br><br clear="all"><span class="HOEnZb"><font color="#888888"><div><br></div></font></span></font></span></div></div><span class="HOEnZb"><font color="#888888"><span><font color="#888888"><span><font color="#888888">-- <br><div>Simone </div>
</font></span></font></span></font></span></div></div><span class="HOEnZb"><font color="#888888">
</font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888">
</font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div></font></span></div></div><span class="HOEnZb"><font color="#888888"><span><font color="#888888">-- <br><div>Simone </div>
</font></span></font></span></div>
</blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Simone </div>
</div>