I am running ODK aggregate over Amazon AWS. By mistake, the old IP of the
amazon machine was replaced with a new one. Now ODK aggregate is getting
redirected to the old IP, which is not available. Is there any way to
manually change the IP? Some table in DB where old IP is stored?
I did it successfully. Copying the procedure for others' benefit:
You need to create the WAR file with the new IP from windows setup file.
Let the DB username/password remain the same, no other change.
Once done, you only need to upload the new WAR file to
/usr/share/tomcat6/webapps folder. Rename/remove the old file and directory
present in the same folder first, before moving the new file.
You do not need to run the create_db_and_user.sql file again.
Do not clear/delete the database. New WAR file will pick all the old data
by itself, including the old accounts and passwords as well as forms and
submissions. All your data of previous ODK aggregate will remain intact.
Regards,
Saad
···
On Friday, September 19, 2014 10:45:07 PM UTC+5, Saad wrote:
>
> Hi,
>
> I am running ODK aggregate over Amazon AWS. By mistake, the old IP of the
> amazon machine was replaced with a new one. Now ODK aggregate is getting
> redirected to the old IP, which is not available. Is there any way to
> manually change the IP? Some table in DB where old IP is stored?
>
> Regards,
> Saad
>
And for future reference, if you are willing to disassemble and
rebuild the WAR, you can tweak a setting to have the server use
whatever IP it's bound to.
In ODKAggregate.war/WEB-INF/lib/ODKAggregate-settings.jar/security.properties,
edit security.server.hostname so it has no IP.
Yaw
···
--
Need ODK services? http://nafundi.com provides form design, server
setup, professional support, and software development for ODK.
I did it successfully. Copying the procedure for others' benefit:
You need to create the WAR file with the new IP from windows setup file.
Let the DB username/password remain the same, no other change.
Once done, you only need to upload the new WAR file to
/usr/share/tomcat6/webapps folder. Rename/remove the old file and directory
present in the same folder first, before moving the new file.
You do not need to run the create_db_and_user.sql file again.
Do not clear/delete the database. New WAR file will pick all the old data
by itself, including the old accounts and passwords as well as forms and
submissions. All your data of previous ODK aggregate will remain intact.
Regards,
Saad
On Friday, September 19, 2014 10:45:07 PM UTC+5, Saad wrote:
Hi,
I am running ODK aggregate over Amazon AWS. By mistake, the old IP of the
amazon machine was replaced with a new one. Now ODK aggregate is getting
redirected to the old IP, which is not available. Is there any way to
manually change the IP? Some table in DB where old IP is stored?
Thanks Yaw. How can I open the WAR file on windows?
···
-----Original Message-----
From: opendatakit@googlegroups.com [mailto:opendatakit@googlegroups.com] On Behalf Of Yaw Anokwa
Sent: Saturday, September 20, 2014 2:03 AM
To: ODK Community
Subject: Re: [ODK Community] Re: Changing IP of Aggregate server
Saad,
And for future reference, if you are willing to disassemble and rebuild the WAR, you can tweak a setting to have the server use whatever IP it's bound to.
In ODKAggregate.war/WEB-INF/lib/ODKAggregate-settings.jar/security.properties,
edit security.server.hostname so it has no IP.
Yaw
Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.
I did it successfully. Copying the procedure for others' benefit:
You need to create the WAR file with the new IP from windows setup file.
Let the DB username/password remain the same, no other change.
Once done, you only need to upload the new WAR file to
/usr/share/tomcat6/webapps folder. Rename/remove the old file and
directory present in the same folder first, before moving the new file.
You do not need to run the create_db_and_user.sql file again.
Do not clear/delete the database. New WAR file will pick all the old
data by itself, including the old accounts and passwords as well as
forms and submissions. All your data of previous ODK aggregate will remain intact.
Regards,
Saad
On Friday, September 19, 2014 10:45:07 PM UTC+5, Saad wrote:
Hi,
I am running ODK aggregate over Amazon AWS. By mistake, the old IP of
the amazon machine was replaced with a new one. Now ODK aggregate is
getting redirected to the old IP, which is not available. Is there
any way to manually change the IP? Some table in DB where old IP is stored?
And for future reference, if you are willing to disassemble and rebuild the WAR, you can tweak a setting to have the server use whatever IP it's bound to.
In ODKAggregate.war/WEB-INF/lib/ODKAggregate-settings.jar/security.properties,
edit security.server.hostname so it has no IP.
Yaw
Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.
I did it successfully. Copying the procedure for others' benefit:
You need to create the WAR file with the new IP from windows setup file.
Let the DB username/password remain the same, no other change.
Once done, you only need to upload the new WAR file to
/usr/share/tomcat6/webapps folder. Rename/remove the old file and
directory present in the same folder first, before moving the new file.
You do not need to run the create_db_and_user.sql file again.
Do not clear/delete the database. New WAR file will pick all the old
data by itself, including the old accounts and passwords as well as
forms and submissions. All your data of previous ODK aggregate will remain intact.
Regards,
Saad
On Friday, September 19, 2014 10:45:07 PM UTC+5, Saad wrote:
Hi,
I am running ODK aggregate over Amazon AWS. By mistake, the old IP of
the amazon machine was replaced with a new one. Now ODK aggregate is
getting redirected to the old IP, which is not available. Is there
any way to manually change the IP? Some table in DB where old IP is stored?