RE: [Arches] ElasticSearch in Production
Hi Adam, not sure about 1. Generally the ES development team gives ample warning when they make backwards incompatible fixes. From what I can see, most of the settings in the elasticsearch.yml file make sure that ES is running locally and with only one leg. ES is a very powerful system, but to use it to the fullest of it's capabilities, you will need to learn how to configure it a bit. We eg. have several ES nodes running (on different machines, separated froom the webservers) as a high availability cluster. That does involve some more configuration work. One thing to be wary of, with the default ES config (unless that has been changed by now), the nodes have a tendency to go and look for each other. I remember when my ES instance started syncing with a colleagues (without us realising). Easiest way to prevent that is to give your cluster a dedicated name (cluster.name in the config). You might also want to install the elasticsearch-head plugin that Arches also installs. I don't think any other plugins are needed at this moment. Anyway, in my opinion, running ES from within Arches is fine for development purposes. But for production I'd prefer to separate the two. Cheers, Koen Van: archesproject@googlegroups.com [archesproject@googlegroups.com] namens Adam Cox [mr.adam...@gmail.com] Verzonden: maandag 11 mei 2015 18:39 Aan: archesproject@googlegroups.com Onderwerp: [Arches] ElasticSearch in Production Hello all. I have successfully installed ElasticSearch on Ubuntu outside of the arches environment so it will run as a service, and it was far easier than I was expecting... a pleasant surprise that makes me wary. To do so I began with a fresh Amazon EC2 instance, and I followed the normal arches3 installation steps. However, instead of running python manage.py packages -o setup_elasticsearch (which installs elasticsearch within the app itself) I followed these stepshttp://www.elastic.co/guide/en/elasticsearch/reference/current/setup-repositories.html from the ElasticSearch webpage to install the current APT distribution of ElasticSearch on Ubuntu. After that installation, I was able to run ES as a service, and after finishing the arches-hip installation, was able to use the database and add/search resources (it works!). I have two questions: 1. I see the current ES repo is for version 1.5 instead of 1.4 which is used by arches3. Will this cause problems later? I assume I could install 1.4 instead of 1.5 if necessary. 2. I have not changed any of the default elasticsearch config settings. I see that the arches3 development installation has its own custom elasticsearch.yml file. Would it be advisable to change any default elasticsearch config settings on this installation to match those in the arches3 elasticsearch.yml file? -- -- To post, send email to archesproject@googlegroups.com. To unsubscribe, send email to archesproject+unsubscr...@googlegroups.com. For more information, visit https://groups.google.com/d/forum/archesproject?hl=en --- You received this message because you are subscribed to the Google Groups Arches Project group. To unsubscribe from this group and stop receiving emails from it, send an email to archesproject+unsubscr...@googlegroups.commailto:archesproject+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- -- To post, send email to archesproject@googlegroups.com. To unsubscribe, send email to archesproject+unsubscr...@googlegroups.com. For more information, visit https://groups.google.com/d/forum/archesproject?hl=en --- You received this message because you are subscribed to the Google Groups Arches Project group. To unsubscribe from this group and stop receiving emails from it, send an email to archesproject+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Arches] Re: Signing in
Dear Piyush Welcome to the Arches community! I had a chance to look at the Building Mapping component of your project in Gujarat http://dicrc.in/Building-Mapping and can see that there is a vast wealth of traditional buildings that are being recorded. It will be great to see Arches used for their inventory. Best wishes, David Myers Arches Project Team From: archesproject@googlegroups.com archesproject@googlegroups.com on behalf of Piyush Shah piyushs...@gmail.com Sent: Saturday, May 9, 2015 5:43 AM To: edmund@english-heritage.org.uk; David Myers; archesproject@googlegroups.com Subject: [Arches] Re: Signing in Hi Everyone, I am Piyush Shah working in Design Innovation Craft Resource Center, CEPT University Ahmedabad (India) as a researcher currently I am working on Building Craft Lab project in Gujarat. Under that project we required to document and create a inventory of traditional vernacular buildings of Gujarat. For that I want to use arches as a inventory management app. I had started exploring Arches 3.0 and I had join this community for know more about it. Thank you Regards, Piyush On Wednesday, 13 March 2013 15:59:01 UTC+5:30, Edmund Lee wrote: Hello all, ... and welcome in particular to those who have joined the Arches Discussion Forum recently. This online group was initially set up for the project team, and has just recently been opened up as the public, so some of us haven't met before. How about we all share a bit of background, just like we would if we were meeting in the real world? If that sounds good to you, reply to this thread and share with the group some or all of the following: * what is your interest in Arches? * where in the world are you working? and, just to make it a bit more fun, * what can you see out of the window? Is there any heritage in your view? I look forward to getting to know everyone a bit better! Ed -- -- To post, send email to archesproject@googlegroups.com. To unsubscribe, send email to archesproject+unsubscr...@googlegroups.com. For more information, visit https://groups.google.com/d/forum/archesproject?hl=en --- You received this message because you are subscribed to the Google Groups Arches Project group. To unsubscribe from this group and stop receiving emails from it, send an email to archesproject+unsubscr...@googlegroups.commailto:archesproject+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- -- To post, send email to archesproject@googlegroups.com. To unsubscribe, send email to archesproject+unsubscr...@googlegroups.com. For more information, visit https://groups.google.com/d/forum/archesproject?hl=en --- You received this message because you are subscribed to the Google Groups Arches Project group. To unsubscribe from this group and stop receiving emails from it, send an email to archesproject+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Arches] Re: Arches 3.0 released!
Hi Adam, My install also works (http://cimbre.eu), I'm starting the inventory and the resulting customization this week I hope. Maybe we'll have the opportunity to exchange some views about the new challenges ahead. sexta-feira, 8 de Maio de 2015 às 17:16:47 UTC+1, Adam Cox escreveu: Glad it was helpful. Regarding versions of geos: I never touched any version numbers and have not had any problems since running the tar commands with sudo. On Thursday, May 7, 2015 at 5:49:21 AM UTC-5, David Lopes wrote: Hi Adam, Everything works as intended, thanks a lot. About configuring elastic search for production I will also look into it. Best regards, DL quarta-feira, 6 de Maio de 2015 às 19:55:49 UTC+1, Adam Cox escreveu: My apologies. I see that in my apache installation the file in step 3 is 000-default.conf, not 000-default. Just in case that was causing any confusion. On Wednesday, May 6, 2015 at 12:34:16 PM UTC-5, Adam Cox wrote: David, my understanding of the wsgi configuration, which is hazy and only about 3 weeks old, is that the solitary / in the middle of this line: WSGIScriptAlias / /home/ubuntu/Projects/crip/wsgi.py tells apache to serve the Django app directly from localhost/, so that your Arches map page url, for example, will be localhost/map. This guide has a better explanation: https://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide. On Wed, May 6, 2015 at 11:37 AM, David Lopes cim...@gmail.com wrote: Hi again, About the ubuntu_trusty_setup.sh that A. Cox sent, I believe that in lines 40 and 41 the error from the original script persists because we're trying to install geos -3.4.2 and not geos-3.3.8. What I meant by root privileges was opening a folder as root and then a terminal from there. Regarding the apache wgsi configuration, I made the recommended changes without any results yet (yes, I restarted apache and cleared the browser's history). To where exactly is the the site's beginning being redirected? no index file is required in the DocumentRoot of apache? Regards, quarta-feira, 6 de Maio de 2015 às 15:52:50 UTC+1, Adam Cox escreveu: Splendid, thanks for that Koen. I'll let you know when I able to get that working. On Wed, May 6, 2015 at 9:44 AM, Van Daele, Koen koen.vanda...@rwo.vlaanderen.be wrote: Hi Adam, running ElasticSearch as a daemon is normally very straightforward. Just follow instructions like these: https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-4-on-ubuntu-14-04 and then you can control it with: $ sudo service elasticsearch start $ sudo service elasticsearch stop $ sudo service elasticsearch restart It will automatically run, even after a reboot of your server. Cheers, Koen Van: archesproject@googlegroups.com [archesproject@googlegroups.com] namens Adam Cox [mr.adam...@gmail.com] Verzonden: woensdag 6 mei 2015 16:36 Aan: David Lopes CC: archesproject@googlegroups.com Onderwerp: Re: [Arches] Re: Arches 3.0 released! Hi David, I also first tried installing those as the root user. Not sure if that's exactly what you mean by root privileges, or if you just mean with sudo, but when I did so as the root user (su root), the installation worked but I also had to run later commands from the root user account, and felt that that was not a great precedence to set. It seemed more prudent to do everything as the ubuntu user, hence the addition of the sudo commands to the ubuntu_trusty_setup.sh script. As for setting up with Apache, here are the steps that I recorded when I made a successful test of that process: 1. get apache2 and the mod -- $: sudo apt-get install apache2 -- $: sudo apt-get install libapache2-mod-wsgi 2. edit main apache2 config file -- $: sudo nano /etc/apache2/apache2.conf add the top arches app directory (crip is the name of my app): Directory /home/ubuntu/Projects/crip/ Options Indexes FollowSymLinks AllowOverride None Require all granted /Directory 3. edit the sites-enabled conf file: -- $: sudo nano /etc/apache2/sites-enabled/000-default under VirtualHost *:80 add: #create daemon process: make path to app and to virtualenv python WSGIDaemonProcess arches python-path=/home/ubuntu/Projects/crip:/home/ubuntu/Projects/ENV/lib/python2.7/site-packages #make group for app WSGIProcessGroup arches #path to app wsgi.py file WSGIScriptAlias / /home/ubuntu/Projects/crip/wsgi.py 4. restart apache -- $: sudo service apache2 restart reference: https://www.digitalocean.com/community/tutorials/how-to-run-django-with-mod_wsgi-and-apache-with-a-virtualenv-python-environment-on-a-debian-vps Hope that works for you! I'm also hoping to set up elasticsearch as a daemon process so that it will run without having a terminal open, but have not attempted that yet. This is where