"Console Unknown term code of [fd]" error during scheduled job

Saiful Bhuiyan <[email protected]>
Newsgroups gmane.comp.bacula.user
Message-ID <CADNqt2ii40OevENXAPL5pm_-vFMQ94xyfhvSz6BJTBH+qXGzPQ@mail.gmail.com>
Hi all,

I have recently upgraded my bacula director from 9.4.2 to 13.0.4. Since
then I’m seeing the following warning in Bacula job notification emails:

  Bacula: Console Unknown term code of xxxxxx-fd

This happens during our nightly catalog backup job, which includes
`RunScript` blocks with several `Console =` commands, like:

  Console = "prune expired volume yes"
  Console = "purge volume action=all allpools storage=StorageStore1"
  ...
  Console = "purge volume action=all allpools storage=StorageStore7"

The job itself runs fine, but this message appears in the mail report.

I suspect Bacula is trying to output colored or terminal-formatted content
when there is no terminal (since this runs as a scheduled job).

My current idea is to replace the `Console =` commands with wrapper scripts
that run `bconsole -n` (to disable colored output), but before I do that:

- Has anyone solved this warning in a cleaner or more official way?
- Is there a way to globally suppress formatted console output from Bacula
in scheduled/non-interactive jobs?

### System Details:

- Bacula Director version: **13.0.4** on **Ubuntu 24.04**
- File Daemon (`aegir-fd`) version: **9.4.2** on **Ubuntu 20.04**

Any input would be greatly appreciated!

Best regards,
Saiful

_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.