{"action":"opened","issue":{"url":"https://api.github.com/repos/Icinga/icinga2/issues/6399","repository_url":"https://api.github.com/repos/Icinga/icinga2","labels_url":"https://api.github.com/repos/Icinga/icinga2/issues/6399/labels{/name}","comments_url":"https://api.github.com/repos/Icinga/icinga2/issues/6399/comments","events_url":"https://api.github.com/repos/Icinga/icinga2/issues/6399/events","html_url":"https://github.com/Icinga/icinga2/issues/6399","id":334485856,"node_id":"MDU6SXNzdWUzMzQ0ODU4NTY=","number":6399,"title":"icinga2 api user command","user":{"login":"luciov66","id":40464048,"node_id":"MDQ6VXNlcjQwNDY0MDQ4","avatar_url":"https://avatars2.githubusercontent.com/u/40464048?v=4","gravatar_id":"","url":"https://api.github.com/users/luciov66","html_url":"https://github.com/luciov66","followers_url":"https://api.github.com/users/luciov66/followers","following_url":"https://api.github.com/users/luciov66/following{/other_user}","gists_url":"https://api.github.com/users/luciov66/gists{/gist_id}","starred_url":"https://api.github.com/users/luciov66/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luciov66/subscriptions","organizations_url":"https://api.github.com/users/luciov66/orgs","repos_url":"https://api.github.com/users/luciov66/repos","events_url":"https://api.github.com/users/luciov66/events{/privacy}","received_events_url":"https://api.github.com/users/luciov66/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-21T13:08:27Z","updated_at":"2018-06-21T13:08:27Z","closed_at":null,"author_association":"NONE","body":"<!--- I give the following command: icinga2 api user --user director --password director \r\nand I get an error -->\r\n[root@neteye ~]# cat /neteye/local/icinga2/data/log/icinga2/crash/report.1529583889.943847\r\nCaught unhandled exception.\r\nCurrent time: 2018-06-21 14:24:49 +0200\r\n\r\nApplication information:\r\n  Application version: r2.8.2_neteye1.2.2-1\r\n  Installation root: /usr\r\n  Sysconf directory: /neteye/local/icinga2/conf\r\n  Run directory: /run\r\n  Local state directory: /neteye/local/icinga2/data\r\n  Package data directory: /usr/share/icinga2\r\n  State path: /neteye/local/icinga2/data/lib/icinga2/icinga2.state\r\n  Modified attributes path: /neteye/local/icinga2/data/lib/icinga2/modified-attributes.conf\r\n  Objects path: /neteye/local/icinga2/data/cache/icinga2/icinga2.debug\r\n  Vars path: /neteye/local/icinga2/data/cache/icinga2/icinga2.vars\r\n  PID path: /run/icinga2/icinga2.pid\r\n\r\nSystem information:\r\n  Platform: CentOS Linux\r\n  Platform version: 7 (Core)\r\n  Kernel: Linux\r\n  Kernel version: 3.10.0-693.21.1.el7.x86_64\r\n  Architecture: x86_64\r\n\r\nBuild information:\r\n  Compiler: GNU 4.8.5\r\n  Build host: 88ac6b4111a4\r\n\r\nError: boost::bad_any_cast: failed conversion using boost::any_cast\r\n\r\n        (0) libcli.so.2.8.2_neteye1.2.2: <unknown function> (+0x391fa) [0x7f35d4bb81fa]\r\n        (1) libcli.so.2.8.2_neteye1.2.2: <unknown function> (+0x3942e) [0x7f35d4bb842e]\r\n        (2) libcli.so.2.8.2_neteye1.2.2: <unknown function> (+0x50ff9) [0x7f35d4bcfff9]\r\n        (3) /usr/lib64/icinga2/sbin/icinga2() [0x40bc54]\r\n        (4) /usr/lib64/icinga2/sbin/icinga2() [0x4096f9]\r\n        (5) libc.so.6: __libc_start_main (+0xf5) [0x7f35d24f3c05]\r\n        (6) /usr/lib64/icinga2/sbin/icinga2() [0x409790]\r\n\r\n\r\n***\r\n* This would indicate a runtime problem or configuration error. If you believe this is a bug in Icinga 2\r\n* please submit a bug report at https://github.com/Icinga/icinga2 and include this stack trace as well as any other\r\n* information that might be useful in order to reproduce this problem.\r\n***\r\n\r\n\r\n## Expected Behavior\r\n<!--- I would expect the command not to return an error  -->\r\n## Current Behavior\r\n<!--- the command returns an error, no matter what the user and the pwd are  -->\r\n<!--- the command should write the user and pwd to all necessary configuration files-->\r\n\r\n## Possible Solution\r\n\r\n## Steps to Reproduce (for bugs)\r\n<!--- icinga2 api user --user director --password director -->\r\n\r\n## Context\r\n<!--- I am trying to setup Director and I keep getting errors when I run the Kickstart wizard from the GUI; I came across the \"icinga2 api user\" command while debugging the problem; on the GUI I get this error: Could not connect to database: SQLSTATE[HY000] [1045] Access denied for user 'director'@'10.62.z.w' (using password: YES); this message is strange as the Icinga2 server is aactually not on  10.62.z.w, which is my PC, but on a VM on my PC: the VM has IP 192.168.x.y -->\r\n\r\n## Your Environment\r\n<!--- Iicinga2 - The Icinga 2 network monitoring daemon (version: r2.8.2_neteye1.2.2-1)\r\n\r\nCopyright (c) 2012-2017 Icinga Development Team (https://www.icinga.com/)\r\nLicense GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl2.html>\r\nThis is free software: you are free to change and redistribute it.\r\nThere is NO WARRANTY, to the extent permitted by law.\r\n\r\nApplication information:\r\n  Installation root: /usr\r\n  Sysconf directory: /neteye/local/icinga2/conf\r\n  Run directory: /run\r\n  Local state directory: /neteye/local/icinga2/data\r\n  Package data directory: /usr/share/icinga2\r\n  State path: /neteye/local/icinga2/data/lib/icinga2/icinga2.state\r\n  Modified attributes path: /neteye/local/icinga2/data/lib/icinga2/modified-attributes.conf\r\n  Objects path: /neteye/local/icinga2/data/cache/icinga2/icinga2.debug\r\n  Vars path: /neteye/local/icinga2/data/cache/icinga2/icinga2.vars\r\n  PID path: /run/icinga2/icinga2.pid\r\n\r\nSystem information:\r\n  Platform: CentOS Linux\r\n  Platform version: 7 (Core)\r\n  Kernel: Linux\r\n  Kernel version: 3.10.0-693.21.1.el7.x86_64\r\n  Architecture: x86_64\r\n\r\nBuild information:\r\n  Compiler: GNU 4.8.5\r\n  Build host: 88ac6b4111a4\r\n"}}
{"actor":{"display_login":"luciov66"}}