janhq / cortex.cpp

Local AI API Platform
https://cortex.so
Apache License 2.0
2.08k stars 117 forks source link

bug: `cortex update` fails, `filesystem error: Text File busy` (Linux) #1311

Closed gabrielle-ong closed 1 month ago

gabrielle-ong commented 1 month ago

Cortex version

0.5.0-82

Describe the Bug

Linux Ubuntu - 22.04.5 LTS

cortex update fails, returns: Something went wrong: filesystem error: cannot copy file: Text file busy [tmp/cortex/cortex-nightly] [usr/bin/cortex-nightly]

Steps to Reproduce

No response

Screenshots / Logs

Screenshot 2024-09-23 at 6 30 39 PM

What is your OS?

What engine are you running?

vansangpfiev commented 1 month ago

Can you try with sudo? For Linux we need permissions to access /user/bin/

Vào 17:34, Th 2, 23 thg 9, 2024 Gabrielle Ong @.***> đã viết:

Cortex version

0.5.0-82 Describe the Bug

Linux Ubuntu - 22.04.5 LTS

cortex update fails, returns: Something went wrong: filesystem error: cannot copy file: Text file busy [tmp/cortex/cortex-nightly] [usr/bin/cortex-nightly] Steps to Reproduce

No response Screenshots / Logs

Screenshot.2024-09-23.at.6.30.39.PM.png (view on web) https://github.com/user-attachments/assets/c1d65956-3dee-4750-ad6b-d163631d62bf What is your OS?

  • MacOS
  • Windows
  • Linux

What engine are you running?

  • cortex.llamacpp (default)
  • cortex.tensorrt-llm (Nvidia GPUs)
  • cortex.onnx (NPUs, DirectML)

— Reply to this email directly, view it on GitHub https://github.com/janhq/cortex.cpp/issues/1311, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADYNIPDVGXTTQCPC3MO2C2TZX7VEXAVCNFSM6AAAAABOVYQI62VHI2DSMVQWIX3LMV43ASLTON2WKOZSGU2DEMRSG42DQMA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

vansangpfiev commented 1 month ago

From v0.5.0-92, cortex will output a message if user does not cortex update on Linux and macOS

Error: Not root user. Please run with sudo.

cc: @gabrielle-ong

gabrielle-ong commented 1 month ago

Yes, sudo works - thanks for error handling! will close this issue and validate on v92 image