Changing IP of Aggregate server

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

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 >

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.

On Fri, Sep 19, 2014 at 1:04 PM, Saad saad@saadaan.com wrote:

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

--

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.

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.

On Fri, Sep 19, 2014 at 1:04 PM, Saad saad@saadaan.com wrote:

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

--

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.

--

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 a topic in the Google Groups "ODK Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/opendatakit/yKAnoWm3gPc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Saad,

Yaw

··· -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.

On Sat, Sep 20, 2014 at 12:49 PM, Saad Omer saad@saadaan.com wrote:

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.

On Fri, Sep 19, 2014 at 1:04 PM, Saad saad@saadaan.com wrote:

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

--

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.

--

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 a topic in the Google Groups "ODK Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/opendatakit/yKAnoWm3gPc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

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.