Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 176014

Summary: sys-cluster/torque-2.1.6: wrong directory permissions
Product: Gentoo Linux Reporter: Martin Mokrejš <mmokrejs>
Component: Current packagesAssignee: Gentoo Cluster Team <cluster>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Martin Mokrejš 2007-04-25 19:29:10 UTC
After starting a job I see directory permissions are wrong. Jobs are started on cluster nodes by pbs_mom, which runs as root, the job processes run under the id of the user who submitted the job. I don't know why user privileges are used to access the log directories ... 

$ tracejob 430
/var/spool/PBS//server_priv/accounting/20070425: Permission denied
/var/spool/PBS//mom_logs/20070425: No such file or directory

Job: 430.foo.bar

04/25/2007 21:56:42  S    Job Queued at request of me@foo.bar, owner = me@foor.bar, job name = STDIN, queue = small
04/25/2007 21:56:42  S    Job Modified at request of Scheduler@foo.bar
04/25/2007 21:56:42  L    Job Run
04/25/2007 21:56:42  S    Job Run at request of Scheduler@foo.bar


Making the dirs world readable/writable makes the messages disappear but
still no /var/spool/PBS//server_priv/accounting/20070425 is created.
So, I need some advice.
Comment 1 Martin Mokrejš 2007-04-25 19:44:51 UTC
Heh, I am puzzled. The directories exist on the server running pbs_mom and do contain the log. But I do not understand why running the tracejob on a cluster node/client looks for the directory on a local system. :(
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2007-04-26 03:10:14 UTC
This a non-bug then?
Comment 3 Ian Stakenvicius 2007-07-25 15:07:16 UTC
Yeah this is a non-bug.  As shown in the help info for tracejob, it needs to know the path to PBS_SERVER_HOME, which implies that it must be run on the server for it to work properly.
Comment 4 Justin Bronder (RETIRED) gentoo-dev 2007-11-26 03:15:00 UTC
Closing as invalid.  If this is wrong, please re-open.
Comment 5 Martin Mokrejš 2011-09-08 20:41:31 UTC
I think the issue for me was/is that because I run:

/usr/sbin/pbs_server -d /var/spool/torque -L /var/log/pbs_server.log

and therefore the /var/spool/torque/server_logs/ contains split logs day by day. And that '-L /var/log/pbs_server.log' comes from /etc/conf.d/torque.