reopen_file: Cannot open new file: Permission denied
list Ian Diddams
When my xymon 4.3.17 server starts up, it runs fine and does irt job as expected...
... except that if I leave the session open that I started it on I see periodically this line repeated twice
"reopen_file: Cannot open new file: Permission denied"
I can;t work out what file it is trying to re-open and why therefore find out why its permissions are wrong.
I've had a shufti at the ..../server folder and nothing is leaping out as the "wrong" ownership ... what I do see is then ...../server/www/snap, ....server/wwww/rep have a group ownership of apache and everything below it is apache:apache but that is presumably tied up with the apache web server that presents xymon to the world so not likely to be it presumably.
the only other place I thouht of was /var/logs/xymon but the user can create a new file OK in there.
Anyone any pointers to where to start looking? or to start investigating further?
didds#yiv5440845430 #yiv5440845430 -- _filtered #yiv5440845430 {panose-1:2 4 5 3 5 4 6 3 2 4;} _filtered #yiv5440845430 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;} _filtered #yiv5440845430 {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;} _filtered #yiv5440845430 {panose-1:0 0 0 0 0 0 0 0 0 0;}#yiv5440845430 #yiv5440845430 p.yiv5440845430MsoNormal, #yiv5440845430 li.yiv5440845430MsoNormal, #yiv5440845430 div.yiv5440845430MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;color:black;}#yiv5440845430 a:link, #yiv5440845430 span.yiv5440845430MsoHyperlink {color:blue;text-decoration:underline;}#yiv5440845430 a:visited, #yiv5440845430 span.yiv5440845430MsoHyperlinkFollowed {color:purple;text-decoration:underline;}#yiv5440845430 pre {margin:0in;margin-bottom:.0001pt;font-size:10.0pt;color:black;}#yiv5440845430 p.yiv5440845430MsoAcetate, #yiv5440845430 li.yiv5440845430MsoAcetate, #yiv5440845430 div.yiv5440845430MsoAcetate {margin:0in;margin-bottom:.0001pt;font-size:8.0pt;color:black;}#yiv5440845430 span.yiv5440845430HTMLPreformattedChar {}#yiv5440845430 span.yiv5440845430EmailStyle19 {color:windowtext;}#yiv5440845430 span.yiv5440845430EmailStyle20 {color:#1F497D;}#yiv5440845430 span.yiv5440845430EmailStyle21 {color:#1F497D;}#yiv5440845430 span.yiv5440845430BalloonTextChar {color:black;}#yiv5440845430 .yiv5440845430MsoChpDefault {font-size:10.0pt;} _filtered #yiv5440845430 {margin:1.0in 1.0in 1.0in 1.0in;}#yiv5440845430 div.yiv5440845430WordSection1 {}#yiv5440845430
list Japheth Cleaver
(Top posting due to encoding strangeness) Hi Ian, Unfortunately, the routine which calls this is used in a number of different locations so it might be hard to track down w/o more detail. Approximately what interval does the message occur on when you leave the session open? The bulk of the calls to this IIRC are dealing with log file output, and usually involve reopening both stdout and stderr, so it's most likely log related. Even in 4.3.17, xymonlaunch should be redirecting the stderr output to a designated LOGFILE entry in tasks.cfg and/or clientlaunch.cfg; I'd check either of those for any non-disabled tasks that don't have a LOGFILE entry and add one in. That should either a) solve the problem, or b) redirect the re-open error into an appropriate destination, since the initial reopen is done by xymonlaunch prior to forking. HTH, -jc
▸
On Wed, June 8, 2016 9:04 am, Ian Diddams wrote:When my xymon 4.3.17 server starts up, it runs fine and does irt job as expected...
... Â except that if I leave the session open that I started it on I see
▸
periodically this line repeated twice
"reopen_file: Cannot open new file: Permission denied"
I can;t work out what file it is trying to re-open and why therefore find
out why its permissions are wrong.
I've had a shufti at the ..../server  folder and nothing is leaping out
as the "wrong" ownership ... Â what I do see is then
...../server/www/snap, Â ....server/wwww/rep have a group ownership of
▸
apache and everything below it is apache:apache but that is presumably
tied up with the apache web server that presents xymon to the world so not
likely to be it presumably.
the only other place I thouht of was /var/logs/xymon but the user can
create a new file OK in there.
Anyone any pointers to where to start looking? Â or to start investigating
further?