{"action":"created","issue":{"url":"https://api.github.com/repos/eclipse/mosquitto/issues/728","repository_url":"https://api.github.com/repos/eclipse/mosquitto","labels_url":"https://api.github.com/repos/eclipse/mosquitto/issues/728/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/mosquitto/issues/728/comments","events_url":"https://api.github.com/repos/eclipse/mosquitto/issues/728/events","html_url":"https://github.com/eclipse/mosquitto/issues/728","id":305986753,"number":728,"title":"Error: Duplicate persistence_location","user":{"login":"hav0ck","id":815295,"avatar_url":"https://avatars1.githubusercontent.com/u/815295?v=4","gravatar_id":"","url":"https://api.github.com/users/hav0ck","html_url":"https://github.com/hav0ck","followers_url":"https://api.github.com/users/hav0ck/followers","following_url":"https://api.github.com/users/hav0ck/following{/other_user}","gists_url":"https://api.github.com/users/hav0ck/gists{/gist_id}","starred_url":"https://api.github.com/users/hav0ck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hav0ck/subscriptions","organizations_url":"https://api.github.com/users/hav0ck/orgs","repos_url":"https://api.github.com/users/hav0ck/repos","events_url":"https://api.github.com/users/hav0ck/events{/privacy}","received_events_url":"https://api.github.com/users/hav0ck/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-16T16:06:58Z","updated_at":"2018-03-16T18:30:20Z","closed_at":null,"author_association":"NONE","body":"So I was able to get Mosquitto up and running with no \"major\" issues really.\r\nI initially setup my broker on port 1883, I'd like to have 1883 as the unsecure internal port, 8883 as the secure external port.\r\n\r\nI setup my conf file to have the listener on 1883 and a second listener on 8883. However when I try to start Mosquitto I get the follow error message:\r\n\r\n> Error: Duplicate persistence_location value in configuration.\r\n> Error found at /etc/mosquitto/mosquitto.conf:26.\r\n> Error: Unable to open configuration file.\r\n \r\n\r\nMy config looks like this:\r\n```\r\npid_file /var/run/mosquitto.pid\r\n\r\nlistener 1883\r\npersistence true\r\npersistence_location /var/lib/mosquitto/\r\npersistence_file mosquitto.db\r\nlog_dest file /var/log/mosquitto/mosquitto.log\r\nlog_type error\r\nlog_type warning\r\nlog_type notice\r\nlog_type information\r\nconnection_messages true\r\nlog_timestamp true\r\nallow_anonymous false\r\npassword_file /etc/mosquitto/pwfile\r\nacl_file /etc/mosquitto/aclfile.acl\r\n\r\nlistener 8883\r\npersistence true\r\npersistence_location /var/lib/mosquitto/\r\npersistence_file secure-mosquitto.db\r\nlog_dest file /var/log/mosquitto/secure-mosquitto.log\r\nlog_type error\r\nlog_type warning\r\nlog_type notice\r\nlog_type information\r\nconnection_messages true\r\nlog_timestamp true\r\nallow_anonymous false\r\npassword_file /etc/mosquitto/pwfile\r\nacl_file /etc/mosquitto/aclfile.acl\r\ncertfile /etc/letsencrypt/live/home.FQDN/cert.pem\r\ncafile /etc/letsencrypt/live/home.FQDN/chain.pem\r\nkeyfile /etc/letsencrypt/live/home.FQDN/privkey.pem\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/eclipse/mosquitto/issues/comments/373805107","html_url":"https://github.com/eclipse/mosquitto/issues/728#issuecomment-373805107","issue_url":"https://api.github.com/repos/eclipse/mosquitto/issues/728","id":373805107,"user":{"login":"hav0ck","id":815295,"avatar_url":"https://avatars1.githubusercontent.com/u/815295?v=4","gravatar_id":"","url":"https://api.github.com/users/hav0ck","html_url":"https://github.com/hav0ck","followers_url":"https://api.github.com/users/hav0ck/followers","following_url":"https://api.github.com/users/hav0ck/following{/other_user}","gists_url":"https://api.github.com/users/hav0ck/gists{/gist_id}","starred_url":"https://api.github.com/users/hav0ck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hav0ck/subscriptions","organizations_url":"https://api.github.com/users/hav0ck/orgs","repos_url":"https://api.github.com/users/hav0ck/repos","events_url":"https://api.github.com/users/hav0ck/events{/privacy}","received_events_url":"https://api.github.com/users/hav0ck/received_events","type":"User","site_admin":false},"created_at":"2018-03-16T18:30:20Z","updated_at":"2018-03-16T18:30:20Z","author_association":"NONE","body":"So there can only be one Persistence and one log file for a broken despite having multiple listeners?\r\n\r\nWould this be a better config format then?\r\n```\r\npid_file /var/run/mosquitto.pid\r\n\r\npersistence true\r\npersistence_location /var/lib/mosquitto/\r\npersistence_file mosquitto.db\r\nlog_dest file /var/log/mosquitto/mosquitto.log\r\nlog_type error\r\nlog_type warning\r\nlog_type notice\r\nlog_type information\r\nconnection_messages true\r\nlog_timestamp true\r\nallow_anonymous false\r\npassword_file /etc/mosquitto/pwfile\r\nacl_file /etc/mosquitto/aclfile.acl\r\n\r\n#Internal Listener\r\nlistener 1883\r\n\r\n#External Listener\r\nlistener 8883\r\ncertfile /etc/letsencrypt/live/home.FQDN/cert.pem\r\ncafile /etc/letsencrypt/live/home.FQDN/chain.pem\r\nkeyfile /etc/letsencrypt/live/home.FQDN/privkey.pem\r\n```"}}
{"actor":{"display_login":"hav0ck"}}