Profiles/settings gone cross browser/device
Hello Friends,
I’ve been running with code-sever for the last few weeks, which has been great for the most part.
I do have one issue though, when opening code server from a different browser or a different browser on a different device all of the settings and installed extensions in profiles are gone.
And when I restart code server service the first device/browser also becomes messed up in that sense.
So I’m not doing anything special, simply install code server, setup profiles, install extensions. And when I try to work from multiple devices/browsers it misses the settings. When I restart the service the first device is also missing the settings.
Thanks in advance.
Michael
15 Replies
<#1330465276201930834>
Category
Help needed
Product
code-server
Platform
Linux
Logs
Please post any relevant logs/error messages.
Feels like I’m missing something trivial. Any will be appreciated.
Hello?
hey, so if you set up your settings and then restart the service they'll just get wiped?
Hi @Phorcys
If I just restart there is no issue. Issues start only when I try to use from multiple devices
could you send the logs for code-server?
Possibly, yes. Need to check if they are still there after i fixed it last time. Worst case I can try to reproduce when I get a bit of free time and then will send you the logs. That said, I deduce from your answer that there is nothing special that I should do in order to work from multiple devices/browsers? Also I suspect it has something to do with me creating profiles. One of the other issues that I’ve observed is a project often openning in the default profile and then I need to switch manually, but maybe there is no relation to the current issue with the settings
it should happen automatically yes
hey, I've just tried and I am unable to reproduce your issue, switching browsers works fine for me
could you answer the following questions so we can figure out the issue?
- how did you install
code-server
?
- which code-server
version are you running? code-server -v
- does ~/.local/share/code-server/User/settings.json
exist?Hi @Phorcys ! Thanks for following up.
1. curl -fsSL https://code-server.dev/install.sh | sh -s -- (this is a debian 12 machine)
2. 4.96.2 08cbdfbdf11925e8a14ee03de97b942bba7e8a94 with Code 1.96.2
3. Yes.
Here is the user settings:
{
"workbench.colorTheme": "Monokai",
"redhat.telemetry.enabled": false,
"java.configuration.runtimes": [
],
"editor.fontSize": 14,
"terminal.integrated.fontSize": 14,
"workbench.colorCustomizations": {
"editor.background": "#070707"
},
"git.autofetch": true,
"remote.autoForwardPortsSource": "hybrid",
"git.confirmSync": false,
"editor.minimap.enabled": false,
"java.settings.url": "/home/codeserver/dev/java.settings"
}
I haven't had the chance to try and reproduce the issue yet. Regarding the logs I'm not sure because there are plenty of folders in the logs directory and I'm not sure which information they contain.
If you could maybe narrow the request to specific logs or specific keywords in the logs..
One thing that I could maybe add is that I've used this installation also from Safari on iOS (phone). Maybe this is a bit uncommon and could somehow caused the issue.
hey @michael, sorry I totall forgot to get back to you
have you figured this out?
you can find more info about logs at https://coder.com/docs/code-server/FAQ#how-do-i-debug-issues-with-code-server
FAQ: code-server config, install extensions & more | code-server Docs
Answers to all your FAQs: Learn how to expose code-server, use it on a iPad, install extensions, debug issues and more.
Hey @Phorcys ! Thanks for circling back. I haven't had time to check this deeper since I had additional issues that are java related that I had to solve in the mean while. Which I'm quite proud that I found workarounds for. On the good side I also refrained from creating separate profiles and worked only in the default profile with the Java extensions and haven't seen the previous issue reproduce yet. Therefore I suspect the profiles being the prime suspect in the original issue.
FYI: The java issues I had and their work arounds:
1. It's a gradle project and there is no way to debug tests (there are a few that break in different way). Workaround: run gradle with debug-jvm option from the command line and attach a debugger from vscode.
2. The project requires to be ran with Java 11 or 17, however the Java extension must be ran from Java 21. And there is no way to make it run the project using a different version. (I tried multiple ways to configure and solve this to no avail). The workaround is to specify in build.gradle the direct path to the necessary javac executable: via this option: compileJava.options.forkOptions.executable (obviously I don't like this work around).
Given that I still have to work in this environment in parallel to solving all the issues, I don't have much time left to reproduce the settings breakage issues.
Must be related https://github.com/coder/code-server/issues/7189
GitHub
User profiles are deleted when visited from another browser · Issue...
Is there an existing issue for this? I have searched the existing issues OS/Web Information Web Browser: Chrome Local OS: Windows Remote OS: RedHat Remote Architecture: amd64 code-server --version:...
sounds good, given i can't really reproduce i'll close this but feel free to reopen once you get the time
FYI, here's an answer from one of our engineers working on code-server:
we have patched settings to go back onto the disk, but user state like profile data and credentials is still on the browser
@Phorcys closed the thread.
Well I think your engineer answered the question. It doesn’t sound like using profiles across browsers is supposed to work at the moment. Indeed I’ve been using multiple browsers but refrained from using profiles and so far so good. So I’m looking forwards to have this feature in the future. It seems like a high priority issue to me.