http://coldfusion.com logo
Docs
Join the conversationJoin Slack
Channels
adobe
advent-of-code
auwcl
aws
books
bot-dev
box-products
cfeclipse
cfkrauts
cflint
cfml-beginners
cfml-general
cfml-tuning
cfsummit2022
cfwheels
ci
community_courses
css
devops-general
docker
docker-commandbox
documentation
events
friday-puzzle
fusion-reactor
fw1
ide
java-and-jvm
javascript
jobs
jobs-non-us
linen-dev
lucee
masacms
meta
migrations
mura
music
nosql
object-oriented
orm
perf-monitor
prog-general
slack-help
sql
taffy
testing
version-control
vuejs
water-cooler
Powered by Linen
docker-commandbox
  • m

    mike42780

    05/02/2022, 5:05 PM
    I have a local ACF 2021 environment setup locally on Windows 10 using Commandbox (not with docker). I need to do some PDF creation work, so I've been looking into the Coldfusion addons to get the PDF Service running and use cfhtmltopdf. My first choice was to use the docker version of the coldfusion addons so I could just turn it on when needed. I got it running on port 8993. I go into the coldfusion administrator and find the PDF service. I verified the connection, and then started it. Everything works great. I can go to http://127.0.0.1:8993 in the browser and see that the PDFgServlet is started. However when I try to create a PDF I get this error: "Error occurred while generating PDF. Reason: BAD REQUEST". I know the code works because I push it up to our Dev server and it runs fine. Any ideas why it appears to be running fine, but then won't create the PDF?
    j
    b
    +2
    60 replies · 5 participants
  • j

    jclausen

    05/03/2022, 3:48 PM
    Commandbox Docker v3.5.0 Images released:
    This release upgrades the CommandBox binary to 5.5.1, which uses Lucee 5.3.9 as the underlying CFML engine. In addition, this release changes the underlying base image over to use the
    eclipse-temurin
    image builds, as the
    adoptopenjdk
    builds are being sunsetted. With this change, the underlying Debian version changes to use Ubuntu 20.0.0 (focal). As such, some custom installs in Dockerfiles may need updates to available packages from this distro.
    https://www.ortussolutions.com/blog/commandbox-docker-v350-images-released
    p
    2 replies · 2 participants
  • c

    Cavan Vannice

    05/10/2022, 5:43 PM
    Has anyone had any success/issues applying a CF2021 Enterprise license to the ortussolutions/commandbox:adobe2021 docker image in Azure App Service or Azure Pipelines? I'm still new to docker, but it works fine on my local Docker Desktop setup. I've dropped
    "license":XXXXXXXXX
    into
    .cfconfig.json
    via
    cfconfig set
    . I've added the
    cfconfig_license=XXXXXXXXX
    at multiple points. .env, dockerfile, docker-compose.yml, azure-pipelines.yml. I've also tried adding it into the pipeline and the app service variables. It seems stuck on Enterprise Trial.
    b
    p
    14 replies · 3 participants
  • c

    Cavan Vannice

    06/07/2022, 4:55 PM
    I have a website running on the latest CommandBox docker image. I am getting an error when trying to generate a PDF using a remote CF2021 Add-ons server
    Error occurred while generating PDF. Reason: BAD REQUEST
    . The exact same code works on a normal CF2021 install with add-ons locally. On the CommandBox server, I have confirmed that it is able to register the PDFg service manager
    PDFg service manager <http://10.0.0.242:8993/PDFgServlet/> registered.
    . I have also confirmed that the remote PDFg server is receiving communications from my local CommandBox docker
    192.168.2.84 - - [07/Jun/2022:15:42:49 +0000] "GET /PDFgServlet/verify HTTP/1.1" 200 0 "-" "Apache-HttpClient/4.5.13 (Java/11.0.15)"
    . The PDFg service seems to work locally but not remotely. Todays logs from our production servers PDFg service I am trying to connect to:
    127.0.0.1 - - [07/Jun/2022:12:10:31 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 35568 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    127.0.0.1 - - [07/Jun/2022:13:31:14 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 37152 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    127.0.0.1 - - [07/Jun/2022:13:31:40 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 37150 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    127.0.0.1 - - [07/Jun/2022:14:55:16 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 35826 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    127.0.0.1 - - [07/Jun/2022:15:21:50 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 34965 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    127.0.0.1 - - [07/Jun/2022:15:21:51 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 34964 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    192.168.2.84 - - [07/Jun/2022:15:22:16 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 256 "-" "Apache-HttpClient/4.5.13 (Java/11.0.15)"
    127.0.0.1 - - [07/Jun/2022:15:23:57 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 35405 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    127.0.0.1 - - [07/Jun/2022:15:23:58 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 35186 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    127.0.0.1 - - [07/Jun/2022:15:23:58 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 35273 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    127.0.0.1 - - [07/Jun/2022:15:23:59 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 35831 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    127.0.0.1 - - [07/Jun/2022:15:23:59 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 35215 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    127.0.0.1 - - [07/Jun/2022:15:23:59 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 35236 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    127.0.0.1 - - [07/Jun/2022:15:24:00 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 36843 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    127.0.0.1 - - [07/Jun/2022:15:24:00 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 35257 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    127.0.0.1 - - [07/Jun/2022:15:24:00 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 35204 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    127.0.0.1 - - [07/Jun/2022:15:24:01 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 34762 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    127.0.0.1 - - [07/Jun/2022:15:24:01 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 35506 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    192.168.2.84 - - [07/Jun/2022:15:24:26 +0000] "POST /PDFgServlet/ HTTP/1.1" 400 504 "-" "Apache-HttpClient/4.5.13 (Java/11.0.15)"
    192.168.2.84 - - [07/Jun/2022:15:31:42 +0000] "POST /PDFgServlet/ HTTP/1.1" 400 504 "-" "Apache-HttpClient/4.5.13 (Java/11.0.15)"
    192.168.2.84 - - [07/Jun/2022:15:34:16 +0000] "GET /PDFgServlet/verify HTTP/1.1" 200 0 "-" "Apache-HttpClient/4.5.13 (Java/11.0.15)"
    127.0.0.1 - - [07/Jun/2022:15:38:30 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 36335 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    127.0.0.1 - - [07/Jun/2022:15:40:37 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 36340 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    192.168.2.84 - - [07/Jun/2022:15:41:10 +0000] "POST /PDFgServlet/ HTTP/1.1" 400 504 "-" "Apache-HttpClient/4.5.13 (Java/11.0.15)"
    127.0.0.1 - - [07/Jun/2022:15:42:14 +0000] "GET /PDFgServlet/verify HTTP/1.1" 200 0 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    192.168.2.84 - - [07/Jun/2022:15:42:49 +0000] "GET /PDFgServlet/verify HTTP/1.1" 200 0 "-" "Apache-HttpClient/4.5.13 (Java/11.0.15)"
    I am hoping someone from Adobe can help @priyank_adobe @Mark Takata (Adobe)
    1 reply · 1 participant
  • a

    Adam Brunt

    06/23/2022, 3:04 PM
    Hi all, please be kind to the newbie who is probably about to ask very newbie questions 🙂 I was pointed in this direction by the good folks in the Facebook CF Programmers group. I have a CF2016 application which I am trying to convert to run inside a Lucee Docker container [ with the long term goal to save on Adobe license costs and deploying in an Azure container environment - it's currently running on an Azure VM ]. It is has been recommended to me that Commandbox is the way to go but, whilst I am fairly up to speed with Docker and very up to speed with CF, my knowledge of Lucee and Commandbox is not so great. I have started doing some digging with the exisiting commandbox docker images and can get a empty Lucee container running without problems. I can also build a container running Lucy and containing my application code but when I try to access the app (in the container) I get errors which are presumably caused by all my CFAdmin settings not being setup in the container. Is anyone able to point me in the direction of some sort of step-by-step guide/hand-holding to get the app running in the container ? Once I know all the settings have been included in the docker image/container then I am fairly sure I can sort out any Lucee compatibility issues. Anyone able to help ?
    m
    b
    +1
    15 replies · 4 participants
  • p

    pge

    07/11/2022, 11:58 AM
    Hey guys! We're experiencing a problem utilizing cfmail. We're running commandbox 5.4.2+00453 and get the error:
    [ERROR] runwar.context: Jul 11, 2022 1:22:35 PM javax.mail.Session loadResource
    WARNING: expected resource not found: /META-INF/javamail.default.address.map
    Any idea on that?
    b
    m
    6 replies · 3 participants
  • d

    dbinott

    07/24/2022, 4:21 PM
    Yes, but I don't understand it. I have heard and read that you don't need to clone the repo anymore, but if I don't, then I get errors because it is looking for files in the repo. I looked at the progressive one, but it's based on Lucee.
    b
    j
    12 replies · 3 participants
  • p

    paul

    08/02/2022, 10:10 PM
    When I use docker commandbox, how can I specify that when I start the server robust debugging is enabled?
    b
    j
    39 replies · 3 participants
  • c

    Cory Howitz

    08/25/2022, 4:56 PM
    I've been trying to get kerberos to work on an mssql dsn in this since its linux based. i can get it working with a keytab, but when i try to get the jdbc to pick up a ticket cache, it just wont do it.
  • j

    Jordan Clark

    09/15/2022, 8:24 PM
    @jclausen I got stung with ortussolutions/commandbox:jdk11-alpine version bumping commandbox causing a deployment problem. Is there any way to specify an image tag for alpine + a specific commandbox version? It doesn't look like the :commandbox-X.X.X tags are being used anymore?
  • j

    jclausen

    09/15/2022, 8:28 PM
    @Jordan Clark You can use the image version tags, which have a pinned version of commandbox. The previous tag would be
    :jdk11-alpine-3.5.4
    ( https://hub.docker.com/layers/ortussolutions/commandbox/jdk11-alpine-3.5.4/images/sh[…]b0013365c14400a4f37e39f4c543a1c13e033c49a2a9d?context=explore ) The current version is
    3.6.0
  • j

    jclausen

    09/15/2022, 8:29 PM
    When you say you “got stung”, what did you encounter?
    j
    11 replies · 2 participants
  • j

    Jim Priest

    09/30/2022, 7:51 PM
    Trying to spool up CF2021 - I tweaked my docker-compose file and CF and my app fire up but I get errors which I expected because I have no packages installed. But trying to use CFPM_INSTALL doesn't seem to be working. I can see cfconfig run but then I get an error complaining things can't connect: [ERROR] runwar.context: The sqlserver package is not installed. I only changed the image line and added the CFPM_INSTALL line in my file:
    cfml:
        container_name: cfml
        hostname: <http://local.foo.com|local.foo.com>
        image: ortussolutions/commandbox:adobe2021
    
        environment:
          CFPM_INSTALL: sqlserver
          BOX_SERVER_CFCONFIGFILE: myconfig.json
    I sort of expected to see something in this section:
    | Dry run specified, exiting without starting server.
    cfml       |    |------------------------------
    cfml       |    | √ | Overriding server.json values from env vars
    cfml       |    |   |----------------------------------------------------------
    cfml       |    |   | Overridding [CFCONFIGFILE] with OS environment variable [BOX_SERVER_C
    cfml       |    |   | FCONFIGFILE
    cfml       |    |   | Overridding [RUNWAR.ARGS] with OS environment variable [BOX_SERVER_RU
    cfml       |    |   | NWAR_ARGS
    cfml       |    |   | Overridding [APP.SERVERHOMEDIRECTORY] with OS environment variable [B
    cfml       |    |   | OX_SERVER_APP_SERVERHOMEDIRECTORY
    cfml       |    |   | Overridding [APP.CFENGINE] with OS environment variable [BOX_SERVER_A
    cfml       |    |   | PP_CFENGINE
    cfml       |    |   |----------------------------------------------------------
    cfml       |    | √ | Setting Server Profile to [development]
    cfml       |    |   |------------------------------------------------------
    cfml       |    |   | Profile set from profile property in server.json
    cfml       |    |   | Block CF Admin disabled
    cfml       |    |   | Block Sensitive Paths enabled
    cfml       |    |   | Block Flash Remoting enabled
    cfml       |    |   | Directory Browsing enabled
    cfml       |    |   | File Caching disabled
    cfml       |    |   |------------------------------------------------------
    cfml       |    | √ | Loading CFConfig into server
    cfml       |    |   |-------------------------------------------
    cfml       |    |   | Found CFConfig JSON in "CFConfigFile" server.json key.
    cfml       |    |   | Importing adobe config from [/app/myconfig.json]
    cfml       |    |   | Config transferred from /app/myconfig.json!
    cfml       |    |   | Found OS environment variable [cfconfig_adminPassword]
    cfml       |    |   | Importing into [adobe]...
    cfml       |    |   | [adminPassword] set.
    cfml       |    |   |-------------------------------------------
    j
    6 replies · 2 participants
  • j

    jclausen

    12/08/2022, 3:24 PM
    v3.6.3 of the CommandBox Docker images are now available. Of note: • CommandBox binary updated to to v5.7.0. • New distro builds for the RHEL Universal Base Image have been added. https://www.ortussolutions.com/blog/commandbox-docker-v363-images-released
    🎉 2
  • c

    chapmandu

    12/08/2022, 11:35 PM
    Hey all.. Is it plausible that an update in CBv5.7.0 changes DB connections to assume the use of SSL?
    b
    9 replies · 2 participants
  • m

    mjhagen

    12/12/2022, 4:00 PM
    Hi all, long time no speak. I'm using the commandbox docker image to run some background tasks (using Task Runners) but I'm not seeing any output to the docker logs (I first used the built-in
    job.addLog()
    ) but figured I don't need to see it on the console, so I changed those to
    writeLog()
    . It gets logged to the lucee log files in
    /usr/local/lib/CommandBox/engine/cfml/cli/cfml-web/logs
    now, but I don't think that's right, I think Docker likes it if things get logged to
    stdout
    but have no idea how to do that. Any ideas?
    a
    b
    28 replies · 3 participants
  • d

    dougcain

    03/02/2023, 12:40 PM
    Just tracked down(ish) an interesting problem - were running commandbox in AWS fargate containers using pipelines to deploy. They recently started failing to deploy with an out of memory error. The container has memory limit of 4Gb and commandbox acf 2018 is given 3.5Gb via server.json jvm->heapsize. This has worked fine but it seems ortussolutions/commandbox:3.6.4 want’s more than 500Mb for the kernel to run - if I reduce the heapsize to 3G it’s ok, 3.6.3 didn’t seem to have this issue. Any ideas whats changed in 3.6.4 that makes it want more memory for the base OS? It may be that my assumption that 500Mb is enough for the OS in a container is wrong though, anyone have any thoughts on how much headroom a container should have outside of the application running?
    b
    j
    12 replies · 3 participants
  • c

    cfsimplicity

    03/13/2023, 4:16 PM
    Is there a way to get the docker-commandbox image to look for a custom server.json not located in the webroot when starting up? I tried
    BOX_SERVER_SERVERCONFIGFILE
    as an ENV but it seems to be ignored. I prefer to keep all my app files and config above the webroot.
    p
    j
    +1
    31 replies · 4 participants
  • d

    Dean

    03/14/2023, 2:16 AM
    Just updated to the latest version of the container and I can no longer see the access logs in the console. Is there a setting I need to enable for this?
    j
    p
    6 replies · 3 participants
  • c

    chapmandu

    03/17/2023, 7:49 AM
    Hey all.. When I add a javaVersion to my server.json file eg:
    "jvm": {
        "javaVersion": "openjdk11_jdk"
    }
    The logs show this error.. and the container fails to start [INFO] 2023-03-17T07:37:30Z - Starting server using generated script: /usr/bin/startup.sh /usr/bin/startup.sh: line 3: /usr/lib/CommandBox/serverJREs/openjdk11_jdk_x64_linux_hotspot_jdk-11.0.18+10/bin/java: cannot execute: required file not found But further up... Installing to: /usr/lib/CommandBox/serverJREs/openjdk11_jdk_x64_linux | | _hotspot_jdk-11.0.18+1 | | -> 576 File(s) Installed | | -> 0 File(s) ignored | | Eureka, 'java😮penjdk11_jdk:lockVersion' has been installed! Any help appreciated...
    j
    p
    +1
    41 replies · 4 participants
  • a

    Alan

    03/17/2023, 3:34 PM
    has anyone used commandbox to create a mysql trigger ? I'm having difficulty changing the delimiter. running
    mysql> DELIMITER //
    commandbox doesn't seem to like
    p
    2 replies · 2 participants
Powered by Linen
Title
a

Alan

03/17/2023, 3:34 PM
has anyone used commandbox to create a mysql trigger ? I'm having difficulty changing the delimiter. running
mysql> DELIMITER //
commandbox doesn't seem to like
p

Patrick

03/17/2023, 4:09 PM
Need more info than that; whats your stack error?
a

Alan

03/17/2023, 4:10 PM
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DELIMITER //' at line 1

MigrationService.cfc

    DELIMITER //
View count: 1