lmstudio-ai / lmstudio-bug-tracker

Bug tracking for the LM Studio desktop application
2 stars 2 forks source link

LMStudio App "Cors=true" button broken #6

Open QuinnPiers opened 1 month ago

QuinnPiers commented 1 month ago

Looks like you pushed an update today! Is there a way to turn off autoupdates?

[2024-05-07 10:32:53.913] [INFO] [LM STUDIO SERVER] Stopping server..
[2024-05-07 10:32:53.914] [INFO] [LM STUDIO SERVER] Server stopped
[2024-05-07 10:33:03.858] [INFO] [LM STUDIO SERVER] Verbose server logs are ENABLED
[2024-05-07 10:33:03.858] [INFO] [LM STUDIO SERVER] Heads up: you've enabled CORS. Make sure you understand the implications
[2024-05-07 10:33:03.913] [INFO] [LM STUDIO SERVER] Stopping server..

The error throws the warning message, and then turns off. the warning is being thrown as an error when it shouldn't be.

npx lmstudio install-cli

I fixed this by installing the cli tool which I assume overwrote whatever is broken by the update script.

ryan-the-crayon commented 1 month ago

Thanks for the report. We do not have auto updates. The only thing install-cli does is it adds ~/.cache/lm-studio/bin to PATH, so rerunning it shouldn't be able to fix anything.

That said, server immediately stopping is caused by server failing to start. Do you know if anything might have been already using the port when you tried to start the server?

In any case, we should definitely print out the error when the serve fail to start.

QuinnPiers commented 1 month ago

No, I wasn't running any other lms instances. I can be sure of that. Not sure why I woke up this morning and it wasn't working if it wasn't an update!

I luckily found install-cli b/c when searching for 'cors' through this repo (linked from the lmstudio docs area) its the only references.

It was very frustrating (repeatedly)

maybe all I had to do was restart the app (~/Applications/LMStudio/AppRun) - ubuntu