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

No Permission for /var/lock Runtime Error #1719

Closed
Energyquantum opened this issue Apr 10, 2017 · 3 comments
Closed

No Permission for /var/lock Runtime Error #1719

Energyquantum opened this issue Apr 10, 2017 · 3 comments

Comments

@Energyquantum
Copy link

Energyquantum commented Apr 10, 2017

Hi,

I was trying to run the example "FeedForwardNet.py" under "CNTK-Samples-2-0rc1/Tutorials/NumpyInterop" by "python FeedForwardNet.py" on a cluster. But the following errors occurred.

Traceback (most recent call last):
  File "FeedForwardNet.py", line 85, in <module>
    error = ffnet()
  File "FeedForwardNet.py", line 52, in ffnet
    feature, num_output_classes, hidden_layers_dim, num_hidden_layers, sigmoid)
  File "/home/jason/CNTK-Samples-2-0rc1/Tutorials/NumpyInterop_1/../../Examples/common/nn.py", line 30, in fully_connected_classifier_net
    r = fully_connected_layer(input, hidden_layer_dim, nonlinearity)
  File "/home/jason/CNTK-Samples-2-0rc1/Tutorials/NumpyInterop_1/../../Examples/common/nn.py", line 23, in fully_connected_layer
    p = linear_layer(input, output_dim)
  File "/home/jason/CNTK-Samples-2-0rc1/Tutorials/NumpyInterop_1/../../Examples/common/nn.py", line 15, in linear_layer
    times_param = parameter(shape=(list(input_var.shape)+[output_dim]), init=glorot_uniform())
  File "/home/jason/anaconda3/lib/python3.5/site-packages/cntk/internal/swig_helper.py", line 69, in wrapper
    result = f(*args, **kwds)
  File "/home/jason/anaconda3/lib/python3.5/site-packages/cntk/ops/__init__.py", line 2702, in parameter
    return Parameter(shape, init, dtype, device, name)
  File "/home/jason/anaconda3/lib/python3.5/site-packages/cntk/variables.py", line 296, in __init__
    device = use_default_device()
  File "/home/jason/anaconda3/lib/python3.5/site-packages/cntk/internal/swig_helper.py", line 69, in wrapper
    result = f(*args, **kwds)
  File "/home/jason/anaconda3/lib/python3.5/site-packages/cntk/device.py", line 119, in use_default_device
    return cntk_py.DeviceDescriptor.use_default_device()
RuntimeError: Acquire: Failed to open lock file /var/lock/CNTK_device_allocation_lock: Read-only file system.

I do not have the permission for "/var/lock/" since the code is ran on a cluster. Could someone help me with that?

Thank you.

Jason

@svml
Copy link

svml commented May 12, 2017

I have the same problem with CNTK-2.0.rc2

@hrasadi
Copy link

hrasadi commented Jun 6, 2017

CNTK 2.0 is released and the issue persists. I had the same problem with older versions of CNTK and had to build everything from source (so to change the lock path to /tmp). Is there any technical considerations about this decision?

@wolfma61
Copy link
Contributor

wolfma61 commented Jul 7, 2017

see also #62

@wolfma61 wolfma61 closed this as completed Jul 7, 2017
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

4 participants