cfengine=lucee@5 on raspberry pi?

Possible to run lucee5 of raspberry pi?

box server start host=192.168.20.13 port=8080 cfengine=lucee@5

Contacting ForgeBox to determine the latest & greatest version of [lucee 5]… Use an exact ‘cfengine’ version to skip this check.

OK, [lucee 5.2.5+20] it is!

Installing package [forgebox:lucee@5]

Verifying package ‘lucee’ in ForgeBox, please wait…

Installing version [5.2.5+20].

Verified entry in ForgeBox: ‘lucee’

Deferring to [http] endpoint for ForgeBox entry [lucee]…

Downloading [HTTP://downloads.ortussolutions.com/lucee/lucee/5.2.5.20/cf-engine-5.2.5.20.zip]

ERROR (3.9.2+00826)

Could not load library. Reasons: [no jansi in java.library.path, /tmp/libjansi-32-7056997160442957187.so: /tmp/libjansi-32-7056997160442957187.so: cannot open shared object file: No such file or directory (Possible cause: can’t load IA 32-bit .so on a ARM-bit platform)]

Wow, this is the second time I’ve been asked this question today, but I’ve never heard of this prior to today! Must be a good day for people to be playing with Raspberry Pis :slight_smile:

This is a bug of some sort in the underlying library used for writing ANSI escape sequences to the terminal. See:
https://github.com/SpigotMC/BungeeCord/issues/2050
and
https://issues.apache.org/jira/browse/KARAF-4714

Neither of those links have a solution though, but it may not matter The newest version of CommandBox (4.0 snapshot) is on a new major version of Jline plus I’ve rewritten the file in question where that error is coming from to not call the same libraries. Can you please give this a test on the snapshot build of CommandBox 4.0?

http://integration.stg.ortussolutions.com/artifacts/ortussolutions/commandbox/4.0.0-SNAPSHOT/

Please report any bugs since it’s not a stable build, but it also is running on Lucee 5 internally so your default servers you start with use Lucee 5 already. If it’s still an issue on the latest version of the Jline library then I’ll start a ticket over with them.

Thanks!

~Brad

Sorry for the delay on this. I installed /4.0.0-SNAPSHOT/ . But no go.

Had to install java-common package 1st. It erred on that so I did an apt-get install java-common. then hit the error I pasted below.

OK, [lucee 5.2.6+60] it is!

Installing package [forgebox:lucee@5]
Verifying package ‘lucee’ in ForgeBox, please wait…
Installing version [5.2.6+60].
Verified entry in ForgeBox: ‘lucee’
Package found in local artifacts!
Decompressing…
ERROR (4.0.0-SNAPSHOT+00920)

Unexpected end of ZLIB input stream

/root/.CommandBox/cfml/system/endpoints/File.cfc: line 42
40: consoleLogger.info( “Decompressing…”);
41:
42: zip action=“unzip” file="#package#" destination="#packagePath#" overwrite=“true”;
43:
44: // Defer to folder endpoint
called from /root/.CommandBox/cfml/system/endpoints/ForgeBox.cfc: line 469
467: var thisArtifactPath = artifactService.getArtifactPath( slug, version );
468: // Defer to file endpoint
469: return fileEndpoint.resolvePackage( thisArtifactPath, arguments.verbose );
470: }
471:
called from /root/.CommandBox/cfml/system/endpoints/ForgeBox.cfc: line 55
53: return fileEndpoint.resolvePackage( thisArtifactPath, arguments.verbose );
54: } else {
55: return getPackage( slug, version, arguments.verbose );
56: }
57: }
called from /root/.CommandBox/cfml/system/services/PackageService.cfc: line 99
97: consoleLogger.info( ‘Installing package [#endpointData.ID#]’ );
98:
99: var tmpPath = endpointData.endpoint.resolvePackage( endpointData.package, arguments.verbose );
100:
101: // Support box.json in the root OR in a subfolder (NPM-style!)
called from /root/.CommandBox/cfml/system/services/ServerEngineService.cfc: line 271
269: }
270:
271: if( !packageService.installPackage( ID=arguments.ID, directory=thisTempDir, save=false ) ) {
272: throw( message=‘Server not installed.’, type=“commandException”);
273: }
called from /root/.CommandBox/cfml/system/services/ServerEngineService.cfc: line 89
87: **/
88: public function installLucee( required destination, required version, required struct serverInfo, required string serverHomeDirectory ) {
89: var installDetails = installEngineArchive( ‘lucee@#version#’, destination, serverInfo, serverHomeDirectory );
90:
91: if( installDetails.initialInstall ) {
called from /root/.CommandBox/cfml/system/services/ServerEngineService.cfc: line 42
40: return installRailo( destination=arguments.baseDirectory, version=version, serverInfo=serverInfo, serverHomeDirectory=serverHomeDirectory );
41: } else if (engineName == “lucee”) {
42: return installLucee( destination=arguments.baseDirectory, version=version, serverInfo=serverInfo, serverHomeDirectory=serverHomeDirectory );
43: } else {
44: return installEngineArchive( cfengine, arguments.baseDirectory, serverInfo, serverHomeDirectory );
called from /root/.CommandBox/cfml/system/services/ServerService.cfc: line 713
711:
712: // This will install the engine war to start, possibly downloading it first
713: var installDetails = serverEngineService.install( cfengine=serverInfo.cfengine, basedirectory=serverinfo.customServerFolder, serverInfo=serverInfo, serverHomeDirectory=serverInfo.serverHomeDirectory );
714: serverInfo.serverHomeDirectory = installDetails.installDir;
715: // TODO: As of 3.5 “serverHome” is for backwards compat. Remove in later version in favor of serverHomeDirectory above
called from /root/.CommandBox/cfml/system/modules_app/server-commands/commands/server/start.cfc: line 150
148:
149: // startup the server
150: return serverService.start( serverProps = arguments );
151:
152: // endpointException exception type is used when the endpoint has an issue that needs displayed,
called from /root/.CommandBox/cfml/system/services/CommandService.cfc: line 319
317: // Run the command
318: try {
319: var result = commandInfo.commandReference.CFC.run( argumentCollection = parameterInfo.namedParameters );
320: lastCommandErrored = commandInfo.commandReference.CFC.hasError();
321: } catch( any e ){
called from /root/.CommandBox/cfml/system/services/CommandService.cfc: line 154
152: }
153:
154: return runCommand( commandChain, tokens.toList( ’ ’ ) );
155:
156: }
called from /root/.CommandBox/cfml/system/Shell.cfc: line 729
727: var result = variables.commandService.runCommandTokens( arguments.command, piped );
728: } else {
729: var result = variables.commandService.runCommandTokens( arguments.command );
730: }
731: } else {
called from /root/.CommandBox/cfml/system/Bootstrap.cfm: line 91
89: shell.callCommand( command=argsArray, piped=piped, initialCommand=true );
90: } else {
91: shell.callCommand( command=argsArray, initialCommand=true );
92: }
93:
lucee.runtime.exp.NativeException: Unexpected end of ZLIB input stream
at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:240)
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
at java.util.zip.ZipInputStream.read(ZipInputStream.java:194)
at java.io.FilterInputStream.read(FilterInputStream.java:107)
at lucee.commons.io.IOUtil.copy(IOUtil.java:286)
at lucee.commons.io.IOUtil.copy(IOUtil.java:75)
at lucee.commons.io.IOUtil.copy(IOUtil.java:157)
at lucee.runtime.tag.Zip.actionUnzip(Zip.java:512)
at lucee.runtime.tag.Zip.doEndTag(Zip.java:711)
at system.endpoints.file_cfc$cf.udfCall(/commandbox/system/endpoints/File.cfc:42)
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:107)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:357)
at lucee.runtime.type.UDFImpl.call(UDFImpl.java:226)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:687)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:567)
at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1988)
at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:756)
at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1718)
at system.endpoints.forgebox_cfc$cf.udfCall2(/commandbox/system/endpoints/ForgeBox.cfc:469)
at system.endpoints.forgebox_cfc$cf.udfCall(/commandbox/system/endpoints/ForgeBox.cfc)
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:107)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:357)
at lucee.runtime.type.UDFImpl.call(UDFImpl.java:226)
at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:771)
at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:756)
at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1718)
at system.endpoints.forgebox_cfc$cf.udfCall1(/commandbox/system/endpoints/ForgeBox.cfc:55)
at system.endpoints.forgebox_cfc$cf.udfCall(/commandbox/system/endpoints/ForgeBox.cfc)
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:107)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:357)
at lucee.runtime.type.UDFImpl.call(UDFImpl.java:226)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:687)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:567)
at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1988)
at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:756)
at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1718)
at system.services.packageservice_cfc$cf.udfCall1(/commandbox/system/services/PackageService.cfc:99)
at system.services.packageservice_cfc$cf.udfCall(/commandbox/system/services/PackageService.cfc)
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:107)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:357)
at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:212)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:689)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:567)
at lucee.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:2005)
at lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:833)
at lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1737)
at system.services.serverengineservice_cfc$cf.udfCall(/commandbox/system/services/ServerEngineService.cfc:271)
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:107)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:357)
at lucee.runtime.type.UDFImpl.call(UDFImpl.java:226)
at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:771)
at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:756)
at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1718)
at system.services.serverengineservice_cfc$cf.udfCall(/commandbox/system/services/ServerEngineService.cfc:89)
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:107)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:357)
at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:212)
at lucee.runtime.type.scope.UndefinedImpl.callWithNamedValues(UndefinedImpl.java:780)
at lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:833)
at lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1737)
at system.services.serverengineservice_cfc$cf.udfCall(/commandbox/system/services/ServerEngineService.cfc:42)
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:107)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:357)
at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:212)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:689)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:567)
at lucee.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:2005)
at lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:833)
at lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1737)
at system.services.serverservice_cfc$cf.udfCall1(/commandbox/system/services/ServerService.cfc:713)
at system.services.serverservice_cfc$cf.udfCall(/commandbox/system/services/ServerService.cfc)
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:107)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:357)
at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:212)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:689)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:567)
at lucee.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:2005)
at lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:833)
at lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1737)
at system.modules_app.server_commands315.commands.server.start_cfc$cf.udfCall(/commandbox/system/modules_app/server-commands/commands/server/start.cfc:150)
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:107)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:357)
at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:212)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:689)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:567)
at lucee.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:2005)
at lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:833)
at lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1737)
at system.services.commandservice_cfc$cf.udfCall1(/commandbox/system/services/CommandService.cfc:319)
at system.services.commandservice_cfc$cf.udfCall(/commandbox/system/services/CommandService.cfc)
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:107)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:357)
at lucee.runtime.type.UDFImpl.call(UDFImpl.java:226)
at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:771)
at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:756)
at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1718)
at system.services.commandservice_cfc$cf.udfCall1(/commandbox/system/services/CommandService.cfc:154)
at system.services.commandservice_cfc$cf.udfCall(/commandbox/system/services/CommandService.cfc)
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:107)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:357)
at lucee.runtime.type.UDFImpl.call(UDFImpl.java:226)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:687)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:567)
at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1988)
at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:756)
at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1718)
at system.shell_cfc$cf.udfCall4(/commandbox/system/Shell.cfc:729)
at system.shell_cfc$cf.udfCall(/commandbox/system/Shell.cfc)
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:107)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:357)
at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:212)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:689)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:567)
at lucee.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:2005)
at lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:833)
at lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1737)
at _commandbox46.cfml.system.bootstrap_cfm$cf.call(/__commandbox_root/.CommandBox/cfml/system/Bootstrap.cfm:91)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:933)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:823)
at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:805)
at wvpbp5e2de35.call(Unknown Source)
at lucee.runtime.compiler.Renderer.tag(Renderer.java:113)
at lucee.runtime.compiler.Renderer.script(Renderer.java:101)
at lucee.runtime.jsr223.ScriptEngineImpl.eval(ScriptEngineImpl.java:64)
at lucee.runtime.jsr223.ScriptEngineImpl.eval(ScriptEngineImpl.java:199)
at cliloader.LoaderCLIMain.execute(LoaderCLIMain.java:278)
at cliloader.LoaderCLIMain.execute(LoaderCLIMain.java:150)
at cliloader.LoaderCLIMain.main(LoaderCLIMain.java:492)
Caused by: java.io.EOFException: Unexpected end of ZLIB input stream
… 128 more

Well, you say no go, but it looks like the originally reported error is gone and this is a new error, so definitely progress. Firstly, I’m curious why you needed to install java. My understanding is that RPI 2’s and onward have Oracle java 8 for ARM pre-installed on the Raspbian OS. I’ve never needed to install Java on my RPIs.

So, on to your error, that honestly just looks like a bad download. It’s complaining about a zip file that ended prematurely. You might just try clearing your artifacts and trying again so it downloads a fresh version. If you really wanted, you could take a look at the actual zip and see if it looks bad, but this doesn’t seem like a CommandBox issue, probably a previous download that just got cut short.