Errbot command errors after editing config.py

File “/opt/stackstorm/virtualenvs/st2/bin/errbot”, line 10, in
sys.exit(main())
File “/opt/stackstorm/virtualenvs/st2/lib/python3.6/site-packages/errbot/cli.py”, line 399, in main
bootstrap(backend, root_logger, config, restore)
File “/opt/stackstorm/virtualenvs/st2/lib/python3.6/site-packages/errbot/bootstrap.py”, line 257, in bootstrap
bot = setup_bot(bot_class, logger, config, restore)
File “/opt/stackstorm/virtualenvs/st2/lib/python3.6/site-packages/errbot/bootstrap.py”, line 88, in setup_bot
hdlr = logging.FileHandler(config.BOT_LOG_FILE)
File “/usr/lib/python3.6/logging/init.py”, line 1032, in init
StreamHandler.init(self, self._open())
File “/usr/lib/python3.6/logging/init.py”, line 1061, in _open
return open(self.baseFilename, self.mode, encoding=self.encoding)
permission error :permission denied:‘opt/stackstorm/chatops/errbot.log’

It looks like you’ve tried to install errbot into the stackstorm virtual environment. The purpose of a virtual environment is to isolate applications and their dependencies from each other. There’s a good chance errbot dependencies and StackStorm dependencies aren’t compatible or at worst will cause unexpected behaviour in either application.

I suggest you perform a clean reinstallation of StackStorm and create an independent virtualenv for errbot to run in. If you’re planning on using err-stackstorm follow the documentation for installing errbot and err-stackstorm.