LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   can't chdir /export/home/user/ (https://www.linuxquestions.org/questions/linux-newbie-8/cant-chdir-export-home-user-827452/)

perky.nishi 08-20-2010 08:53 AM

can't chdir /export/home/user/
 
Dear community,
I have an account in a cluster. In the cluster we have to submit jobs by sgi. After every submission I am getting an an error "can't chdir /export/home/user/". My user account (user) is placed at /export/home/ instead of /home/. I am not understanding what to do. Please help.

MensaWater 08-20-2010 01:08 PM

Is this an NFS mount? CIFS mount?

The message seems to indicate there is a problem accessing /export/home/user so the first step would be to check to see if it exists:
ls -ld /export/home/user

If it does exist then you might look at the permissions to see if you have permission to access it. Is it owned by you and set to read and write execute by owner? If not is the group set to read write and execute and is your user a member of the group? If not is it set to read write and execute for everyone?

If it is an NFS or CIFS mount it could have to do either with the way it was exported (e.g. often root at mounting systems isn't allowed by the system that exported it). You may need to discuss with whoever administers the export and/or the mount if you don't own and administer both systems.

perky.nishi 08-22-2010 06:19 AM

Quote:

Originally Posted by MensaWater (Post 4072632)
Is this an NFS mount? CIFS mount?

The message seems to indicate there is a problem accessing /export/home/user so the first step would be to check to see if it exists:
ls -ld /export/home/user

If it does exist then you might look at the permissions to see if you have permission to access it. Is it owned by you and set to read and write execute by owner? If not is the group set to read write and execute and is your user a member of the group? If not is it set to read write and execute for everyone?

If it is an NFS or CIFS mount it could have to do either with the way it was exported (e.g. often root at mounting systems isn't allowed by the system that exported it). You may need to discuss with whoever administers the export and/or the mount if you don't own and administer both systems.


I can read and write in /export/home/user/. I dont have the administrative power of the cluster. What should I ask the administrator to do so that the problem gets shorted out? Thanx for the help.

jschiwal 08-22-2010 07:31 AM

I don't understand what you mean by submit jobs by sgi.

chdir is a c function, changing the working directory. It has the following errors:
Code:


ERRORS
      Depending on the file system, other errors can be returned.  The more general errors for chdir() are listed below:
      EACCES Search permission is denied for one of the components of path.  (See also path_resolution(7).)
      EFAULT path points outside your accessible address space.
      EIO    An I/O error occurred.
      ELOOP  Too many symbolic links were encountered in resolving path.
      ENAMETOOLONG
              path is too long.
      ENOENT The file does not exist.
      ENOMEM Insufficient kernel memory was available.
      ENOTDIR
              A component of path is not a directory.

      The general errors for fchdir() are listed below:
      EACCES Search permission was denied on the directory open on fd.
      EBADF  fd is not a valid file descriptor.

Please indicate where the error message is coming from. Your running program? From the cluster?

perky.nishi 08-23-2010 12:22 AM

Quote:

Originally Posted by jschiwal (Post 4074025)
I don't understand what you mean by submit jobs by sgi.

chdir is a c function, changing the working directory. It has the following errors:
Code:


ERRORS
      Depending on the file system, other errors can be returned.  The more general errors for chdir() are listed below:
      EACCES Search permission is denied for one of the components of path.  (See also path_resolution(7).)
      EFAULT path points outside your accessible address space.
      EIO    An I/O error occurred.
      ELOOP  Too many symbolic links were encountered in resolving path.
      ENAMETOOLONG
              path is too long.
      ENOENT The file does not exist.
      ENOMEM Insufficient kernel memory was available.
      ENOTDIR
              A component of path is not a directory.

      The general errors for fchdir() are listed below:
      EACCES Search permission was denied on the directory open on fd.
      EBADF  fd is not a valid file descriptor.

Please indicate where the error message is coming from. Your running program? From the cluster?



Sorry this is not sgi but sge (sun grid engine) through which we have to submit our jobs. So what should I do. I can run the programs directly in the /export/home/user/. But when I submit with sge it is giving the previously mentioned error. Please help.

evo2 08-23-2010 12:37 AM

The mount point of the home dir is probably different on the machine where the job is being run. Instead of explicitly using /export/home/user, can you try using "~" or perhaps $HOME?

A useful thing to put near the top of your batch script is the command:
Code:

env
Now, your log files will show information about the environment where the job is being run. This can be very helpful in debuging problems.

Evo2.


All times are GMT -5. The time now is 05:14 AM.