{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/26774","labels_url":"https://api.github.com/repos/saltstack/salt/issues/26774/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/26774/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/26774/events","html_url":"https://github.com/saltstack/salt/issues/26774","id":103912415,"number":26774,"title":"salt master and minion won't start on develop version wrong config dir","user":{"login":"aboe76","id":1800660,"avatar_url":"https://avatars.githubusercontent.com/u/1800660?v=3","gravatar_id":"","url":"https://api.github.com/users/aboe76","html_url":"https://github.com/aboe76","followers_url":"https://api.github.com/users/aboe76/followers","following_url":"https://api.github.com/users/aboe76/following{/other_user}","gists_url":"https://api.github.com/users/aboe76/gists{/gist_id}","starred_url":"https://api.github.com/users/aboe76/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aboe76/subscriptions","organizations_url":"https://api.github.com/users/aboe76/orgs","repos_url":"https://api.github.com/users/aboe76/repos","events_url":"https://api.github.com/users/aboe76/events{/privacy}","received_events_url":"https://api.github.com/users/aboe76/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-30T09:39:16Z","updated_at":"2015-08-30T19:09:27Z","closed_at":null,"body":"With the salt version 2015.8.0rc3.2212.gf66b18d, the salt master and the salt minion won't start,\r\nsomething changed in how it's reading the configuration files:\r\n\r\n```\r\nsalt-master -l debug\r\n\r\nWARNING: CONFIG 'None' directory does not exist.\r\n[DEBUG   ] Missing configuration file: /etc/salt/master.d/None/master\r\n[DEBUG   ] Configuration file path: None/master\r\n[ERROR   ] An un-handled exception was caught by salt's global exception handler:\r\nIOError: [Errno 21] Is a directory: '/etc/salt/master.d/None/master'\r\nTraceback (most recent call last):\r\n  File \"/usr/bin/salt-master\", line 22, in <module>\r\n    salt_master()\r\n  File \"/usr/lib/python2.7/site-packages/salt/scripts.py\", line 47, in salt_master\r\n    master.start()\r\n  File \"/usr/lib/python2.7/site-packages/salt/cli/daemons.py\", line 149, in start\r\n    self.prepare()\r\n  File \"/usr/lib/python2.7/site-packages/salt/cli/daemons.py\", line 108, in prepare\r\n    verify_files([logfile], self.config['user'])\r\n  File \"/usr/lib/python2.7/site-packages/salt/utils/verify.py\", line 172, in verify_files\r\n    with salt.utils.fopen(fn_, 'w+') as fp_:\r\n  File \"/usr/lib/python2.7/site-packages/salt/utils/__init__.py\", line 1213, in fopen\r\n    fhandle = open(*args, **kwargs)\r\nIOError: [Errno 21] Is a directory: '/etc/salt/master.d/None/master'\r\nTraceback (most recent call last):\r\n  File \"/usr/bin/salt-master\", line 22, in <module>\r\n    salt_master()\r\n  File \"/usr/lib/python2.7/site-packages/salt/scripts.py\", line 47, in salt_master\r\n    master.start()\r\n  File \"/usr/lib/python2.7/site-packages/salt/cli/daemons.py\", line 149, in start\r\n    self.prepare()\r\n  File \"/usr/lib/python2.7/site-packages/salt/cli/daemons.py\", line 108, in prepare\r\n    verify_files([logfile], self.config['user'])\r\n  File \"/usr/lib/python2.7/site-packages/salt/utils/verify.py\", line 172, in verify_files\r\n    with salt.utils.fopen(fn_, 'w+') as fp_:\r\n  File \"/usr/lib/python2.7/site-packages/salt/utils/__init__.py\", line 1213, in fopen\r\n    fhandle = open(*args, **kwargs)\r\nIOError: [Errno 21] Is a directory: '/etc/salt/master.d/None/master'\r\n\r\n^CError in atexit._run_exitfuncs:\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/atexit.py\", line 24, in _run_exitfuncs\r\n    func(*targs, **kargs)\r\n  File \"/usr/lib/python2.7/multiprocessing/util.py\", line 325, in _exit_function\r\n    p.join()\r\n  File \"/usr/lib/python2.7/multiprocessing/process.py\", line 145, in join\r\n    res = self._popen.wait(timeout)\r\n  File \"/usr/lib/python2.7/multiprocessing/forking.py\", line 154, in wait\r\n    return self.poll(0)\r\n  File \"/usr/lib/python2.7/multiprocessing/forking.py\", line 135, in poll\r\n    pid, sts = os.waitpid(self.pid, flag)\r\nKeyboardInterrupt\r\nError in sys.exitfunc:\r\n```\r\n\r\nand the salt minion:\r\n```\r\nsalt-minion -l debug\r\n\r\n[DEBUG   ] Missing configuration file: /etc/salt/master.d/None/minion\r\n[DEBUG   ] Guessing ID. The id can be explicitly set in None/minion\r\n[INFO    ] Found minion id from generate_minion_id(): xxx.xxx.xxx\r\n[DEBUG   ] Configuration file path: None/minion\r\n[ERROR   ] Minion failed to start: \r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/site-packages/salt/scripts.py\", line 81, in minion_process\r\n    minion.start()\r\n  File \"/usr/lib/python2.7/site-packages/salt/cli/daemons.py\", line 275, in start\r\n    self.prepare()\r\n  File \"/usr/lib/python2.7/site-packages/salt/cli/daemons.py\", line 228, in prepare\r\n    verify_files([logfile], self.config['user'])\r\n  File \"/usr/lib/python2.7/site-packages/salt/utils/verify.py\", line 172, in verify_files\r\n    with salt.utils.fopen(fn_, 'w+') as fp_:\r\n  File \"/usr/lib/python2.7/site-packages/salt/utils/__init__.py\", line 1213, in fopen\r\n    fhandle = open(*args, **kwargs)\r\nIOError: [Errno 21] Is a directory: '/etc/salt/master.d/None/minion'\r\n[WARNING ] ** Restarting minion **\r\n[INFO    ] Sleeping random_reauth_delay of 1 seconds\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/136175506","html_url":"https://github.com/saltstack/salt/issues/26774#issuecomment-136175506","issue_url":"https://api.github.com/repos/saltstack/salt/issues/26774","id":136175506,"user":{"login":"s0undt3ch","id":300048,"avatar_url":"https://avatars.githubusercontent.com/u/300048?v=3","gravatar_id":"","url":"https://api.github.com/users/s0undt3ch","html_url":"https://github.com/s0undt3ch","followers_url":"https://api.github.com/users/s0undt3ch/followers","following_url":"https://api.github.com/users/s0undt3ch/following{/other_user}","gists_url":"https://api.github.com/users/s0undt3ch/gists{/gist_id}","starred_url":"https://api.github.com/users/s0undt3ch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s0undt3ch/subscriptions","organizations_url":"https://api.github.com/users/s0undt3ch/orgs","repos_url":"https://api.github.com/users/s0undt3ch/repos","events_url":"https://api.github.com/users/s0undt3ch/events{/privacy}","received_events_url":"https://api.github.com/users/s0undt3ch/received_events","type":"User","site_admin":false},"created_at":"2015-08-30T19:09:27Z","updated_at":"2015-08-30T19:09:27Z","body":"Thanks. We'll clean that up."}}