Installer does not reflect port changes in $CTL_BASE/etc/project.properties

6 views
Skip to first unread message

Anthony Shortland

unread,
Nov 30, 2010, 8:25:54 PM11/30/10
to ControlTier Accounting
Greg and I have tracked installation bug relating to "$CTL_BASE/etc/project.properties" under 3.6.0 regarding using a non-standard framework server port (i.e. not 8080).

  • Installation runs cleanly when you override framework.server.port:

Anthonys-MacBook-Pro-2:ControlTier-3.6.0 gedi$ export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/HomeAnthonys-MacBook-Pro-2:ControlTier-3.6.0 gedi$ sh install.sh --client -Dserver.hostname=ctltierwinremote -Dframework.server.port=8079 -Dclient.hostname=macosx client.node.name=macosx
.
.
.

  • Project create succeeds:

Anthonys-MacBook-Pro-2:ControlTier-3.6.0 gedi$ ctl-project -p cfg200 -a create
Project structure created: /Users/gedi/ctier/ctl/projects/cfg200
Invoking external setup script: /Users/gedi/ctier/pkgs/ctl-3.6.0/bin/commander-ctl-project.xml
Beginning client setup ...
Running CTL project setup: /Users/gedi/ctier/pkgs/ctl-3.6.0/lib/ant/controllers/ctl/projectsetupCmd.xml ...
Trying to override old definition of task document-property
CTL project setup procedure completed.
Beginning node registration ...
Workbench client host "macosx[Node]" already registered, updating...
Completed client side project setup. Node macosx registered in project: "cfg200".

  • Resource installation fails as follows:

Anthonys-MacBook-Pro-2:ControlTier-3.6.0 gedi$ ctl-project -p cfg200 -a install
warn: Failed updating resourcesFile: couldn't update /Users/gedi/ctier/ctl/projects/cfg200/etc/resources.xml
warn: initializing with empty resourcesFile: /Users/gedi/ctier/ctl/projects/cfg200/etc/resources.xml
warn: Failed updating nodes information: couldn't update /Users/gedi/ctier/ctl/projects/cfg200/etc/resources.xml
warn: initializing with empty nodes information: /Users/gedi/ctier/ctl/projects/cfg200/etc/resources.xml
warn: Failed updating resourcesFile: couldn't update /Users/gedi/ctier/ctl/projects/cfg200/etc/resources.xml
warn: initializing with empty resourcesFile: /Users/gedi/ctier/ctl/projects/cfg200/etc/resources.xml
warn: Failed updating resourcesFile: couldn't update /Users/gedi/ctier/ctl/projects/cfg200/etc/resources.xml
warn: initializing with empty resourcesFile: /Users/gedi/ctier/ctl/projects/cfg200/etc/resources.xml

  • The source of the problem lies in the installer not overriding the default port in project.properties (a new file under 3.6.0?):

Anthonys-MacBook-Pro-2:ControlTier-3.6.0 gedi$ fgrep http $CTL_BASE/projects/cfg200/etc/project.properties

  • The workaround is to fix the file after installation:

Anthonys-MacBook-Pro-2:ControlTier-3.6.0 gedi$ diff  $CTL_BASE/projects/cfg200/etc/project.properties $CTL_BASE/projects/cfg200/etc/project.properties.orig
28,29c28,29
---

  • All's well subsequently!:

Anthonys-MacBook-Pro-2:etc gedi$ ctl-project -p cfg200 -a remove
Project 'cfg200' removed. Data archived to: /Users/gedi/ctier/ctl/var/removed-projects/cfg200/20101130-0517
Anthonys-MacBook-Pro-2:etc gedi$ ctl-project -p cfg200 -a create
Project structure created: /Users/gedi/ctier/ctl/projects/cfg200
Invoking external setup script: /Users/gedi/ctier/pkgs/ctl-3.6.0/bin/commander-ctl-project.xml
Beginning client setup ...
Running CTL project setup: /Users/gedi/ctier/pkgs/ctl-3.6.0/lib/ant/controllers/ctl/projectsetupCmd.xml ...
Trying to override old definition of task document-property
CTL project setup procedure completed.
Beginning node registration ...
Workbench client host "macosx[Node]" already registered, updating...
Completed client side project setup. Node macosx registered in project: "cfg200".
Anthonys-MacBook-Pro-2:etc gedi$ ctl-project -p cfg200 -a install
"resource-install" command running for resource: development[ProjectBuilder]
"resource-install" command running for resource: core-3-6-support[ProjectBuilder]
"resource-install" command running for resource: elements-3-6-support[ProjectBuilder]

Anthony.

Anthony Shortland

unread,
Nov 30, 2010, 8:40:31 PM11/30/10
to ControlTier Accounting
Reply all
Reply to author
Forward
0 new messages