Jigsaw-Code / outline-apps

Outline Client and Manager, developed by Jigsaw. Outline Manager makes it easy to create your own VPN server. Outline Client lets you share access to your VPN with anyone in your network, giving them access to the free and open internet.
https://getoutline.org/
Apache License 2.0
8.43k stars 1.37k forks source link

Installation error in Windows 11: TAP device failed to install with error code 1 #1103

Open samuliasmala opened 2 years ago

samuliasmala commented 2 years ago

When installing Outline in Windows 11 I get "TAP device failed to install with error code 1" error message during installation (image of the error message below).

image

Even though I get the error message the Outline Client is still installed and I can run it, but when I try to connect to the server I get an error message "Sorry, it looks like Outline is not properly installed. Please try installing it again. If that doesn't work, please submit feedback through the app."

I have read https://github.com/Jigsaw-Code/outline-client/issues/1007 so I executed Get-NetAdapter command. However, the output didn't have any TAP Windows Adapter V9 entries or anything else with a TAP. That hints the issue is different and probably related to the TAP adapter installation.

Does anyone know what that error code 1 means? Is there any verbose installation method to get more information about the failure? And most importantly, is Outline supposed to work in Windows 11?

System details:

thuonglt commented 2 years ago

I have same problem. I have run on Windows 11 Pro(ARM) , run on Macbook M1 through Parallels

asilbalaban commented 2 years ago

Same problem here.

Windows 11 Pro (ARM) runs on MBP M1 with Parallels Desktop.

mbagher commented 2 years ago

Same problem on Windows 10 Pro.

zamaniamin commented 1 year ago

same problem on windows 10

omidziveh commented 1 year ago

I have the same problem on windows 11 pro running on Asus notebook

navidei commented 1 year ago

Same here on Windows 11 pro.

mehranranji commented 1 year ago

hi

remove all TAP-Driver from device manager on "network adapters" and reinstall outline

0xMuskX commented 1 year ago

remove all TAP-Driver from device manager on "network adapters" and reinstall outline

0xMuskX commented 1 year ago

hi

remove all TAP-Driver from device manager on "network adapters" and reinstall outline

yeah, it's working

Simakoid commented 1 year ago

Hi the same issue,

remove all TAP-Driver from device manager on "network adapters" and reinstall outline

doesn't work for me.

reregaga commented 1 year ago

Worked after I turned off the firewall.

Simakoid commented 1 year ago

Worked after I turned off the firewall.

i haven't got the firewall.

maddyhof commented 1 year ago

The current recommended workaround is to uninstall the Outline client and the Windows TAP device(es) then re-install the latest version of Outline client. Marking as a feature request to improve this experience in the future.

vlad-ivanov-d commented 1 year ago

The current recommended workaround is to uninstall the Outline client and the Windows TAP device(es) then re-install the latest version of Outline client. Marking as a feature request to improve this experience in the future.

Unfortunately, this workaround doesn't work for the case when Windows 11 ARM runs on MBP M1 with Parallels Desktop.

den11krs commented 10 months ago

I had the same problem on Windows 10. THe solution worked for me - I deleted all TAP devices, rebooted and installed Outline again. Thank you!

Rmiska commented 6 months ago

The same issue happens with the Outline 1.13.0 installer from getoutline.org. It creates a couple Unknown Devices in device manager and exits the installer. Running Windows 11 Pro x64 build 22621. Workarounds mentioned previously do not resolve.

NLDEcloud commented 6 months ago

After the update, the same problem occurred, removing the outline and rolling back to another version helped: https://github.com/Jigsaw-Code/outline-apps/releases/tag/v1.10.1

velikq commented 6 months ago

Had same issue. Nothing mentioned above didn't work. Only old release installed without problems and updated successfuly to 1.13.0 (475601)

ActionX commented 6 months ago

Same problem. Version 1.13 does not want to install TAP. I had to put 1.10 and everything worked

nikulov commented 6 months ago

After the update, the same problem occurred, removing the outline and rolling back to another version helped: https://github.com/Jigsaw-Code/outline-apps/releases/tag/v1.10.1

thank you! it's work!

giich commented 6 months ago

After the update, the same problem occurred, removing the outline and rolling back to another version helped: https://github.com/Jigsaw-Code/outline-apps/releases/tag/v1.10.1

worked for me!

Flumeded commented 6 months ago

After the update, the same problem occurred, removing the outline and rolling back to another version helped: https://github.com/Jigsaw-Code/outline-apps/releases/tag/v1.10.1

Thank you, worked for me! Autoupdate fails by the way, and the old versions starts again no problem

jyyi1 commented 5 months ago

Related issues: #1988 , #1798 .

jyyi1 commented 5 months ago

Root cause for v1.13.0 installation failure: OemVista.inf should be CRLF line ended instead of LF. We made a change two months ago which caused this regression: https://github.com/Jigsaw-Code/outline-apps/pull/1913 . Will fix it soon.

ChinChillaSPb commented 5 months ago

Root cause for v1.13.0 installation failure: OemVista.inf should be CRLF line ended instead of LF. We made a change two months ago which caused this regression: #1913 . Will fix it soon. is there a some workaround?

osA92 commented 5 months ago

You may change endings of OemVista.inf in any text editor: https://zerowp.com/change-the-eol-between-crlf-lf-and-cr/. Text editor should be run as administrator. Run add_tap_device.bat afterwards.

Zhabinaj commented 5 months ago

After the update, the same problem occurred, removing the outline and rolling back to another version helped: https://github.com/Jigsaw-Code/outline-apps/releases/tag/v1.10.1

I had the same problem, it helped. Thanks

MR1WOLF commented 5 months ago

After the update, the same problem occurred, removing the outline and rolling back to another version helped: https://github.com/Jigsaw-Code/outline-apps/releases/tag/v1.10.1

Thanks a lot, this worked !

ucvcxc commented 2 months ago

I resolved my code 1 error by enabling NetSetupSvc, which I have had disabled for some reason.

vlad-ivanov-d commented 2 months ago

I managed to solve the problem with installing Outline on Windows 11 ARM (in my case, Windows runs as a virtual machine via Parallels on a MacBook M1). As we all understood, the problem was in installing the TAP driver for Windows ARM. Here's how I managed to install it:

  1. Install Outline and get an error at the end of the installation: error code 1.
  2. Open the OpenVPN repository https://github.com/OpenVPN/tap-windows6/releases and download dist.win10.zip to install the TAP drivers.
  3. Unpack the downloaded archive, we are interested in the arm64 folder there, and specifically the files in it: OemVista.inf, tap0901.cat, tap0901.sys.
  4. Copy these files and replace them in the Outline folder: C:\Program Files (x86)\Outline\tap-windows6
  5. Now we have the correct files for installing the Windows ARM TAP driver and we can retry the TAP driver installation. Open the Start menu, type PowerShell in the search and run Windows PowerShell ISE as an administrator.
  6. Go to the desired folder using the command: cd "C:\Program Files (x86)\Outline"
  7. Then run the installation using: .\add_tap_device.bat
  8. When the installation is complete, you can use Outline.
horseinthesky commented 1 month ago

@vlad-ivanov-d Outline 1.13.1 works like a charm on my native (Lenovo Yoga 7x) setup with this solution. Thanks a lot.

shevi4 commented 1 month ago

I managed to solve the problem with installing Outline on Windows 11 ARM (in my case, Windows runs as a virtual machine via Parallels on a MacBook M1). As we all understood, the problem was in installing the TAP driver for Windows ARM. Here's how I managed to install it:

  1. Install Outline and get an error at the end of the installation: error code 1.
  2. Open the OpenVPN repository https://github.com/OpenVPN/tap-windows6/releases and download dist.win10.zip to install the TAP drivers.
  3. Unpack the downloaded archive, we are interested in the arm64 folder there, and specifically the files in it: OemVista.inf, tap0901.cat, tap0901.sys.
  4. Copy these files and replace them in the Outline folder: C:\Program Files (x86)\Outline\tap-windows6
  5. Now we have the correct files for installing the Windows ARM TAP driver and we can retry the TAP driver installation. Open the Start menu, type PowerShell in the search and run Windows PowerShell ISE as an administrator.
  6. Go to the desired folder using the command: cd "C:\Program Files (x86)\Outline"
  7. Then run the installation using: .\add_tap_device.bat
  8. When the installation is complete, you can use Outline.

@vlad-ivanov-d thank you. Now works finally.

Problem was with Microsoft Surface Pro 11 with ARM. Windows 11 Home, ver 24H2, Outline client ver 1.13.1, have got error code 1 during indtallation. And updatedriverforplugandplaydevices failed, getlasterror=259 during add_tap_device.bat execution.

shevtsov-dmitry commented 3 weeks ago

@shevi4 Thank you very much! Your solution helped me. Actually, I got the same problem in amd64 using windows recent outline installer and the way with official tap package from open vpn repo solved it. I think the issue was that I already had open vpn client installed and probably it might messed drivers up.

panin77 commented 3 weeks ago

After the update, the same problem occurred, removing the outline and rolling back to another version helped: https://github.com/Jigsaw-Code/outline-apps/releases/tag/v1.10.1

Thanks!