sourcery-ai / sourcery

Instant AI code reviews
https://sourcery.ai
MIT License
1.54k stars 68 forks source link

Server Unable to Acquire Lock #390

Closed DavidLeber closed 11 months ago

DavidLeber commented 1 year ago

Checklist

Description

When I start up Remote VSCode, I get recurring errors that Sourcery server was not able to start up, and I get no recommendations from Sourcery. image

Debug Information

IDE Version: VSCode 1.82.2, developing using RemoteSSH

Sourcery Version: Sourcery v1.10.0

Operating system and Version: Local Machine: Windows 10 Remote Machine: Linux 5.15.0-73-generic x86_64

DavidLeber commented 1 year ago

Additional information, when I check the /tmp/ directory later, I don't see the needed file

reka commented 1 year ago

Thanks a lot for reporting this issue. Do you get this error only when you use RemoteSSH? Or also in a local environment?

skethirajan commented 1 year ago

Even I have the same error when I use RemoteSSH. It works fine inside local environment. However, it works inside the RemoteSSH with sourcery version of 1.6.0 and not with anything beyond 1.6.0 .

brendanator commented 12 months ago

Unfortunately, I haven't been able to replicate this. However I guess there's a lack of permissions for the /tmp directory within the remote SSH connection.

I've made a change so this lock file is no longer put in the /tmp directory but within the Sourcery data directory. I hope this will resolve it

This will be in the next release - please let me know if it doesn't work

brendanator commented 11 months ago

Seems like this is now sorted? Closing as completed