Hitachi Vantara Pentaho Community Forums
Results 1 to 24 of 24

Thread: Need help on Ctools installer

  1. #1
    amdc Guest

    Default Need help on Ctools installer

    Hi,

    It looks like my CDE plugin has not been updated through Ctools installer

    (im doing this in a virtual machine)

    here is my terminal ---------------

    [root@localhost pmalves-ctools-installer-116377a]# ./ctools-installer.sh ~/PentahoCE/biserver-ce/pentaho-solutions

    CTOOLS

    ctools-installer version 1.5

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


    Changelog:

    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
    diff: .tmp/ctools-installer.sh: No such file or directory

    There a new ctools-installer verison available. Do you want to upgrade? (y/N) y
    cp: cannot stat `.tmp/ctools-installer.sh': No such file or directory
    Upgrade successfull. Rerun
    [root@localhost pmalves-ctools-installer-116377a]#

    ------------------------------------------------------------------------------------------------------

    i stopped the server before updating and restarted the server after this line,. and i checked back on CDE and still looks like it wasnt updated

    anything im doing wrong?

    appreciate the replies
    Last edited by amdc; 09-28-2011 at 04:12 AM.

  2. #2
    Join Date
    Mar 2011
    Posts
    257

    Default

    Did you rerun ctools ?
    first it checks wether there is a new version of the c-tools installer.
    then you need to run it for a second time ...

    grtz

  3. #3
    amdc Guest

    Default

    i dont know if im doing it correct but when you mean rerun is to literally enter the line

    "./ctools-installer.sh ~/PentahoCE/biserver-ce/pentaho-solutions"

    right?

    and i have choose (Y) to update,. what bothering me is this line "cp: cannot stat `.tmp/ctools-installer.sh': No such file or directory"

    and its wierd though that it does not prompt me specific changes to be made on my files like what was posted on this blog http://pedroalves-bi.blogspot.com/20...ings-fast.html


  4. #4
    Join Date
    Jul 2007
    Posts
    2,498

    Default

    in what directory are you when you run it? It tries to create the .tmp in the working directory where you are
    Pedro Alves
    Meet us on ##pentaho, a FreeNode irc channel

  5. #5
    amdc Guest

    Default

    hello,

    I tried running it from different locations

    at first here(placed it inside this directory): /PentahoCE/biserver-ce/pentaho-solutions

    then here :/PentahoCE/biserver-ce/pentaho-solutions/system

    but it returned me the same exact message

    "diff: .tmp/ctools-installer.sh: No such file or directory" & "cp: cannot stat `.tmp/ctools-installer.sh': No such file or directory"

    where should i run it?

    Thank you
    Last edited by amdc; 09-28-2011 at 10:14 PM.

  6. #6
    Join Date
    Mar 2011
    Posts
    257

    Default

    Personally i run it on biserver-ce level and that works ...
    Are you running it with the sudo command ?
    If you run it on that level you can just say:
    sudo ./ctools-installer.sh pentaho-solutions

    hope it works

    greetz
    Hans

  7. #7
    amdc Guest

    Default

    didnt work

  8. #8
    Join Date
    Mar 2011
    Posts
    257

    Default

    It is probably a linux problem ...
    you will have to do it the good old way ...
    ou can grab the latest builds from here:
    http://ci.analytical-labs.com/jenkins/view/Webdetails/
    select for example CDA -> last successful build -> dist -> cda-trunk-********.zip
    and extract it in pentaho-solutions/system
    if you want the samples download the samples.zip and extract it in the solutions folder...
    it's a bit harder than the installer but it will work ...

  9. #9
    amdc Guest

    Default

    thanks for the suggestion hansva, but i really hope i could update it the ctools way,.

    just for additonal info i am using a biserver-ce3.8.zip file on my vmware player with CentoS 5.564 bit, even though its not the tar.gz i believe it is fairly the same thing
    Last edited by amdc; 09-29-2011 at 05:50 AM.

  10. #10
    Join Date
    Mar 2011
    Posts
    257

    Default

    CentOs can be the reason it doesn't work...
    I don't know for sure because i'm not a linux guru (pedro might know)
    but i think the script is written for debian based linux systems and not for the red had tree...

    but I'm not sure...

    Greetz
    Hans

  11. #11
    Join Date
    May 2011
    Posts
    117

    Default Some checks that you need to require.

    Hi,

    you need to check that .tmp directory was created or not.

    What I found from the shell script its create the .tmp direcory , so check this direcory is created and files are exist or not there.

    You can check with "ls -a" command.

    if .tmp direcory exist
    try to fire the command manually which is failing.

    cp .tmp/ctools-installer.sh xxxx(sample_path)

    Try and check "cp" command in os atlease check you can copy file in another folder.

    Once you check with this please let me know.

    Thanks
    Pranav

  12. #12
    amdc Guest

    Default

    tried to do "ls -a" and and i saw .tmp was shown in blue

    i changed to that directory and made a scan and there are no files inside it

    what should i do ?

    Thank you

  13. #13
    Join Date
    May 2011
    Posts
    117

    Default focus on wget command

    Hi,

    now Please edit the ctools-installer.sh and check the 3rd command.

    wget --no-check-certificate 'https://raw.github.com/pmalves/ctools-installer/master/ctools-installer.sh' -P .tmp -o /dev/null

    which download the latest ctools-installer.sh and put in .tmp folder.
    and then after its try to cp

    cp .tmp/ctools-installer.sh $0;

    Now problem is not releated cp , your problem is wget is not working , and not putting the downloaded file under .tmp/ctools-installer.sh.

    then when its tried to cp , its say that files is not exist , which is quit logical.

    so focus on wget , not cp

    Cheers

    Thanks.
    Pranav

  14. #14
    amdc Guest

    Default

    yeah i guess thats quite logical that it isnt putting the file inside .tmp and i dont know why

    i tried to check for my file permissions and here it is

    [root@localhost pentaho-solutions]# ls -al
    total 200
    drwxr-xr-x 11 root root 4096 Sep 29 13:27 .
    drwxr-xr-x 7 root root 4096 Sep 30 12:06 ..
    drwxr-xr-x 4 root root 4096 Apr 5 00:46 admin
    drwxr-xr-x 18 1000 users 4096 Dec 2 2010 bi-developers
    drwxr-xr-x 3 1000 users 4096 Sep 30 08:19 cde_sample
    drwxr-xr-x 3 1000 users 4096 Dec 2 2010 cdf
    drwxr-xr-x 2 1000 users 4096 Dec 2 2010 CST
    -rwxr-xr-x 1 root root 1156 Apr 5 00:46 folder2.png
    -rwxr-xr-x 1 root root 1401 Apr 5 00:46 folder.png
    -rwxr-xr-x 1 root root 1519 Apr 5 00:46 index_de.properties
    -rwxr-xr-x 1 root root 1538 Apr 5 00:46 index_es.properties
    -rwxr-xr-x 1 root root 1375 Apr 5 00:46 index_fr.properties
    -rwxr-xr-x 1 root root 2513 Apr 5 00:46 index_ja.properties
    -rwxr-xr-x 1 root root 1344 Apr 5 00:46 index_nl.properties
    -rwxr-xr-x 1 root root 1317 Apr 5 00:46 index.properties
    -rwxr-xr-x 1 root root 223 Apr 5 00:46 index.xml
    -rwxr-xr-x 1 root root 1667 Apr 5 00:46 index_zh_CN.properties
    -rw-r--r-- 1 root root 626 Apr 5 00:46 .project
    -rwxr-xr-x 1 root root 10524 Apr 5 00:46 solutions.png
    drwxr-xr-x 8 root root 4096 Apr 5 00:46 steel-wheels
    drwxr-xr-x 31 1000 users 4096 Sep 29 13:09 system
    drwxr-xr-x 3 root root 4096 Sep 29 11:37 tmp
    drwxr-xr-x 3 root root 4096 Sep 29 12:11 .tmp
    -rwxr-xr-x 1 root root 1662 Apr 5 00:46 url.png

    ----------------------------------------------------------------------------------

    i logged in as root and i should be able to write files in it right? but it cant



    and my system already has wget

    wget --version
    GNU Wget 1.11.4 Red Hat modified

    Copyright (C) 2008 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later
    <http://www.gnu.org/licenses/gpl.html>.
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.

    Originally written by Hrvoje Niksic <hniksic@xemacs.org>.
    Currently maintained by Micah Cowan <micah@cowan.name>.


    Last edited by amdc; 09-30-2011 at 02:58 AM.

  15. #15
    Join Date
    May 2011
    Posts
    117

    Default

    hi,

    just go to the installation directory and fire below command , what output you get let me know....

    wget --no-check-certificate 'https://raw.github.com/pmalves/ctools-installer/master/ctools-installer.sh' -P .tmp -o /dev/null

    generally what happen with above command it download the ctools-installer.sh' file and put it on .tmp folder.

    Regarding the creation of file you should able to create file on .tmp folder becaseu root is administrator user. , what error you are getting while creating the file ?

    Thanks
    Pranav
    Last edited by Lakhani_pranav; 09-30-2011 at 04:29 AM. Reason: additoon

  16. #16
    amdc Guest

    Default

    hello,

    here is the terminal to show everything from testing wget, and by executing the command you provided, there is no error message or anything after entering that line, i have also cd to .tmp folder but there is nothing inside it

    here it is

    ------------------------------------------------------------------------------------------------------------------
    [root@localhost biserver-ce]# wget http://fly.cc.fer.hr/
    --2011-09-30 15:53:55-- http://fly.cc.fer.hr/
    Connecting to 172.16.16.23:80... connected.
    Proxy request sent, awaiting response... 200 OK
    Length: 1318 (1.3K) [text/html]
    Saving to: `index.html.2'

    100%[======================================>] 1,318 --.-K/s in 0s

    2011-09-30 15:53:55 (83.8 MB/s) - `index.html.2' saved [1318/1318]

    [root@localhost biserver-ce]# wget --no-check-certificate 'https://raw.github.com/pmalves/ctools-installer/master/ctools-installer.sh' -P .tmp -o /dev/null
    [root@localhost biserver-ce]# ls -al
    total 160
    drwxr-xr-x 7 root root 4096 Sep 30 15:53 .
    drwxr-xr-x 6 root root 4096 Sep 29 07:24 ..
    -rwxrwxrwx 1 root root 4068 Aug 4 06:43 ctools-installer.sh
    drwxrwxrwx 8 root root 4096 Apr 5 00:46 data
    -rw-r--r-- 1 root root 1318 Oct 11 2007 index.html
    -rw-r--r-- 1 root root 1318 Oct 11 2007 index.html.1
    -rw-r--r-- 1 root root 1318 Oct 11 2007 index.html.2
    drwxrwxrwx 2 root root 4096 Apr 5 00:46 licenses
    drwxrwxrwx 11 root root 4096 Sep 29 13:27 pentaho-solutions
    -rwxrwxrwx 1 root root 889 Apr 5 00:46 promptuser.js
    -rwxrwxrwx 1 root root 3980 Apr 5 00:46 set-pentaho-env.bat
    -rwxrwxrwx 1 root root 3573 Apr 5 00:46 set-pentaho-env.sh
    -rwxrwxrwx 1 root root 954 Apr 5 00:46 start-pentaho.bat
    -rwxrwxrwx 1 root root 1024 Apr 5 00:46 start-pentaho-debug.bat
    -rwxrwxrwx 1 root root 912 Apr 5 00:46 start-pentaho-debug.sh
    -rwxrwxrwx 1 root root 842 Apr 5 00:46 start-pentaho.sh
    -rwxrwxrwx 1 root root 662 Apr 5 00:46 stop-pentaho.bat
    -rwxrwxrwx 1 root root 576 Apr 5 00:46 stop-pentaho.sh
    drwxr-xr-x 3 root root 4096 Sep 30 15:49 .tmp
    drwxrwxrwx 9 root root 4096 Apr 5 00:46 tomcat
    [root@localhost biserver-ce]# cd .tmp
    [root@localhost .tmp]# ls -al
    total 24
    drwxr-xr-x 3 root root 4096 Sep 30 15:49 .
    drwxr-xr-x 7 root root 4096 Sep 30 15:53 ..
    drwxr-xr-x 2 root root 4096 Sep 30 15:49 dist
    [root@localhost .tmp]#

    ----------------------------------------------------------------------------------------------------------------------------
    Last edited by amdc; 09-30-2011 at 04:55 AM.

  17. #17
    Join Date
    Jul 2007
    Posts
    2,498

    Default

    Try this command and see if the same happens:

    $ wget --no-check-certificate 'https://raw.github.com/pmalves/ctools-installer/master/ctools-installer.sh' -P .tmp
    --2011-09-30 11:41:14-- https://raw.github.com/pmalves/ctool...s-installer.sh
    Resolving raw.github.com... 207.97.227.243
    Connecting to raw.github.com|207.97.227.243|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 4068 (4.0K) [text/plain]
    Saving to: `.tmp/ctools-installer.sh'

    100%[=================================================================================================================================================================================================================================================================================>] 4,068 --.-K/s in 0s

    2011-09-30 11:41:16 (554 MB/s) - `.tmp/ctools-installer.sh' saved [4068/4068]

    pedro@nicola:~$ d .tmp/
    total 8
    8 -rw-r--r-- 1 pedro staff 4068 Sep 30 11:41 ctools-installer.sh
    Pedro Alves
    Meet us on ##pentaho, a FreeNode irc channel

  18. #18
    Join Date
    May 2011
    Posts
    117

    Default

    Hi,

    So its now confirm that your script is failing with wget command , because its not donwload anything while fire with this provided options.

    check the wget version (rpm -q wget). try to install the latest rpm of wget.(it might be bug)

    if issue issue reolve with above then its ok ,otherwise follow below approach.
    (1) Try to modify the command wget with diff option
    (2) download the packages that hansva was suggested.and extract
    (3) if not then manually download the all file with simple wget command then modify the you sh as your need. (for this you must have some knowledge of shell script).

    Thanks
    Pranav

  19. #19
    Join Date
    Apr 2008
    Posts
    4,696

    Default

    Listen to pmalves...

    the -o /dev/null is why you aren't seeing any output.

    GNU Wget
    Usage: wget [OPTION]... [URL]...

    Logging and input file:
    -o, --output-file=FILE log messages to FILE.

  20. #20
    amdc Guest

    Default

    i tried pmalves command and it says connection refused

    here is the terminal
    -----------------------------------------------------------------------------------------------------------------------------
    [root@localhost pentaho-solutions]# wget --no-check-certificate 'https://raw.github.com/pmalves/ctools-installer/master/ctools-installer.sh' -P .tmp
    --2011-09-30 17:25:54-- https://raw.github.com/pmalves/ctool...s-installer.sh
    Resolving raw.github.com... 207.97.227.243
    Connecting to raw.github.com|207.97.227.243|:443... failed: Connection refused.
    ------------------------------------------------------------------------------------------------------------------------------

    what do i seem to be doing wrong with this?

    thank you for all the assistance

    ------------------------------------------------------------------------------------------------------------------------


    nice i was able to make it work now, i exported my proxy server with https_proxy variable and it worked

    this is now my current terminal

    [root@localhost biserver-ce]# wget --no-check-certificate 'https://raw.github.com/pmalves/ctools-installer/master/ctools-installer.sh' -P .tmp
    --2011-09-30 18:44:35-- https://raw.github.com/pmalves/ctool...s-installer.sh
    Connecting to 172.16.16.23:80... connected.
    Proxy request sent, awaiting response... 200 OK
    Length: 4068 (4.0K) [text/plain]
    Saving to: `.tmp/ctools-installer.sh'

    100%[======================================>] 4,068 --.-K/s in 0s

    2011-09-30 18:44:38 (259 MB/s) - `.tmp/ctools-installer.sh' saved [4068/4068]

    but what do i need to do next?

    thank you
    Last edited by amdc; 10-02-2011 at 11:23 PM.

  21. #21
    amdc Guest

    Default

    hello,

    after exporting my proxy server and was able to see that ctools can now be copied into the .tmp folder..

    I tried the original command below and it returned me with "File is not a directory"


    [root@localhost biserver-ce]# ./ctools-installer.sh ~ /PentahoCE/biserver-ce/pentaho-solutions/

    CTOOLS

    ctools-installer version 1.5

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


    Changelog:

    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
    File is not a directory
    ------------------------------------------------------------------------------------------------------------------------------

    hope you guys still hanging on for me thank you appreciate everyone's help here

  22. #22
    amdc Guest

    Default

    hello all,

    I have succesfully updated everything now it was the "~" that is creating the issue (just started learning linux)

    thank you for all the support!!

    --------------------------------------------------------------------------------------------------------------------------

    [root@localhost biserver-ce]# ./ctools-installer.sh /root/PentahoCE/biserver-ce/pentaho-solutions/

    CTOOLS

    ctools-installer version 1.5

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


    Changelog:

    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

    Downloading files


    Installing CDA. This will delete everything in /root/PentahoCE/biserver-ce/pentaho-solutions//system/cda. you sure? (y/N) y

    Installing CDE. This will delete everything in /root/PentahoCE/biserver-ce/pentaho-solutions//system/pentaho-cdf-dd. you sure? (y/N) y

    Installing CDF. This will delete everything in /root/PentahoCE/biserver-ce/pentaho-solutions//system/pentaho-cdf. you sure? (y/N) y

    Installing Saiku. This will delete everything in /root/PentahoCE/biserver-ce/pentaho-solutions//system/saiku. you sure? (y/N) y

    Done!

  23. #23

    Default CTOOLS installation steps with screen shots

    http://codeissue.com/articles/a04e87...c-using-cygwin
    I have writeen a little article to help community to install it with the problem i faced.
    Wasn't any problems in Unix/Linux except permission also for Windows I have documented the steps in article.

  24. #24
    Join Date
    Jul 2007
    Posts
    2,498

    Default

    Perfect! Thanks man!
    Pedro Alves
    Meet us on ##pentaho, a FreeNode irc channel

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.