<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hey all,<div><br></div><div>Just posting one more time to say that doing a local installation fixed this. Here is what I did along the way.</div><div><br></div><div>Following the instructions in the documentation for a docker install did not work at all for bringing up GeoNode, giving me some timeout errors. Following the instructions in the documentation here: <a href="http://docs.geonode.org/en/2.10.x/install/core/index.html#deploy-a-vanilla-geonode-2-10-with-docker" target="_blank">http://docs.geonode.org/en/2.10.x/install/core/index.html#deploy-a-vanilla-geonode-2-10-with-docker</a></div><div><br></div><div>During core docker installation, neither</div><div>`docker-compose -f docker-compose.yml -f docker-compose.override.localhost.yml pull`</div><div>or</div><div>`docker-compose -f docker-compose.yml -f docker-compose.override.localhost.yml up -d`</div><div>works. It seems like the images are not available, as it's getting timeout errors.</div><div><br></div><div>Error on `pull`: <a href="https://gist.github.com/travislbrundage/c7c1a0e6b5d17ddd8659c64547418aff" target="_blank">https://gist.github.com/travislbrundage/c7c1a0e6b5d17ddd8659c64547418aff</a></div><div>Error on `up -d`: <a href="https://gist.github.com/travislbrundage/34e56e56285654e913234a7759139205" target="_blank">https://gist.github.com/travislbrundage/34e56e56285654e913234a7759139205</a></div><div><br></div><div>Maybe I did something wrong that way, or my network was too slow (shouldn't be, but who knows), but wanted to document it just in case.</div><div><br></div><div>Using the regular docker setup in GitHub brings up GeoNode successfully, but tests hit this celery error (before, I was running into this issue: <a href="https://github.com/GeoNode/geonode/issues/5196" target="_blank">https://github.com/GeoNode/geonode/issues/5196</a>).</div><div><br></div><div>Using the SPC GeoNode docker setup has the same results as above.</div><div><br></div><div>Finally, using the local installation and paver setup did get GeoNode up successfully and the tests are working much better.</div><div><br></div><div>Thanks to everyone who helped me on Gitter, I appreciate it a lot. Now I can successfully test the changes I make to improve test speed and coverage which is great. Expect some commits and PRs from me next week. :)</div><div><br></div><div>Cheers all,</div><div>Travis</div></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 6, 2019 at 11:00 PM Travis Brundage <<a href="mailto:travislbrundage@gmail.com" target="_blank">travislbrundage@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Just following up on this, I realized the tests were stopping because I was passing the --failfast option when running them.<div><br></div><div>Still, this error affects the overwhelming majority of GeoNode's unit tests for me, so it's a blocker for me for running them. Changing the celery and django-celery-beat versions did not have any affect.</div><div><br></div><div>Has anyone else seen this error or am I doing something wrong? Perhaps there is a config option for celery I need to set?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 31, 2019 at 12:13 PM Travis Brundage <<a href="mailto:travislbrundage@gmail.com" target="_blank">travislbrundage@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hey all,<br></div><div><br></div><div>So I have been struggling a bit with figuring out how to run GeoNode's test suite properly, and I've also run into multiple problems. I am still not entirely clear on what I am supposed to be doing to run GeoNode's tests, but here is what I have done:</div><div><br></div><div>In .env: SET_DOCKER_ENV=development</div><div><br></div><div>Starting GeoNode docker: docker-compose -f docker-compose.async.yml -f docker-compose.development.yml up -d</div><div><br></div><div>Configuring the system for running tests:</div><div>1. Install python 2.7 on the system. Checking python version is 2.7.x: python --version</div><div>2. Create a python virtual environment for GeoNode dev</div><div>2a. Install virtualenv: sudo apt-get install python-virtualenv</div><div>2b. Create Python2.7 virutalenv: virtualenv -p `which python2.7` geonode-env</div><div>2c. Activate the environment: source geonode-env/bin/activate</div><div>3. In geonode/ install the requirements: pip install -r requirements.txt</div><div>4. Configure GDAL bindings (reference <a href="https://mothergeo-py.readthedocs.io/en/latest/development/how-to/gdal-ubuntu-pkg.html" target="_blank">https://mothergeo-py.readthedocs.io/en/latest/development/how-to/gdal-ubuntu-pkg.html</a> ):</div><div>    sudo add-apt-repository ppa:ubuntugis/ppa && sudo apt-get update</div><div>    sudo apt-get update</div><div>    sudo apt-get install gdal-bin</div><div>    sudo apt-get install libgdal-dev</div><div>    export CPLUS_INCLUDE_PATH=/usr/include/gdal</div><div>    export C_INCLUDE_PATH=/usr/include/gdal</div><div>    pip install GDAL==2.4.2</div><div><br></div><div>Finally, running tests: coverage run --branch --source=geonode manage.py test <geonode.app.tests> --noinput</div><div>(replacing with app I want to test)</div><div><br></div><div>Btw, I added this to our running document of notes for GeoNode, but please point out if I am doing something incorrectly: <a href="https://docs.google.com/document/d/1h4xhXTejSkfqmEQmzl6CkcySc9_COZldm_5qvFI3fB8/" target="_blank">https://docs.google.com/document/d/1h4xhXTejSkfqmEQmzl6CkcySc9_COZldm_5qvFI3fB8/</a></div><div><br></div><div>For a while this was mostly working (just slow, some problems in the setUp causing that). However, now I have run into a blocking issue. I don't know what I have done or changed other than pulling recent commits. Celery is complaining about an improperly configured file-system backend.</div><div><br></div><div>    ImproperlyConfigured: The configured path for the file-system backend does not work correctly, please make sure that it exists and has the correct permissions.</div><div><br></div><div>Full stack trace: <a href="https://gist.github.com/travislbrundage/81fe15cf06c5179e9b8cf16060f98d5c" target="_blank">https://gist.github.com/travislbrundage/81fe15cf06c5179e9b8cf16060f98d5c</a></div><div><br></div><div>Every test I run has the same result. Anyone have pointers for what this might mean is wrong with my GeoNode?</div>
</blockquote></div>
</blockquote></div>