Copy link to clipboard
Copied
Hello CF Community,
I have an application that i am supporting where i need to apply the latest patch to the CF server. Curently we are running 2021 and the servers are patched till update 9.
My team specifiacally does not have experience with applying the latest patch. So my question is can i install the latest update which is 17 right now directly or do i need to do incremental updates?
When checking from CF admin on the servers it can not find the latest update when i click on check for updates. so we will be doing it manually. What files are needed for manual installation of the update.
Since we will be doing a manual update can you guys help with any SOPs that might be helpful or list out steps for doing this with info much as possible. Also please let me know if i need to check anything prior.
Thanks in advance.
Copy link to clipboard
Copied
@harshp_0559 All the updates are cumulative, so you can install the latest one.
Please see this article for detailed steps: https://coldfusion.adobe.com/2024/09/a-simple-way-to-install-coldfusion-updates-manually-in-offline-...
In case you need help, please send an email to cf.install@adobe.com
Thanks,
Abhishek
Copy link to clipboard
Copied
Hey Abhishek,
After the update my aplication is throwing the below error:
Cannot find implementation class coldfusion.tagext.mail.MailTag for the mail tag. |
struct
ClassName | coldfusion.tagext.mail.MailTag |
Column | -1 |
Detail | [empty string] |
KnownColumn | -1 |
KnownLine | -1 |
KnownText | <unknown> |
Line | -1 |
Message | Cannot find implementation class coldfusion.tagext.mail.MailTag for the mail tag. |
And the second error is
The following information is meant for the website developer for debugging purposes. | ||
Error Occurred While Processing Request | ||
|
Copy link to clipboard
Copied
Also the Collections section on the CF admin does not load any more says the search component is not installed. i checked the packages and its showing under the section with the latest version.
Copy link to clipboard
Copied
@AbhishekJha Can you guide for the above?
Copy link to clipboard
Copied
Hi @harshp_0559 , the object-instantiation error makes me wonder whether some packages, such as those required for Mail and Print, are missing. I would therefore suggest that you install all the packages. At least, to start with.
Assuming you are on Windows, you could do the following:
5. Keep running the command install all till the result is either an irreversible error or ColdFusion tells you that "All the packages are already installed".
6. If the former, then share the error message with the forum. If the later, then restart ColdFusion in the usual way, and you're set to go.
Copy link to clipboard
Copied
@BKBK Thank you for getting back.
I tried the same as you suggested and got all packages are installed.
As mentioned in https://community.adobe.com/t5/coldfusion-discussions/now-live-adobe-coldfusion-2023-and-2021-june-2... by Charlie i have also checked for the Jetty/lib/ext but everything is already present in the folder as from the backup folder from the update and the backup i took of the CF folder prior to applying the update.
But even after the restart i see the below in CF admin --> Collections section
and when loading the site i see the below
struct
Cause | struct
|
Below is what is logged in the update log:
Summary
-------
Installation: Successful.
1622 Successes
0 Warnings
0 NonFatalErrors
0 FatalErrors
So i suspect there were no issues with this but below is mentioned in the file:
----------------------------------------------------------------------------------------------------------------------------
The packages repository file:///D:/coldFusion2021/bundles/bundlesdependency.json is not accessible. You can only load the packages that are available locally in the D:\ColdFusion2021\bundles directory.axis (2021.0.11.330247) package and its dependencies have been downloaded successfully.sharepoint (2021.0.11.330247) package and its dependencies have been downloaded successfully.adminapi (2021.0.13.330286) package and its dependencies have been downloaded successfully.administrator (2021.0.17.330334) package and its dependencies have been downloaded successfully.caching (2021.0.17.330334) package and its dependencies have been downloaded successfully.pmtagent (2021.0.17.330334) package and its dependencies have been downloaded successfully.orm (2021.0.17.330334) package and its dependencies have been downloaded successfully.ormsearch (2021.0.17.330334) package and its dependencies have been downloaded successfully.document (2021.0.14.330296) package and its dependencies have been downloaded successfully.report (2021.0.17.330334) package and its dependencies have been downloaded successfully.presentation (2021.0.14.330296) package and its dependencies have been downloaded successfully.image (2021.0.17.330334) package and its dependencies have been downloaded successfully.pdf (2021.0.17.330334) package and its dependencies have been downloaded successfully.print (2021.0.17.330334) package and its dependencies have been downloaded successfully.htmltopdf (2021.0.17.330334) package and its dependencies have been downloaded successfully.ajax (2021.0.13.330286) package and its dependencies have been downloaded successfully.spreadsheet (2021.0.11.330247) package and its dependencies have been downloaded successfully.chart (2021.0.17.330334) package and its dependencies have been downloaded successfully.redissessionstorage (2021.0.17.330334) package and its dependencies have been downloaded successfully.zip (2021.0.17.330334) package and its dependencies have been downloaded successfully.mail (2021.0.17.330334) package and its dependencies have been downloaded successfully.debugger (2021.0.17.330334) package and its dependencies have been downloaded successfully.saml (2021.0.17.330334) package and its dependencies have been downloaded successfully.scheduler (2021.0.17.330334) package and its dependencies have been downloaded successfully.azureblob (2021.0.17.330334) package and its dependencies have been downloaded successfully.awss3 (2021.0.17.330334) package and its dependencies have been downloaded successfully.search (2021.0.17.330334) package and its dependencies have been downloaded successfully.odbc (2021.0.17.330334) package and its dependencies have been downloaded successfully.postgresql (2021.0.17.330334) package and its dependencies have been downloaded successfully.sybase (2021.0.13.330286) package and its dependencies have been downloaded successfully.db2 (2021.0.13.330286) package and its dependencies have been downloaded successfully.sqlserver (2021.0.11.330247) package and its dependencies have been downloaded successfully.mysql (2021.0.13.330286) package and its dependencies have been downloaded successfully.oracle (2021.0.17.330334) package and its dependencies have been downloaded successfully.exchange (2021.0.17.330334) package and its dependencies have been downloaded successfully.websocket (2021.0.17.330334) package and its dependencies have been downloaded successfully.ftp (2021.0.17.330334) package and its dependencies have been downloaded successfully.awsdynamodb (2021.0.11.330247) package and its dependencies have been downloaded successfully.azureservicebus (2021.0.17.330334) package and its dependencies have been downloaded successfully.awssns (2021.0.11.330247) package and its dependencies have been downloaded successfully.awssqs (2021.0.11.330247) package and its dependencies have been downloaded successfully.awslambda (2021.0.17.330334) package and its dependencies have been downloaded successfully.The package and its dependencies have been downloaded successfully. ColdFusion server is currently not running. The package will be installed automatically once server is up.
-------------------------------------------------------------------------------------------------------------------------------------------
I had updated the file based on your comments in https://community.adobe.com/t5/coldfusion-discussions/unable-to-update-from-coldfusion-2021-update-1...
<?xml version="1.0" encoding="UTF-8"?>
<settings><update autocheck="true" checkinterval="10" checkperiodically="false" sendupdate="true">
<url>https://www.adobe.com/go/coldfusion-updates</url>
<defaulturl>https://www.adobe.com/go/coldfusion-updates</defaulturl>
<packagesurl>D:\ColdFusion2021\bundles\bundlesdependency.json</packagesurl>
<defaultpackagesurl>file:///D:/coldFusion2021/bundles/bundlesdependency.json</defaultpackagesurl>
<notification><emaillist/><fromemail/></notification></update><proxy><hostname/><port>0</port><username/><password/></proxy></settings>
Copy link to clipboard
Copied
Harship, a few things:
1) First, as for your current errors (after doing the manual update and installing all packages as bkbk has suggested), the next thing may simply be that you need to delete the felix-cache folder within this CF instance. That is something disucssed in the update technotes for the October CF update: cf2021 update 17, in your case.
The technotes clarify that certain issues will happen if you fail to do that step--which is rarely something we need to bother with. While the things you mention are NOT what the technote says might happen, can you at least please try it?
It's simply a matter of stopping CF, deleting that folder (such as ColdFusion2021\cfusion\bin\felix-cache), then start CF. No need to "save off" the folder. CF will simply recreate it. Then try what failed and let us know how it goes.
2) As for the other issues you have raised (from the start and since), I have a few other thoughts:
Copy link to clipboard
Copied
At this point I would also suggest, as does Charlie, that you:
If the errors continue, then that would suggest that the manual process isn't working properly. There is another way.
Do the following (to purge the Felix cache programmatically):
Is everything OK now?
Copy link to clipboard
Copied
I have tried that previously to delete the Felix folder and start the CF services.
i had found this https://community.adobe.com/t5/coldfusion-discussions/cfmail-issue-after-cf2021-update-13/td-p/14983... and redid the steps but did not seem to help
Copy link to clipboard
Copied
Harsh, you've directed to bkbk your response to my point 1 above. Consider also my point 2 above, and the questions I'd asked.
We're here to help, but the answers are not in the detail you've offered so far.
Also, if you "just want this solved" without all the back and forth, I'll note that sometimes problems like this can be solved more readily by a screenshare session. I offer those on a consulting basis. We might solve this together in as little as 15 minutes, and you won't pay for time you don't find valuable. More at carehart.org/consulting.
But again I've offered all the above and more without obligation, trying to help here.
Copy link to clipboard
Copied
Just to clarify: doing the cfpm merely does the exact same thing as manually deleting the felix-cache folder. (And it, too, will indicate how it can only be done while cf is down.) It adds no other benefit that I've seen (besides alleviating a need to know just where the folder is).
Copy link to clipboard
Copied
True, manually deleting the Felix cache folder has the same aim as running cfpm purgecache. However, the two methods work differently.
The first is done manually by the developer. on the Operating System. The second is performed programmatically by the ColdFusion Package Manager application. The two scenarios are therefore different. Since there is an issue with packages, of which we don't know the cause, it makes sense to try both ways of purging the Felix cache.
Copy link to clipboard
Copied
I have attached the full log of what i see since i applied the update. but closest error i see to felix is below:
Error [main] - Unable to install felixclassloader package: org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: file:///D:/coldFusion2021/bundles/felixclassloader-2021.0.02.328618.jar
In my bundles folder i only see felixclassloader-2021.0.0.323925.jar which i got from the latest files on the Adobe updates page.
I also checked my Java version which is 11.0.11+9-LTS-194. Should this be updated? we are using the one that ships with CF by default.
Copy link to clipboard
Copied
CF is trying to install felixclassloader-2021.0.02.328618.jar but only has felixclassloader-2021.0.0.323925.jar downloaded. So I don't think that's going to work out very well. Here are some things you can do. First, open a bug ticket at https://tracker.adobe.com/. Second, if you need to install felix-cache right now, edit your JSON file to point to the version you have in your bundles folder. I think that should work, although I haven't tried it. You'd have to use a local copy of it of course.
I don't think your version of Java is going to make a difference here. This is just a version mismatch in the JSON file. I'm not sure what's causing the mismatch, but it's not a Java problem.
Copy link to clipboard
Copied
Harshp, I think I see your solution--and thanks for including your coldfusion-out.log, which offers a clue.
First, the java version may have related to your original problem of your not being able to download updates in the Admin. But it is NOT related to the problem you're now facing, regarding packages.
As for that, and regarding the error you observed, "Error [main] - Unable to install felixclassloader package: org.apache.http.client.ClientProtocolException: URI does not specify a valid host name:file:///D:/coldFusion2021/bundles/felixclassloader-2021.0.02.328618.jar", that relates to something you had told us above , where you had changed your neo_updates.xml to include these two lines:
<packagesurl>D:\ColdFusion2021\bundles\bundlesdependency.json</packagesurl>
<defaultpackagesurl>file:///D:/coldFusion2021/bundles/bundlesdependency.json</defaultpackagesurl>
Notice how the first part of that second line matches your error precisely: "file:///D:/coldFusion2021/bundles". And one might propose you change that the value in your neo_updates.xml file...
But as I review the rest of your coldfusion-out log, I see that specific error occurred only until your Dec 18, 2024 at 05:24:36 AM. After that, your next CF restart a few hours later shows a DIFFERENT variation of that error:
Dec 18, 2024 09:12:15 AM Error [main] - Unable to install felixclassloader package: java.lang.IllegalArgumentException: Illegal character in opaque part at index 2: D:\ColdFusion2021\bundles/felixclassloader-2021.0.02.328618.jar
That suggests you DID change it, during those few hours. So please tell us now: what ARE the current values for those two lines?
I appreciate that you've been pulled into this mess by the original challenge you had about not being able to pull down the latest CF updates in the CF Admin (which I've said more than once is related to Java). But in "solving" that problem you instead did a manual CF update (as discussed in the CF update technotes and other forum threads you pointed to).
It's very easy for all this to get messed up. There are many variables involved.
Now that you have (it seems) applied the update manually, did you do the step of extracting the zip offered in the update technotes? Did you put it in the d:\coldfusion2021\bundles folder? If so, then is that felixclassloader-2021.0.02.328618.jar there? If not, where is it? Where DID you extract that zip?
The "url" values above can either be a path for the bundlesdependency.json file (and the jar files alongside it) or a URL that RETURNS such a bundlesdependency.json file. FWIW, the ORIGINAL value for both of those lines (for CF2021) in that XML file (about packages) is https://www.adobe.com/go/coldfusion-packages.
Once you change things, you could try doing the package uninstall/installs either in the Admin or via CFPM, without need of a CF restart. There's more I could share, but let's see where this gets you.
Let us know if that helps.
Copy link to clipboard
Copied
The neo-update file has not been updated since i started the update process. Yes as for the manual process it required the hotfix-packages-cf2021-017-330334.zip file to be downloaded and i pasted the content of it into the bundles folder. I also thought the same thing regarding the felix class and downloaded a fresh copy of the zip file from the adobe site and only see the 2021.0.0 version in that file.
Copy link to clipboard
Copied
Ok if you didn't change it "since" starting the update process, then you or someone changed it before. What you showed is NOT the default. I gave you that. Please reset the value, restart cf, and let us know how that goes.