{"action":"closed","issue":{"url":"https://api.github.com/repos/processone/ejabberd/issues/2434","repository_url":"https://api.github.com/repos/processone/ejabberd","labels_url":"https://api.github.com/repos/processone/ejabberd/issues/2434/labels{/name}","comments_url":"https://api.github.com/repos/processone/ejabberd/issues/2434/comments","events_url":"https://api.github.com/repos/processone/ejabberd/issues/2434/events","html_url":"https://github.com/processone/ejabberd/issues/2434","id":326131482,"node_id":"MDU6SXNzdWUzMjYxMzE0ODI=","number":2434,"title":"Riak as Ejabberd backend (configuration)","user":{"login":"Emilio-Gonzalez","id":16757008,"node_id":"MDQ6VXNlcjE2NzU3MDA4","avatar_url":"https://avatars2.githubusercontent.com/u/16757008?v=4","gravatar_id":"","url":"https://api.github.com/users/Emilio-Gonzalez","html_url":"https://github.com/Emilio-Gonzalez","followers_url":"https://api.github.com/users/Emilio-Gonzalez/followers","following_url":"https://api.github.com/users/Emilio-Gonzalez/following{/other_user}","gists_url":"https://api.github.com/users/Emilio-Gonzalez/gists{/gist_id}","starred_url":"https://api.github.com/users/Emilio-Gonzalez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Emilio-Gonzalez/subscriptions","organizations_url":"https://api.github.com/users/Emilio-Gonzalez/orgs","repos_url":"https://api.github.com/users/Emilio-Gonzalez/repos","events_url":"https://api.github.com/users/Emilio-Gonzalez/events{/privacy}","received_events_url":"https://api.github.com/users/Emilio-Gonzalez/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-24T13:50:48Z","updated_at":"2018-09-03T09:09:22Z","closed_at":"2018-09-03T09:09:22Z","author_association":"NONE","body":"> What version of ejabberd are you using?\r\n\r\n18.04\r\n\r\n> What operating system (version) are you using?\r\n\r\nCentOS 7\r\n\r\n> How did you install ejabberd (source, package, distribution)?\r\n\r\nRPM Package\r\n\r\n> What did not work as expected? Are there error messages in the log? What\r\n> was the unexpected behavior? What was the expected result?\r\n\r\nI want to change to Riak 2.0.9 as Ejabberd backend.\r\n\r\nI have riak and ejabberd on different servers (total 6 servers):\r\n- 3 Ejabberd servers in a cluster\r\n- 3 Riak servers in a cluster\r\n\r\nI followed the documentation: _https://docs.ejabberd.im/admin/configuration/#riak_\r\n\r\nI modified ejabberd.yml like this:\r\n```\r\n### Riak\r\ndefault_db: riak\r\nriak_server: \"X.Y.Z.A\"\r\nriak_port: 8098\r\nriak_pool_size: 10\r\nriak_start_interval: 30\r\n```\r\n**How can I point to ejabberd Erlang binary files in a different  server?**\r\n_Second, Riak should be pointed to ejabberd Erlang binary files (*.beam). As described in Install, by default those are located in /lib/ejabberd/ebin directory. So you should add the following to /etc/riak/vm.args_\r\n\r\nThat file doesn't exist so I suppose _/etc/riak/advanced.config_ is the file I need to change.\r\nI'm not sure if this change is enough for different servers (Ejabberd and Riak).\r\n```\r\n[\r\n{riak_kv, [{add_paths, [\"/opt/ejabberd/lib/ejabberd-18.04/bin\"]}]}\r\n].\r\n```\r\nDoing this change I can see some of the buckets Ejabberd has created, but too few in my opinion, something goes wrong.\r\n`{\"buckets\":\"passwd\", \"__riak_client_test__\", \"last_activity\"]}`\r\n\r\n**Other question is the authentication**\r\nCould I change the authentication from internal to Riak only changing the ejabberd.yml `auth_method: riak` and enabling this feature?\r\n_Starting from version 16.03, Riak authentication is supported. You can enable it with Riak admin command: riak-admin security enable_\r\n\r\nWith this option enabled, register in band is not allowed (on Mnesia works ok).\r\n`event: register.in.band#user1, attrs: {code: 405, type: cancel}, message: not-allowed`\r\nIn adddition, admin web page is unreachable (Not authorized).\r\nI suppose I have something misconfigured.\r\n\r\nCould you give me some advice?"}}
{"actor":{"display_login":"badlop"}}