[Pkg-nagios-devel] Bug#741176: check-mk-multisite: MOD_PYTHON ERROR

Joachim Breitner nomeata at debian.org
Sun Mar 9 17:46:24 UTC 2014


Package: check-mk-multisite
Version: 1.2.2p3-1~bpo70+1
Severity: important

Hi,

I just installed check-mk-multisite from wheezy-backports. The installation did
not require upgrading any other packages. When I then try to access my
installation, I get this error message:



-- System Information:
Debian Release: 7.4
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/1 CPU core)
D_PYTHON ERROR

ProcessId:      2303
Interpreter:    'nagios.nomeata.de'

ServerName:     'nagios.nomeata.de'
DocumentRoot:   '/usr/share/nagios3/htdocs'

URI:            '/check_mk/view.py'
Location:       None
Directory:      '/usr/share/check_mk/web/htdocs/'
Filename:       '/usr/share/check_mk/web/htdocs/view.py'
PathInfo:       ''

Phase:          'PythonHandler'
Handler:        'index'

Traceback (most recent call last):

  File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1537, in HandlerDispatch
    default=default_handler, arg=req, silent=hlist.silent)

  File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1202, in _process_target
    module = import_module(module_name, path=path)

  File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 296, in import_module
    log, import_path)

  File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 680, in import_module
    execfile(file, module.__dict__)

  File "/usr/share/check_mk/web/htdocs/index.py", line 45, in <module>
    execfile(pagehandlers_dir + "/" + fn)

  File "/usr/share/check_mk/web/plugins/pages/wato.py", line 27, in <module>
    import wato

  File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 991, in load_module
    return _global_modules_cache.import_module(self.__file)

  File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 680, in import_module
    execfile(file, module.__dict__)

  File "/usr/share/check_mk/web/htdocs/wato.py", line 125, in <module>
    sync_snapshot_file = defaults.tmp_dir + "/sync_snapshot.tar.gz"

AttributeError: 'module' object has no attribute 'tmp_dir'


MODULE CACHE DETAILS

Accessed:       Sun Mar  9 18:43:46 2014
Generation:     0

_mp_41b27df2953cb788515f202493b7cf8e {
  FileName:     '/usr/share/check_mk/web/htdocs/bi.py'
  Instance:     1 [IMPORT]
  Generation:   13
  Modified:     Tue Nov  5 10:23:08 2013
  Imported:     Sun Mar  9 18:43:46 2014
  Children:     '/usr/share/check_mk/web/htdocs/config.py',
                '/usr/share/check_mk/web/htdocs/htmllib.py',
                '/usr/share/check_mk/web/htdocs/lib.py',
                '/usr/share/check_mk/web/htdocs/weblib.py'
}

_mp_ff5ab391e0105ff1f00cb73b5792a4b6 {
  FileName:     '/usr/share/check_mk/web/htdocs/config.py'
  Instance:     1 [IMPORT]
  Generation:   4
  Modified:     Tue Nov  5 10:23:08 2013
  Imported:     Sun Mar  9 18:43:46 2014
  Children:     '/usr/share/check_mk/web/htdocs/defaults.py',
                '/usr/share/check_mk/web/htdocs/lib.py'
}

_mp_25e4239f3951df0baad5664eb02ebc6e {
  FileName:     '/usr/share/check_mk/web/htdocs/default_permissions.py'
  Instance:     1 [IMPORT]
  Generation:   12
  Modified:     Tue Nov  5 10:23:08 2013
  Imported:     Sun Mar  9 18:43:46 2014
  Children:     '/usr/share/check_mk/web/htdocs/config.py'
}

_mp_663e9c6051ab5cb46a07be5926a51264 {
  FileName:     '/usr/share/check_mk/web/htdocs/defaults.py'
  Instance:     1 [IMPORT]
  Generation:   1
  Modified:     Sat Apr  7 08:34:15 2012
  Imported:     Sun Mar  9 18:43:46 2014
}

_mp_724afbdc3a103f642b8906b174f8d92b {
  FileName:     '/usr/share/check_mk/web/htdocs/forms.py'
  Instance:     1 [IMPORT]
  Generation:   8
  Modified:     Tue Nov  5 10:23:08 2013
  Imported:     Sun Mar  9 18:43:46 2014
  Children:     '/usr/share/check_mk/web/htdocs/htmllib.py',
                '/usr/share/check_mk/web/htdocs/lib.py'
}

_mp_f6a687ad2f52c43e7af71aee36c018f1 {
  FileName:     '/usr/share/check_mk/web/htdocs/hooks.py'
  Instance:     1 [IMPORT]
  Generation:   7
  Modified:     Tue Nov  5 10:23:08 2013
  Imported:     Sun Mar  9 18:43:46 2014
  Children:     '/usr/share/check_mk/web/htdocs/config.py'
}

_mp_63ed945cd420f3746d0ed59bf64cea9e {
  FileName:     '/usr/share/check_mk/web/htdocs/htmllib.py'
  Instance:     1 [IMPORT]
  Generation:   6
  Modified:     Tue Nov  5 10:23:08 2013
  Imported:     Sun Mar  9 18:43:46 2014
  Children:     '/usr/share/check_mk/web/htdocs/config.py',
                '/usr/share/check_mk/web/htdocs/defaults.py',
                '/usr/share/check_mk/web/htdocs/lib.py',
                '/usr/share/check_mk/web/htdocs/weblib.py'
}

_mp_574aa7ac4376de6e49bc977af06f4244 {
  FileName:     '/usr/share/check_mk/web/htdocs/index.py'
  Instance:     1 [IMPORT]
  Generation:   0 [ERROR]
  Modified:     Tue Nov  5 10:23:08 2013
  Children:     '/usr/share/check_mk/web/htdocs/bi.py',
                '/usr/share/check_mk/web/htdocs/config.py',
                '/usr/share/check_mk/web/htdocs/default_permissions.py',
                '/usr/share/check_mk/web/htdocs/defaults.py',
                '/usr/share/check_mk/web/htdocs/hooks.py',
                '/usr/share/check_mk/web/htdocs/htmllib.py',
                '/usr/share/check_mk/web/htdocs/lib.py',
                '/usr/share/check_mk/web/htdocs/livestatus.py',
                '/usr/share/check_mk/web/htdocs/login.py',
                '/usr/share/check_mk/web/htdocs/userdb.py',
                '/usr/share/check_mk/web/htdocs/wato.py'
}

_mp_cbb1006052f6a75711b5dab4ed8669ca {
  FileName:     '/usr/share/check_mk/web/htdocs/lib.py'
  Instance:     1 [IMPORT]
  Generation:   2
  Modified:     Tue Nov  5 10:23:08 2013
  Imported:     Sun Mar  9 18:43:46 2014
  Children:     '/usr/share/check_mk/web/htdocs/defaults.py'
}

_mp_2328823af8ada20a5a507314dcfe5cfa {
  FileName:     '/usr/share/check_mk/web/htdocs/livestatus.py'
  Instance:     1 [IMPORT]
  Generation:   3
  Modified:     Tue Nov  5 10:23:08 2013
  Imported:     Sun Mar  9 18:43:46 2014
}

_mp_3003b58cb66040ec7f0e27e912f793c3 {
  FileName:     '/usr/share/check_mk/web/htdocs/login.py'
  Instance:     1 [IMPORT]
  Generation:   11
  Modified:     Tue Nov  5 10:23:08 2013
  Imported:     Sun Mar  9 18:43:46 2014
  Children:     '/usr/share/check_mk/web/htdocs/config.py',
                '/usr/share/check_mk/web/htdocs/defaults.py',
                '/usr/share/check_mk/web/htdocs/htmllib.py',
                '/usr/share/check_mk/web/htdocs/lib.py',
                '/usr/share/check_mk/web/htdocs/userdb.py'
}

_mp_3c8933fc14405968a0b5fba7ae976c19 {
  FileName:     '/usr/share/check_mk/web/htdocs/multitar.py'
  Instance:     1 [IMPORT]
  Generation:   15
  Modified:     Tue Nov  5 10:23:08 2013
  Imported:     Sun Mar  9 18:43:47 2014
}

_mp_6fc27f3f3062ad41452abecc79265785 {
  FileName:     '/usr/share/check_mk/web/htdocs/table.py'
  Instance:     1 [IMPORT]
  Generation:   14
  Modified:     Tue Nov  5 10:23:08 2013
  Imported:     Sun Mar  9 18:43:47 2014
}

_mp_7e4ed2c8930dfac409a7dd327abb056d {
  FileName:     '/usr/share/check_mk/web/htdocs/userdb.py'
  Instance:     1 [IMPORT]
  Generation:   10
  Modified:     Tue Nov  5 10:23:08 2013
  Imported:     Sun Mar  9 18:43:46 2014
  Children:     '/usr/share/check_mk/web/htdocs/config.py',
                '/usr/share/check_mk/web/htdocs/defaults.py',
                '/usr/share/check_mk/web/htdocs/hooks.py',
                '/usr/share/check_mk/web/htdocs/lib.py',
                '/usr/share/check_mk/web/htdocs/valuespec.py'
}

_mp_b172fa2d1339f5f18d03810139b0007f {
  FileName:     '/usr/share/check_mk/web/htdocs/valuespec.py'
  Instance:     1 [IMPORT]
  Generation:   9
  Modified:     Tue Nov  5 10:23:08 2013
  Imported:     Sun Mar  9 18:43:46 2014
  Children:     '/usr/share/check_mk/web/htdocs/forms.py',
                '/usr/share/check_mk/web/htdocs/htmllib.py',
                '/usr/share/check_mk/web/htdocs/lib.py'
}

_mp_1cb7e56808efc424355f14d45688792e {
  FileName:     '/usr/share/check_mk/web/htdocs/wato.py'
  Instance:     1 [IMPORT]
  Generation:   0 [ERROR]
  Modified:     Tue Nov  5 10:23:08 2013
  Children:     '/usr/share/check_mk/web/htdocs/config.py',
                '/usr/share/check_mk/web/htdocs/forms.py',
                '/usr/share/check_mk/web/htdocs/hooks.py',
                '/usr/share/check_mk/web/htdocs/htmllib.py',
                '/usr/share/check_mk/web/htdocs/lib.py',
                '/usr/share/check_mk/web/htdocs/multitar.py',
                '/usr/share/check_mk/web/htdocs/table.py',
                '/usr/share/check_mk/web/htdocs/userdb.py',
                '/usr/share/check_mk/web/htdocs/valuespec.py',
                '/usr/share/check_mk/web/htdocs/weblib.py'
}

_mp_e6a5fedf8bc6d3c17477ab1b1c324cb3 {
  FileName:     '/usr/share/check_mk/web/htdocs/weblib.py'
  Instance:     1 [IMPORT]
  Generation:   5
  Modified:     Tue Nov  5 10:23:08 2013
  Imported:     Sun Mar  9 18:43:46 2014
  Children:     '/usr/share/check_mk/web/htdocs/config.py',
                '/usr/share/check_mk/web/htdocs/lib.py'
}



Greetings,
Joachim
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages check-mk-multisite depends on:
ii  check-mk-config-nagios3  1.1.12p7-1
ii  libapache2-mod-python    3.3.1-9+b3

Versions of packages check-mk-multisite recommends:
ii  check-mk-doc  1.1.12p7-1
ii  sudo          1.8.5p2-1+nmu1

Versions of packages check-mk-multisite suggests:
ii  check-mk-livestatus  1.1.12p7-1

-- Configuration Files:
/etc/sudoers.d/check_mk_wato [Errno 13] Keine Berechtigung: u'/etc/sudoers.d/check_mk_wato'

-- no debconf information



More information about the Pkg-nagios-devel mailing list