Skip to content
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

ISSUE: Tunnel configs do not save after restarting app #213

Open
straydevil opened this issue Aug 31, 2024 · 20 comments
Open

ISSUE: Tunnel configs do not save after restarting app #213

straydevil opened this issue Aug 31, 2024 · 20 comments
Labels
bug Something isn't working

Comments

@straydevil
Copy link

Describe the issue
Every time i restart TunnlTo or my PC at all (which also leads to starting TunnlTo as it's in autorun) its config resets to something like mid-august state, resetting to old tunnel which i set up at that time. New configs don't save for persistent amount of time, and restarting TunnlTo leads to state reset.

To Reproduce
Steps to reproduce the behavior:

  1. Set a new tunnel
  2. Click Save
  3. Exit TunnlTo
  4. Start TunnlTo
  5. See error

Expected behavior
Setting up new tunnel saves it in some place and not resets to old state every TunnlTo restart

Tested on official WireGuard client
Not Applicable.

Tested on different VPN servers
Not Applicable.

Screenshots and GIF's
Not Applicable.

Tunnel Config
https://imgur.com/a/txDmA5W

Logs
https://pastebin.com/u9pe8Hwx

Starting WireSock directly
Not Applicable.

@straydevil straydevil added the bug Something isn't working label Aug 31, 2024
@loftyshine
Copy link

I am experiencing exactly the same issue.

@brendanosborne
Copy link
Contributor

I cannot think of a reason why this would be happening. The configs are stored in Edge local storage. You can see the configs here:

  • Right click somewhere in the TunnlTo app
  • Select "Inspect"
  • Select "Application" tab
  • Expand "Local Storage" in the left panel and then select "https://tauri.localhost"

On the right panel you will see the "tunnels" key.

Is there anything unusual with the setup of Microsoft Edge on your PC's? What version of Windows are you running?

@RedSynthez
Copy link

RedSynthez commented Sep 8, 2024

I cannot think of a reason why this would be happening. The configs are stored in Edge local storage. You can see the configs here:

  • Right click somewhere in the TunnlTo app
  • Select "Inspect"
  • Select "Application" tab
  • Expand "Local Storage" in the left panel and then select "https://tauri.localhost"

On the right panel you will see the "tunnels" key.

Is there anything unusual with the setup of Microsoft Edge on your PC's? What version of Windows are you running?

Had the same problem, launched Edge, it said it was updated (don't know when, since I'm not using it). Now I can update or delete configs. Thank you.
edit: Nope, have the same problem anyway. Every time I restart my pc my config resets to an old one. I'm using windows 11. I've checked Edge and it's updated.

@straydevil
Copy link
Author

for me, completely removing this version of TunnlTo and its configuration files, then installing older version worked just fine.
not a fix, but workaround

@SeiSilver
Copy link

@cutscries I had the same issue. I just uninstalled TunnlTo and WireSock VPN, then reinstalled them, and the issue was resolved.

@ParkSanghyeong
Copy link

I have the same issue. Previously the settings were saved permanently, but after updating from Windows 10 to Windows 11, the settings are not being saved. Of course, other issues could be the cause, but the most likely cause seems to be Windows 11.

@nikolai-imversed
Copy link

nikolai-imversed commented Oct 3, 2024

same. bump.
UPD:
This worked for me, but I dunno if this is the workaround for anyone else

Don't forget to backup your configs

  1. Goto Appdata > Local.
  2. Remove com.tunnl.to
  3. Import your configs again

It has solved local store resetting to old configs

@brendanosborne
Copy link
Contributor

same. bump. UPD: This worked for me, but I dunno if this is the workaround for anyone else

Don't forget to backup your configs

  1. Goto Appdata > Local.
  2. Remove com.tunnl.to
  3. Import your configs again

It has solved local store resetting to old configs

Is this working for anyone else?

I suspect it is something to do with a webview2 windows update.

@fullspb
Copy link

fullspb commented Oct 13, 2024

same. bump. UPD: This worked for me, but I dunno if this is the workaround for anyone else

Don't forget to backup your configs

  1. Goto Appdata > Local.
  2. Remove com.tunnl.to
  3. Import your configs again

It has solved local store resetting to old configs

it's work. thx

@AT-StephenDetomasi
Copy link

Looking forward to a proper fix of this, it's quite annoying

@nikolai-imversed
Copy link

same. bump. UPD: This worked for me, but I dunno if this is the workaround for anyone else
Don't forget to backup your configs

  1. Goto Appdata > Local.
  2. Remove com.tunnl.to
  3. Import your configs again

It has solved local store resetting to old configs

Is this working for anyone else?

I suspect it is something to do with a webview2 windows update.

The bug has reoccured couple of weeks after. It might be an issue with local store. I've been playing around with storage folders in EBWebView > Default. Removing Local Storage (Also removed Sessions, Session Storage, shared_dbs, but I am not certain these parts of an app are where bug is) and re-importing configs back are solving this issue temporarily.

@brendanosborne
Copy link
Contributor

All I can do with this version is update dependencies and hope for the best, as I can't replicate the issue. It appears to be something to do with windows update and Edge.

Local storage has been a pain to deal with. In the premium beta I've started moving away from local storage altogether.

#222

@brendanosborne brendanosborne pinned this issue Nov 8, 2024
@TunnlTo TunnlTo deleted a comment from orange11orange Nov 8, 2024
@brendanosborne brendanosborne changed the title ISSUE: Config resets to old state every TunnlTo/PC restart ISSUE: Tunnel configs do not save after restarting app Nov 8, 2024
@benten115124ua
Copy link

When will this error be fixed? For three months, people suffer and the developer does nothing!

@benten115124ua
Copy link

How do I change the app settings at all? Is there a working way? I can't even turn off the autorun of the application to try alternative options.

@Ushakovi
Copy link

Ushakovi commented Dec 1, 2024

Deleting the User\AppData\Local\com.tunnel.to\EBWebView\Default folder and client settings again helps me. The settings are saved, but if you need to change them after that, then you need to do it again

@benten115124ua
Copy link

Deleting the User\AppData\Local\com.tunnel.to\EBWebView\Default folder and client settings again helps me. The settings are saved, but if you need to change them after that, then you need to do it again

And do this every time I want to change something? I have several different tunnels configured in the program, and when I delete a folder they are all erased. The program does not have the ability to export settings and you have to rewrite everything manually. It takes a lot of time and is not convenient at all. Why doesn't the developer of the program just fix this error?

@suzieq-1
Copy link

suzieq-1 commented Dec 3, 2024

Same, made new configs yesterday, opened the app today, all the settings are gone.
It wasn't saved :(

@MyLegIsPotato
Copy link

Same problem here, I've opened once Edge (since I never use it), then removed the User\AppData\Local\com.tunnel.to\EBWebView\Default folder. Seems that the settings got saved now. I don't plan on changing them later so not an issue for now.

@EmY3uMauXenh
Copy link

EmY3uMauXenh commented Dec 18, 2024

Deleting the User\AppData\Local\com.tunnel.to\EBWebView\Default folder and client settings again helps me. The settings are saved, but if you need to change them after that, then you need to do it again

Same problem here, I've opened once Edge (since I never use it), then removed the User\AppData\Local\com.tunnel.to\EBWebView\Default folder. Seems that the settings got saved now. I don't plan on changing them later so not an issue for now.

Thanks a lot! I've tried the some methods but your comments help me to resolved my problem.

@osiris-plus
Copy link

osiris-plus commented Dec 22, 2024

Since you're using Tauri, perhaps it's some kind of browser cache that keeps the settings?

How did I come to such conclusion:

I renamed the folder AppData\Local\TunnlTo to Tunnl_To, uninstalled the app, the installed it again. Magically it got the settings from previous installation, because I didn't rename/remove the AppData\Local\com.tunnl.to folder prior to reinstallation.

Nevermind, the AppData\Local\TunnlTo only stores tunnel.conf for WireSock, all the other data is in localStorage in AppData\Local\com.tunnl.to.

You really should store the settings somewhere else, and not rely on browser's local storage.

@TunnlTo TunnlTo deleted a comment from osiris-plus Dec 23, 2024
@TunnlTo TunnlTo deleted a comment from benten115124ua Dec 23, 2024
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