Lucee in CommandBox doesn't always load all extensions
Description
Environment
Attachments
- 11 Feb 2020, 03:26 pm
Activity
Pothys - MitrahSoft 18 February 2020 at 05:50
OK @Brad Wood, Thanks for your input.
Brad Wood 17 February 2020 at 21:13
Oh, almost forgot about the java agent error. That is a totally unrelated 3rd issue. Check and see if you are testing on a recent release of java such as OpenJDK8 update 242. I've been seeing a lot of users getting that error on that version of Java and it appears to be a recent regression in Java itself. You need to roll back your Java version so that error goes away.
Brad Wood 17 February 2020 at 21:11
@Pothys - MitrahSoft Right, so I don't think you understand this ticket. The CommandBox setup for your test was fine, but the code you're testing is for the wrong ticket! Like I pointed out above in ticket LDEV-2558, extension management is broken, so trying to USE extension management or test this ticket will be the blind leading the blind. Like I said above, you must actually run CFML code that uses an extension. But even given that, this issue is intermittent (affecting a small number of users) so even if you were to construct a .cfm file that used every single extension and it succeeded, you'd not be proving the ticket valid or invalid, you'd simply be showing yourself lucky enough to be in the group of people for which the issue doesn't exist. Sadly, I don't know how to reproduce this on-demand. The only common thread I'm aware of between the users who have reported it were that they were using locked-down government servers that I wasn't allowed to access for troubleshooting purposes.
So, to review, there are two unrelated issues going on here in 2 separate tickets:
Lucee doesn't always report extensions as being installed even though they actually are (this is ticket https://luceeserver.atlassian.net/browse/LDEV-2558#icft=LDEV-2558)
Lucee sometimes actually doesn't load extensions (like PDF or compress), there does not appear to be any errors in the logs or indications that anything has gone wrong. Code such as CFDocument or cfzip simply fails to compile. (This ticket is for this bullet point)
Using any of the facilities reported as non-working in the first bullet point to try and test the issue in the second bullet point will render the test invalid.
Pothys - MitrahSoft 17 February 2020 at 15:10
@Brad Wood,
First, I'm not familiar with Command box CLI but, I tried with the following way.
I can explain how I did that. Initially, I've one test.cfm in my local and run it via Command box.
In the CLI, I've used this command to run the file
execute test.cfm
I tested with cfadmin-getRHExtensions method in the cfm.
Then, I can see the count of extensions in the first time. Seems the extensions count is low. And if I test with another method means, it throws an error. Like
Lucee was not able to load a Agent dynamically! You need to load one manually by adding the following to your JVM arguments [-javaagent:"C:\Users\SQORI-016\.CommandBox\engine\cfml\cli\lucee-server\context\lucee-external-agent.jar"]
Anything I missed with that or any other way to test this ticket, If yes, Please let me know here.
Brad Wood 12 February 2020 at 23:13
@Pothys - MitrahSoft Please note that in regard to this ticket, just because the extensions don't show as loaded, doesn't mean they aren't actually loaded. For example, I can run a cfdocument tag from the CLI and it works just fine even though I show as having zero extensions installed. Obviously the PDF extension is installed however. That is why this ticket is labeled as extension management not working, not that extensions don't install. The reason I brought this up on the other ticket is BECAUSE of the complications detailed on this ticket, it is very difficult to test wither an extension is installed unless you actually try to run code that you know uses that extension. Which goes back to me asking you how you tested whether the extensions were installed.
Details
Assignee
Pothys - MitrahSoftPothys - MitrahSoftReporter
Brad WoodBrad WoodPriority
NewNew Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Affects versions
Details
Details
Assignee
Reporter
Priority
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
There have been several accounts of CommandBox users, often times govt users, whose local CommandBox install will not recognize the cfdocument tag, etc due to the extensions not fully loading in the CLI Lucee process. There are no errors of any sort we can find in the logs, and the deploy log shows several extensions loading then simply stops. What can we do to see what errors are happening so we can troubleshoot this. In the following deploy log from the server context, the last extension to load was charts, but S3 never shows as loaded, nor any of the extensions after it.
"Severity","ThreadID","Date","Time","Application","Message" "INFO","main","04/16/2019","12:25:01","extract-extension","the following extensions are bundled with the lucee.jar [7E673D15-D87C-41A6-8B5F1956528C605F-5.1.40.lex;99A4EF8D-F2FD-40C8-8FB8C2E67A4EEEB6-4.0.2206.100.lex;671B01B8-B3B3-42B9-AC055A356BED5281-9.4.1212.lex;2BCD080F-4E1E-48F5-BEFE794232A21AF6-1.3.1.lex;D46B46A9-A0E3-44E1-D972A04AC3A8DC10-1.0.19.24.lex;17AB52DE-B300-A94B-E058BD978511E39E-0.9.4.119.lex;87FE44E5-179C-43A3-A87B3D38BEF4652E-2.10.0.30.lex;FAD1E8CB-4F45-4184-86359145767C29DE-3.5.5.71.lex;EFDEB172-F52E-4D84-9CD1A1F561B3DFC8-2.4.1.32.lex;66E312DD-D083-27C0-64189D16753FD6F0-1.0.0.66.lex;CED6227E-0F49-6367-A68D21AACA6B07E8-1.0.0.3.lex;D46D49C3-EB85-8D97-30BEC2F38561E985-1.0.0.2.lex;FAD67145-E3AE-30F8-1C11A6CCF544F0B7-1.0.0.9.lex;]" "INFO","main","04/16/2019","12:25:17","extract-extension","added [7E673D15-D87C-41A6-8B5F1956528C605F-5.1.40.lex] to [C:\Users\username\.CommandBox\engine\cfml\cli\lucee-server\context\extensions\available]" "INFO","main","04/16/2019","12:25:19","extract-extension","added [99A4EF8D-F2FD-40C8-8FB8C2E67A4EEEB6-4.0.2206.100.lex] to [C:\Users\username\.CommandBox\engine\cfml\cli\lucee-server\context\extensions\available]" "INFO","main","04/16/2019","12:25:22","extract-extension","added [671B01B8-B3B3-42B9-AC055A356BED5281-9.4.1212.lex] to [C:\Users\username\.CommandBox\engine\cfml\cli\lucee-server\context\extensions\available]" "INFO","main","04/16/2019","12:25:24","extract-extension","added [2BCD080F-4E1E-48F5-BEFE794232A21AF6-1.3.1.lex] to [C:\Users\username\.CommandBox\engine\cfml\cli\lucee-server\context\extensions\available]" "INFO","main","04/16/2019","12:25:27","extract-extension","added [D46B46A9-A0E3-44E1-D972A04AC3A8DC10-1.0.19.24.lex] to [C:\Users\username\.CommandBox\engine\cfml\cli\lucee-server\context\extensions\available]"
All other log files in the server and web context are empty.