Installing ConnectBox with contentbox-cli issue

Hi all,

i’ve tried to install contentbox through the contentbox-cli but i got the following erro:

**variable [APPCFC] doesn't exist**

I got it in every case, using wizard or not.

Thanks for your support.

Regards
Andrea Veggiani

Thanks @aveggiani can you send me the steps and commands you took please.

Hi @lmajano;

whatever step i take (using the wizard or not); at the end i got this error:

This is what I needed. I needed more info to track this down.

Bug squashed. It’s building now. Once it builds, please reinstall and try again the cli: box install contentbox-cli

You can see the build progress here

Updated contentbox-cli and executed it, same error:

It’s not redownloading because you might have the package in your artifacts already. Uninstall it first and re-isntall. If not, remove it from the artifacts using the artifcacts command

Done, a new error when trying to create through install-wizard:

Thanks for your support!

Fixed now. Thanks for testing. This is a new package and all testing is welcomed.

As soon as it builds, test away and report back to me, thanks

New error here (chosen CF2018 as cfengine):

That’s running the server and importing the cfconfig settings. @bdw429s can you assist on this? @aveggiani Can you post the created .cfconfig and server.json files

Hi all, i’ve tried again:

Here the .env file created

#################################################################
# App Name and Environment
#################################################################
APPNAME=tellyfood
# This can be development, staging, production or custom.
ENVIRONMENT=production
# The password for the CFML Engine Administrator
CFCONFIG_ADMINPASSWORD=admin
# The ColdBox Reinit password
COLDBOX_REINITPASSWORD=admin
# How long do admin sessions last (In Minutes)
COLDBOX_SESSION_TIMEOUT=60

#################################################################
# ContentBox ORM Settings
# --------------------------------
# This is used to configure the ORM via env settings usually for
# different RDBMS settings or options
#################################################################
# Dialect choices:
# 	MySQL, Hypersonic 	=> org.hibernate.dialect.MySQL5InnoDBDialect,
# 	PostgreSQL 			=> PostgreSQL
# 	Microsoft SQL 		=> org.hibernate.dialect.SQLServer2008Dialect
# 	Oracle 				=> Oracle10g
# 	Derby 				=> Derby
ORM_DIALECT=org.hibernate.dialect.SQLServer2008Dialect
# Log sql to the console or not
ORM_LOGSQL=false
# Sql Script to execute after ORM is initialized
ORM_SQL_SCRIPT=
# Activate secondary cache or disable it
ORM_SECONDARY_CACHE=false
ORM_SECONDARY_CACHE_PROVIDER=ehcache

#################################################################
# ContentBox Datsource and Migrations Variables
# ----------------------------------------------------------------
# These settings configure the datasource connection to your database
# Please make sure you read the comments as there are differences
# between Adobe and Lucee. Uncomment your rdbms of choice, the options are:
# - MySQL 5.7
# - MySQL 5.8
# - PostgreSQL
# - Microsoft SQL
# - Custom Database
#################################################################

######################################################
# Database Datasource Connection
######################################################
DB_DRIVER=mssql
DB_CLASS=com.microsoft.sqlserver.jdbc.SQLServerDriver
DB_BUNDLEVERSION=4.0.2206.100
DB_BUNDLENAME=mssqljdbc4
# DB Location
DB_HOST=10.0.0.208
DB_PORT=1433
DB_CONNECTIONSTRING=jdbc:sqlserver://10.0.0.208:1433;DATABASENAME=test_av_contentboxcli;sendStringParametersAsUnicode=true;SelectMethod=direct
# DB Credentials
DB_DATABASE=test_av_contentboxcli
DB_USER=imageline
DB_PASSWORD=test_imageline


#################################################################
# JWT Information
# --------------------------------
# You can seed the JWT secret below or you can also leave it empty
# and ContentBox will auto-generate one for you that rotates
# everytime the application restarts or expires
#################################################################
JWT_SECRET=ae2JFM1PJXvjJMDb6XN/E0wLLAFIUyjcMnbqlxoDQOw=

#################################################################
# AWS S3 or Digital Ocean Spaces
# --------------------------------
# If you are using any of our S3/Spaces compatible storages, you
# will have to seed your credentials and information below
#################################################################
S3_ACCESS_KEY=
S3_SECRET_KEY=
S3_REGION=us-east-1
S3_DOMAIN=amazonaws.com
S3_BUCKET=

Here the .cfconfig:

{
	"systemErr":"System",
	"systemOut":"System",
	"componentCacheEnabled":false,
	"saveClassFiles":false,
	"robustExceptionEnabled":true,
	"debuggingEnabled" : true,
	"adminPassword" : "contentbox",
	"requestTimeout": "0,0,10,0",
	"thistimezone":"UTC",
	"debuggingReportExecutionTimes": false,
    "whitespaceManagement":"white-space-pref",
	"postParametersLimit" : 200,
	"cacheDefaultObject":"contentbox",
    "caches":{
        "contentbox":{
            "storage":"true",
            "type":"RAM",
            "custom":{
                "timeToIdleSeconds":"1800",
                "timeToLiveSeconds":"3600"
            },
            "class":"lucee.runtime.cache.ram.RamCache",
            "readOnly":"false"
		}
    },
	"datasources" : {
		"contentbox":{
            "allowAlter":true,
            "allowCreate":true,
            "allowDelete":true,
            "allowDrop":true,
            "allowGrant":true,
            "allowInsert":true,
            "allowRevoke":true,
            "allowSelect":true,
            "allowUpdate":true,
            "blob":"true",
			"bundleName": "${DB_BUNDLENAME}",
			"bundleVersion": "${DB_BUNDLEVERSION}",
            "class":"${DB_CLASS}",
            "clob":"true",
            "connectionLimit":"100",
            "connectionTimeout":"1",
            "custom":"useUnicode=true&characterEncoding=UTF8&serverTimezone=UTC&useLegacyDatetimeCode=true&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true",
            "database":"${DB_DATABASE:contentbox}",
            "dbdriver":"${DB_DRIVER}",
            "host":"${DB_HOST:127.0.0.1}",
            "metaCacheTimeout":"60000",
            "password":"${DB_PASSWORD}",
            "port":"${DB_PORT:3306}",
            "storage":"false",
            "username":"${DB_USER}",
			"validate":"false"
		}
	}
}

And here the server.json:

{
    "name":"tellyfood",
    "web":{
        "directoryBrowsing":false,
        "rewrites":{
            "enable":true
        }
    },
    "JVM":{
        "heapSize":"768"
    },
    "openBrowserURL":"/",
    "trayicon":"modules_app/contentbox-custom/_content/ContentBoxIcon300.png",
    "trayOptions":[
        {
            "label":"Open ContentBox Admin",
            "action":"openbrowser",
            "url":"/cbadmin",
            "disabled":false,
            "image":"modules_app/contentbox-custom/_content/ContentBoxIcon300.png"
        }
    ],
    "app":{
        "cfengine":"adobe@2018"
    },
    "openBrowser":"true"
}

Thanks for your support.