Unable to start gatling from cli

Hello,

I have download the gatling bundle (zip) from gatling.io - version 2.1.7

I can start the recorder, with $GATLING_HOME/bin/recorder.sh

But I can not start gatling with $GATLING_HOME/bin/gatling.sh

Output:

I suspect you’re actually running on Windows and use some shell emulator such as Cygwin, where the find command is buggy (gatling.sh line 40).
Am I guessing right?

Hello Stéphane,

thanks for your response. No, you are not guessing right. I use Ubuntu 14.04 as OS and the find command produced following output:

mma@notebookmma:~/gatling/gatling-charts-highcharts-bundle-2.1.7$ find /home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib -maxdepth 1 -name “*.jar” -type f -exec printf :{} ‘;’
:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/boon-0.33.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._redisclient_2.11-2.14.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._t-digest-3.0.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/jzlib-1.1.3.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._bcpkix-jdk15on-1.52.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._bcprov-jdk15on-1.52.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._jackson-databind-2.6.0-rc1.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/gatling-metrics-2.1.7.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/gatling-jms-2.1.7.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._gatling-metrics-2.1.7.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._logback-classic-1.1.3.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._scala-swing_2.11-1.0.2.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._scala-xml_2.11-1.0.4.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._scala-library-2.11.7.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/Saxon-HE-9.6.0-5.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._logback-core-1.1.3.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._netty-3.10.4.Final.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/scala-swing_2.11-1.0.2.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._jzlib-1.1.3.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/async-http-client-1.9.30.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/jsonpath_2.11-0.6.4.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/jackson-databind-2.6.0-rc1.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/gatling-core-2.1.7.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/scala-logging_2.11-3.1.0.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/scala-xml_2.11-1.0.4.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._scala-parser-combinators_2.11-1.0.4.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._scopt_2.11-3.3.0.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/scala-reflect-2.11.7.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._slf4j-api-1.7.12.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._Saxon-HE-9.6.0-5.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._scala-logging_2.11-3.1.0.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/gatling-http-2.1.7.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/gatling-jdbc-2.1.7.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/gatling-app-2.1.7.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._gatling-http-2.1.7.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/jodd-log-3.6.6.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/logback-core-1.1.3.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._config-1.2.1.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/gatling-charts-2.1.7.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/netty-3.10.4.Final.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._fastring_2.11-0.2.4.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._threetenbp-1.2.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/opencsv-2.3.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._gatling-charts-2.1.7.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/jodd-core-3.6.6.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._jsonpath_2.11-0.6.4.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._gatling-core-2.1.7.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/scala-library-2.11.7.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._async-http-client-1.9.30.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/jackson-annotations-2.6.0-rc1.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/gatling-charts-highcharts-2.1.7.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._jodd-core-3.6.6.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._gatling-redis-2.1.7.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._scala-compiler-2.11.7.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._concurrentlinkedhashmap-lru-1.4.2.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/akka-actor_2.11-2.3.12.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._gatling-recorder-2.1.7.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/commons-pool-1.6.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/scala-compiler-2.11.7.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._gatling-jms-2.1.7.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/t-digest-3.0.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._boon-0.33.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/bcpkix-jdk15on-1.52.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._akka-actor_2.11-2.3.12.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/geronimo-jms_1.1_spec-1.1.1.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._opencsv-2.3.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._jodd-lagarto-3.6.6.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/redisclient_2.11-2.14.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._jodd-log-3.6.6.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/logback-classic-1.1.3.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._jackson-annotations-2.6.0-rc1.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._geronimo-jms_1.1_spec-1.1.1.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/jodd-lagarto-3.6.6.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._gatling-jdbc-2.1.7.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/jackson-core-2.6.0-rc1.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/slf4j-api-1.7.12.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/scala-parser-combinators_2.11-1.0.4.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._jackson-core-2.6.0-rc1.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/fastring_2.11-0.2.4.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/scopt_2.11-3.3.0.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._gatling-charts-highcharts-2.1.7.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/threetenbp-1.2.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/concurrentlinkedhashmap-lru-1.4.2.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/bcprov-jdk15on-1.52.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._scala-reflect-2.11.7.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._gatling-app-2.1.7.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/gatling-recorder-2.1.7.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/config-1.2.1.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/gatling-redis-2.1.7.jar:/home/mma/gatling/gatling-charts-highcharts-bundle-2.1.7/lib/._commons-pool-1.6.jarmma@notebookmma:~/gatling/gatling-charts-highcharts-bundle-2.1.7$

The issue comes from all those “._” files that mess us with file discovery.
You’re probably connected from a Mac to a remote shared directory (smb and such) and OSX created those so Finder could display icons and such.
Delete them.

I created an issue: https://github.com/gatling/gatling/issues/2779

You are the hero of my day, thank you so much!

Yes, you are right. I downloaded the zip file with a Mac and copied it to Ubuntu. After delete the “._” files it works fine for me!

You’re welcome.
Have fun!

getting below issue in ubuntu after executing the below command in terminal.

$GATLING_HOME/bin/gatling.sh

bash: /bin/gatling.sh: No such file or directory

It seems GATLING_HOME environment var is not set.

Maruf

HOw to set the GATLING_HOME environment var.

Depends on how you run Gatling. For example, we set it in gatling.sh script located in the bin directory as follows:

OLDDIR=pwd
BIN_DIR=dirname $0
cd “${BIN_DIR}/…” && DEFAULT_GATLING_HOME=pwd && cd “${OLDDIR}”
GATLING_HOME="${GATLING_HOME:=${DEFAULT_GATLING_HOME}}"
export GATLING_HOME
echo “[INFO] GATLING_HOME is set to ${GATLING_HOME}”

Regards,
Maruf