Giter Club home page Giter Club logo

ctools-installer's Introduction

ctools-installer.sh is a shell script to install / update the different ctools into a pentaho installation

Currently supports CDF, CDA and CDE and pentaho 3.6 to 3.10 (and newer, don't make me update this readme everytime ;) )

Requirements: Linux, macintosh or windows with cygwin, wget, unzip

Usage: ctools-installer.sh -s solutionPath [-w pentahoWebapPath] [-b branch] [-y]

Please backup your solution, we're not resposible by any harm this does to your server.



Pedro Alves, webdetails, 2011

ctools-installer's People

Contributors

cwarden avatar dcleao avatar mreid-moz avatar pamval avatar pmalves avatar pstoellberger avatar webdetails-build-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ctools-installer's Issues

Wrong custom-component path in settings

Today I installed the last version of CDE through ctools-installer.sh.
In the file
system/pentaho-cdf-dd/settings.xml
inside the element, after
system/pentaho-cdf-dd/resources/custom/components
there is also the following element:
cde/components
but this path does not exists, as reported by Tomcat during the deploying phase at startup.

I think that the right element could be:
system/pentaho-cdf-dd/resources/base/components

Moreover, it need other paths to find other components, e.g., autocomplete component?

Problem with spaces in the path

FYI: It doesn't work if there's spaces (and possibly other special characters) in the Pentaho solutions directory or the webapp directory. Adding quotes wherever the paths are being used in the script seems to solve the problem though.

Download 404s

Downloading CDF...  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of .tmp/cdf/dist.zip or
        .tmp/cdf/dist.zip.zip, and cannot find .tmp/cdf/dist.zip.ZIP, period.
Done

Looks like it's deleting the existing installs, then 404ing on the download. Via strace:

4873  recvfrom(4, "HTTP/1.1 404 Not Found\r\nDate: Mon, 30 Mar 2015 20:30:46 GMT\r\nServer: Apache/2.2.22 (Ubuntu)\r\nVary: Accept-Encoding\r\nContent-Length: 235\r\nKeep-Alive: timeout=5, max=100\r\nConnection: Keep-Alive\r\nContent-Type: text/html; charset=iso-8859-1\r\n\r\n<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>404 Not Found</title>\n</head><body>\n<h1>Not Found</h1>\n<p>The requested URL /ficheiros/cdf/14.12.10.1/5.x/dist.zip was not found on this server.</p>\n</body></html>\n", 511, MSG_PEEK, NULL, NULL) = 475

Same problem for CDF/CDA/CDE/CGG/SAIKU. Script deletes existing install, fails to download, fails to notice that it's failed to download, tries to unzip nonexistent file.

Allow to specify version

Please add a -v flag to specify the version of the tools to install. This is useful in cases when the build should have consistently the same setup (e.g. there are changes between various versions which might impact the dashboards. As long as a dashboard is tested with one specific version and the results are all fine [Dashboards are rendering as expected], I'd like to keep using this specific version in my CBF builds.)

Installation fail for biserver-ce-4.8.0-stable

I am trying to install the ctools into biserver-ce-4.8.0-stable, but it always fails the same way. I cd into the biserver-ce-4.8.0-stable dir, and there, if I run, for instance, this:

sh /home/andy/ctools-installer.sh -s pentaho-solutions -w tomcat/webapps/pentaho -c cdf -y

it downloads cdf, but when it tries to install, shows this:

unzip: cannot find or open .tmp/dist/pentaho-cdf-+([0-9.]).zip, .tmp/dist/pentaho-cdf-+([0-9.]).zip.zip or .tmp/dist/pentaho-cdf-+([0-9.]).zip.ZIP.

Inside the .tmp folder, I see it has already downloaded the cdf dist. The problem seems to be when it tries to install it. Any suggestion?
Thanks in advance

I am getting errors on the unzipping of the cda files. Any idea why?

I am getting errors on the unzipping of the cda files. Any idea why?

cfrugard@ny111web02:~/pentaho$ sudo ./ctools-installer.sh -s /home/cfrugard/pentaho/biserver-ce/pentaho-solutions/ -w /home/cfrugard/pentaho/biserver-ce/tomcat/webapps/pentaho -b stable -y

CTOOLS

ctools-installer version 1.34

Author: Pedro Alves (webdetails)
Thanks to Analytical Labs for jenkins builds
Copyright Webdetails 2011

Changelog:

v1.31 - Support for CDV installation using -b dev switch
v1.33 - Added support for Saiku ad hoc stable (release) installations.
v1.32 - Added windows cr tolerance for this script's auto update
v1.31 - Support for CDB installation using -b dev switch
v1.30 - Support for CDC installation using -b dev switch
v1.29 - Changed saiku download path to 2.3
v1.28 - Support for CGG in 4.5, where webapp path is no longer required
v1.27 - Added support for CGG stable ( release ) installations.
v1.26 - -y flag now also works for ctools-installer update. ctools-installer update is now automated - Thanks to Mark Reid.
v1.25 - Removed overwrite, explicitly deleting marketplace definition
v1.24 - Added force overwrite to unzip to phase out overwrite confirmation
v1.23 - CDF trunk installation change due to js publish
v1.22 - Changed saiku download path to 2.2
v1.21 - Added support for CDE stable (release) installations.
v1.20 - CDF new samples location updated to stable installation.
v1.19 - Corrected installCDF and installCDE to remove samples dir before installing
v1.18 - CDA samples installation to plugin-samples also in stable mode.
v1.17 - Change to CDA and CDE samples installation. Now installs to folder plugin-samples instead of bi-developers (for trunk snapshot only).
v1.16 - Added support for CDC and Saiku-adhoc installation - for now only available in dev/trunk mode.
v1.15 - Change to CDF samples installation. Now installs to folder plugin-samples instead of bi-developers (for trunk snapshot only).
v1.14 - Added support for CDF stable (release) installations.
v1.13 - Fixed issue in CGG download
v1.12 - Fixed typo in -Y option
v1.11 - Added support for -y option (assume yes) - Thanks to Christian G. Warden
v1.10 - Added support for Saiku trunk snapshots installations.
v1.9 - Added support for CDA stable (release) installations.
v1.8 - Added CGG; Script refactor
v1.7 - Changed url locations to new path of analytical labs
v1.6 - Changed saiku download path to 2.1
v1.5 - Changed default indicator values in prompts
v1.4 - Added Saiku for the list of installs
v1.3 - Added support for automatic updates
v1.2 - Silent mode for downloading
v1.1 - Minor bugfixes
v1.0 - First release

Disclaimer: we can't be responsible for any damage done to your system, which hopefully will not happen
Note: ctools-installer.sh will upgrade the plugins under system directory.
Any changes you have made there (eg: cdf templates) will have to be backed up and manually copied after running the script
CGG will need to change the server WEB-INF/lib too. Backup your server

Downloading files

Downloading CDF... Done
Downloading CDA... End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of .tmp/cda/dist.zip or
.tmp/cda/dist.zip.zip, and cannot find .tmp/cda/dist.zip.ZIP, period.
Done
Downloading CDE... Done
Downloading CGG... Done
Downloading Saiku... Done
Downloading Saiku Adhoc... Done

Installing files

unzip: cannot find or open .tmp/dist/cda-??.??.??_zip, .tmp/dist/cda-??.??.??_zip.zip or .tmp/dist/cda-??.??.??*zip.ZIP.

No zipfiles found.
unzip: cannot find or open .tmp/dist/cda-samples-_zip, .tmp/dist/cda-samples-_zip.zip or .tmp/dist/cda-samples-*zip.ZIP.

No zipfiles found.

Done!

404 Not Found errors after installing ctools

I just installed all of the ctools components via the shell script and when I try to create a new dashboard I get these errors:

GET http://tlcpentaho.transervice.com:8080/pentaho/content/pentaho-cdf/js/scripts.js?version=null 404 (Not Found)
GET http://tlcpentaho.transervice.com:8080/pentaho/content/pentaho-cdf-dd/js/scripts.js?version=null 404 (Not Found)
GET http://tlcpentaho.transervice.com:8080/pentaho/content/pentaho-cdf/js/styles.css?version=null 404 (Not Found) NewDashboard:112
GET http://tlcpentaho.transervice.com:8080/pentaho/content/pentaho-cdf-dd/css/styles.css?version=null 404 (Not Found) NewDashboard:112
Resource interpreted as Script but transferred with MIME type text/html: "http://tlcpentaho.transervice.com:8080/pentaho/content/pentaho-cdf-dd/getcomponentdefinitions". NewDashboard:112
Uncaught ReferenceError: SelectRenderer is not defined getcomponentdefinitions:1
Uncaught ReferenceError: Base is not defined cdf-dd-aceWrapper.js:2
Uncaught ReferenceError: $ is not defined NewDashboard:131
Uncaught ReferenceError: Panel is not defined NewDashboard:40
Uncaught ReferenceError: Panel is not defined NewDashboard:40
Uncaught ReferenceError: Panel is not defined NewDashboard:49
Uncaught ReferenceError: Panel is not defined NewDashboard:49
Uncaught ReferenceError: Panel is not defined NewDashboard:48
Uncaught ReferenceError: Panel is not defined

I did not get any messages from the shell script during the installation.

Thanks for your help

  • Russell

Only CDE shows up on the pentaho dashboard

Hey there,

I downloaded the ctools-installer.sh yesterday and ran it. I was mostly looking for the Saiku plugin that it installed. I am running Ubuntu 12.04 LTS.

Downloading was simple enough, and I was able to run the script easy enough...
ctoolsinstall

Afterwards I checked the pentaho-solutions/system folder to verify that the plugins had been added, and indeed they were...
systemfolder

But when I start up my pentaho server and log in the only addition is the CDE...
pentaho

I am happy that I have the CDE set up, but I was looking for Saiku primarily. The instructions I read said that I only had to run the script and start up the server and they all the plugins should be there, did I miss something. Thanks a bunch!

Broken Jenkins URLs in ctools-installer

Don't know if this is a permission issue or what, but several of the jenkins build artifact URLs in ctools-installer give 404s.

Would be great to get updated URLs so the installer works again.

Marketplace
http://ci.pentaho.com/job/marketplace/lastSuccessfulBuild/artifact/dist/marketplace-plugin-TRUNK-SNAPSHOT.zip

Also the '$URL1' (-release) breaks the working marketplace URL.

CDC Stable
http://ci.pentaho.com/job/pentaho-cdc-release/lastSuccessfulBuild/artifact/cdc-pentaho5/dist/*zip*/dist.zip

CDV
http://ci.pentaho.com/job/pentaho-cdv-release/lastSuccessfulBuild/artifact/cdv-pentaho/dist/*zip*/dist.zip

Supported pentaho version

Is there any plan to support newer BA servers ?

I can see some hardcoded references to some 4.x and 5.x and I am wondering if this tool also works well with 6.x and 7.x

--Cheers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.