Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission denied: '/data' #58

Closed
bearpear opened this issue Aug 17, 2018 · 1 comment
Closed

Permission denied: '/data' #58

bearpear opened this issue Aug 17, 2018 · 1 comment

Comments

@bearpear
Copy link

Hello, my problem is

case: default, logdir: /data/private/vc/logdir/default/train1
---------------------------------------------------------------------------
PermissionError                           Traceback (most recent call last)
~/library/train1.py in <module>()
     76     print('case: {}, logdir: {}'.format(args.case, logdir_train1))
     77 
---> 78     train(args, logdir=logdir_train1)
     79 
     80     print("Done")

~/library/train1.py in train(args, logdir)
     30 
     31     # set logger for event and model saver
---> 32     logger.set_logger_dir(logdir)
     33 
     34     session_conf = tf.ConfigProto(

~/anaconda3_501/lib/python3.6/site-packages/tensorpack/utils/logger.py in set_logger_dir(dirname, action)
    131     LOG_DIR = dirname
    132     from .fs import mkdir_p
--> 133     mkdir_p(dirname)
    134     _set_file(os.path.join(dirname, 'log.log'))
    135 

~/anaconda3_501/lib/python3.6/site-packages/tensorpack/utils/fs.py in mkdir_p(dirname)
     26     except OSError as e:
     27         if e.errno != errno.EEXIST:
---> 28             raise e
     29 
     30 

~/anaconda3_501/lib/python3.6/site-packages/tensorpack/utils/fs.py in mkdir_p(dirname)
     23         return
     24     try:
---> 25         os.makedirs(dirname)
     26     except OSError as e:
     27         if e.errno != errno.EEXIST:

~/anaconda3_501/lib/python3.6/os.py in makedirs(name, mode, exist_ok)
    208     if head and tail and not path.exists(head):
    209         try:
--> 210             makedirs(head, mode, exist_ok)
    211         except FileExistsError:
    212             # Defeats race condition when another thread created the path

~/anaconda3_501/lib/python3.6/os.py in makedirs(name, mode, exist_ok)
    208     if head and tail and not path.exists(head):
    209         try:
--> 210             makedirs(head, mode, exist_ok)
    211         except FileExistsError:
    212             # Defeats race condition when another thread created the path

~/anaconda3_501/lib/python3.6/os.py in makedirs(name, mode, exist_ok)
    208     if head and tail and not path.exists(head):
    209         try:
--> 210             makedirs(head, mode, exist_ok)
    211         except FileExistsError:
    212             # Defeats race condition when another thread created the path

~/anaconda3_501/lib/python3.6/os.py in makedirs(name, mode, exist_ok)
    208     if head and tail and not path.exists(head):
    209         try:
--> 210             makedirs(head, mode, exist_ok)
    211         except FileExistsError:
    212             # Defeats race condition when another thread created the path

~/anaconda3_501/lib/python3.6/os.py in makedirs(name, mode, exist_ok)
    208     if head and tail and not path.exists(head):
    209         try:
--> 210             makedirs(head, mode, exist_ok)
    211         except FileExistsError:
    212             # Defeats race condition when another thread created the path

~/anaconda3_501/lib/python3.6/os.py in makedirs(name, mode, exist_ok)
    218             return
    219     try:
--> 220         mkdir(name, mode)
    221     except OSError:
    222         # Cannot rely on checking for EEXIST, since the operating system

PermissionError: [Errno 13] Permission denied: '/data'
@bearpear
Copy link
Author

This is a cloud server error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant