twelvelabs-io / tl-jockey

Jockey is a conversational video agent.
51 stars 13 forks source link

Permission denied while `langgraph up` on Ubuntu #74

Closed seyeong-han closed 1 week ago

seyeong-han commented 2 months ago

I know your system prerequisite should be Mac OS, but I found we can use jockey server on Ubuntu after solving only the permission problem.

I added conditional logic in the script to determine whether to prepend sudo to the command when running on Ubuntu, but skip it on macOS if it’s not necessary.

Parent Issue

68

Permission Error on Ubuntu

I am working on this project on Ubuntu:22.04 and got this reading permission error in run_jockey_server() of jockey/cli.py.

#5 ERROR: error from sender: open /home/young/project/twelvelabs/tl-jockey/.langgraph-data: permission denied
------
 > [langgraph-api internal] load build context:
------
failed to solve: error from sender: open /home/young/project/twelvelabs/tl-jockey/.langgraph-data: permission denied
I am using the below command as a temporary workaround. I am gonna work on recognizing the OS to determine what cli should be used.

langgraph_cli_command = [
        "sudo",
     "/home/young/miniconda3/envs/jockey/bin/langgraph",
        # "langgraph", 
        "up", 
        "-c", langgraph_json_file_path, 
        "-d", compose_file_path, 
        "--recreate", 
        "--verbose"
    ]
seyeong-han commented 1 week ago

@james-le-twelve-labs

This screenshot is the result of Ubuntu PR! image