Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-11-08 Thread Lawrence Goh
does the import_graphs >>>>>>>>>> after creating the database, it has this error. >>>>>>>>>> >>>>>>>>>> arches | FATAL: Invalid Username specified. Please >>>>>>>>>> check the

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-11-08 Thread Vincent Meijer
chemes/arches_concept_scheme.rdf" >>>>>>>>> >>>>>>>>> Any idea where in the code is going nuts? :) >>>>>>>>> >>>>>>>>> Thanks. >>>>>>>>> >>>>>>>>>

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-11-06 Thread Lawrence Goh
gt;>> On Fri, Oct 26, 2018 at 4:03 PM Lawrence Goh >>>>>>>> wrote: >>>>>>>> >>>>>>>>> Hi Vincent, >>>>>>>>> >>>>>>>>> Been digging further into the postgres libs. It seems the dsn and >>>>>>>

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-11-05 Thread Lawrence Goh
t;>>>> In case I am confusing :) When you browse the container, you would >>>>>>>> be landed into \web_root\arches. Back down, it would be ENV, arches, >>>>>>>> folders. >>>>>>>> >>>

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-11-04 Thread Lawrence Goh
;>>>> Thanks. >>>>>>> >>>>>>> Regards, >>>>>>> Lawrence >>>>>>> >>>>>>> >>>>>>> On Thu, Oct 25, 2018 at 5:30 AM Vincent Meijer >>>>>>> wrote:

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-11-04 Thread Lawrence Goh
gt;>>>> Can you show us your current settings? >>>>>>> >>>>>>> There is also the option 'Enforce SSL Connection' under 'SSL >>>>>>> Settings' in your Azure DB. Is this set to Disabled? >>>>>>

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-11-02 Thread Vincent Meijer
e option 'Enforce SSL Connection' under 'SSL >>>>>> Settings' in your Azure DB. Is this set to Disabled? >>>>>> >>>>>> And can you connect to it from your local machine if you whitelist >>>>>> y

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-31 Thread Lawrence Goh
Been going everywhere and >>>>>> sadly to nowhere. We have set up a Azure Database for Postgresql. We >>>>>> could get the docker compose to create the DB. But the arches container >>>>>> failed due to some weird network restriction. >

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-30 Thread Vincent Meijer
255.255. The "Allow access to Azure services" is on. >>>> >>>> Any ideas? >>>> >>>> Thanks. >>>> >>>> Regards, >>>> Lawrence >>>> >>>> On Fri, Oct 19, 2018 at 10:32 PM Vincent Meije

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-25 Thread Lawrence Goh
t 10:32 PM Vincent Meijer >>> wrote: >>> >>>> Yeah it's a weird choice from Microsoft to do things differently and >>>> arches wasn't prepared for that @... >>>> >>>> >>>> >>>> On Fri, 19 Oct 2018, 1

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-25 Thread Lawrence Goh
ncent Meijer >> wrote: >> >>> Yeah it's a weird choice from Microsoft to do things differently and >>> arches wasn't prepared for that @... >>> >>> >>> >>> On Fri, 19 Oct 2018, 11:23 larrygoh84, wrote: >>> >&

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-24 Thread Vincent Meijer
that @... >> >> >> >> On Fri, 19 Oct 2018, 11:23 larrygoh84, > >> wrote: >> >>> using 4.3.1. does this mean its a known issue? it doesn't handle the @ >>> well? :) >>> >>> ---- Original message >&g

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-24 Thread Vincent Meijer
the @ >>> well? :) >>> >>> -------- Original message >>> From: Vincent Meijer > >>> Date: 10/19/18 10:02 PM (GMT+12:00) >>> To: Arches Project > >>> Subject: Re: [Arches] Re: Hosting Arches on Azure as a Web App for &

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-23 Thread Lawrence Goh
; From: Vincent Meijer >> Date: 10/19/18 10:02 PM (GMT+12:00) >> To: Arches Project >> Subject: Re: [Arches] Re: Hosting Arches on Azure as a Web App for >> Containers >> >> Which version of Arches are you using? >> I created a PR (for #4099) for this ea

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-19 Thread Vincent Meijer
ge > From: Vincent Meijer > Date: 10/19/18 10:02 PM (GMT+12:00) > To: Arches Project > Subject: Re: [Arches] Re: Hosting Arches on Azure as a Web App for > Containers > > Which version of Arches are you using? > I created a PR (for #4099) for this earlier, but it

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-19 Thread larrygoh84
using 4.3.1.  does this mean its a known issue? it doesn't handle the @ well? :) Original message From: Vincent Meijer Date: 10/19/18 10:02 PM (GMT+12:00) To: Arches Project Subject: Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers Which versi

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-19 Thread Vincent Meijer
Which version of Arches are you using? I created a PR (for #4099) for this earlier, but it was after 4.3.1 was released. Until the next release you could use the master branch (there are docker images built for that in Docker Hub for every new push: https://hub.docker.com/r/archesproject/arche

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-18 Thread larrygoh84
:00) To: Vincent Meijer Cc: Arches Project Subject: Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers Hi Vincent, Yups.  Was poking around the codes yesterday and had a go with removing the staticfiles_storage and all went well :) Thanks. Regards,Lawrence On Thu, Oct 18, 2018

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-18 Thread Lawrence Goh
Hi Vincent, Had you faced this issue before? We are now trying to connect to Azure DB for Postgresql. The container log just freezes at Testing if database server is up.. Is it senstive to the @? thanks. On Friday, October 19, 2018 at 3:03:47 PM UTC+13, Lawrence Goh wrote: > > Hi Vincent, >

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-18 Thread Lawrence Goh
Hi Vincent, Yups. Was poking around the codes yesterday and had a go with removing the staticfiles_storage and all went well :) Thanks. Regards, Lawrence On Thu, Oct 18, 2018 at 9:00 PM Vincent Meijer wrote: > If I'm understanding you correctly, you want to serve static files the > 'standard

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-18 Thread Vincent Meijer
If I'm understanding you correctly, you want to serve static files the 'standard' way (directly from the Arches app using Whitenoise) and serve uploaded files from Azure Blob Storage? I do the same at the moment. For that, use: DEFAULT_FILE_STORAGE='storages.backends.azure_storage.AzureStorage'

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-17 Thread Lawrence Goh
Hi Vincent, Thanks for that link. Will need to figure to adapt it for Azure use. Besides that, I noticed it loads all the static files into the blob. Was thinking to have the static files be in the container. Only push the uploaded 'media files' into the blob. I guess it doesn't do that right

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-17 Thread Vincent Meijer
The collectfast package looks promising: https://stackoverflow.com/questions/16805232/faster-alternative-to-manage-py-collectstatic-w-s3boto-storage-backend-to-syn -- -- To post, send email to archesproject@googlegroups.com. To unsubscribe, send email to archesproject+unsubscr...@googlegroups.

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-17 Thread Vincent Meijer
I haven't, but now that you mention that it sounds familiar. I did notice that the collectstatic method takes very long when using blob storage for static files, I think sometimes even 30 minutes or so when running locally on my laptop. I think it has to do with the fact that it rechecks all the ex

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-17 Thread Lawrence Goh
Hi Vincent, I saw the post on static files with azure storage. Have you come across where the first time it loads all the files in the blob, but the container fails/gets stuck on the second time when it does the static files? Thanks. Regards, Lawrence On Tue, Oct 16, 2018, 10:46 PM Vincent Mei

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-16 Thread Vincent Meijer
Sounds familiar, the loading of static files took a long time. Once they are cached everything is fine, but an initial page load of 2 minutes was a bit much in my opinion :) Azure CDN might help with that. Anyway, good luck and keep us posted! Vincent On Monday, 15 October 2018 22:58:48 UTC+2,

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-15 Thread Lawrence Goh
Hi Vincent, We have yet to populate data within. So couldn't do much search though. However, I noticed on some devices it would be slow first time, while some just in a flash. Once it is loaded, the following sessions is like a breeze. Now we are trying to create a blob storage for the media fi

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-15 Thread Vincent Meijer
How is Web App's performance for you? How long does a GET request of e.g. the /search page take? Best, Vincent -- -- To post, send email to archesproject@googlegroups.com. To unsubscribe, send email to archesproject+unsubscr...@googlegroups.com. For more information, visit https://groups.goog

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-11 Thread Vincent Meijer
Excellent news, glad to hear it! On Fri, 12 Oct 2018, 02:41 Lawrence Goh, wrote: > Hi Vincent, > > Thank you so much for all the help and information. I finally got it > running on Azure. Adding on, I have changed the ports back to 8000:8000. > > Thanks again. > > Regards, > Lawrence > > On Th

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-11 Thread Lawrence Goh
Hi Vincent, Thank you so much for all the help and information. I finally got it running on Azure. Adding on, I have changed the ports back to 8000:8000. Thanks again. Regards, Lawrence On Thu, Oct 11, 2018 at 8:11 PM Vincent Meijer wrote: > In your case the Azure Web App takes on the role

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-11 Thread Vincent Meijer
In your case the Azure Web App takes on the role of Nginx, so you don't need that. Gunicorn is already built into the Arches image (see the command in the entrypoint.sh), which is going to talk to your Web App. Regarding whitenoise, you don't need to set STATIC_ROOT, as it is already set for

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-10 Thread Lawrence Goh
Hi Vincent, I found more info on gunicorn and nginx. it seems they need each other. https://stackoverflow.com/questions/12800862/how-to-make-django-serve-static-files-with-gunicorn What do you think? Thanks. Regards, Lawrence On Thu, Oct 11, 2018, 3:58 PM Lawrence Goh wrote: > Hi Vincent,

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-10 Thread Vincent Meijer
Ah, I think I know what the problem is. Didn't think of this before, but Django does not want to serve static files (css, js, images, etc) when in PROD mode (and DEBUG=False). There are two routes I can think of right now: 1. Set up White Noise to make Django serve static files (http://whiteno

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-09 Thread Lawrence Goh
Hi Vincent, I guess I celebrated too early. I removed the cache and now the site on port 80 is broken as the images and JS are not downloaded. Any idea on this? Thanks. Regards, Lawrence On Wed, Oct 10, 2018 at 2:36 PM Lawrence Goh wrote: > Hi Vincent, > > Thanks a lot of the suggestion. I

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-09 Thread Lawrence Goh
Hi Vincent, Thanks a lot of the suggestion. I tried the suggestion on dumping nginx and changing the port number but I kept couchdb as it is though. It is working as a web app for containers using multi-container. Will put the single container approach on the pipeline :) Thanks again! Regards

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-09 Thread Vincent Meijer
No worries, I come from a .net environment myself. As for the App Service, I realized that I set up Postgres and Elasticsearch separately, that is why I was able to use the Single Container approach (see below for future reference). I just remembered I wasn't able to get the docker-compose app

Re: [Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-09 Thread Lawrence Goh
Hi Vincent, Thanks for the reply. I am not so well verse in the web development in open source space. Last I knew something related was Apache :) Pardon my knowledge as I am from .net. Some help would be very much appreciated to implement this. Based on the docker compose file, we have these c

[Arches] Re: Hosting Arches on Azure as a Web App for Containers

2018-10-09 Thread Vincent Meijer
Hi Lawrence, The Azure App Service is meant to take over everything but the app itself, so running it with an nginx container is not necessary. I used the App Service for a short while and only could get it to work when using the single container approach. That being said, I found the App Ser