auf meiner Webplattform (myownserver.com) habe ich Probs in Bezug mit dem Aufrufen einer API.
Es ist eine Lernplattform wie z.B. für Programmieren. Auf einem bestimmten HTML-Eingabeformular sollen
User ein Soucecode-Snippet reinpasten önnen. Nach Klick auf „den OK“ - Button des Formulars soll
das Snippet an einen anderen Server geschickt werden mit einer JUNIT-Umgebung. Die UNIT-Testresulte
sollen dann wieder im ursprünglichen Eingabeformular angezeigt werden.
Leider klappt der Call auf den JUNIT - Server nicht. Auf dem Server kommt nichts an. Nach Klicken des OK-Buttons kommt eine graue Seite im Browser.
Diese Seite funktioniert nicht
myownserver.com kann diese Anfrage momentan nicht verarbeiten.
HTTP ERROR 500
Die dazugehörigen Logs (Apache Error log):
[Thu Jan 18 21:35:35.838893 2018] [ssl:trace3] [pid 18671] ssl_engine_kernel.c(2027): [client 141.22.89.11:51685] OpenSSL: Exit: error in SSLv2/v3 read client hello A
[Thu Jan 18 21:35:35.838945 2018] [ssl:debug] [pid 18671] ssl_engine_io.c(1308): (70014)End of file found: [client 141.22.89.11:51685] AH02007: SSL handshake interrupted by system [Hint: Stop button pressed in browser?!]
[Thu Jan 18 21:35:35.838955 2018] [ssl:info] [pid 18671] [client 141.22.89.11:51685] AH01998: Connection closed to child 7 with abortive shutdown (server myownserver.com:443)
[Thu Jan 18 21:35:36.162870 2018] [ssl:info] [pid 19007] [client 141.22.89.11:51694] AH01964: Connection to child 2 established (server myownserver.com:443)
[Thu Jan 18 21:35:36.162944 2018] [ssl:trace2] [pid 19007] ssl_engine_rand.c(126): Seeding PRNG with 656 bytes of entropy
[Thu Jan 18 21:35:36.163006 2018] [ssl:trace3] [pid 19007] ssl_engine_kernel.c(1989): [client 141.22.89.11:51694] OpenSSL: Handshake: start
[Thu Jan 18 21:35:36.163019 2018] [ssl:trace3] [pid 19007] ssl_engine_kernel.c(1998): [client 141.22.89.11:51694] OpenSSL: Loop: before/accept initialization
[Thu Jan 18 21:35:36.163093 2018] [ssl:debug] [pid 19007] ssl_engine_kernel.c(2115): [client 141.22.89.11:51694] AH02043: SSL virtual host for servername myownserver.com found
[Thu Jan 18 21:35:36.163113 2018] [ssl:debug] [pid 19007] ssl_engine_kernel.c(2115): [client 141.22.89.11:51694] AH02043: SSL virtual host for servername myownserver.com found
[Thu Jan 18 21:35:36.163118 2018] [core:debug] [pid 19007] protocol.c(2211): [client 141.22.89.11:51694] AH03155: select protocol from , choices=h2,http/1.1 for server myownserver.com
[Thu Jan 18 21:35:36.163124 2018] [ssl:trace3] [pid 19007] ssl_engine_kernel.c(1998): [client 141.22.89.11:51694] OpenSSL: Loop: unknown state
[Thu Jan 18 21:35:36.163132 2018] [ssl:trace3] [pid 19007] ssl_engine_kernel.c(1998): [client 141.22.89.11:51694] OpenSSL: Loop: unknown state
[Thu Jan 18 21:35:36.163194 2018] [ssl:trace3] [pid 19007] ssl_engine_kernel.c(1998): [client 141.22.89.11:51694] OpenSSL: Loop: unknown state
[Thu Jan 18 21:35:36.163218 2018] [ssl:trace3] [pid 19007] ssl_engine_kernel.c(1998): [client 141.22.89.11:51694] OpenSSL: Loop: unknown state
[Thu Jan 18 21:35:36.163260 2018] [ssl:trace3] [pid 19007] ssl_engine_kernel.c(1998): [client 141.22.89.11:51694] OpenSSL: Loop: unknown state
[Thu Jan 18 21:35:36.429827 2018] [ssl:info] [pid 18837] [client 141.22.89.11:51695] AH01964: Connection to child 1 established (server myownserver.com:443)
[Thu Jan 18 21:35:36.429901 2018] [ssl:trace2] [pid 18837] ssl_engine_rand.c(126): Seeding PRNG with 656 bytes of entropy
[Thu Jan 18 21:35:36.429977 2018] [ssl:trace3] [pid 18837] ssl_engine_kernel.c(1989): [client 141.22.89.11:51695] OpenSSL: Handshake: start
[Thu Jan 18 21:35:36.429993 2018] [ssl:trace3] [pid 18837] ssl_engine_kernel.c(1998): [client 141.22.89.11:51695] OpenSSL: Loop: before/accept initialization
[Thu Jan 18 21:35:36.496403 2018] [ssl:trace3] [pid 19007] ssl_engine_kernel.c(1998): [client 141.22.89.11:51694] OpenSSL: Loop: unknown state
[Thu Jan 18 21:35:36.496426 2018] [ssl:trace3] [pid 19007] ssl_engine_kernel.c(1993): [client 141.22.89.11:51694] OpenSSL: Handshake: done
[Thu Jan 18 21:35:36.496437 2018] [ssl:debug] [pid 19007] ssl_engine_kernel.c(2042): [client 141.22.89.11:51694] AH02041: Protocol: TLSv1.2, Cipher: ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
[Thu Jan 18 21:35:36.498399 2018] [ssl:debug] [pid 19007] ssl_engine_kernel.c(366): [client 141.22.89.11:51694] AH02034: Initial (No.1) HTTPS request received for child 2 (server myownserver.com:443), referer: https://myownserver.com/question/previe ... urseid=237
[Thu Jan 18 21:35:36.498513 2018] [authz_core:debug] [pid 19007] mod_authz_core.c(809): [client 141.22.89.11:51694] AH01626: authorization result of Require all granted: granted, referer: https://myownserver.com/question/previe ... urseid=237
[Thu Jan 18 21:35:36.498522 2018] [authz_core:debug] [pid 19007] mod_authz_core.c(809): [client 141.22.89.11:51694] AH01626: authorization result of <RequireAny>: granted, referer: https://myownserver.com/question/previe ... urseid=237
[Thu Jan 18 21:35:36.498526 2018] [core:trace3] [pid 19007] request.c(304): [client 141.22.89.11:51694] request authorized without authentication by access_checker_ex hook: /question/preview.php, referer: https://myownserver.com/question/previe ... urseid=237
[Thu Jan 18 21:35:36.526446 2018] [http:trace3] [pid 19007] http_filters.c(1089): [client 141.22.89.11:51694] Response sent with status 500, referer: https://myownserver.com/question/previe ... urseid=237
[Thu Jan 18 21:35:36.526759 2018] [ssl:trace3] [pid 19007] ssl_engine_kernel.c(2008): [client 141.22.89.11:51694] OpenSSL: Write: SSL negotiation finished successfully
[Thu Jan 18 21:35:36.526863 2018] [ssl:debug] [pid 19007] ssl_engine_io.c(1044): [client 141.22.89.11:51694] AH02001: Connection closed to child 2 with standard shutdown (server myownserver.com:443)
Interessant ist der untere Teil, wo u.a. die Meldung "Response sent with status 500" mitgeloggt wurde.
Davor scheint das Apache-Modul "authz_core" in Aktion zu treten. Da scheint die Authorisierung nicht zu klappen.
"request authorized without authentication by access_checker_ex hook"
Ich will letztendlich, dass das obig genannte HTML-Formular fehlerfrei gesendet werden kann.
Wie kann ich hier vorgehen ?
Schätze das ist eine Authorisierings Prob. Gibt es Conf-Einstellung, um die Authorisierung zu erlauben ?
Modul authz_core ?
Jegliche Hilfe, Howtos diesbezüglich wären super.
Hier meine Systemdaten:
Danke an alle!OS:Debian
root@myownserver.com:/var/log/apache2# apachectl -M
[Thu Jan 18 22:16:18.955184 2018] [core:trace3] [pid 20326] core.c(3289): Setting LogLevel for all modules to trace3
Loaded Modules:
core_module (static)
so_module (static)
watchdog_module (static)
http_module (static)
log_config_module (static)
logio_module (static)
version_module (static)
unixd_module (static)
access_compat_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_core_module (shared)
authn_file_module (shared)
authz_core_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
cgi_module (shared)
deflate_module (shared)
dir_module (shared)
env_module (shared)
filter_module (shared)
headers_module (shared)
mime_module (shared)
mpm_prefork_module (shared)
negotiation_module (shared)
php5_module (shared)
reqtimeout_module (shared)
rewrite_module (shared)
setenvif_module (shared)
socache_shmcb_module (shared)
ssl_module (shared)
h264_streaming_module (shared)
root@myownserver.com:/var/log/apache2#
root@myownserver.com:/var/log/apache2# apachectl -V
[Thu Jan 18 22:17:32.960351 2018] [core:trace3] [pid 20359] core.c(3289): Setting LogLevel for all modules to trace3
Server version: Apache/2.4.25 (Debian)
Server built: 2017-09-19T18:58:57
Server's Module Magic Number: 20120211:56
Server loaded: APR 1.5.2, APR-UTIL 1.5.4
Compiled using: APR 1.5.2, APR-UTIL 1.5.4
Architecture: 64-bit
Server MPM: prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=256
-D HTTPD_ROOT="/etc/apache2"
-D SUEXEC_BIN="/usr/lib/apache2/suexec"
-D DEFAULT_PIDLOG="/var/run/apache2.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="mime.types"
-D SERVER_CONFIG_FILE="apache2.conf"
root@myownserver.com:/var/log/apache2#
Beste Grüße
Thor