Re: [Arches] Re: Help with design - server RAM issue?

2019-05-28 Thread Colin Wu
  Hi Adam,I am working Darryl and I was able to create some new nodes in the DB work only 1G RAM. The issue Darryl was running into was that elasticsearch was not restarting when the server got rebooted.   Seems, at least with Ubuntu 18, simply putting the command to start elasticsearch in rc.local does not work. elasticsearch says it refuses to run with root credentials. Making the elasticsearch script SUID some other non-privileged user doesn't help. “Waste no more time arguing what a good man should be, just be one.” -- Marcus Aurelius   From: mr.adam...@gmail.comSent: May 28, 2019 14:44To: ndevol...@getty.eduCc: archesproject@googlegroups.comSubject: Re: [Arches] Re: Help with design - server RAM issue?  Hi Nina and Darryl,Thanks for pointing out the broken link in the documentation. I'll put in a note to fix it.At the bottom of this section https://arches.readthedocs.io/en/stable/arches-and-elasticsearch/#running-elasticsearch, you'll see the notes that the link originally linked to, which mention how you can direct elasticsearch to use just 1gb memory on startup. Really, I haven't done a LOT of testing with this configuration, so I'm unsure how well it will work. But when I tested in the past it was sufficient for viewing the front-end, etc. but I would expect that search/import-related operations will be compromised.Let me know how it goes! If things still don't work, I would personally be inclined to remove that note from the documentation.AdamOn Tue, May 28, 2019 at 12:32 PM Nina Devolder  wrote:Hi Darryl,Were you able to find a solution? If not, let me see if someone in the group can follow up.Best,Nina-Arches Project TeamOn Saturday, May 25, 2019 at 12:13:29 AM UTC-7, Darryl M Tynen wrote:Hi all,Hoping I can get some assistance. Arches was installed for me by a developer on Ubuntu on a VPS with 1GB of RAM. When trying to begin design by creating my first Class, I hit save and get the spinning wheel of death. Per the installation documentation, it is possible to install and then design using only 1GB RAM as long as following Note 1 (https://arches.readthedocs.io/en/stable/requirements-and-dependencies/arches-and-elasticsearch.html#notes). Unfortunately, this link is dead so I cannot check if I have everything set correctly.I'm no IT expert so any advice would be gratefully received.Thanks,Darryl



-- 
-- 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/archesproject/0121cd6a-2f9d-4f84-be96-7805a566850a%40googlegroups.com.




-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send email to archesproject+unsubscr...@googlegroups.com. For more information, visithttps://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.
To view this discussion on the web visit https://groups.google.com/d/msgid/archesproject/CAGYBTasenWkeZYV4kQbVtYVXHUfxqsB5xeXPppOFv%3DxTUyzuew%40mail.gmail.com.




-- 
-- 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/archesproject/rg0a5rojfkrf2pc25c5cuaqm.1559072125727%40colinwu.ca.


Re: [Arches] Re: Where is django configuration file my_project.settings

2019-05-16 Thread Colin Wu
  Thanks Adam. Aside from adding the 0.0.0.0:8000, one must also modify the AMLOWED_HOSTS parameter in settings.py toALLOWED_HOSTS=["*"]“Waste no more time arguing what a good man should be, just be one.” -- Marcus Aurelius   From: mr.adam...@gmail.comSent: May 16, 2019 14:37To: archesproject@googlegroups.comSubject: [Arches] Re: Where is django configuration file my_project.settings  Hi Colin, trypython manage.py runserver 0.0.0.0:8000(You can shorted 0.0.0.0 to just 0 in my experience.) You should then be able to access through a browser at :8000, as long as port 8000 is open.The message you see about settings is referring to my_project/settings.py.my_project.settings refers to that file as an imported python module, not as a "file" per se. In other words, it sounds like the dev server is working properly.AdamOn Friday, May 10, 2019 at 8:47:34 AM UTC-5, Colin Wu wrote:Hi all,I am running Arches on a Ubuntu server (so no GUI, and therefore no http://127.0.0.1:8000  ). How would I tell the dev server to allow connections from external hosts? Running "python manage.py runserver" displays a message saying "Django version 1.11.15, using settings from 'my_project.settings'", but I can not find the file my_project.settings anywhere on my system.Thanks.



-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send email to archesproject+unsubscr...@googlegroups.com. For more information, visithttps://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.
To view this discussion on the web visit https://groups.google.com/d/msgid/archesproject/1abeb35a-e0d1-4b50-8e35-560583d6dea2%40googlegroups.com.




-- 
-- 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/archesproject/j4s682ahneisqi2rmnuvvm4f.1558032982071%40colinwu.ca.


[Arches] Re: New install of 4.4.1 fails to install Elasticsearch

2019-05-05 Thread Colin Wu
Just a follow-up:

I did try the install again on a fresh Ubuntu 16.04 VM and my last 
observation (at the bottom of this thread) was incorrect: You must upgrade 
pip (to version 19.1) AFTER activating the virtual environment (between 
steps 3 and 4 of the installation instructions). Seems no matter what 
version of pip you're running before activating the virtual environment, 
the virtual environment starts with the old version.

On Wednesday, 1 May 2019 22:10:49 UTC-4, Colin Wu wrote:
>
> Hi all,
>
> I am trying to install Arches on a Ubuntu 16.04 desktop and python 2.7.12. 
> Everything seems to go swimmingly until I reach the "Install Elasticsearch 
> with Arches" section!
>
> Running the suggested command (python manage.py es install) gives me 
> errors that ultimately result from the script not being able to find a 
> captcha module (ImportError: No module named captcha).
>
> I searched the forum and found (old) posts about not finding the captcha 
> module during an upgrade from 4.0.1 to 4.1.0. Tried the suggestions there 
> but no joy.
>
> I note that 4.4.1 was only released March 29 (?) so maybe the installation 
> procedure hasn't been sufficiently debugged yet?
>
> Thanks for any help.
>

-- 
-- 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: New install of 4.4.1 fails to install Elasticsearch

2019-05-02 Thread Colin Wu
I think I've figured it out. *The trick is to ensure you upgrade pip (to 
ver 19.1) BEFORE creating the virtual environment (step 2 in the install 
procedure).*

So, Step 1.1 - do 'pip install --upgrade pip'

I did this doing this last install for Adam and was able to install 
Elasticsearch. Haven't gone beyond that yet, though ... :)


On Thursday, 2 May 2019 22:16:35 UTC-4, Colin Wu wrote:
>
> Adam,
>
> Here you go... 
>
> On Thursday, 2 May 2019 22:05:57 UTC-4, Adam Cox wrote:
>>
>> Hi Martha and Colin, ok it sounds like something is really failing in the 
>> initial installation of arches into the virtual environment, so nothing to 
>> do with the elasticsearch command itself. All of those modules should be 
>> installed during the one pip command.
>>
>> Would either of you be able to try this out with a fresh virtual 
>> environment and then share the log here? Use
>>
>> pip install arches --no-binary :all: --log pipinstall.log
>>
>> And then we can take a look at the log file.
>>
>> Thanks,
>> Adam
>>
>> On Thu, May 2, 2019 at 8:39 PM Martha S  wrote:
>>
>>> I tried doing a re-install of python, but that didn't change anything. I 
>>> have now pip installed the dateutil library at Ryan's suggestion, which 
>>> then brought up a fail on edtf. I'll go down this path a little way, but 
>>> there has to be an easier way to get back on track, right?
>>>
>>> Martha
>>>
>>> On Thursday, May 2, 2019 at 5:48:52 PM UTC-7, Martha S wrote:
>>>>
>>>> I redid the pip install of everything after the recaptcha line; some 
>>>> were already present and one failed -- pycryptodome, which you can see in 
>>>> the screen shot below.
>>>>
>>>> Now the problem is that there is no python dateutil library to import. 
>>>> We had no problems with the initial install or the upgrade of python. I 
>>>> sure hope we don't have to start anew. 
>>>>
>>>> Martha
>>>>
>>>> [image: No dateutil.jpg]
>>>>
>>>>
>>>> On Thursday, May 2, 2019 at 4:41:05 PM UTC-7, Colin Wu wrote:
>>>>>
>>>>> Martha,
>>>>>
>>>>> I think you need to believe in the virtual environment to install 
>>>>> modules, otherwise the new modules won't be seen by the virtual env.
>>>>>
>>>>> “Waste no more time arguing what a good man should be, just be one.” 
>>>>> -- Marcus Aurelius
>>>>> *From:* marth...@lacity.org
>>>>> *Sent:* May 2, 2019 19:22
>>>>> *To:* arches...@googlegroups.com
>>>>> *Subject:* [Arches] Re: New install of 4.4.1 fails to install 
>>>>> Elasticsearch
>>>>>
>>>>> Adam,
>>>>>
>>>>> Unfortunately, the pip install of captcha changed nothing. What do you 
>>>>> recommend next?
>>>>>
>>>>> Thanks,
>>>>> Martha
>>>>>
>>>>> [image: No Captcha2.jpg]
>>>>>
>>>>>
>>>>> On Thursday, May 2, 2019 at 2:15:36 PM UTC-7, mr.a...@gmail.com wrote:
>>>>>>
>>>>>> Here is an example on ubuntu 16.04, python 2.7.12:
>>>>>>
>>>>>>
>>>>>> I did get an error the first time I tried without upgrading pip. In 
>>>>>> that case, I got a "no module named django" error when trying to create 
>>>>>> the 
>>>>>> project, even though the installation of Arches looked as if it had gone 
>>>>>> smoothly and the virtual env was activated.
>>>>>>
>>>>>> Also note that I used --no-cache-dir here in the pip install of 
>>>>>> arches because this server has a small amount of memory and was crashing 
>>>>>> with a "MemoryError" without that argument. However, --no-cache-dir is 
>>>>>> not 
>>>>>> generally required.
>>>>>>
>>>>>> Adam
>>>>>>
>>>>>>
>>>>>> On Thursday, May 2, 2019 at 3:59:24 PM UTC-5, mr.a...@gmail.com 
>>>>>> wrote:
>>>>>>>
>>>>>>> Ok, I was able to get past this step on my end, and first thing I 
>>>>>>> think you should check: is your virtual environment activated? Your 
>>>>>>> command 
>>>>>>> li