Issue with Thruk

84 views
Skip to first unread message

Adi Adithya

unread,
Oct 22, 2021, 10:12:46 AM10/22/21
to Thruk
Hello Team,

We are seeing issues with thruk where thruk is configured on a cluster where its accessible on one node of the cluster but not on the other node. and we are seeing the below errors from the thruk log:

][ERROR] cannot create file /var/log/thruk/thruk-2021.10.21.log: Permission denied at /usr/share/thruk/lib/Thruk/Utils/IO.pm line 145.
][ERROR]    Thruk::Controller::login::index('Thruk::Context=HASH(0x50ef830)', '/thruk/cgi-bin/login.cgi') called at /usr/share/thruk/lib/Thruk.pm line 310

[Fri Oct 22 04:48:46.432577 2021] [fcgid:warn] [pid 151079] (104)Connection reset by peer: [client 10.3.204.65:60444] mod_fcgid: error reading data from FastCGI server
[Fri Oct 22 04:48:46.432603 2021] [core:error] [pid 151079] [client 10.3.204.65:60444] End of script output before headers: fcgid_env.sh
[Fri Oct 22 04:49:40.585287 2021] [fcgid:warn] [pid 151330] (104)Connection reset by peer: [client 10.3.204.65:59814] mod_fcgid: error reading data from FastCGI server
[Fri Oct 22 04:49:40.585334 2021] [core:error] [pid 151330] [client 10.3.204.65:59814] End of script output before headers: fcgid_env.sh
[Fri Oct 22 05:00:09.100849 2021] [fcgid:warn] [pid 151079] (104)Connection reset by peer: [client 10.3.204.65:50529

The below errors are from httpd:

[Fri Oct 22 04:14:12.750903 2021] [fcgid:warn] [pid 146223] (104)Connection reset by peer: [client 10.3.204.65:60214] mod_fcgid: error reading data from FastCGI server,

[Fri Oct 22 04:14:12.750959 2021] [core:error] [pid 146223] [client 10.3.204.65:60214] End of script output before headers: fcgid_env.sh,
[Fri Oct 22 04:14:38.303157 2021] [fcgid:warn] [pid 146220] (104)Connection reset by peer: [client 10.3.204.65:60228] mod_fcgid: error reading data from FastCGI server
[Fri Oct 22 04:14:38.303203 2021] [core:error] [pid 146220] [client 10.3.204.65:60228] End of script output before headers: fcgid_env.sh


Thanks & Regards,
Adith

Adi Adithya

unread,
Oct 23, 2021, 2:56:17 AM10/23/21
to Thruk
Any update on this?

Sven Nierlein

unread,
Oct 25, 2021, 3:12:01 AM10/25/21
to th...@googlegroups.com, Adi Adithya
Hi,

the error is here:

Am 23.10.21 um 8:56 schrieb Adi Adithya:
> ][ERROR] cannot create file /var/log/thruk/thruk-2021.10.21.log: Permission denied at /usr/share/thruk/lib/Thruk/Utils/IO.pm line 145.

You need to fix the permission issues. There is nothing anyone can help you. Check the permissions of the folders mentioned in the error.

Cheers,
Sven

Adi Adithya

unread,
Oct 25, 2021, 5:07:02 AM10/25/21
to Thruk
Hi Sven,

Thanks for the response.

Could you let us know if the thruk.log should be owned by thruk or apache? And should we give 775 as the permission?

Thanks  & Regards,
Adith

Sven Nierlein

unread,
Oct 25, 2021, 5:26:58 AM10/25/21
to th...@googlegroups.com, Adi Adithya
There is no "thruk" user. Everything runs as apache user, so the logfiles and folders should be owned by the apache user.


Am 25.10.21 um 11:07 schrieb Adi Adithya:
> --
> You received this message because you are subscribed to the Google Groups "Thruk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to thruk+un...@googlegroups.com <mailto:thruk+un...@googlegroups.com>.
> To view this discussion on the web visit https://groups.google.com/d/msgid/thruk/d54fa3d9-345d-4977-86d9-eeef557ee519n%40googlegroups.com <https://groups.google.com/d/msgid/thruk/d54fa3d9-345d-4977-86d9-eeef557ee519n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Adi Adithya

unread,
Oct 27, 2021, 1:29:21 PM10/27/21
to Thruk
Hi Sven,

We have two node cluster setup for thruk. Thruk.log wont get updated after Oct 22nd. When we do a curl to the localhost, apache webserver comes up. We think the linking between has some issues, that needs to be fixed.
I made changes thruk.log by giving the 775 permissions, and these are the below errors. We have also used thruk user instead of apache as it was redirected from apache user to thruk user.

[thruk]# tail -f thruk.log
[2021/10/22 01:41:58][ERROR]    Thruk::Utils::Log::_audit_log('login', 'user login, session started (password)') called at /usr/share/thruk/lib/Thruk/Controller/login.pm line 247
[2021/10/22 01:41:58][ERROR]    Thruk::Controller::login::login_successful('Thruk::Context=HASH(0x7146c20)', 'thrukadmin', 'HASH(0x6236840)', '/thruk/', '', 'password') called at /usr/share/thruk/lib/Thruk/Controller/login.pm line 177
[2021/10/22 01:41:58][ERROR]    Thruk::Controller::login::_handle_basic_login('Thruk::Context=HASH(0x7146c20)', 'thrukadmin', 'thrukadmin', '/thruk/', '/thruk/', '') called at /usr/share/thruk/lib/Thruk/Controller/login.pm line 117
[2021/10/22 01:41:58][ERROR]    Thruk::Controller::login::index('Thruk::Context=HASH(0x7146c20)', '/thruk/cgi-bin/login.cgi') called at /usr/share/thruk/lib/Thruk.pm line 310
[2021/10/22 01:41:58][ERROR]    eval {...} called at /usr/share/thruk/lib/Thruk.pm line 305
[2021/10/22 01:41:58][ERROR]    Thruk::_dispatcher('HASH(0x552ace0)') called at /usr/lib64/thruk/perl5/Plack/Util.pm line 145
[2021/10/22 01:41:58][ERROR]    eval {...} called at /usr/lib64/thruk/perl5/Plack/Util.pm line 145
[2021/10/22 01:41:58]    Plack::Util::run_app('CODE(0x2f6c190)', 'HASH(0x552ace0)') called at /usr/lib64/thruk/perl5/Plack/Handler/FCGI.pm line 147
[2021/10/22 01:41:58][ERROR]    Plack::Handler::FCGI::run('Plack::Handler::FCGI=HASH(0x6ddc48)', 'CODE(0x2f6c190)') called at /usr/share/thruk/script/thruk_fastcgi.pl line 28

The below ones are from httpd - ssl_error.log
[httpd]# tail -f ssl_error_log
[Wed Oct 27 06:56:07.550564 2021] [core:error] [pid 14110] [client 10.3.204.153:50932] End of script output before headers: fcgid_env.sh
[Wed Oct 27 06:56:14.589866 2021] [fcgid:warn] [pid 14113] (104)Connection reset by peer: [client 10.3.204.153:50934] mod_fcgid: error reading data from FastCGI server
[Wed Oct 27 06:56:14.589943 2021] [core:error] [pid 14113] [client 10.3.204.153:50934] End of script output before headers: fcgid_env.sh
[Wed Oct 27 06:56:24.295317 2021] [autoindex:error] [pid 14111] [client 10.3.204.153:50941] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Wed Oct 27 06:56:34.560662 2021] [fcgid:warn] [pid 14110] (104)Connection reset by peer: [client 10.3.204.153:50943] mod_fcgid: error reading data from FastCGI server
[Wed Oct 27 06:56:34.560691 2021] [core:error] [pid 14110] [client 10.3.204.153:50943] End of script output before headers: fcgid_env.sh
[Wed Oct 27 07:00:52.404338 2021] [fcgid:warn] [pid 16280] (104)Connection reset by peer: [client 10.3.204.153:50951] mod_fcgid: error reading data from FastCGI server
[Wed Oct 27 07:00:52.404381 2021] [core:error] [pid 16280] [client 10.3.204.153:50951] End of script output before headers: fcgid_env.sh
[Wed Oct 27 09:40:00.083066 2021] [fcgid:warn] [pid 16451] (104)Connection reset by peer: [client 10.90.101.168:54406] mod_fcgid: error reading data from FastCGI server
[Wed Oct 27 09:40:00.083111 2021] [core:error] [pid 16451] [client 10.90.101.168:54406] End of script output before headers: fcgid_env.sh


Please let us know what can be done to fix this issue.

Thanks & Regards,
Adith
Reply all
Reply to author
Forward
0 new messages