{"action":"created","issue":{"url":"https://api.github.com/repos/martinrusev/amon-issues/issues/27","labels_url":"https://api.github.com/repos/martinrusev/amon-issues/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/martinrusev/amon-issues/issues/27/comments","events_url":"https://api.github.com/repos/martinrusev/amon-issues/issues/27/events","html_url":"https://github.com/martinrusev/amon-issues/issues/27","id":109106600,"number":27,"title":"After new installation Salt throws exception SaltClientError","user":{"login":"florianb","id":983507,"avatar_url":"https://avatars.githubusercontent.com/u/983507?v=3","gravatar_id":"","url":"https://api.github.com/users/florianb","html_url":"https://github.com/florianb","followers_url":"https://api.github.com/users/florianb/followers","following_url":"https://api.github.com/users/florianb/following{/other_user}","gists_url":"https://api.github.com/users/florianb/gists{/gist_id}","starred_url":"https://api.github.com/users/florianb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/florianb/subscriptions","organizations_url":"https://api.github.com/users/florianb/orgs","repos_url":"https://api.github.com/users/florianb/repos","events_url":"https://api.github.com/users/florianb/events{/privacy}","received_events_url":"https://api.github.com/users/florianb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-09-30T14:42:44Z","updated_at":"2015-09-30T19:23:12Z","closed_at":null,"body":"After new installation Salt throws exception SaltClientError: `Could not access /var/cache/salt. Path does not exist`, the preceding DEBUG-messages may also be relevant.\r\n\r\nFrom `amonapp.log`:\r\n\r\n    [30/Sep/2015 16:06:16] DEBUG [salt.config:866] Missing configuration file: /etc/salt/master\r\n    [30/Sep/2015 16:06:16] DEBUG [salt.config:866] Missing configuration file: /root/.saltrc\r\n    [30/Sep/2015 16:06:16] ERROR [salt.log.setup:713] An un-handled exception was caught by salt's global exception handler:\r\n    SaltClientError: Could not access /var/cache/salt. Path does not exist.\r\n    Traceback (most recent call last):\r\n      File \"/opt/amon/amon.pex/.bootstrap/_pex/pex.py\", line 315, in execute\r\n        self._wrap_coverage(self._wrap_profiling, self._execute)\r\n      File \"/opt/amon/amon.pex/.bootstrap/_pex/pex.py\", line 250, in _wrap_coverage\r\n        runner(*args)\r\n      File \"/opt/amon/amon.pex/.bootstrap/_pex/pex.py\", line 282, in _wrap_profiling\r\n        runner(*args)\r\n      File \"/opt/amon/amon.pex/.bootstrap/_pex/pex.py\", line 361, in _execute\r\n        return self.execute_interpreter()\r\n      File \"/opt/amon/amon.pex/.bootstrap/_pex/pex.py\", line 371, in execute_interpreter\r\n        self.execute_content(name, content)\r\n      File \"/opt/amon/amon.pex/.bootstrap/_pex/pex.py\", line 401, in execute_content\r\n        exec_function(ast, globals())\r\n      File \"<exec_function>\", line 4, in exec_function\r\n      File \"/opt/amon/pex-manage.py\", line 10, in <module>\r\n        execute_from_command_line(sys.argv)\r\n      File \"/root/.pex/install/Django-1.7.10-py2.py3-none-any.whl.69f1c41e7252e7e9f4e1d93db65a1376ba3dec2b/Django-1.7.10-py2.py3-none-any.whl/django/core/management/__init__.py\", line 385, in execute_from_command_line\r\n        utility.execute()\r\n      File \"/root/.pex/install/Django-1.7.10-py2.py3-none-any.whl.69f1c41e7252e7e9f4e1d93db65a1376ba3dec2b/Django-1.7.10-py2.py3-none-any.whl/django/core/management/__init__.py\", line 377, in execute\r\n        self.fetch_command(subcommand).run_from_argv(self.argv)\r\n      File \"/root/.pex/install/Django-1.7.10-py2.py3-none-any.whl.69f1c41e7252e7e9f4e1d93db65a1376ba3dec2b/Django-1.7.10-py2.py3-none-any.whl/django/core/management/base.py\", line 288, in run_from_argv\r\n        self.execute(*args, **options.__dict__)\r\n      File \"/root/.pex/install/Django-1.7.10-py2.py3-none-any.whl.69f1c41e7252e7e9f4e1d93db65a1376ba3dec2b/Django-1.7.10-py2.py3-none-any.whl/django/core/management/base.py\", line 338, in execute\r\n        output = self.handle(*args, **options)\r\n      File \"/root/.pex/install/django_kronos-0.7-py2-none-any.whl.fd0b2783d55141a4b11950ea6ade1647a491c6b0/django_kronos-0.7-py2-none-any.whl/kronos/management/commands/showtasks.py\", line 10, in handle\r\n        kronos.load()\r\n      File \"/root/.pex/install/django_kronos-0.7-py2-none-any.whl.fd0b2783d55141a4b11950ea6ade1647a491c6b0/django_kronos-0.7-py2-none-any.whl/kronos/__init__.py\", line 31, in load\r\n        import_module(p)\r\n      File \"/root/.pex/install/Django-1.7.10-py2.py3-none-any.whl.69f1c41e7252e7e9f4e1d93db65a1376ba3dec2b/Django-1.7.10-py2.py3-none-any.whl/django/utils/importlib.py\", line 46, in import_module\r\n        __import__(name)\r\n      File \"/opt/amon/amon/apps/notifications/cron.py\", line 5, in <module>\r\n        from amon.apps.remote.execute import execute_commands\r\n      File \"/opt/amon/amon/apps/remote/execute.py\", line 4, in <module>\r\n        from amon.apps.remote.utils import AmonSaltClient\r\n      File \"/opt/amon/amon/apps/remote/utils.py\", line 125, in <module>\r\n        amon_salt_client = AmonSaltClient()\r\n      File \"/opt/amon/amon/apps/remote/utils.py\", line 14, in __init__\r\n        self.client = salt.client.LocalClient()\r\n      File \"/root/.pex/install/salt-2015.5.3-py2-none-any.whl.ec95932ca397cbca4517697a0994312234e4ae53/salt-2015.5.3-py2-none-any.whl/salt/client/__init__.py\", line 130, in __init__\r\n        self.key = self.__read_master_key()\r\n      File \"/root/.pex/install/salt-2015.5.3-py2-none-any.whl.ec95932ca397cbca4517697a0994312234e4ae53/salt-2015.5.3-py2-none-any.whl/salt/client/__init__.py\", line 155, in __read_master_key\r\n        self.skip_perm_errors)\r\n      File \"/root/.pex/install/salt-2015.5.3-py2-none-any.whl.ec95932ca397cbca4517697a0994312234e4ae53/salt-2015.5.3-py2-none-any.whl/salt/utils/verify.py\", line 390, in check_path_traversal\r\n        raise SaltClientError(msg)\r\n    SaltClientError: Could not access /var/cache/salt. Path does not exist.\r\n"},"comment":{"url":"https://api.github.com/repos/martinrusev/amon-issues/issues/comments/144513622","html_url":"https://github.com/martinrusev/amon-issues/issues/27#issuecomment-144513622","issue_url":"https://api.github.com/repos/martinrusev/amon-issues/issues/27","id":144513622,"user":{"login":"martinrusev","id":103003,"avatar_url":"https://avatars.githubusercontent.com/u/103003?v=3","gravatar_id":"","url":"https://api.github.com/users/martinrusev","html_url":"https://github.com/martinrusev","followers_url":"https://api.github.com/users/martinrusev/followers","following_url":"https://api.github.com/users/martinrusev/following{/other_user}","gists_url":"https://api.github.com/users/martinrusev/gists{/gist_id}","starred_url":"https://api.github.com/users/martinrusev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinrusev/subscriptions","organizations_url":"https://api.github.com/users/martinrusev/orgs","repos_url":"https://api.github.com/users/martinrusev/repos","events_url":"https://api.github.com/users/martinrusev/events{/privacy}","received_events_url":"https://api.github.com/users/martinrusev/received_events","type":"User","site_admin":false},"created_at":"2015-09-30T19:23:12Z","updated_at":"2015-09-30T19:23:12Z","body":"@florianb Sent you an email, there is a faster way to resolve this"}}