New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[dev.icinga.com #10714] API is not working on wheezy #3705
Comments
Updated by mfriedrich on 2015-11-23 22:09:13 +00:00
Please clarify on "does not answer any requests". Run curl in verbose mode, trace the logs and attach their output here. Furthermore post your apiuser with obfuscated password. |
Updated by rjunich on 2015-11-24 08:54:09 +00:00 Hi dnsmichi, the output of curl in verbose mode:
...and then it just hangs. The apiuser config is just a copy of the documentation:
The icinga2.log shows the following, when trying to connect with curl:
|
Updated by louisgab on 2015-11-24 18:24:04 +00:00 Issue similar to 10666 (https://dev.icinga.org/issues/10666) |
Updated by rjunich on 2015-11-25 12:36:36 +00:00 Further experimenting showed, that it is possible to use the API if the password for the ApiUser is a single character:
|
Updated by gbeutner on 2015-11-26 06:49:26 +00:00
|
Updated by gbeutner on 2015-11-26 06:50:15 +00:00 Can you attach gdb to Icinga 2 while one of the API calls is hanging? Please attach the output of "thread apply all bt full". |
Updated by rjunich on 2015-11-26 09:28:29 +00:00 Hi, not sure if the following is what you wanted. Let me know if there is anything else you need.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available. Thread 17 (Thread 0x7ff66ebd4700 (LWP 27117)):
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available. Thread 16 (Thread 0x7ff66ec15700 (LWP 27118)):
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available. Thread 15 (Thread 0x7ff66ec56700 (LWP 27119)):
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available. Thread 14 (Thread 0x7ff667fff700 (LWP 27120)):
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available. Thread 13 (Thread 0x7ff66eb52700 (LWP 27121)):
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available. Thread 12 (Thread 0x7ff66d4dc700 (LWP 27126)):
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available. Thread 11 (Thread 0x7ff66d49b700 (LWP 27127)):
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available. Thread 10 (Thread 0x7ff66d45a700 (LWP 27128)):
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available. Thread 9 (Thread 0x7ff66d51d700 (LWP 27129)):
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available. Thread 8 (Thread 0x7ff66d55e700 (LWP 27155)):
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available. Thread 7 (Thread 0x7ff66d419700 (LWP 27156)):
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available. Thread 6 (Thread 0x7ff66d397700 (LWP 27251)):
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available. Thread 5 (Thread 0x7ff66d356700 (LWP 27252)):
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available. Thread 4 (Thread 0x7ff66d315700 (LWP 27257)):
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available. Thread 3 (Thread 0x7ff66d2d4700 (LWP 27420)):
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available. Thread 2 (Thread 0x7ff66d293700 (LWP 28122)):
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available. Thread 1 (Thread 0x7ff673df6720 (LWP 27115)):
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available. Inferior 1 [process 27115] will be detached. |
Updated by louisgab on 2015-11-30 14:33:17 +00:00
Similarly I experience a hang on ubuntu/precise when I use a user with a different name than "root". See attached gdb output. |
Updated by rjunich on 2015-12-16 08:50:33 +00:00 Hi everybody, are there any news on this topic? regards |
Updated by mfriedrich on 2015-12-17 12:31:28 +00:00
|
Updated by jflach on 2015-12-17 16:30:40 +00:00 The culprit is Base64::Decode in lib/remote/base64.cpp Base64::Decode involves some boost templating typedefing black magic. Since there are no base64 functions in standard c** nor does the current boost trick work we may want to write our own or take a look at the base64 functionalities of openssl. |
Updated by jflach on 2015-12-18 11:21:31 +00:00 I have been testing an OpenSSL implementation of base64 vs our boost version openssl calls:
boost calls:
Looks like a good reason to use openssl, I still have to check whether those library functions work on age old systems |
Updated by jflach on 2016-01-11 14:45:04 +00:00
Applied in changeset 957cf31. |
Updated by gbeutner on 2016-02-23 08:56:22 +00:00
|
Updated by gbeutner on 2016-02-23 09:58:20 +00:00
|
This issue has been migrated from Redmine: https://dev.icinga.com/issues/10714
Created by rjunich on 2015-11-23 21:39:07 +00:00
Assignee: jflach
Status: Resolved (closed on 2016-01-11 14:45:04 +00:00)
Target Version: 2.4.2
Last Update: 2016-02-23 09:58:20 +00:00 (in Redmine)
The api in version 2.4.0-1~debmon70+1 of icinga2 on a freshly install debian wheezy does not answer any requests.
The api feature was enabled as described in https://github.com/Icinga/icinga2/blob/master/doc/9-icinga2-api.md however when sending a request to the API nothing comes back.
The behaviour is the same whether the apiuser is configured or not.
Tests with a second node showed, that the nodes can communicate with each other.
Attachments
Changesets
2015-12-18 15:03:57 +00:00 by jflach 043abc6
2016-01-05 17:00:21 +00:00 by jflach 90dbc5c
2016-01-11 08:49:39 +00:00 by jflach 3abeb02
2016-01-11 14:35:20 +00:00 by jflach 957cf31
2016-02-23 08:57:18 +00:00 by jflach 0a6f15c
Relations:
The text was updated successfully, but these errors were encountered: