Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Info

During a device backup on the Checkmk, it may fail. In this guidance, we show you some error messages and how to solve this

...

Code Block
languagebash
themeRDark
..
...
rrdcached command: SUSPEND /opt/omd/sites/rrd2mysite/var/pnp4nagios/perfdata/mysite/Check_MK_Jun_17_12_29_15_49152.18456_MSSQLSERVER_NT-AUTORIT�.rrd
Traceback (most recent call last):
  File "/omd/sites/rrd2/bin/omd", line 60, in <module>
    omdlib.main.main()
  File "/omd/versions/2.0.0p26.cee/lib/python3/omdlib/main.py", line 4022, in main
    command.handler(version_info, site, global_opts, args, command_options)
  File "/omd/versions/2.0.0p26.cee/lib/python3/omdlib/main.py", line 2753, in main_backup
    omdlib.backup.backup_site_to_tarfile(site, fh, tar_mode, options, global_opts.verbose)
  File "/omd/versions/2.0.0p26.cee/lib/python3/omdlib/backup.py", line 54, in backup_site_to_tarfile
    _backup_site_files_to_tarfile(site, tar, options)
  File "/omd/versions/2.0.0p26.cee/lib/python3/omdlib/backup.py", line 112, in _backup_site_files_to_tarfile
    tar.add(site.dir, site.name, filter=filter_files)
  File "/omd/versions/2.0.0p26.cee/lib/python3/omdlib/backup.py", line 134, in add
    super(BackupTarFile, self).add(name, arcname, recursive, filter=filter)
  File "/omd/versions/2.0.0p26.cee/lib/python3.8/tarfile.py", line 1977, in add
    self.add(os.path.join(name, f), os.path.join(arcname, f),
  File "/omd/versions/2.0.0p26.cee/lib/python3/omdlib/backup.py", line 134, in add
    super(BackupTarFile, self).add(name, arcname, recursive, filter=filter)
  File "/omd/versions/2.0.0p26.cee/lib/python3.8/tarfile.py", line 1977, in add
    self.add(os.path.join(name, f), os.path.join(arcname, f),
  File "/omd/versions/2.0.0p26.cee/lib/python3/omdlib/backup.py", line 134, in add
    super(BackupTarFile, self).add(name, arcname, recursive, filter=filter)
  File "/omd/versions/2.0.0p26.cee/lib/python3.8/tarfile.py", line 1977, in add
    self.add(os.path.join(name, f), os.path.join(arcname, f),
  File "/omd/versions/2.0.0p26.cee/lib/python3/omdlib/backup.py", line 134, in add
    super(BackupTarFile, self).add(name, arcname, recursive, filter=filter)
  File "/omd/versions/2.0.0p26.cee/lib/python3.8/tarfile.py", line 1977, in add
    self.add(os.path.join(name, f), os.path.join(arcname, f),
  File "/omd/versions/2.0.0p26.cee/lib/python3/omdlib/backup.py", line 134, in add
    super(BackupTarFile, self).add(name, arcname, recursive, filter=filter)
  File "/omd/versions/2.0.0p26.cee/lib/python3.8/tarfile.py", line 1977, in add
    self.add(os.path.join(name, f), os.path.join(arcname, f),
  File "/omd/versions/2.0.0p26.cee/lib/python3/omdlib/backup.py", line 134, in add
    super(BackupTarFile, self).add(name, arcname, recursive, filter=filter)
  File "/omd/versions/2.0.0p26.cee/lib/python3.8/tarfile.py", line 1971, in add
    self.addfile(tarinfo, f)
  File "/omd/versions/2.0.0p26.cee/lib/python3/omdlib/backup.py", line 158, in addfile
    self._suspend_rrd_update(rrd_file_path)
  File "/omd/versions/2.0.0p26.cee/lib/python3/omdlib/backup.py", line 169, in _suspend_rrd_update
    self._send_rrdcached_command("SUSPEND %s" % path)
  File "/omd/versions/2.0.0p26.cee/lib/python3/omdlib/backup.py", line 199, in _send_rrdcached_command
    self._sock.sendall(("%s\n" % cmd).encode("utf-8"))
UnicodeEncodeError: 'utf-8' codec can't encode character '\udcc3' in position 122: surrogates not allowed

...

 codec can't encode character '\udcc3' in position 122: surrogates not allowed


This issue is that this file contains a non-ascii character at the end. "AUTORIT�.rrd"

To correct this, we must delete or rename this file. The safest solution would be to rename it.

Code Block
languagebash
themeRDark
OMD[mysite]:~$ mv oldfilename newfilename

Filter by label (Content by label)
showLabelsfalse
max5
spacesKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("appliance","webconf") and type = "page" and space = "KB"
labelsappliance webconf

...