{"action":"created","issue":{"url":"https://api.github.com/repos/owntracks/tools/issues/4","labels_url":"https://api.github.com/repos/owntracks/tools/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/owntracks/tools/issues/4/comments","events_url":"https://api.github.com/repos/owntracks/tools/issues/4/events","html_url":"https://github.com/owntracks/tools/issues/4","id":56488706,"number":4,"title":"Error: Invalid log_type value (all).","user":{"login":"KrishnaPG","id":4610831,"avatar_url":"https://avatars.githubusercontent.com/u/4610831?v=3","gravatar_id":"","url":"https://api.github.com/users/KrishnaPG","html_url":"https://github.com/KrishnaPG","followers_url":"https://api.github.com/users/KrishnaPG/followers","following_url":"https://api.github.com/users/KrishnaPG/following{/other_user}","gists_url":"https://api.github.com/users/KrishnaPG/gists{/gist_id}","starred_url":"https://api.github.com/users/KrishnaPG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KrishnaPG/subscriptions","organizations_url":"https://api.github.com/users/KrishnaPG/orgs","repos_url":"https://api.github.com/users/KrishnaPG/repos","events_url":"https://api.github.com/users/KrishnaPG/events{/privacy}","received_events_url":"https://api.github.com/users/KrishnaPG/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-04T07:05:36Z","updated_at":"2015-02-04T07:38:57Z","closed_at":null,"body":"With mosquitto 3.1 getting the below error when using the generated configuration file\r\n````\r\nError: Invalid log_type value (all).\r\nError: Unable to open configuration file.\r\n````\r\nThe generated configuration file looks like below\r\n````\r\n# allow_anonymous false\r\nautosave_interval 1800\r\n\r\nconnection_messages true\r\nlog_dest stderr\r\nlog_dest topic\r\nlog_type error\r\nlog_type warning\r\nlog_type notice\r\nlog_type information\r\nlog_type all\r\nlog_type debug\r\nlog_timestamp true\r\n\r\n#message_size_limit 10240\r\n\r\n#password_file jp.pw\r\n#acl_file jp.acl\r\n...\r\n````"},"comment":{"url":"https://api.github.com/repos/owntracks/tools/issues/comments/72803886","html_url":"https://github.com/owntracks/tools/issues/4#issuecomment-72803886","issue_url":"https://api.github.com/repos/owntracks/tools/issues/4","id":72803886,"user":{"login":"KrishnaPG","id":4610831,"avatar_url":"https://avatars.githubusercontent.com/u/4610831?v=3","gravatar_id":"","url":"https://api.github.com/users/KrishnaPG","html_url":"https://github.com/KrishnaPG","followers_url":"https://api.github.com/users/KrishnaPG/followers","following_url":"https://api.github.com/users/KrishnaPG/following{/other_user}","gists_url":"https://api.github.com/users/KrishnaPG/gists{/gist_id}","starred_url":"https://api.github.com/users/KrishnaPG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KrishnaPG/subscriptions","organizations_url":"https://api.github.com/users/KrishnaPG/orgs","repos_url":"https://api.github.com/users/KrishnaPG/repos","events_url":"https://api.github.com/users/KrishnaPG/events{/privacy}","received_events_url":"https://api.github.com/users/KrishnaPG/received_events","type":"User","site_admin":false},"created_at":"2015-02-04T07:38:57Z","updated_at":"2015-02-04T07:38:57Z","body":"Nope - my mistake - had earlier version of mosquitto. Updated the apt-get and got latest and it was fine, except for the below problem:\r\n````\r\n1423034452: Error: Unable to load server certificate \"/tmp/mosquitto/server.crt\". Check certfile.\r\n````\r\nThe problem is: it looks like the `generate-CA.sh` script is generating `$SERVER.crt` [#L178](https://github.com/owntracks/tools/blob/master/TLS/generate-CA.sh#L178)  where as `mosquitto-setup.sh` is using for hard-coded to use `server.crt`[#L93](https://github.com/owntracks/tools/blob/master/mosquitto-setup.sh#L93) as the file name\r\n\r\nHere is the generated configuration\r\n````\r\ntls_version tlsv1\r\ncafile /tmp/mosquitto/ca.crt\r\ncertfile /tmp/mosquitto/server.crt\r\nkeyfile /tmp/mosquitto/server.key\r\nrequire_certificate false\r\n````\r\nand here are the generated files\r\n````\r\nroot@nodejs mosq/tools# ls -l /tmp/mosquitto/\r\nca.crt          ca.key          ca.srl          mosquitto.conf  nodejs.crt      nodejs.csr      nodejs.key\r\n````"}}