Bonjour… (il n’y a pas de categorie Français donc allons y en globish)
On my cloud instances /ovh Debian 10 buster, the install wizard hangs on line 594 :
${CSCLI_BIN_INSTALLED} machines add --force "$(cat /etc/machine-id)" --password "$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)" -f "${CROWDSEC_CONFIG_PATH}/${CLIENT_SECRETS}"
And also for Hub bouncer auto-install, hangs on :
SUFFIX=`tr -dc "A-Za-z0-9" </dev/urandom | head -c 8`
API_KEY=`cscli bouncers add cs-firewall-bouncer-${SUFFIX} -o raw'
My guess is that dev/urandom | tr -dc 'a-zA-Z0-9' |
fails in script. I’ve manage to install Crowdsec by manually generate the lines :
cscli machines add --force 0ef30****************efb187ce --password 3212r************************4 -f /etc/crowdsec/local_api_credentials.yaml
using cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1
on command line
or install bouncer via :
# SUFFIX=tr -dc "A-Za-z0-9" </dev/urandom | head -c 8
# echo $SUFFIX
VlSKOSAs
Am I alone with this bug ??? Any clues about these errors ?