Problem with permission

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
diogo.cwb
Participant
Posts: 12
Joined: Tue Apr 29, 2008 12:36 pm

Problem with permission

Post by diogo.cwb »

Hi all,

When i run my job on production enviroment. I get the below error. But i want to know how i know what directory the job is trying to use ?

Unable to determine current working directory! This is very likely due to a problem with file permissions on the directory or directories above this point. The error was Permission denied
Traceback: Could not obtain stack trace; check that 'dbx' and 'sed' are installed and on your PATH

Regards
Diogo de Oliveira Vasconcellos
diogo.cwb@gmail.com
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Does resetting the job produce an entry in the log file with "From previous run..."
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Add an external source stage with 'env' as its source program.
diogo.cwb
Participant
Posts: 12
Joined: Tue Apr 29, 2008 12:36 pm

Post by diogo.cwb »

Sorry but i didn't understand this answers...
Diogo de Oliveira Vasconcellos
diogo.cwb@gmail.com
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

OK. Try doing an Exact search for your error message(s) as this has been discussed here before. For example, a search for "check that 'dbx' and 'sed' are installed and on your PATH" has 18 matches to other posts, see if any of them help.
-craig

"You can never have too many knives" -- Logan Nine Fingers
diogo.cwb
Participant
Posts: 12
Joined: Tue Apr 29, 2008 12:36 pm

Post by diogo.cwb »

But my problem such as i understand it wasn't in traceback...but is in "Unable to determine current working directory! This very likely due to a problem with file permissions on the directory or directories above this point. The error was Permission denied "

and i try to search something about that and i doesn't find.
Diogo de Oliveira Vasconcellos
diogo.cwb@gmail.com
diogo.cwb
Participant
Posts: 12
Joined: Tue Apr 29, 2008 12:36 pm

Post by diogo.cwb »

Internal Error: (0):util/pathutils.C: 349:
Diogo de Oliveira Vasconcellos
diogo.cwb@gmail.com
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You are probably searching for "too much", too many words at a time - try another search for 'Unable to determine current working directory'.
-craig

"You can never have too many knives" -- Logan Nine Fingers
diogo.cwb
Participant
Posts: 12
Joined: Tue Apr 29, 2008 12:36 pm

Post by diogo.cwb »

ok thanks for the help...
Diogo de Oliveira Vasconcellos
diogo.cwb@gmail.com
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

This is a really strange error. When connected (to AIX) via telnet, I have seen this message using the du . command.

Code: Select all

# Let's start somewhere
$ cd /home/dsadm/projects/eswm/dev/data/reject

$ du .
du: can't find current directory
$ du /home/dsadm/projects/eswm/dev/data/reject
du: can't find current directory

# And yet, we own the directory and have full permission to it.
$ ls -ld .
drwxrwxr-x   2 dsadm    dstage          256 Nov 25 2008  .
$ id
uid=236(dsadm) gid=216(dstage) groups=1(staff)

# But, when the attach point is somewhere else, all is OK.
$ cd /tmp
$ du /home/dsadm/projects/eswm/dev/data/reject
0       /home/dsadm/projects/eswm/dev/data/reject

$
UNIX seems to lose track of the attach point even though you're the owner and you're attached there. But it's happy if you're attached someplace else.
Clearly this is UNIX behaviour and not DataStage behaviour, but DataStage apparently can be affected by it.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
jhmckeever
Premium Member
Premium Member
Posts: 301
Joined: Thu Jul 14, 2005 10:27 am
Location: Melbourne, Australia
Contact:

Unable to determine current working directory

Post by jhmckeever »

Sorry to open an old wound, but has anyone experiencing this problem found a reliable way to reproduce (or better, fix) this issue? We're 8.1.0 on AIX6.1.

We have the symptom described by the OP visible in our Director log, but cannot reproduce the command-line du behaviour demonstrated by Ray.

Ray - Is there any particular directory we should attempt demonstrating this du problem from?

Thanks,
John.
<b>John McKeever</b>
Data Migrators
<b><a href="https://www.mettleci.com">MettleCI</a> - DevOps for DataStage</b>
<a href="http://www.datamigrators.com/"><img src="https://www.datamigrators.com/assets/im ... l.png"></a>
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Basically it's the directory where the thing throwing the error is. Or is meant to be.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply