Skip to content

Singleton mode on multi-user server #1244

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ag943 opened this issue Apr 25, 2025 · 3 comments
Closed

Singleton mode on multi-user server #1244

ag943 opened this issue Apr 25, 2025 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@ag943
Copy link

ag943 commented Apr 25, 2025

Hi,

It seems the singleton mode broke something on our end. We are a team working on a shared server, and only one of us can open sourcegit at a time (if a user has sourcegit open, none of the others can open it).

Do you think it would be possible to fix this issue ?

Have a good day

@love-linger
Copy link
Collaborator

love-linger commented Apr 25, 2025

A not-so-good solution: Enable the Portable mode - Create a directory named data in the SourceGit executable directory.

Each user should have his portable SourceGit installed in different paths.

@love-linger love-linger self-assigned this Apr 25, 2025
@cdammanintopix
Copy link
Contributor

cdammanintopix commented Apr 25, 2025

@love-linger seems like the issue is in the NamedPipeServerStream creation, that reports an exception with message "Address already in use" when trying to open the UI from different user accounts on the same server, even with the PipeOptions.CurrentUserOnly option.
I'm pushing a fix in my fork right now -> #1246

cdammanintopix added a commit to cdammanintopix/sourcegit that referenced this issue Apr 25, 2025
@love-linger love-linger added the bug Something isn't working label Apr 25, 2025
love-linger pushed a commit that referenced this issue Apr 25, 2025
… to allow multiple users usage on the same server (#1244) (#1246)
@love-linger
Copy link
Collaborator

Merged. You can download the latest CI build from Github Action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants