[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[LDM #VWJ-362177]: ldm will not start - hupsyslog issue?



Chris,

> We're still having a problem.  Bob (our system administrator) removed the
> nosuids from the LDM partition but now we are getting a different error:
> 
> The product-queue is OK.
> Checking pqact(1) configuration-file(s)...
> /home/ldm/etc/pqact.conf: syntactically correct
> /home/ldm/ldm-6.10.1/bin/newlog: line 14: 1: parameter null or not set
> new_log(): log rotation failed
> start_ldm(): Couldn't rotate log files
> 
> I think Bob cc'd you on his response, but I've included it below just in
> case.  It may be easier to work directly with him.

The error message from newlog(1) indicates that its first argument (the 
pathname of the log file) was unset. This is likely due to the perl(1) variable 
$log_file being unset in the ldmadmin(1) script (bin/ldmadmin). You can verify 
this by execute the command "ldmadmin config" and seeing what the value is for 
the log file.

If the value is unset, then please send me the output from the command "regutil 
/log".

> Thanks,
> Chris
> 
> -----------------------------------------
> 
> I found hupsyslog:
> 
> # find . -name hupsyslog -ls
> 126227092    4 drwxr-xr-x   3 ldm users   4096 Aug  8 12:32
> ./ldm-6.10.1/src/hupsyslog
> 126233066   12 -rwsr-xr-x   1 root users  11199 Aug  8 12:31
> ./ldm-6.10.1/bin/hupsyslog
> 117605679   12 -rwsr-xr-x   1 root users  11199 Jan 25  2012 ./bin/hupsyslog
> 
> I found as the engineer you are working with offered, the nosuid
> value for /data was enabled. I removed it and remounted the file system:
> 
> $ mount |grep data
> /dev/mapper/atmsvg-atmslv0 on /data type ext4 (rw,_netdev,noatime)
> /data/home on /home type none (rw,bind,_netdev)
> /data/local on /usr/local type none (rw,bind,_netdev)
> 
> I noticed that you changed the owner and permissions of hupsyslog to
> root. It was not like that in the previous version of ldm on storm5, I
> changed it back:
> 
> $ find . -name hupsyslog -ls
> 126227092    4 drwxr-xr-x   3 ldm  users    4096 Aug  8 12:32
> ./ldm-6.10.1/src/hupsyslog
> 126233066   12 -rwxr-xr-x   1 ldm  users   11199 Aug  8 12:31
> ./ldm-6.10.1/bin/hupsyslog
> 117605406    4 -rw-r--r--      1 ldm  users        50 Aug  9 09:33
> ./bin/hupsyslog
> 
> Unfortunately the problem persisted. After looking around more,
> I made a change to /etc/sudoers thinking if I gave ldm root authority,
> without the need to enter the ldm user's password, that might
> fix the problem:
> 
> # grep LDM /etc/sudoers
> User_Alias      LDMS = ldm
> Cmnd_Alias      LDM = /home/ldm/ldm-6.10.1/bin/hupsyslog,
> /home/ldm/ldm-6.10.1/bin/newlog
> LDMS ALL=(ALL) NOPASSWD: LDM
> 
> BTW, for testing, I changed ldm's password to be
> "testing123" (without the quotes.) It turned out not to be necessary
> because with the sudoers configuration it wasn't requested.
> 
> I created two scripts /home/ldm/bin/hupsyslog and /home/bin/ldm/newlog
> which included sudo, here's hupsyslog, newlog is basically the same:
> 
> (blizzard) /home/ldm > cat ./bin/hupsyslog
> #!/bin/sh
> sudo /home/ldm/ldm-6.10.1/bin/hupsyslog
> 
> Even with these changes the problem persists:
> 
> (blizzard) /home/ldm > ldmadmin start
> The product-queue is OK.
> Checking pqact(1) configuration-file(s)...
> /home/ldm/etc/pqact.conf: syntactically correct
> /home/ldm/ldm-6.10.1/bin/newlog: line 14: 1: parameter null or not set
> new_log(): log rotation failed
> start_ldm(): Couldn't rotate log files
> 
> Something else is going on, there seems there's an issue with the
> newlog script. I'd contact UNIDATA with these findings.
> I can't believe they haven't run into this already.
> 
> 
> address@hidden> wrote:
> 
> > Chris,
> >
> > Please let me know if the logging problem's been fixed.
> >
> > Regards,
> > Steve Emmerson
> >
> > Ticket Details
> > ===================
> > Ticket ID: VWJ-362177
> > Department: Support LDM
> > Priority: Normal
> > Status: Closed
> >
> >
> 
> 
> --
> 
> Dr. Christopher C. Hennon
> Associate Professor
> Department of Atmospheric Sciences
> UNC Asheville
> 
> 1 University Heights
> CPO #2450
> Asheville, NC 28804
> 
> 1.828.232.5159 (phone)
> 1.828.232.5046 (fax)
> 
> http://facstaff.unca.edu/chennon

Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: VWJ-362177
Department: Support LDM
Priority: Normal
Status: Closed