supervisor ERROR (spawn error)

Processes configured in supervisor cannot start properly
supervisorctl status
cerebro FATAL Exited too quickly (process log may have details)

There is so little information here that we need to go to the specific log to see what went wrong.
tail -20 /var/log/supervisord.log

2017-08-07 13:23:36,829 INFO spawned: 'cerebro' with pid 16482
2017-08-07 13:23:36,863 INFO exited: cerebro (exit status 1; not expected)
2017-08-07 13:23:36,863 INFO gave up: cerebro entered FATAL state, too many start retries too quickly

There is more information here, but there is nothing of substance.
So what happens when you boot it up
cupname stdout
> this command is the dynamic output when the process is launched

/usr/bin/env: bash: Not a directory

Environment variables are not configured correctly.
I have already configured the Java environment variable in /etc/profile, but it has no effect.
The supervisor does not load /etc/profile when it starts. (The design itself)
But supervisor provides a configuration parameter, Enviroment

environment = JAVA_HOME="/opt/jdk/"
command =/bin/bash /opt/cerebro/bin/cerebro
autostart =true
autorestart =  true


supervisorctl update
supervisorctl reload
supervisorctl status

Process working properly

cerebro                          RUNNING   pid 17236, uptime 0:00:08
elasticsearch                    RUNNING   pid 17235, uptime 0:00:08

Read More: