Bug 684777

Summary: temp file access problems after upgrade 11.3 to 11.4, x11vnc, nagios
Product: [openSUSE] openSUSE 11.4 Reporter: Bruce Lilly <bruce.lilly>
Component: BasesystemAssignee: E-mail List <bnc-team-screening>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Critical    
Priority: P5 - None CC: jengelh
Version: Final   
Target Milestone: ---   
Hardware: PC   
OS: openSUSE 11.4   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Bruce Lilly 2011-04-03 20:14:08 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.17) Gecko/20110121 SUSE/2.0.12-0.2.1 SeaMonkey/2.0.12

The following problems appeared after upgrading from 11.3 to 11.4.

1. x11vnc now pops up a message complaining that the temporary log file can't be opened:

tail: cannot watch `/tmp/x11vnc.tray.B498N4': No such file or directory
tail: cannot watch `/tmp/x11vnc.tray.B498N4': No such file or directory
    while executing
"close $channel"
    (procedure "read_client_info" line 25)
    invoked from within
"read_client_info $client_tail"
    (procedure "read_client_tail" line 5)
    invoked from within
"read_client_tail"

When run from a command line prompt, x11vnc spits out the following:
# x11vnc
03/04/2011 15:28:43 icon_mode_file=/tmp/x11vnc.tray.B498N4
PORT=5900
03/04/2011 15:28:44 gui: ping succeeded.
can not find channel named "file5"

Aside from that, x11vnc seems to work though w/o the usual tray icon (if so configured), but leaves a "wish" process hanging around which starts hogging resources.  If not killed, this will eventually cause the system to become unresponsive (ergo, this is Critical severity).  Killing the "wish" process does not seem to adversely affect x11vnc operation.

The above is observed on multiple (8 so far) systems, x86 and x86_64.

2. nagios logs the following:
Apr  3 15:41:28 wally nagios: Error: Unable to create temp file for writing status data!
Apr  3 15:41:38 wally nagios: Error: Unable to create temp file for writing status data!
Apr  3 15:41:48 wally nagios: Error: Unable to create temp file for writing status data!
Apr  3 15:41:58 wally nagios: Error: Unable to create temp file for writing status data!

etc.

Nagios is only installed here on one 11.4 x86_64 machine, but I don't suspect any architectural issues. A second x86_64 machine here also runs nagios (currently under 11.3, with no problems, as was the case on the 11.4 machine prior to the upgrade).

Neither problem appeared on 11.3.  Nothing obvious:
x11vnc and nagios executables show timestamps in late February, consistent with other 11.4 executables.
Plenty of disk space, writing and reading to files under /tmp from a shell prompt and from shell scripts works with no problems.
ApeArmor has not been and is not enabled.
11.4 kernel(s), libraries, applications have the latest updates.



Reproducible: Always

Steps to Reproduce:
1. set up and configure x11vnc and nagios under openSuSE 11.3, confirm no problems
2. upgrade to 11.4 from DVD
3. apply update patches (kernel updates require reboot), observe described problems
Actual Results:  
See detailed description above.

Expected Results:  
Expected no change from 11.3; x11vnc should run as configured with no popup errors and without causing denial-of-service problems, nagios should not be logging temp file error messages every ten seconds.
Comment 1 Bruce Lilly 2011-04-04 02:52:53 UTC
The nagios issue is due to permissions on /var/lib/nagios (nagios writes to temp_file in there), which was owned root:root mode 0755.  It should be:

/var/lib/nagios			nagios:nagios	0755

but there are no entries placed in any of the /etc/permissions* files.
Comment 3 Kun Kun Zhang 2012-03-08 03:30:11 UTC
Long time no response.So closed.Feel free to reopen it.Thanks.
Comment 4 Jan Engelhardt 2012-03-15 18:25:36 UTC
Looks fixed to me in 12.1 nagios.