Bug 1107438 - Install script in standalone zanata server download has several problems on Windows
Summary: Install script in standalone zanata server download has several problems on W...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Zanata
Classification: Retired
Component: Deployment
Version: 3.3
Hardware: Unspecified
OS: Windows
unspecified
medium
Target Milestone: ---
: ---
Assignee: Damian Jansen
QA Contact: Zanata-QA Mailling List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-10 02:50 UTC by David Mason
Modified: 2015-07-29 03:23 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-07-29 03:23:44 UTC
Embargoed:


Attachments (Terms of Use)

Description David Mason 2014-06-10 02:50:30 UTC
Description of problem:
In the zip for "Zanata Server (with installer)" downloaded from http://zanata.org/download/ the installation batch file at <server>/bin/zanata-installer/install.bat fails because the classpath is wrapped in single-quotes, which do not appear to be valid for quoting a command line argument on Windows. The installer will run if the contents of install.bat are changed to:

java -cp ".;groovy-all-2.1.5.jar" groovy.lang.GroovyShell InstallZanata.groovy


Once the installer is running, some of the inputs are skipped:

 - user is prompted for the version
 - user enters a version then presses <Enter>
 - user is prompted for the host
 - user is prompted for the port
 - user enters a port number and presses <Enter>
 - user is prompted for the schema
 - user is prompted for the username
 - etc.

so there is no opportunity to enter host, schema and so on. It is likely that the script is reading the windows line end "\r\n" as two separate newlines, in addition to not clearing the input buffer between prompts.


There is also no option to re-run the installer - if I make a mistake I have to wipe out the whole directory and start again.

Comment 1 Zanata Migrator 2015-07-29 03:23:44 UTC
Migrated; check JIRA for bug status: http://zanata.atlassian.net/browse/ZNTA-241


Note You need to log in before you can comment on or make changes to this bug.