Skip to main content
droppedsci
New Participant
June 10, 2022
Answered

Unable to install ajax in CF 2021

  • June 10, 2022
  • 1 reply
  • 1171 views

Hello -

 

I am having difficulty installing the ajax package. The package I'm trying to install is ajax (2021.0.02.328618) and I've tried using CFAdmin and cfpm. Is there anyone that has run into a similar problem? I'm running CF2021 on Windows server 2016. 

 

thanks

    This topic has been closed for replies.
    Correct answer droppedsci

    Hi Everybody!

    I tried to do update through CF Admin first. Then I tried to do it through command line (cfpm). 

    Neither method worked. I think the update just timed out and so did trying to run the batch command.

     

    I am able to install all of the packages available with the exception of the ajax package. Kinda weird. 

     

    The error I got was "ajax package cannot be installed by the server. Please check the server logs and try installing again"

     

    I tried checking coldfusion and windows server logs looking for clues but what I didn't think to do was check the server logs the cfusion folder.

     

    This message stands out:

     

    An error has occurred while installing the package ajax. Exception : Script folder C:\ColdFusion2021\cfusion\wwwroot\dev_scripts\scripts not found. Ajax package has been downloaded at C:/ColdFusion2021/bundles/ajax-2021.0.02.328618.zip. If you have created a mapping of cf_scripts folder, you can copy the contents of the downloaded zip into CF_SCRIPTS/scrips/ajax folder

     

    What I discovered was that my Default ScriptSrc Directory  under server settings in CF admin was wrong.  The dev_scripts folder doesn't exist at all. Must've been set up by someone before me.  I changed it to cfscripts/scripts and voila! I was able to install the package

     

    Thank you both for your replies. 

    1 reply

    BKBK
    Community Expert
    June 17, 2022

    Try the following steps:

    1.  Open the command prompt (CMD) as administrator;
    2.  Use the DOS command CD to navigate to C:\ColdFusion2021\cfusion\bin;
    3.  Type cfpm.bat and press ENTER. That should bring up ColdFusion's Package Manager tool.
    4.  Type uninstall ajax and press ENTER. When ColdFusion finishes, type quit and press ENTER.
    5.  Close the CMD window.
    6.  Restart ColdFusion 2021. 
    7.  Open the ColdFusion Administrator in a browser, go to the Package Manager page, and confirm that there is no Ajax package installed. 
    8.  Open the command prompt (CMD) as administrator. Use the DOS command CD to navigate to C:\ColdFusion2021\cfusion\bin.  Type cfpm.bat and press ENTER. Type install ajax and press ENTER. 
      You should see something like:

       

    Charlie Arehart
    Community Expert
    June 17, 2022

    While it's kind to offer such detailed steps, I'll be surprised if they work given the original post (which makes it seem they did this).

     

    Also, to the OP, can you install any other packages? Use the list command in cfpm to see what you have.

     

    And is this a new install of cf2021, or one used for months? If the latter, what changed recently? If the former, are you using the zip install of cf for any particular reason? The full/gui installer would have included all packages, without need to worry about this matter of the cfpm. 

    /Charlie (troubleshooter, carehart. org)
    droppedsci
    droppedsciAuthorCorrect answer
    New Participant
    June 17, 2022

    Hi Everybody!

    I tried to do update through CF Admin first. Then I tried to do it through command line (cfpm). 

    Neither method worked. I think the update just timed out and so did trying to run the batch command.

     

    I am able to install all of the packages available with the exception of the ajax package. Kinda weird. 

     

    The error I got was "ajax package cannot be installed by the server. Please check the server logs and try installing again"

     

    I tried checking coldfusion and windows server logs looking for clues but what I didn't think to do was check the server logs the cfusion folder.

     

    This message stands out:

     

    An error has occurred while installing the package ajax. Exception : Script folder C:\ColdFusion2021\cfusion\wwwroot\dev_scripts\scripts not found. Ajax package has been downloaded at C:/ColdFusion2021/bundles/ajax-2021.0.02.328618.zip. If you have created a mapping of cf_scripts folder, you can copy the contents of the downloaded zip into CF_SCRIPTS/scrips/ajax folder

     

    What I discovered was that my Default ScriptSrc Directory  under server settings in CF admin was wrong.  The dev_scripts folder doesn't exist at all. Must've been set up by someone before me.  I changed it to cfscripts/scripts and voila! I was able to install the package

     

    Thank you both for your replies.