i connected tomcat connector with apache in redhat linux.after restarting of jboss server wont take's jboss request.here is my stack trace
help me how to solve this issue.
[Mon Sep 15 01:42:38 2014] [5411:140090475009792] [info] ajp_service::jk_ajp_common.c (2673): (worker1) sending request to tomcat failed (recoverable), because of error during request sending (attempt=1)
[Mon Sep 15 01:42:38 2014] [5411:140090475009792] [info] jk_open_socket::jk_connect.c (758): connect to ::1:8009 failed (errno=111)
[Mon Sep 15 01:42:38 2014] [5411:140090475009792] [info] ajp_connect_to_endpoint::jk_ajp_common.c (1019): Failed opening socket to (::1:8009) (errno=111)
[Mon Sep 15 01:42:38 2014] [5411:140090475009792] [error] ajp_send_request::jk_ajp_common.c (1663): (worker1) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111)
[Mon Sep 15 01:42:38 2014] [5411:140090475009792] [info] ajp_service::jk_ajp_common.c (2673): (worker1) sending request to tomcat failed (recoverable), because of error during request sending (attempt=2)
[Mon Sep 15 01:42:38 2014] [5411:140090475009792] [error] ajp_service::jk_ajp_common.c (2693): (worker1) connecting to tomcat failed.
[Mon Sep 15 01:42:38 2014] [5411:140090475009792] [info] jk_handler::mod_jk.c (2806): Service error=-3 for worker=worker1
[Mon Sep 15 01:42:40 2014] [5622:140090483402496] [info] jk_open_socket::jk_connect.c (758): connect to ::1:8009 failed (errno=111)
[Mon Sep 15 01:42:40 2014] [5622:140090483402496] [info] ajp_connect_to_endpoint::jk_ajp_common.c (1019): Failed opening socket to (::1:8009) (errno=111)
[Mon Sep 15 01:42:40 2014] [5622:140090483402496] [error] ajp_send_request::jk_ajp_common.c (1663): (worker1) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111)
i have installed 1.2.40 version of tomcat connector later on moved to older version 1.2.35 then it works ....
Related
just started working on Ubuntu 22.04
I just installed lamp stack on my Ubuntu pc and it is working fine
but the problem is when i clone a repo from GitHub
when i try to run the project by a browser i see a
"localhost is currently unable to handle this request." 500 server err
i can create a simple file in projects directory and run it with no errors
and i can't either use localhost/phpmyadmin i basically get the same error
heres my ls -la log result for var/www/html
drwxr-xr-x 3 root root 4096 Jun 3 16:00 ..
-rw-rw-r-- 1 www-data www-data 10671 Jun 3 16:31 index.html
-rw-rw-r-- 1 root root 20 Jun 3 15:32 info.php
lrwxrwxrwx 1 root root 21 Jun 3 16:01 phpmyadmin -> /usr/share/phpmyadmin
drwxrwxr-x 10 mrmirzaee mrmirzaee 4096 Jun 3 17:13 Todo
Heres my error.log file for apache2 while trying to open localhost/phpmyadmin
[Fri Jun 03 18:30:05.279825 2022] [php:error] [pid 82981] [client ::1:44972] PHP Fatal error: Uncaught Error: Call to undefined function mb_strpos() in /usr/share/phpmyadmin/libraries/classes/Url.php:263\nStack trace:\n#0 /usr/share/phpmyadmin/libraries/classes/Url.php(213): PhpMyAdmin\\Url::getArgSeparator()\n#1 /usr/share/phpmyadmin/libraries/classes/Url.php(176): PhpMyAdmin\\Url::getCommonRaw()\n#2 /usr/share/phpmyadmin/libraries/classes/Core.php(752): PhpMyAdmin\\Url::getCommon()\n#3 /usr/share/phpmyadmin/libraries/classes/Core.php(339): PhpMyAdmin\\Core::linkURL()\n#4 /usr/share/phpmyadmin/libraries/classes/Core.php(366): PhpMyAdmin\\Core::getPHPDocLink()\n#5 /usr/share/phpmyadmin/libraries/classes/Core.php(994): PhpMyAdmin\\Core::warnMissingExtension()\n#6 /usr/share/phpmyadmin/libraries/common.inc.php(131): PhpMyAdmin\\Core::checkExtensions()\n#7 /usr/share/phpmyadmin/index.php(15): require_once('...')\n#8 {main}\n thrown in /usr/share/phpmyadmin/libraries/classes/Url.php on line 263
and heres the access log for that ::1 - - [03/Jun/2022:18:30:05 +0430] "GET /phpmyadmin/ HTTP/1.1" 500 185 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36" ::1 - - [03/Jun/2022:18:30:56 +0430] "-" 408 0 "-" "-"
the same log files while opening my projects :
access log : ::1 - - [03/Jun/2022:18:35:12 +0430] "GET /Todo/ HTTP/1.1" 500 185 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36"
error log : [Fri Jun 03 18:35:12.880098 2022] [php:warn] [pid 82977] [client ::1:44978] PHP Warning: include(E:/xampp/htdocs/todo/bootstrap/config.php): Failed to open stream: No such file or directory in /var/www/html/Todo/Bootstrap/init.php on line 3 [Fri Jun 03 18:35:12.880251 2022] [php:warn] [pid 82977] [client ::1:44978] PHP Warning: include(): Failed opening 'E:/xampp/htdocs/todo/bootstrap/config.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/Todo/Bootstrap/init.php on line 3 [Fri Jun 03 18:35:12.880319 2022] [php:warn] [pid 82977] [client ::1:44978] PHP Warning: include(E:/xampp/htdocs/todo/vendor/autoload.php): Failed to open stream: No such file or directory in /var/www/html/Todo/Bootstrap/init.php on line 4 [Fri Jun 03 18:35:12.880337 2022] [php:warn] [pid 82977] [client ::1:44978] PHP Warning: include(): Failed opening 'E:/xampp/htdocs/todo/vendor/autoload.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/Todo/Bootstrap/init.php on line 4 [Fri Jun 03 18:35:12.880385 2022] [php:warn] [pid 82977] [client ::1:44978] PHP Warning: include(E:/xampp/htdocs/todo/libs/helpers.php): Failed to open stream: No such file or directory in /var/www/html/Todo/Bootstrap/init.php on line 5 [Fri Jun 03 18:35:12.880433 2022] [php:warn] [pid 82977] [client ::1:44978] PHP Warning: include(): Failed opening 'E:/xampp/htdocs/todo/libs/helpers.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/Todo/Bootstrap/init.php on line 5 [Fri Jun 03 18:35:12.880457 2022] [php:warn] [pid 82977] [client ::1:44978] PHP Warning: Undefined variable $db_config in /var/www/html/Todo/Bootstrap/init.php on line 7 [Fri Jun 03 18:35:12.880470 2022] [php:warn] [pid 82977] [client ::1:44978] PHP Warning: Attempt to read property "host" on null in /var/www/html/Todo/Bootstrap/init.php on line 7 [Fri Jun 03 18:35:12.880482 2022] [php:warn] [pid 82977] [client ::1:44978] PHP Warning: Undefined variable $db_config in /var/www/html/Todo/Bootstrap/init.php on line 7 [Fri Jun 03 18:35:12.880492 2022] [php:warn] [pid 82977] [client ::1:44978] PHP Warning: Attempt to read property "db_name" on null in /var/www/html/Todo/Bootstrap/init.php on line 7 [Fri Jun 03 18:35:12.880506 2022] [php:warn] [pid 82977] [client ::1:44978] PHP Warning: Undefined variable $db_config in /var/www/html/Todo/Bootstrap/init.php on line 7 [Fri Jun 03 18:35:12.880537 2022] [php:warn] [pid 82977] [client ::1:44978] PHP Warning: Attempt to read property "user" on null in /var/www/html/Todo/Bootstrap/init.php on line 7 [Fri Jun 03 18:35:12.880548 2022] [php:warn] [pid 82977] [client ::1:44978] PHP Warning: Undefined variable $db_config in /var/www/html/Todo/Bootstrap/init.php on line 7 [Fri Jun 03 18:35:12.880558 2022] [php:warn] [pid 82977] [client ::1:44978] PHP Warning: Attempt to read property "pass" on null in /var/www/html/Todo/Bootstrap/init.php on line 7 [Fri Jun 03 18:35:12.880730 2022] [php:error] [pid 82977] [client ::1:44978] PHP Fatal error: Uncaught Error: Call to undefined function diePage() in /var/www/html/Todo/Bootstrap/init.php:10\nStack trace:\n#0 /var/www/html/Todo/index.php(3): include()\n#1 {main}\n thrown in /var/www/html/Todo/Bootstrap/init.php on line 10
IDK why it's returning so much errs i literally use the same project on my windows xampp
I would suggest to check the PHP version and use a compatible one. You can use command php --version on linux. I see that you are trying to run PHPmyadmin, its advised to go through its version notes and check which PHP versions it supports.
I Fixed the problem
despite my project's problem which a false addressing in files was causing it
the PhpMyAdmin was not Responding because I hadn't installed an E called mbstrings as you can see in errors there is an undefined function mbstrops() which actually needs the mbstring Extension to run correctly i just installed the package which was compatible with my php version (8.0.1) and i got everything working correctly
in order to see how to install mbstrings Extesion see this :
Askubuntu
Hi I am trying to create a python file that reloads apache2 the code of this file is:
import os
os.system("service apache2 reload")
When I use the command in the terminal everything works fine but when I run the python script I got this error:
Job for apache2.service failed.
See "systemctl status apache2.service" and "journalctl -xe" for details.
so I checked the journalctl and got this:
nov 29 13:50:19 gerrietech apachectl[37415]: Action 'graceful' failed.
nov 29 13:50:19 gerrietech apachectl[37415]: The Apache error log may have more information.
end this comes out of the error log:
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.50.183. Set the 'ServerName' directive globally to suppress this message
[Mon Nov 29 13:37:35.533656 2021] [mpm_prefork:notice] [pid 36741] AH00163: Apache/2.4.46 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
[Mon Nov 29 13:37:35.533672 2021] [core:notice] [pid 36741] AH00094: Command line: '/usr/sbin/apache2'
[Mon Nov 29 13:38:23.180736 2021] [mpm_prefork:notice] [pid 36741] AH00169: caught SIGTERM, shutting down
[Mon Nov 29 13:38:45.809351 2021] [mpm_prefork:notice] [pid 37219] AH00163: Apache/2.4.46 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
[Mon Nov 29 13:38:45.809422 2021] [core:notice] [pid 37219] AH00094: Command line: '/usr/sbin/apache2'
How do i fix this?
After i used /etc/init.d/apache2 reload instead of service apache2 restarti dont get any errors and the script does what it is supposed to do
I am using Ubuntu 18.04 on AWS EC2 instance free tier, running websites on Apache server, NodeJS with PostgreSQL database. All deployments are done perfectly and web-apps works fine without any exception or error details.
However I am facing an annoying issue: this instance is stopping frequently without any exception or error logs. After rebooting instance everything starts working fine but after some time it automatically stops either in few hrs. on same day when rebooted instance or in 1-2 days after that.
Below are some Apache logs (var/log/apache2) I tried to analysed but couldn't found out what is causing this exactly:[there is error log is looks related to this:
**[Sun Jul 05 14:11:30.444362 2020] [mpm_event:notice] [pid 1007:tid 140440680164288] AH00491: caught SIGTERM, shutting down]** ]
[Sun Jul 05 13:10:44.389403 2020] [mpm_event:notice] [pid 1007:tid 140440680164288] AH00489: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Sun Jul 05 13:10:44.389524 2020] [core:notice] [pid 1007:tid 140440680164288] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jul 05 13:10:55.517856 2020] [proxy:error] [pid 1009:tid 140440540890880] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:4200 (localhost) failed
[Sun Jul 05 13:10:55.517921 2020] [proxy_http:error] [pid 1009:tid 140440540890880] [client 27.97.147.181:32952] AH01114: HTTP: failed to make connection to backend: localhost
[Sun Jul 05 13:10:55.969159 2020] [proxy:error] [pid 1008:tid 140440582854400] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:4200 (localhost) failed
[Sun Jul 05 13:10:55.969223 2020] [proxy_http:error] [pid 1008:tid 140440582854400] [client 27.97.147.181:25642] AH01114: HTTP: failed to make connection to backend: localhost, referer: http://xx.xx.xx.x6x/
[Sun Jul 05 13:10:59.352669 2020] [proxy:error] [pid 1009:tid 140440549283584] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:4200 (localhost) failed
[Sun Jul 05 13:10:59.352711 2020] [proxy_http:error] [pid 1009:tid 140440549283584] [client 27.97.147.181:12476] AH01114: HTTP: failed to make connection to backend: localhost
[Sun Jul 05 13:10:59.687423 2020] [proxy:error] [pid 1008:tid 140440574461696] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:4200 (localhost) failed
[Sun Jul 05 13:10:59.687463 2020] [proxy_http:error] [pid 1008:tid 140440574461696] [client 27.97.147.181:26001] AH01114: HTTP: failed to make connection to backend: localhost, referer: http://xx.xx.xx.x6x/
[Sun Jul 05 13:11:26.091717 2020] [proxy:error] [pid 1009:tid 140440557676288] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:4200 (localhost) failed
[Sun Jul 05 13:11:26.091772 2020] [proxy_http:error] [pid 1009:tid 140440557676288] [client 27.97.147.181:38107] AH01114: HTTP: failed to make connection to backend: localhost
[Sun Jul 05 13:11:26.420448 2020] [proxy:error] [pid 1009:tid 140440464520960] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:4200 (localhost) failed
[Sun Jul 05 13:11:26.420481 2020] [proxy_http:error] [pid 1009:tid 140440464520960] [client 27.97.147.181:58238] AH01114: HTTP: failed to make connection to backend: localhost, referer: http://xx.xx.xx.x6x/
[Sun Jul 05 14:11:25.939273 2020] [proxy_http:error] [pid 1009:tid 140440557676288] (104)Connection reset by peer: [client 27.97.43.52:50804] AH01102: error reading status line from remote server localhost:4200, referer: http://domain-name.com/sockjs-node/iframe.html
[Sun Jul 05 14:11:25.980501 2020] [proxy:error] [pid 1009:tid 140440557676288] [client 27.97.43.52:50804] AH00898: Error reading from remote server returned by /__webpack_dev_server__/sockjs.bundle.js, referer: http://domain-name.com/sockjs-node/iframe.html
[Sun Jul 05 14:11:30.444362 2020] [mpm_event:notice] [pid 1007:tid 140440680164288] AH00491: caught SIGTERM, shutting down
[Sun Jul 05 14:13:35.011864 2020] [mpm_event:notice] [pid 995:tid 140269259320256] AH00489: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Sun Jul 05 14:13:35.156051 2020] [core:notice] [pid 995:tid 140269259320256] AH00094: Command line: '/usr/sbin/apache2'
I had seen this type of issue before and it was DNS issue.
after lots of searches, I found out that the DNS of my domain was not registered correctly.
good afternoon
SSO does not work (client IE 9, FireFox 38)
error.httpd.log
[Sun Feb 15 10:06:02 2015] [debug] src/mod_auth_kerb.c(1944): [client 172.20.204.231] kerb_authenticate_user entered with user (NULL) and auth_type Kerberos
[Sun Feb 15 10:06:02 2015] [debug] src/mod_auth_kerb.c(1944): [client 172.20.204.231] kerb_authenticate_user entered with user (NULL) and auth_type Kerberos
[Sun Feb 15 10:06:02 2015] [debug] src/mod_auth_kerb.c(1279): [client 172.20.204.231] Acquiring creds for HTTP/itsm-dev#TEST.DOMAIN.COM.UA
[Sun Feb 15 10:06:02 2015] [debug] src/mod_auth_kerb.c(1698): [client 172.20.204.231] Verifying client data using KRB5 GSS-API
[Sun Feb 15 10:06:02 2015] [debug] src/mod_auth_kerb.c(1714): [client 172.20.204.231] Client didn't delegate us their credential
[Sun Feb 15 10:06:02 2015] [debug] src/mod_auth_kerb.c(1742): [client 172.20.204.231] Warning: received token seems to be NTLM, which isn't supported by the Kerberos module. Check your IE configuration.
[Sun Feb 15 10:06:02 2015] [debug] src/mod_auth_kerb.c(1139): [client 172.20.204.231] GSS-API major_status:00070000, minor_status:00000000
[Sun Feb 15 10:06:02 2015] [error] [client 172.20.204.231] gss_accept_sec_context() failed: No credentials were supplied, or the credentials were unavailable or inaccessible (, Unknown error)
export KRB5_TRACE=/dev/stdout
kinit -V -k -t /etc/krb5.keytab -p HTTP/itsmproxy.test.domain.com.ua#test.domain.com.ua
Using default cache: /tmp/krb5cc_0
Using principal: HTTP/itsmproxy.test.domain.com.ua#test.domain.com.ua
Using keytab: /etc/krb5.keytab
[16729] 1424007693.340272: Getting initial credentials for HTTP/itsmproxy.test.domain.com.ua#test.domain.com.ua
[16729] 1424007693.342682: Looked up etypes in keytab: (empty
[16729] 1424007693.342729: Getting initial credentials for HTTP/itsmproxy.test.domain.com.ua#test.domain.com.ua
[16729] 1424007693.342780: Looked up etypes in keytab: (empty
kinit: Keytab contains no suitable keys for HTTP/itsmproxy.test.domain.com.ua#test.domain.com.ua while getting initial credentials
klist -kte /etc/krb5.keytab2
Keytab name: FILE:/etc/krb5.keytab2
KVNO Timestamp Principal
---- ----------------- --------------------------------------------------------
5 01/01/70 03:00:00 HTTP/itsm-dev#TEST.DOMAIN.COM.UA (arcfour-hmac)
where could be the problem?
On Linux side you are using mod_auth_kerb which supports Kerberos authentication but your client sends NTLMSSP. This is unsupported.
If you want to have NTLMSSP working, you'd better to use mod_auth_gssapi and GSSAPI NTLMSSP modules from https://github.com/simo5/mod_auth_gssapi and https://fedorahosted.org/gss-ntlmssp/
I made a project in laravel and when I migrated to a live server it gives me 500 internal error.
This is the first time I try to install laravel.
The problem occurs when I run rm -rf public_html AND ln -s laravel/public/ public_html
This is the error log:
[Sat Nov 08 12:57:46 2014] [notice] Apache/2.2.29 (Unix) mod_ssl/2.2.29 OpenSSL/1.0.1e-fips mod_bwlimited/1.4 configured -- resuming normal operations
[Sat Nov 08 12:58:01 2014] [error] [client IP ADDRESS ] SoftException in Application.cpp:357: UID of script "/home/%STACK%/public_html/index.php" is s$
[Sat Nov 08 12:58:01 2014] [error] [client IP ADDRESS ] Premature end of script headers: index.php
[Sat Nov 08 12:58:01 2014] [error] [client IP ADDRESS ] SoftException in Application.cpp:357: UID of script "/home/%STACK%/public_html/index.php" is s$
[Sat Nov 08 12:58:01 2014] [error] [client IP ADDRESS ] Premature end of script headers: index.php
[Sat Nov 08 13:03:27 2014] [error] [client IP ADDRESS ] SoftException in Application.cpp:357: UID of script "/home/%STACK%/public_html/index.php" is s$
[Sat Nov 08 13:03:27 2014] [error] [client IP ADDRESS ] Premature end of script headers: index.php
[Sat Nov 08 13:03:27 2014] [error] [client IP ADDRESS ] File does not exist: /home/%STACK%/public_html/500.shtml
[Sat Nov 08 13:07:00 2014] [error] [client IP ADDRESS ] SoftException in Application.cpp:357: UID of script "/home/%STACK%/public_html/index.php" is s$
[Sat Nov 08 13:07:00 2014] [error] [client IP ADDRESS ] Premature end of script headers: index.php
[Sat Nov 08 13:07:00 2014] [error] [client IP ADDRESS ] File does not exist: /home/%STACK%/public_html/500.shtml
[Sat Nov 08 13:09:02 2014] [error] [client IP ADDRESS ] SoftException in Application.cpp:357: UID of script "/home/%STACK%/public_html/index.php" is s$
[Sat Nov 08 13:09:02 2014] [error] [client IP ADDRESS ] Premature end of script headers: index.php
Change the permissions of your app/storage folder to 755 if that doesn't works change it to 777. If you are running nginx on the server check /etc/nginx/nginx.conf file and check the first which states the user running nginx and then
chown -R www-data:www-data /your/document/root/public_html/
change www-data by the user name you found in config file you can also validate it by running ps on terminal