{"action":"created","issue":{"url":"https://api.github.com/repos/processone/ejabberd/issues/922","repository_url":"https://api.github.com/repos/processone/ejabberd","labels_url":"https://api.github.com/repos/processone/ejabberd/issues/922/labels{/name}","comments_url":"https://api.github.com/repos/processone/ejabberd/issues/922/comments","events_url":"https://api.github.com/repos/processone/ejabberd/issues/922/events","html_url":"https://github.com/processone/ejabberd/issues/922","id":128489481,"number":922,"title":"Ejabberd iexlive throws 'bad \"K\" value: \\ ' error.","user":{"login":"kinghadi","id":3697216,"avatar_url":"https://avatars.githubusercontent.com/u/3697216?v=3","gravatar_id":"","url":"https://api.github.com/users/kinghadi","html_url":"https://github.com/kinghadi","followers_url":"https://api.github.com/users/kinghadi/followers","following_url":"https://api.github.com/users/kinghadi/following{/other_user}","gists_url":"https://api.github.com/users/kinghadi/gists{/gist_id}","starred_url":"https://api.github.com/users/kinghadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinghadi/subscriptions","organizations_url":"https://api.github.com/users/kinghadi/orgs","repos_url":"https://api.github.com/users/kinghadi/repos","events_url":"https://api.github.com/users/kinghadi/events{/privacy}","received_events_url":"https://api.github.com/users/kinghadi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"prefiks","id":61998,"avatar_url":"https://avatars.githubusercontent.com/u/61998?v=3","gravatar_id":"","url":"https://api.github.com/users/prefiks","html_url":"https://github.com/prefiks","followers_url":"https://api.github.com/users/prefiks/followers","following_url":"https://api.github.com/users/prefiks/following{/other_user}","gists_url":"https://api.github.com/users/prefiks/gists{/gist_id}","starred_url":"https://api.github.com/users/prefiks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prefiks/subscriptions","organizations_url":"https://api.github.com/users/prefiks/orgs","repos_url":"https://api.github.com/users/prefiks/repos","events_url":"https://api.github.com/users/prefiks/events{/privacy}","received_events_url":"https://api.github.com/users/prefiks/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2016-01-25T08:49:25Z","updated_at":"2016-03-09T17:56:54Z","closed_at":"2016-03-09T17:01:15Z","body":"Hi \r\nI installed `ejabberd` correctly( I configure it with `--enabled-all`) without any error. But when I want to run it in elixir mode I get this error:\r\n\r\n    # ejabberdctl iexlive\r\n    bad \"K\" value: \\\r\n    Usage: beam.smp [flags] [ -- [init_args] ]\r\n    The flags are:\r\n    \r\n    -a size        suggested stack size in kilo words for threads\r\n                   in the async-thread pool, valid range is [16-8192]\r\n    -A number      set number of threads in async thread pool,\r\n                   valid range is [0-1024]\r\n    -B[c|d|i]      c to have Ctrl-c interrupt the Erlang shell,\r\n                   d (or no extra option) to disable the break\r\n                   handler, i to ignore break signals\r\n    -c bool        enable or disable time correction\r\n    -C mode        set time warp mode; valid modes are:\r\n                   no_time_warp|single_time_warp|multi_time_warp\r\n    -d             don't write a crash dump for internally detected errors\r\n                   (halt(String) will still produce a crash dump)\r\n    -fn[u|a|l]     Control how filenames are interpreted\r\n    -hms size      set minimum heap size in words (default 233)\r\n    -hmbs size     set minimum binary virtual heap size in words (default 32768)\r\n    -hpds size     initial process dictionary size (default 10)\r\n    -K boolean     enable or disable kernel poll\r\n    -n[s|a|d]      Control behavior of signals to ports\r\n                   Note that this flag is deprecated!\r\n    -M<X> <Y>      memory allocator switches,\r\n                   see the erts_alloc(3) documentation for more info.\r\n    -pc <set>      Control what characters are considered printable (default latin1)\r\n    -P number      set maximum number of processes on this node,\r\n                   valid range is [1024-134217727]\r\n    -Q number      set maximum number of ports on this node,\r\n                   valid range is [1024-134217727]\r\n    -R number      set compatibility release number,\r\n                   valid range [16-18]\r\n    -r             force ets memory block to be moved on realloc\r\n    -rg amount     set reader groups limit\r\n    -sbt type      set scheduler bind type, valid types are:\r\n    -stbt type     u|ns|ts|ps|s|nnts|nnps|tnnps|db\r\n    -sbwt val      set scheduler busy wait threshold, valid values are:\r\n                   none|very_short|short|medium|long|very_long.\r\n    -scl bool      enable/disable compaction of scheduler load,\r\n                   see the erl(1) documentation for more info.\r\n    -sct cput      set cpu topology,\r\n                   see the erl(1) documentation for more info.\r\n    -secio bool    enable/disable eager check I/O scheduling,\r\n                   see the erl(1) documentation for more info.\r\n    -sub bool      enable/disable scheduler utilization balancing,\r\n                   see the erl(1) documentation for more info.\r\n    -sws val       set scheduler wakeup strategy, valid values are:\r\n                   default|legacy.\r\n    -swct val      set scheduler wake cleanup threshold, valid values are:\r\n                   very_lazy|lazy|medium|eager|very_eager.\r\n    -swt val       set scheduler wakeup threshold, valid values are:\r\n                   very_low|low|medium|high|very_high.\r\n    -sss size      suggested stack size in kilo words for scheduler threads,\r\n                   valid range is [4-8192]\r\n    -spp Bool      set port parallelism scheduling hint\r\n    -S n1:n2       set number of schedulers (n1), and number of\r\n                   schedulers online (n2), maximum for both\r\n                   numbers is 1024\r\n    -SP p1:p2      specify schedulers (p1) and schedulers online (p2)\r\n                   as percentages of logical processors configured and logical\r\n                   processors available, respectively\r\n    -t size        set the maximum number of atoms the emulator can handle\r\n                   valid range is [8192-0]\r\n    -T number      set modified timing level, valid range is [0-9]\r\n    -V             print Erlang version\r\n    -v             turn on chatty mode (GCs will be reported etc)\r\n    -W<i|w|e>      set error logger warnings mapping,\r\n                   see error_logger documentation for details\r\n    -zdbbl size    set the distribution buffer busy limit in kilobytes\r\n                   valid range is [1-2097151]\r\n    -zdntgc time   set delayed node table gc in seconds\r\n                   valid values are infinity or intergers in the range [0-100000000]\r\n    \r\n    Note that if the emulator is started with erlexec (typically\r\n    from the erl script), these flags should be specified with +.\r\n\r\nI can run the ejabberd server correctly. I created user and everything went well. I don't know the what is going wrong.\r\n\r\n**My config** `Elixir 1.1.1` and `Erlang R18`.\r\n\r\nI didn't pass any argument to it. What I did is as follows:\r\n\r\n - Download source file and untar it.\r\n \r\n - `./autogen` then `./configure --enable-all` then `make && make install`\r\n - Everything went well. I can run start it successfully and stop it successfully. Also I can run it in live mode(`ejabberdctl live`). \r\n\r\nThe problem is when I run in with this `ejabberdctl iexlive`. Before I download the `ejabberd` I've installed `Elixir 1.1.1`. I don't know maybe this is the problem.\r\n\r\nI went through the code of `ejabberdctl` and  I found the problem in this line of code:\r\n\r\n    ERLANG_OPTS=\" +K $POLL -smp $SMP +P $ERL_PROCESSES $ERL_OPTIONS\"\r\n\r\nI change it to \r\n\r\n    ERLANG_OPTS=\"\"\r\n\r\nAnd it worked. But I don't know it will make any further problem or not. I will open an issue at their repository. Can anyone help me. "},"comment":{"url":"https://api.github.com/repos/processone/ejabberd/issues/comments/194424267","html_url":"https://github.com/processone/ejabberd/issues/922#issuecomment-194424267","issue_url":"https://api.github.com/repos/processone/ejabberd/issues/922","id":194424267,"user":{"login":"xlarsx","id":239763,"avatar_url":"https://avatars.githubusercontent.com/u/239763?v=3","gravatar_id":"","url":"https://api.github.com/users/xlarsx","html_url":"https://github.com/xlarsx","followers_url":"https://api.github.com/users/xlarsx/followers","following_url":"https://api.github.com/users/xlarsx/following{/other_user}","gists_url":"https://api.github.com/users/xlarsx/gists{/gist_id}","starred_url":"https://api.github.com/users/xlarsx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xlarsx/subscriptions","organizations_url":"https://api.github.com/users/xlarsx/orgs","repos_url":"https://api.github.com/users/xlarsx/repos","events_url":"https://api.github.com/users/xlarsx/events{/privacy}","received_events_url":"https://api.github.com/users/xlarsx/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T17:56:53Z","updated_at":"2016-03-09T17:56:53Z","body":"Thank you!"}}