#Cannot setup mattermost from the curl install

1 messages ยท Page 1 of 1 (latest)

rich eagle
#

I am using the curl install command from the openclaw website, i want to setup channel mattermost. and it goes fine until it asks for the bot token, when i enter it the error Error: Mattermost requires --bot-token and --http-url (or --use-env). appears

โ—‡ Select channel (QuickStart)
โ”‚ Mattermost (plugin)
โ”‚
โ—‡ Mattermost bot token โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ โ”‚
โ”‚ 1) Mattermost System Console -> Integrations -> Bot Accounts โ”‚
โ”‚ 2) Create a bot + copy its token โ”‚
โ”‚ 3) Use your server base URL (e.g., https://chat.example.com) โ”‚
โ”‚ Tip: the bot must be a member of any channel you want it to monitor. โ”‚
โ”‚ Docs: mattermost โ”‚
โ”‚ โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
โ”‚
โ—‡ How do you want to provide this bot token?
โ”‚ Enter bot token
โ”‚
โ—‡ Enter Mattermost bot token
โ”‚ kq9kumnqjtyq8ngc939xbhku3e
Error: Mattermost requires --bot-token and --http-url (or --use-env).

onyx hatchBOT
#

First: rotate that Mattermost bot token โ€” it was posted in a public support thread, so treat it as compromised.

This looks like the Mattermost setup path is validating before it asks for the base URL. Quick workaround: run the channel add command non-interactively with both required values in one shot:

openclaw channels add --channel mattermost --bot-token 'NEW_ROTATED_TOKEN' --http-url 'https://your-mattermost.example.com'

Or use env vars instead:

export MATTERMOST_BOT_TOKEN='NEW_ROTATED_TOKEN'
export MATTERMOST_URL='https://your-mattermost.example.com'
openclaw channels add --channel mattermost --use-env

Then check: