Maximo Anywhere

Expand all | Collapse all

Maximo Anywhere 764 Issue while running build command - Problem found when trying to use cURL to upload zip to maximo. Please make sure it is installed before running deploy command,. You may also upload the zip manually

  • 1.  Maximo Anywhere 764 Issue while running build command - Problem found when trying to use cURL to upload zip to maximo. Please make sure it is installed before running deploy command,. You may also upload the zip manually

    Posted Mon March 16, 2020 08:22 AM
    Hello team,

    We were able to update Maximo Anywhere 7.6.4 on our current setup (Maximo 7.6.1.0 & Maximo Anywhere 7.6.3.0). But while trying to run the build.cmd all, the message at the end says "Build Successful" but just above it, gives a message as below

    "Problem found when trying to use cURL to upload zip to maximo. Please make sure it is installed before running deploy command,. You may also upload the zip manually."

    Now we have our build environment as Windows and the application server is RHEL based.
    And we also have curl installed on our server but still we are receiving the error.

    The error also says that the zip file can be uploaded manually. Have anyone face this error and knows how we can upload it manually in case auto uploading is failing?



    ------------------------------
    SHASHANK
    ------------------------------


  • 2.  RE: Maximo Anywhere 764 Issue while running build command - Problem found when trying to use cURL to upload zip to maximo. Please make sure it is installed before running deploy command,. You may also upload the zip manually

    Posted Mon March 16, 2020 08:40 AM
    Hi Shashank, 

    Curl should be set in your users path,  if you check the environment variables for your user do you see it there?  You can point this to a version of curl you downloaded or point it to the curl within the install located at Anywhere\MaximoAnywhere\build\tools\curl\bin

    Once it's in your users path you should be able to upload the zips via the build,  you can test that it is in path just by running 'curl' in the command prompt,  it should prompt you with its input options rather than a file not found.

    ------------------------------
    Shane Howard
    ------------------------------



  • 3.  RE: Maximo Anywhere 764 Issue while running build command - Problem found when trying to use cURL to upload zip to maximo. Please make sure it is installed before running deploy command,. You may also upload the zip manually

    Posted Tue March 17, 2020 02:19 AM
    Hello Shane,

    I think curl is already installed. See below screenshot for reference.

    Curl


    ------------------------------
    SHASHANK .
    ------------------------------



  • 4.  RE: Maximo Anywhere 764 Issue while running build command - Problem found when trying to use cURL to upload zip to maximo. Please make sure it is installed before running deploy command,. You may also upload the zip manually

    Posted Tue March 17, 2020 07:24 AM
    Edited by Steven Shull Tue March 17, 2020 07:26 AM

    EDIT: Your error message was slightly different than ours (about CURL missing) so this probably isn't relevant. Leaving it here for reference just in case.

    I identified an issue where it always uses the http protocol, even if you require https. This was causing our deployment to fail like this. I opened a support case but don't have an APAR for it, but below is the work around I did that fixed it for us. 

    1) Open the anywhere-apps-builder.xml on your Anywhere environment. 
    2) Add <property name="protocol" value="${adapter.connection.protocol}"/> to the zip-upload-all-apps & -zip-app-upload in anywhere-apps-builder.xml
    3) Changed the postlogin= in the JavaScript of zip-upload-all-apps & -zip-app-upload from:
    postlogin = 'http://' + domain + ':' + port + '/' + context + '/oslc/login/j_security_check?j_username=' + user + '&j_password=' + pwd;
    to:

    postlogin = protocol+'://' + domain + ':' + port + '/' + context + '/oslc/login/j_security_check?j_username=' + user + '&j_password=' + pwd;

    4) Change the posturl in the JavaScript of -zip-app-upload from:
    posturl = 'http://'+domain+':'+port+'/'+context+'/oslc/os/OSLCMAXAPPDATA?action=wsmethod:uploadFile&appid='+appname+'&appversion='+versionname+':';

    to:
    posturl = protocol+'://'+domain+':'+port+'/'+context+'/oslc/os/OSLCMAXAPPDATA?action=wsmethod:uploadFile&appid='+appname+'&appversion='+versionname+':';

    If you wanted to keep it simple, you could just replace the http with https, but we wanted to keep it dynamic in case we ever needed to test it on HTTP for some reason. 

    I'll update this again when the APAR is created to share the number.



    ------------------------------
    Steven Shull
    Director of Development
    Projetech Inc
    Cincinnati OH
    ------------------------------