Bugzilla – Full Text Bug Listing |
Summary: | YaST2 HTTP server configuration cannot display the log | ||
---|---|---|---|
Product: | [openSUSE] openSUSE Tumbleweed | Reporter: | Christopher Yeleighton <giecrilj> |
Component: | YaST2 | Assignee: | YaST Team <yast-internal> |
Status: | CONFIRMED --- | QA Contact: | Jiri Srain <jsrain> |
Severity: | Normal | ||
Priority: | P5 - None | CC: | giecrilj, kanderssen |
Version: | Current | ||
Target Milestone: | --- | ||
Hardware: | x86-64 | ||
OS: | openSUSE Tumbleweed | ||
URL: | file:///var/log/apache2/access_log | ||
Whiteboard: | |||
Found By: | Community User | Services Priority: | |
Business Priority: | Blocker: | --- | |
Marketing QA Status: | --- | IT Deployment: | --- |
Description
Christopher Yeleighton
2021-08-05 10:48:06 UTC
(In reply to Christopher Yeleighton from comment #0) > When I tell Listening ports configuration panel to open the access log, I > get a generic error message. > Workaround: tell the Log viewer to display the access log. I think that I can reproduce myself, but when reporting a YaST bug is nice to provide logs as documented here: https://en.opensuse.org/openSUSE:Report_a_YaST_bug (In reply to Knut Alejandro Anderssen González from comment #1) > (In reply to Christopher Yeleighton from comment #0) > > When I tell Listening ports configuration panel to open the access log, I > > get a generic error message. > > Workaround: tell the Log viewer to display the access log. > > I think that I can reproduce myself, but when reporting a YaST bug is nice > to provide logs as documented here: > > https://en.opensuse.org/openSUSE:Report_a_YaST_bug 2021-08-05 12:41:13 <1> localhost.localdomain(785) [Ruby] cwm/service_widget.rb(handle):42 handling event {"EventSerialNo"=>2, "EventType"=>"MenuEvent", "ID"=>:show_access_log} 2021-08-05 12:41:13 <1> localhost.localdomain(785) [Ruby] yast2/service_widget.rb(handle_input):135 handle event show_access_log 2021-08-05 12:41:13 <1> localhost.localdomain(785) [Ruby] modules/HttpServerWidgets.rb(initListenSettings):3223 Listen: [$["ADDRESS":"", "PORT":"80"]] 2021-08-05 12:41:13 <1> localhost.localdomain(785) [Ruby] modules/HttpServerWidgets.rb(showAccessLogPopup):1022 Index 0 is out of array size 2021-08-05 12:41:13 <1> localhost.localdomain(785) [ui] YPushButton.cc(setFunctionKey):202 Guessing button role YOKButton for YPushButton "Zamknij" at 0x7fd3bc5a7700 from function key F10 2021-08-05 12:41:13 <1> localhost.localdomain(785) [Ruby] modules/LogViewCore.rb(Start):161 Calling process agent with command tail -f /var/log/apache2/access_log -n 100 | /usr/sbin/logresolve2 2021-08-05 12:41:13 <1> localhost.localdomain(785) [liby2util++] ExternalProgram.cc(start_program):202 Executing '/bin/sh' '-c' 'tail -f /var/log/apache2/access_log -n 100 | /usr/sbin/logresolve2' 2021-08-05 12:41:14 <1> localhost.localdomain(785) [liby2util++] ExternalProgram.cc(checkStatus):361 pid 893 exited with status 127 2021-08-05 12:41:14 <3> localhost.localdomain(785) [Ruby] modules/LogViewCore.rb(GetNewLines):66 Błąd podczas odczytywania plików dziennika. 2 (In reply to Christopher Yeleighton from comment #2) > (In reply to Knut Alejandro Anderssen González from comment #1) > > (In reply to Christopher Yeleighton from comment #0) > > > When I tell Listening ports configuration panel to open the access log, I > > > get a generic error message. > > > Workaround: tell the Log viewer to display the access log. > > > > I think that I can reproduce myself, but when reporting a YaST bug is nice > > to provide logs as documented here: > > > > https://en.opensuse.org/openSUSE:Report_a_YaST_bug > > 2021-08-05 12:41:13 <1> localhost.localdomain(785) [Ruby] > cwm/service_widget.rb(handle):42 handling event {"EventSerialNo"=>2, > "EventType"=>"MenuEvent", "ID"=>:show_access_log} > 2021-08-05 12:41:13 <1> localhost.localdomain(785) [Ruby] > yast2/service_widget.rb(handle_input):135 handle event show_access_log > 2021-08-05 12:41:13 <1> localhost.localdomain(785) [Ruby] > modules/HttpServerWidgets.rb(initListenSettings):3223 Listen: > [$["ADDRESS":"", "PORT":"80"]] > 2021-08-05 12:41:13 <1> localhost.localdomain(785) [Ruby] > modules/HttpServerWidgets.rb(showAccessLogPopup):1022 Index 0 is out of > array size > 2021-08-05 12:41:13 <1> localhost.localdomain(785) [ui] > YPushButton.cc(setFunctionKey):202 Guessing button role YOKButton for > YPushButton "Zamknij" at 0x7fd3bc5a7700 from function key F10 > 2021-08-05 12:41:13 <1> localhost.localdomain(785) [Ruby] > modules/LogViewCore.rb(Start):161 Calling process agent with command tail -f > /var/log/apache2/access_log -n 100 | /usr/sbin/logresolve2 > 2021-08-05 12:41:13 <1> localhost.localdomain(785) [liby2util++] > ExternalProgram.cc(start_program):202 Executing '/bin/sh' '-c' 'tail -f > /var/log/apache2/access_log -n 100 | /usr/sbin/logresolve2' > 2021-08-05 12:41:14 <1> localhost.localdomain(785) [liby2util++] > ExternalProgram.cc(checkStatus):361 pid 893 exited with status 127 > 2021-08-05 12:41:14 <3> localhost.localdomain(785) [Ruby] > modules/LogViewCore.rb(GetNewLines):66 Błąd podczas odczytywania plików > dziennika. > 2 If I'm not wrong there is no /usr/sbin/logresolve2, isn't it? > /usr/sbin/logresolve2: No such file or directory
This message goes to /dev/null apparently, instead of being passed on to the operator.
I tried { ln -T /usr/bin/logresolve /usr/sbin/logresolve2; }; the error went away but the result is empty because logresolve is incompatible with tail -f---apparently, it waits for the input to end before printing anything.
(In reply to Christopher Yeleighton from comment #4) > > /usr/sbin/logresolve2: No such file or directory > > This message goes to /dev/null apparently, instead of being passed on to the > operator. > > I tried { ln -T /usr/bin/logresolve /usr/sbin/logresolve2; }; the error went > away but the result is empty because logresolve is incompatible with tail > -f---apparently, it waits for the input to end before printing anything. Yep, that is what I have already reproduced too. So, will add it to the backlog in order to be fixed. Thnx for the bug report! # This is why tail -f will not work let i=010000 && while let i-- do printf 'localhost %d \n' "$i" && printf>&2 '%d ' "$i" done | logresolve |