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

"Configuring SOCKS tunnel to run on system boot" fails on Windows 11 #31

Open
cweagans opened this issue Apr 12, 2022 · 0 comments
Open

Comments

@cweagans
Copy link

cc @RWEagans

rweagans@Agile6-A87:~$ vtk socks setup
Username for 'https://github.com/': RWEagans
Password for 'https://RWEagans@github.com/':
remote: Enumerating objects: 1, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 1 (delta 0), reused 0 (delta 0), pack-reused 0
Receiving objects: 100% (1/1), 879 bytes | 879.00 KiB/s, done.
----> Testing SOCKS SSH connection... :white_check_mark: DONE
----> Configuring SOCKS tunnel to run on system boot.../mnt/c/Windows/system32/reg.exe: Invalid argument
/mnt/c/Windows/System32/chcp.com: Invalid argument
/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe: Invalid argument
/mnt/c/Windows/System32/chcp.com: Invalid argument
/mnt/c/Windows/system32/reg.exe: Invalid argument
/mnt/c/Windows/System32/chcp.com: Invalid argument
/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe: Invalid argument
/mnt/c/Windows/System32/chcp.com: Invalid argument
Traceback (most recent call last):
        18: from /usr/local/bin/vtk:23:in `<main>'
        17: from /usr/local/bin/vtk:23:in `load'
        16: from /var/lib/gems/2.7.0/gems/vtk-0.9.4/exe/vtk:14:in `<top (required)>'
        15: from /var/lib/gems/2.7.0/gems/thor-1.2.1/lib/thor/base.rb:485:in `start'
        14: from /var/lib/gems/2.7.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
        13: from /var/lib/gems/2.7.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
        12: from /var/lib/gems/2.7.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
        11: from /var/lib/gems/2.7.0/gems/thor-1.2.1/lib/thor.rb:243:in `block in subcommand'
        10: from /var/lib/gems/2.7.0/gems/thor-1.2.1/lib/thor/invocation.rb:116:in `invoke'
         9: from /var/lib/gems/2.7.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
         8: from /var/lib/gems/2.7.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
         7: from /var/lib/gems/2.7.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
         6: from /var/lib/gems/2.7.0/gems/vtk-0.9.4/lib/vtk/commands/socks.rb:25:in `setup'
         5: from /var/lib/gems/2.7.0/gems/vtk-0.9.4/lib/vtk/commands/socks/setup.rb:39:in `execute'
         4: from /var/lib/gems/2.7.0/gems/vtk-0.9.4/lib/vtk/commands/socks/setup.rb:321:in `configure_system_boot'
         3: from /var/lib/gems/2.7.0/gems/vtk-0.9.4/lib/vtk/commands/socks/setup.rb:519:in `log'
         2: from /var/lib/gems/2.7.0/gems/vtk-0.9.4/lib/vtk/commands/socks/setup.rb:323:in `block in configure_system_boot'
         1: from /var/lib/gems/2.7.0/gems/vtk-0.9.4/lib/vtk/commands/socks/setup.rb:333:in `wsl_configure_system_boot'
/var/lib/gems/2.7.0/gems/vtk-0.9.4/lib/vtk/commands/socks/setup.rb:333:in `write': No such file or directory @ rb_sysopen - ./AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Startup/gov.va.socks.bat (Errno::ENOENT)

I'm not sure how to debug this, but it prevents Windows from registering a new startup item. I think this also doesn't set up routing DNS through SOCKS for some hostnames.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant