When accessing Lucee admin, logs are littered with...
# lucee
s
When accessing Lucee admin, logs are littered with:
Copy code
[INFO ] runwar.context: ERROR: Failed to download the bundle for [lucee.image.extension] in version [1.0.0.42] from [<http://release.lucee.org/rest/update/provider/download/lucee.image.extension/1.0.0.42/?webId=d288a2265af0ee829e633a293a84691f&webSecurityKey=4bcf6548-6a3f-4a13-8d0b-be81b46bbaaf&serverId=e0d4fa68566c526998f5eeeac35a9180&serverSecurityKey=647dc293-ede9-4cf8-a0cd-7612fe734753&allowRedirect=true&jv=11.0.15>], please download manually and copy to [/usr/local/lib/serverHome/WEB-INF/lucee-server/bundles]
We have 1.2.0.0-SNAPSHOT installed and none of our code is requesting 1.0.0.42. Not a big deal, we don't hit lucee admin very much
It's got nothing to do with Commandbox
It's lucee admin reaching out for an extension
when Lucee is told to use an extension and it isn't installed, it tries to grab it from the relevant update provider. the questions here are: 1) why does Lucee admin need the image extension at all; 2) if it does need it (and a version other than the one we have installed) then why is it trying to get it from a URL that doesn't work
a
@Evil Ware - @sknowlton has asked a perfectly reasonable question - I don't know why you are trolling him. There is no need for it. This community should be supportive of people asking questions. Please be respectful.
e
trolled no, I was busy typing the solution as WE (yes one of my coworkers) had the same issue when he asked if I was "High" sorry, screw it I will happily put him on ignore
s
thanks John!
b
@sknowlton I can confirm the Lucee admin UI does use create thumbnails or something with the image extension. It will attempt to install it on the fly if it's not already there.
I THINK it's in the CFML bits-- been a hot minute since I laid eyes on that logic.
I can't speak to what version it attempts to install, nor why the update provider isn't returning that version ATM
It's interesting to note
1.0.0.42
is a valid version of the extension itself, but the URL that's erroring is specifically looking for an OSGI bundle of the same version. https://download.lucee.org/#B737ABC4-D43F-4D91-8E8E973E37C40D1B
@sknowlton I may have only been half right. Here are the two places the admin code that CHECKS if the image ext is installed https://github.com/lucee/Lucee/blob/5.3.9/core/src/main/cfml/context/admin/ext.functions.cfm#L203 and https://github.com/lucee/Lucee/blob/5.3.9/core/src/main/cfml/context/admin/login.cfm#L65
But I actually don't see any code that installs it now that I look.
If your error doesn't have a stack trace showing where it originated from, you can add this env var to usually tease it out as it throws preemptively as soon as Lucee tries to download any bundles.
Copy code
LUCEE_ENABLE_BUNDLE_DOWNLOAD=false
That will at least help find the code path that's leading to the bad download
s
We barely use Lucee admin so it's not something we have any self interest in solving. Seems like general weirdness with Lucee's pipeline of 'I need an extension --> do I have it --> should I get it --> where is it'
b
Fair enough, I just hate unsolved mysteries 🙂
Also of note, if you hit http://release.lucee.org/rest/update/provider/download/lucee.image.extension/latest which asks the provider for whatever the latest version is, you get
1.1.0.3
I'm at the end of my "fun time Brad has to look into interesting things online" for today, but in case anyone was curious, here is the code that powers the actual API endpoint that returned the error. https://github.com/lucee/lucee-data-provider/blob/master/update/UpdateProvider.cfc#L278 It's a simple REST API that basically • Looks in a series of places like maven, github, sonatype, etc for the jar • When it finds it writes out a JSON file cache of where it is to redirect future requests for the same jar
There's too many code paths to figure out where that jar normally comes from without just running it locally and debugging. Meh. It's not hard to spin it up with Commandbox, but you do have ot manually create the REST definition in the Lucee admin if you ever want to hack on Lucee's update provider locally.
z
just tried to reproduce this using lucee express 5.3.9.141 and couldn't, any tips on how to repro?
@sknowlton what's your env, custom profile from light with extensions?
s
yep, Docker under ubuntu 20.04, lucee-light with an extensions list in the env