ray-project / ray

Ray is a unified framework for scaling AI and Python applications. Ray consists of a core distributed runtime and a set of AI Libraries for accelerating ML workloads.
https://ray.io
Apache License 2.0
33.04k stars 5.59k forks source link

PermissionError: [Errno 13] Permission denied: #7911

Open rodriguesfas opened 4 years ago

rodriguesfas commented 4 years ago

Hello! I'm trying to run this example:

import ray
import time

ray.init()
@ray.remote
def f(i):
    time.sleep(1)
    return i

futures = [f.remote(i) for i in range(4)]

print(ray.get(futures))

However I received this error:

2020-04-06 10:54:53,978 INFO resource_spec.py:212 -- Starting Ray with 5.47 GiB memory available for workers and up t
o 2.75 GiB for objects. You can adjust these settings with ray.init(memory=<bytes>, object_store_memory=<bytes>).
Traceback (most recent call last):
  File "test_ray.py", line 6, in <module>
    ray.init()
  File "/home/fasr/.local/lib/python3.7/site-packages/ray-0.8.2-py3.7-linux-x86_64.egg/ray/worker.py", line 738, in init
    ray_params=ray_params)
  File "/home/fasr/.local/lib/python3.7/site-packages/ray-0.8.2-py3.7-linux-x86_64.egg/ray/node.py", line 162, in __init__
    self.start_head_processes()
  File "/home/fasr/.local/lib/python3.7/site-packages/ray-0.8.2-py3.7-linux-x86_64.egg/ray/node.py", line 610, in start_head_processes
    self.start_redis()
  File "/home/fasr/.local/lib/python3.7/site-packages/ray-0.8.2-py3.7-linux-x86_64.egg/ray/node.py", line 441, in start_redis
    include_java=self._ray_params.include_java)
  File "/home/fasr/.local/lib/python3.7/site-packages/ray-0.8.2-py3.7-linux-x86_64.egg/ray/services.py", line 693, in start_redis
    stderr_file=redis_stderr_file)
  File "/home/fasr/.local/lib/python3.7/site-packages/ray-0.8.2-py3.7-linux-x86_64.egg/ray/services.py", line 864, in _start_redis_instance
    stderr_file=stderr_file)
  File "/home/fasr/.local/lib/python3.7/site-packages/ray-0.8.2-py3.7-linux-x86_64.egg/ray/services.py", line 452, in start_ray_process
    preexec_fn=block_sigint)
  File "/home/fasr/anaconda3/envs/deepnlpf/lib/python3.7/subprocess.py", line 800, in __init__
    restore_signals, start_new_session)
  File "/home/fasr/anaconda3/envs/deepnlpf/lib/python3.7/subprocess.py", line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: '/home/fasr/.local/lib/python3.7/site-packages/ray-0.8.2-py3.7-linux-x86_64.egg/ray/core/src/ray/thirdparty/redis/src/redis-server'
Terminated

Can someone help me? What am I doing wrong?

rkooo567 commented 4 years ago

Can you make sure /home/fasr/.local/lib/python3.7/site-packages/ray-0.8.2-py3.7-linux-x86_64.egg/ray/core/src/ray/thirdparty/redis/src/redis-server has an execution permission?

rodriguesfas commented 4 years ago

Oops! I got it, thank you.

Em seg., 6 de abr. de 2020 às 18:31, SangBin Cho notifications@github.com escreveu:

Can you make sure /home/fasr/.local/lib/python3.7/site-packages/ray-0.8.2-py3.7-linux-x86_64.egg/ray/core/src/ray/thirdparty/redis/src/redis-server has an execution permission?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ray-project/ray/issues/7911#issuecomment-610047628, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGLGID335UFMHHVKEYF5ZDRLJCYXANCNFSM4MCJQ7WQ .

-- Francisco Rodrigues

Candidate Master in Computer Science UFPE CIn Specialist in MBA Teaching Higher Education - IDJ Graduated in Industrial Automation Technology - IFCE Juazeiro Technologist in Analysis and Development of Systems - UniLeão


-- INFORMAÇÃO CONFIDENCIAL / CONFIDENTIALITY NOTICE - Esta mensagem Eletrônica e arquivos anexos contêm informações privilegiadas e confidenciais. O uso não autorizado é ilegal, resultando em responsabilidade civil e criminal. Se você não é o destinatário correto, por favor notificar o remetente e apagar a mensagem inteira. / This electronic transmission is strictly confidential, intended solely for the addressee, and may contain confidential and/or privileged material. Any disclosure, copying, distribution or action taken in reliance on it is prohibited and may be unlawful, resulting in full civil and criminal responsability. If you receive this in error, please contact the sender and delete the material from any computer.

stale[bot] commented 3 years ago

Hi, I'm a bot from the Ray team :)

To help human contributors to focus on more relevant issues, I will automatically add the stale label to issues that have had no activity for more than 4 months.

If there is no further activity in the 14 days, the issue will be closed!

You can always ask for help on our discussion forum or Ray's public slack channel.