Continuing refresh on accessing Aggregate

Hello!
After having successfully installed ODK Aggregate on a testing server and
testing for a bit, I got a go ahead to implement it in production. Since I
am more comfortable with Virtual Machines, I decide to install it in a
VirtualBox instance of Ubuntu Server 16.04. *I did not have a live IP or a
domain for this VM so I decided to use Reverse Proxy from a different
machine which has both a live IP as well as a domain. *In my testing
environment I had done a apache to tomcat reverse proxy (on same machine)
to access aggregate that was working flawlessly.

The configuration for reverse proxy that I have used is as outlined
in https://www.leaseweb.com/labs/2014/12/tutorial-apache-2-4-transparent-reverse-proxy/

On live IP machine: (Ubuntu 14.04)
<VirtualHost *:80>
ServerName
DocumentRoot /var/www/html
ProxyPreserveHost On
ProxyPass /app http://192.168.196.226:8080
ProxyPassReverse /app http://192.168.196.226:8080

And

*<VirtualHost 192.168.196.226:80> *(I also tried with port 8080)
ServerName bhuvan-gurukul.nrsc.gov.in
DocumentRoot /var/www/html

I have made no proxy configurations on the machine with Aggregate.

When I try to access the URL designated for Aggregate, I am redirected
properly but I get a blinking set of Aggregate icons and following repeated
messages in Chrome developer options:

POST http:///app/collect/aggregateui/securityservice 500 ()

with alternating calls to:

aggregateui-0.js:3052

aggregateui-0.js:2984

I have a nagging doubt that this has something to do with the proxy setup
since no configurations have been made on the Aggregate server regarding
proxy. I did try a couple of times in running the Aggregate setup and might
have fudged up in in username (I might have chosen different names in
different attempts). I can attempt a clean reinstall if that could be the
culprit. I don't know if I can view any logs anywhere regarding this but
can get a copy if told what to look for. I can also provide the url to my
server if needed.

Can anyone please point me in the right direction to shoot this trouble.

Cheers!

Gaurav

Hi Gaurav,

It's been a while since I tried to proxy anything with Apache, but I
think the problem is almost certainly the proxy config.

http://www.enrenou.cat/index.php/2016/02/01/odk-apache-mod-proxy/?lang=en
has a config that might work for you. You could also try searching the
mailing list for posts on proxing
https://groups.google.com/forum/#!searchin/opendatakit/odk$20aggregate$20reverse$20proxy|sort:relevance
for other hints.

Oh, and finally, when you run the Aggregate installer, it will ask you
for the fully-qualified domain name. I'm not 100% sure, but in this
case, you should put the external domain name.

Good luck,

Yaw

ยทยทยท On Wed, May 17, 2017 at 9:02 AM, Gaurav Kumar wrote: > Hello! > After having successfully installed ODK Aggregate on a testing server and > testing for a bit, I got a go ahead to implement it in production. Since I > am more comfortable with Virtual Machines, I decide to install it in a > VirtualBox instance of Ubuntu Server 16.04. I did not have a live IP or a > domain for this VM so I decided to use Reverse Proxy from a different > machine which has both a live IP as well as a domain. In my testing > environment I had done a apache to tomcat reverse proxy (on same machine) to > access aggregate that was working flawlessly. > > The configuration for reverse proxy that I have used is as outlined in > https://www.leaseweb.com/labs/2014/12/tutorial-apache-2-4-transparent-reverse-proxy/ > > On live IP machine: (Ubuntu 14.04) > > ServerName > DocumentRoot /var/www/html > ProxyPreserveHost On > ProxyPass /app http://192.168.196.226:8080 > ProxyPassReverse /app http://192.168.196.226:8080 > > > And > > (I also tried with port 8080) > ServerName bhuvan-gurukul.nrsc.gov.in > DocumentRoot /var/www/html > > > I have made no proxy configurations on the machine with Aggregate. > > When I try to access the URL designated for Aggregate, I am redirected > properly but I get a blinking set of Aggregate icons and following repeated > messages in Chrome developer options: > > POST http:///app/collect/aggregateui/securityservice 500 () > > with alternating calls to: > aggregateui-0.js:3052 > aggregateui-0.js:2984 > > I have a nagging doubt that this has something to do with the proxy setup > since no configurations have been made on the Aggregate server regarding > proxy. I did try a couple of times in running the Aggregate setup and might > have fudged up in in username (I might have chosen different names in > different attempts). I can attempt a clean reinstall if that could be the > culprit. I don't know if I can view any logs anywhere regarding this but can > get a copy if told what to look for. I can also provide the url to my server > if needed. > > Can anyone please point me in the right direction to shoot this trouble. > > Cheers! > > Gaurav > > -- > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "ODK Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to opendatakit+unsubscribe@googlegroups.com. > For more options, visit https://groups.google.com/d/optout.

Hello,

I am having the same issue today - continuing refresh - because of the same reason: I have my ODKAggregate tomcat server set up on a subdomain with a proxy redirect from apache2.

I'm not able to read either of the solutions that Yaw linked to -- enrenou.cat seems to be down and the ODKAggregate google forum is no longer accessible. Please help!

Thanks!

Best,
Sabrina