Hi there! Did anyone try to initialise Ray service...
# prefect-server
a
Hi there! Did anyone try to initialise Ray service from Prefect Service on k8s? Im currently getting an error of missmatched keys:
Copy code
Task 'init_ray': Exception encountered during task execution!
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/prefect/engine/task_runner.py", line 865, in get_task_run_state
    logger=self.logger,
  File "/usr/local/lib/python3.7/site-packages/prefect/utilities/executors.py", line 328, in run_task_with_timeout
    return task.run(*args, **kwargs)  # type: ignore
  File "<string>", line 57, in init_ray
  File "/usr/local/lib/python3.7/site-packages/ray/_private/client_mode_hook.py", line 62, in wrapper
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/ray/worker.py", line 844, in init
    connect_only=True)
  File "/usr/local/lib/python3.7/site-packages/ray/node.py", line 166, in __init__
    self._init_temp(redis_client)
  File "/usr/local/lib/python3.7/site-packages/ray/node.py", line 283, in _init_temp
    session_dir = _get_with_retry(redis_client, "session_dir")
  File "/usr/local/lib/python3.7/site-packages/ray/node.py", line 41, in _get_with_retry
    result = redis_client.get(key)
  File "/usr/local/lib/python3.7/site-packages/redis/client.py", line 1606, in get
    return self.execute_command('GET', name)
  File "/usr/local/lib/python3.7/site-packages/redis/client.py", line 901, in execute_command
    return self.parse_response(conn, command_name, **options)
  File "/usr/local/lib/python3.7/site-packages/redis/client.py", line 915, in parse_response
    response = connection.read_response()
  File "/usr/local/lib/python3.7/site-packages/redis/connection.py", line 756, in read_response
    raise response
redis.exceptions.ResponseError: WRONGTYPE Operation against a key holding the wrong kind of value
I can initialize it internally in the Ray service, but there is a problem in connection between the srvices
k
Hey @Aleksandr Glushko, noone on the team has Ray experience, but we’ll see if the community can chime in.
👍 1
Does this look like your issue?
a
Thank you for the reply, @Kevin Kho! Sorry, that i have posted it here, i was thinking mb i have a wrong way of Ray initialisation . I have seen this post, googling around, unfortunately it didn’t provide me any idea about working out the issue
k
Oh no worries at all. Yeah this issue looks hard