<div dir="ltr"><div>Hi all,</div><div><br></div><div>I finally got to solve this problem. The issue was related to geonode.conf. After some tests I concluded that for my case:</div><div><br></div><div>DocumentRoot and Alias /uploaded/ could be either /home/my_geonode/my_geonode/my_geonode or /home/geonode/my_geonode/my_geonode<br></div><div><br></div><div>However, for the rest of the configuration, this was the final settings:</div><div><br></div><div>WSGIDaemonProcess geonode python-path=/home/geonode/my_geonode:/home/geo/Envs/geonode/lib/python2.7/site-packages user=www-data threads=15 processes=2<br><br><VirtualHost *:80><br> ServerName <a href="http://localhost">http://localhost</a><br> ServerAdmin webmaster@localhost<br> DocumentRoot /home/my_geonode/my_geonode/my_geonode<br><br> LimitRequestFieldSize 32760<br> LimitRequestLine 32760<br><br> ErrorLog /var/log/apache2/error.log<br> LogLevel warn<br> CustomLog /var/log/apache2/access.log combined<br><br> WSGIProcessGroup geonode<br> WSGIPassAuthorization On<br> WSGIScriptAlias / /home/my_geonode/my_geonode/my_geonode/wsgi.py<br><br> Alias /static/ /home/my_geonode/my_geonode/my_geonode/static_root/<br> Alias /uploaded/ /home/my_geonode/my_geonode/my_geonode/uploaded/<br><br> <Directory "/home/my_geonode/my_geonode/my_geonode/"><br> <Files wsgi.py><br> Order deny,allow<br> Allow from all<br> Require all granted<br> </Files><br><br> Order allow,deny<br> Options Indexes FollowSymLinks<br> Allow from all<br> IndexOptions FancyIndexing<br> </Directory><br><br> <Directory "/home/my_geonode/my_geonode/my_geonode/static_root/"><br> Order allow,deny<br> Options Indexes FollowSymLinks<br> Allow from all<br> Require all granted<br> IndexOptions FancyIndexing<br> </Directory><br><br> <Directory "/home/my_geonode/my_geonode/my_geonode/uploaded/thumbs/"><br> Order allow,deny<br> Options Indexes FollowSymLinks<br> Allow from all<br> Require all granted<br> IndexOptions FancyIndexing<br> </Directory><br><br> <Directory "/home/my_geonode/my_geonode/my_geonode/uploaded/avatars/"><br> Order allow,deny<br> Options Indexes FollowSymLinks<br> Allow from all<br> Require all granted<br> IndexOptions FancyIndexing<br> </Directory><br><br> <Directory "/home/my_geonode/my_geonode/my_geonode/uploaded/people_group/"><br> Order allow,deny<br> Options Indexes FollowSymLinks<br> Allow from all<br> Require all granted<br> IndexOptions FancyIndexing<br> </Directory><br><br> <Directory "/home/my_geonode/my_geonode/my_geonode/uploaded/group/"><br> Order allow,deny<br> Options Indexes FollowSymLinks<br> Allow from all<br> Require all granted<br> IndexOptions FancyIndexing<br> </Directory><br><br> <Directory "/home/my_geonode/my_geonode/my_geonode/uploaded/documents/"><br> Order allow,deny<br> Options Indexes FollowSymLinks<br> Allow from all<br> Require all granted<br> IndexOptions FancyIndexing<br> </Directory><br><br> <Directory "/home/my_geonode/my_geonode/my_geonode/uploaded/layers/"><br> Order allow,deny<br> Options Indexes FollowSymLinks<br> Allow from all<br> Require all granted<br> IndexOptions FancyIndexing<br> </Directory><br><br> <Proxy *><br> Order allow,deny<br> Allow from all<br> </Proxy><br><br> ProxyPreserveHost On<br> ProxyPass /geoserver <a href="http://127.0.0.1:8080/geoserver">http://127.0.0.1:8080/geoserver</a><br> ProxyPassReverse /geoserver <a href="http://127.0.0.1:8080/geoserver">http://127.0.0.1:8080/geoserver</a><br><br></VirtualHost><br></div><div><br></div><div>Thank you all for the patience.</div><div><br></div><div>I appreciated it</div><div><br></div><div>Julierme<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-05-16 13:08 GMT-03:00 Julierme Pinheiro <span dir="ltr"><<a href="mailto:juliermeopensourcedeveloper@gmail.com" target="_blank">juliermeopensourcedeveloper@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"><div>Hi All,</div><div><br></div><div>I had try to commit genode-project template (index.html) changes to geonode production installed via apt-get, but I had an issue related to the production database. After configuring geonode.conf, I could see the changes over geonode production templates, made through geonode-project, however my production database would get covered / disappeared after geonode.conf according to geonode-project WSGI.</div><div><br></div><div>So, I changed my approach and I installed geonode from source as in here: <a href="http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/" target="_blank">http://docs.geonode.org/en/<wbr>master/tutorials/install_and_<wbr>admin/geonode_install/</a></div><div><br></div><div>I have geonode production running in virtualenv directory "/home/geo/Envs" and it is found in /home/geonode/my_geonode/*</div><div><br></div><div>I have geonode-progect in the same virtualenv directory "/home/geo/Envs" and it is found in /home/my_geonode/my_geonode/*</div><div><br></div><div>I installed geonode-project as in here <a href="https://github.com/GeoNode/geonode-project" target="_blank">https://github.com/GeoNode/<wbr>geonode-project</a> (Using Virtualenv)</div><div><br></div><div>Now, I am having the same issue, my production database "development.db" = sqlite that is in ~/Envs/geonode/lib/python2.7/<wbr>site-packages/geonode/<wbr>development.db is being covered or disappears after geonode.conf configuration.</div><div><br></div><div>I have granted all permissions to development.db (-rwxrwxrw- 1 www-data www-data 425984 Mai 14 13:40 development.db) but the issue remains and I am unable to sign in to geonode production.</div><div><br></div><div><br></div><div>Could someone help me to figure out what is going on and get this problem fixed? Find bellow my geonode.conf</div><div><br></div><div>WSGIDaemonProcess geonode python-path=/home/my_geonode/<wbr>my_geonode:/home/geo/Envs/my_<wbr>geonode/lib/python2.7/site-<wbr>packages user=www-data threads=15 processes=2<br><br><VirtualHost *:80><br> ServerName <a href="http://localhost" target="_blank">http://localhost</a><br> ServerAdmin webmaster@localhost<br> DocumentRoot /home/geonode/my_geonode/my_<wbr>geonode<br><br> LimitRequestFieldSize 32760<br> LimitRequestLine 32760<br><br> ErrorLog /var/log/apache2/error.log<br> LogLevel warn<br> CustomLog /var/log/apache2/access.log combined<br><br> WSGIProcessGroup geonode<br> WSGIPassAuthorization On<br> WSGIScriptAlias / /home/my_geonode/my_geonode/<wbr>my_geonode/wsgi.py<br><br> Alias /static/ /home/my_geonode/my_geonode/<wbr>my_geonode/static_root/<br> Alias /uploaded/ /home/my_geonode/my_geonode/<wbr>my_geonode/uploaded/<br><br> <Directory "/home/my_geonode/my_geonode/<wbr>my_geonode/"><br> <Files wsgi.py><br> Order deny,allow<br> Allow from all<br> Require all granted<br> </Files><br><br> Order allow,deny<br> Options Indexes FollowSymLinks<br> Allow from all<br> IndexOptions FancyIndexing<br> </Directory><br><br> <Directory "/home/my_geonode/my_geonode/<wbr>my_geonode/static_root/"><br> Order allow,deny<br> Options Indexes FollowSymLinks<br> Allow from all<br> Require all granted<br> IndexOptions FancyIndexing<br> </Directory><br><br> <Directory "/home/my_geonode/my_geonode/<wbr>my_geonode/uploaded/thumbs/"><br> Order allow,deny<br> Options Indexes FollowSymLinks<br> Allow from all<br> Require all granted<br> IndexOptions FancyIndexing<br> </Directory><br><br> <Directory "/home/my_geonode/my_geonode/<wbr>my_geonode/uploaded/avatars/"><br> Order allow,deny<br> Options Indexes FollowSymLinks<br> Allow from all<br> Require all granted<br> IndexOptions FancyIndexing<br> </Directory><br><br> <Directory "/home/my_geonode/my_geonode/<wbr>my_geonode/uploaded/people_<wbr>group/"><br> Order allow,deny<br> Options Indexes FollowSymLinks<br> Allow from all<br> Require all granted<br> IndexOptions FancyIndexing<br> </Directory><br><br> <Directory "/home/my_geonode/my_geonode/<wbr>my_geonode/uploaded/group/"><br> Order allow,deny<br> Options Indexes FollowSymLinks<br> Allow from all<br> Require all granted<br> IndexOptions FancyIndexing<br> </Directory><br><br> <Directory "/home/my_geonode/my_geonode/<wbr>my_geonode/uploaded/documents/<wbr>"><br> Order allow,deny<br> Options Indexes FollowSymLinks<br> Allow from all<br> Require all granted<br> IndexOptions FancyIndexing<br> </Directory><br><br> <Directory "/home/my_geonode/my_geonode/<wbr>my_geonode/uploaded/layers/"><br> Order allow,deny<br> Options Indexes FollowSymLinks<br> Allow from all<br> Require all granted<br> IndexOptions FancyIndexing<br> </Directory><br><br> <Directory "/home/my_geonode/my_geonode/"<wbr>><br> Order allow,deny<br> Require all granted<br> </Directory><br><br> <Proxy *><br> Order allow,deny<br> Allow from all<br> </Proxy><br><br> ProxyPreserveHost On<br> ProxyPass /geoserver <a href="http://127.0.0.1:8080/geoserver" target="_blank">http://127.0.0.1:8080/<wbr>geoserver</a><br> ProxyPassReverse /geoserver <a href="http://127.0.0.1:8080/geoserver" target="_blank">http://127.0.0.1:8080/<wbr>geoserver</a><br><br></VirtualHost></div><div><br></div><div>Thank you for your time in advance</div><div><br></div><div>Kind regards</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Julierme<br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></font></span></div>
</blockquote></div><br></div>