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

On Ubuntu 18.04, if I enable the Tun mode of v2rayN 7.1.2 , An error occurred trying to start process '/bin/sudo' with working directory '/home/directory/v2rayN-7.1.2/v2rayN-linux-64'. No such file or directory #6095

Closed
1 task done
lixiaodongsql opened this issue Nov 17, 2024 · 47 comments
Labels
enhancement New feature or request

Comments

@lixiaodongsql
Copy link

lixiaodongsql commented Nov 17, 2024

相关问题

On Ubuntu 18.04, if I enable the Tun mode of v2rayN 7.1.2 , An error occurred trying to start process '/bin/sudo' with working directory '/home/directory/v2rayN-7.1.2/v2rayN-linux-64'. No such file or directory

描述你希望的解决方案

On Ubuntu 18.04, if I enable the Tun mode of v2rayN 7.1.2 , An error occurred trying to start process '/bin/sudo' with working directory '/home/directory/v2rayN-7.1.2/v2rayN-linux-64'. No such file or directory

描述你所考虑的替代方案

No response

我确认已查询历史issues

@lixiaodongsql lixiaodongsql added the enhancement New feature or request label Nov 17, 2024
@lixiaodongsql lixiaodongsql changed the title On Ubuntu 18.04, if I enable the Tun mode of v2rayN 7.1.2 An error occurred trying to start process '/bin/sudo' with working directory '/home/directory/v2rayN-7.1.2/v2rayN-linux-64'. No such file or directory On Ubuntu 18.04, if I enable the Tun mode of v2rayN 7.1.2 , An error occurred trying to start process '/bin/sudo' with working directory '/home/directory/v2rayN-7.1.2/v2rayN-linux-64'. No such file or directory Nov 17, 2024
@lixiaodongsql lixiaodongsql changed the title On Ubuntu 18.04, if I enable the Tun mode of v2rayN 7.1.2 , An error occurred trying to start process '/bin/sudo' with working directory '/home/directory/v2rayN-7.1.2/v2rayN-linux-64'. No such file or directory On Ubuntu 18.04, if I enable the Tun mode of v2rayN 7.1.2 , An error occurred trying to start process '/bin/sudo' with working directory '/home/directory/v2rayN-7.1.2/v2rayN-linux-64'. No such file or directory Nov 17, 2024
@lixiaodongsql
Copy link
Author

2024-11-17 15:54:16.7930-INFO v2rayN start up | v2rayN - V7.1.2 - X64 - 2024/11/17 | /home/directory/v2rayN-7.1.2/v2rayN-linux-64/v2rayN
2024-11-17 15:54:16.8101-INFO Unix 4.15.0.22 - 64
2024-11-17 15:54:18.6311-INFO UpdateTaskRunGeo
2024-11-17 15:54:18.6544-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Object reference not set to an instance of an object.)
2024-11-17 15:54:18.6544-DEBUG
2024-11-17 15:54:18.6544-ERROR System.NullReferenceException: Object reference not set to an instance of an object.
2024-11-17 15:54:18.6591-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Object reference not set to an instance of an object.)
2024-11-17 15:54:18.6591-DEBUG
2024-11-17 15:54:18.6591-ERROR System.NullReferenceException: Object reference not set to an instance of an object.
2024-11-17 15:55:18.6305-INFO UpdateTaskRunSubscription
2024-11-17 15:55:21.1390-INFO -S "/home/directory/v2rayN-7.1.2/v2rayN-linux-64/bin/sing_box/sing-box" run -c "/home/directory/v2rayN-7.1.2/v2rayN-linux-64/guiConfigs/config.json" --disable-color
2024-11-17 15:55:21.1390-DEBUG An error occurred trying to start process '/bin/sudo' with working directory '/home/directory/v2rayN-7.1.2/v2rayN-linux-64'. No such file or directory,An error occurred trying to start process '/bin/sudo' with working directory '/home/directory/v2rayN-7.1.2/v2rayN-linux-64'. No such file or directory
2024-11-17 15:55:21.1431-DEBUG at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
at ServiceLib.Handler.CoreHandler.RunProcess(CoreInfo coreInfo, String configPath, Boolean displayLog, Boolean mayNeedSudo)
2024-11-17 16:04:15.4967-INFO MyAppExit Begin
2024-11-17 16:04:16.5386-INFO MyAppExit End
2024-11-17 16:04:16.5476-INFO OnClosing -> ApplicationShutdown
2024-11-17 16:04:16.5476-INFO MyAppExit Begin

@lixiaodongsql
Copy link
Author

Above is the contents of the file in the guiLogs folder of v2rayN 7.1.2 on Ubuntu 18.04

@2dust
Copy link
Owner

2dust commented Nov 17, 2024

sudo -S "/home/directory/v2rayN-7.1.2/v2rayN-linux-64/bin/sing_box/sing-box" run -c "/home/directory/v2rayN-7.1.2/v2rayN-linux-64/guiConfigs/config.json" --disable-color
Execute in your terminal

@lixiaodongsql
Copy link
Author

after I execute sudo -S "/home/directory/v2rayN-7.1.2/v2rayN-linux-64/bin/sing_box/sing-box" run -c "/home/directory/v2rayN-7.1.2/v2rayN-linux-64/guiConfigs/config.json" --disable-color

in my terminal on Ubuntu 18.04

a process is always running in my Ubuntu 18.04 terminal, there is no output information in my Ubuntu 18.04 terminal

@lixiaodongsql
Copy link
Author

lixiaodongsql commented Nov 17, 2024

If I enable TLS fragment, and if I use sing-box Core, v2rayN 7.0.9 can work normally in Tun mode on Ubuntu 18.04

@lixiaodongsql
Copy link
Author

I hope that I can still enter the sudo password to enable Tun mode every time in next version v2rayN

@2dust
Copy link
Owner

2dust commented Nov 17, 2024

I won't be able to solve your problem for a while, so I'll wait to see if someone else can.

@lixiaodongsql
Copy link
Author

In order to find out the reason that v2rayN 7.1.2 can not work in Tun mode on Ubuntu 18.04 , what other information should I provide? Thank you very much for your help

@2dust
Copy link
Owner

2dust commented Nov 18, 2024

@lixiaodongsql
Copy link
Author

On Ubuntu 18.04, if I saved sudo password in v2rayN 7.1.3 , after I enable the Tun mode of v2rayN 7.1.3 , " An error occurred trying to start process '/bin/sudo' with working directory '/home/directory/v2rayN-7.1.3/v2rayN-linux-64'. No such file or directory " is still displayed in the output of v2rayN 7.1.3

@lixiaodongsql
Copy link
Author

2024-11-18 17:38:29.9832-INFO v2rayN start up | v2rayN - V7.1.3 - X64 - 2024/11/18 | /home/directory/v2rayN-7.1.3/v2rayN-linux-64/v2rayN
2024-11-18 17:38:30.0007-INFO Unix 4.15.0.22 - 64
2024-11-18 17:38:31.7187-INFO UpdateTaskRunGeo
2024-11-18 17:38:32.0230-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Object reference not set to an instance of an object.)
2024-11-18 17:38:32.0230-DEBUG
2024-11-18 17:38:32.0230-ERROR System.NullReferenceException: Object reference not set to an instance of an object.
2024-11-18 17:38:32.0272-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Object reference not set to an instance of an object.)
2024-11-18 17:38:32.0272-DEBUG
2024-11-18 17:38:32.0272-ERROR System.NullReferenceException: Object reference not set to an instance of an object.
2024-11-18 17:39:31.7586-INFO UpdateTaskRunSubscription
2024-11-18 17:39:43.6385-INFO -S /home/directory/v2rayN-7.1.3/v2rayN-linux-64/bin/run_as_root.sh
2024-11-18 17:39:43.6385-DEBUG An error occurred trying to start process '/bin/sudo' with working directory '/home/directory/v2rayN-7.1.3/v2rayN-linux-64'. No such file or directory,An error occurred trying to start process '/bin/sudo' with working directory '/home/directory/v2rayN-7.1.3/v2rayN-linux-64'. No such file or directory
2024-11-18 17:39:43.6385-DEBUG at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
at ServiceLib.Handler.CoreHandler.RunProcess(CoreInfo coreInfo, String configPath, Boolean displayLog, Boolean mayNeedSudo)
2024-11-18 17:40:59.0411-INFO MyAppExit Begin
2024-11-18 17:40:59.0783-INFO MyAppExit End
2024-11-18 17:40:59.0783-INFO OnClosing -> ApplicationShutdown
2024-11-18 17:40:59.0783-INFO MyAppExit Begin

@lixiaodongsql
Copy link
Author

Above is the contents of the file in the guiLogs folder of v2rayN 7.1.3 on Ubuntu 18.04

@2dust
Copy link
Owner

2dust commented Nov 18, 2024

Clear the password in the settings and give it a try.
If it doesn’t work, there is no other solution for now, and you don’t need to post it.

@lixiaodongsql
Copy link
Author

On Debian 12.7, if I run v2rayN 7.1.3 as non-administrator, after I saved the sudo password in v2rayN 7.1.3 , and after I enable Tun mode of v2rayN 7.1.3 , " [sudo] my username's password: sorry , please retry " is still displayed in the output of v2rayN 7.1.3

@lixiaodongsql
Copy link
Author

2024-11-18 18:09:21.6580-INFO v2rayN start up | v2rayN - V7.1.3 - X64 - 2024/11/18 | /home/directory/v2rayN-7.1.3/v2rayN-linux-64/v2rayN
2024-11-18 18:09:21.6742-INFO Unix 6.1.0.25 - 64
2024-11-18 18:09:23.6859-INFO UpdateTaskRunGeo
2024-11-18 18:09:23.7591-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Object reference not set to an instance of an object.)
2024-11-18 18:09:23.7591-DEBUG
2024-11-18 18:09:23.7591-ERROR System.NullReferenceException: Object reference not set to an instance of an object.
2024-11-18 18:09:23.7631-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Object reference not set to an instance of an object.)
2024-11-18 18:09:23.7631-DEBUG
2024-11-18 18:09:23.7631-ERROR System.NullReferenceException: Object reference not set to an instance of an object.
2024-11-18 18:10:23.6875-INFO UpdateTaskRunSubscription
2024-11-18 18:10:36.1800-INFO -S /home/directory/v2rayN-7.1.3/v2rayN-linux-64/bin/run_as_root.sh
2024-11-18 18:29:12.8489-INFO MyAppExit Begin
2024-11-18 18:29:13.8753-INFO MyAppExit End
2024-11-18 18:29:13.8834-INFO OnClosing -> ApplicationShutdown
2024-11-18 18:29:13.8834-INFO MyAppExit Begin

@lixiaodongsql
Copy link
Author

Above is the contents of the file in the guiLogs folder of v2rayN 7.1.3 on Debian 12.7

@lixiaodongsql
Copy link
Author

On Ubuntu 18.04, first I delete the v2rayN-linux-64 folder, and I unzip the version 7.1.3 v2rayN-linux-64.zip again, I execute sudo ./v2rayN in my terminal, after I enable the Tun mode of v2rayN 7.1.3 An error occurred trying to start process '/bin/pkexec' with working directory '/home/directory/v2rayN-7.1.3/v2rayN-linux-64'. No such file or directory

@2dust
Copy link
Owner

2dust commented Nov 18, 2024

Give up, we can't solve your problem

@lixiaodongsql
Copy link
Author

2024-11-18 18:39:18.5790-INFO v2rayN start up | v2rayN - V7.1.3 - X64 - 2024/11/18 | /home/directory/v2rayN-7.1.3/v2rayN-linux-64/v2rayN
2024-11-18 18:39:18.5965-INFO Unix 4.15.0.22 - 64
2024-11-18 18:39:20.4283-INFO UpdateTaskRunGeo
2024-11-18 18:39:20.5864-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Object reference not set to an instance of an object.)
2024-11-18 18:39:20.5864-DEBUG
2024-11-18 18:39:20.5864-ERROR System.NullReferenceException: Object reference not set to an instance of an object.
2024-11-18 18:39:20.5911-DEBUG TaskScheduler_UnobservedTaskException,A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Object reference not set to an instance of an object.)
2024-11-18 18:39:20.5911-DEBUG
2024-11-18 18:39:20.5911-ERROR System.NullReferenceException: Object reference not set to an instance of an object.
2024-11-18 18:39:49.4673-INFO MyAppExit Begin
2024-11-18 18:39:49.5007-INFO MyAppExit End
2024-11-18 18:39:49.5028-INFO OnClosing -> ApplicationShutdown
2024-11-18 18:39:49.5028-INFO MyAppExit Begin
2024-11-18 18:40:09.8691-INFO v2rayN start up | v2rayN - V7.1.3 - X64 - 2024/11/18 | /home/directory/v2rayN-7.1.3/v2rayN-linux-64/v2rayN
2024-11-18 18:40:09.8849-INFO Unix 4.15.0.22 - 64
2024-11-18 18:41:37.1255-INFO v2rayN start up | v2rayN - V7.1.3 - X64 - 2024/11/18 | /home/directory/v2rayN-7.1.3/v2rayN-linux-64/v2rayN
2024-11-18 18:41:37.1411-INFO Unix 4.15.0.22 - 64
2024-11-18 18:41:38.7467-INFO UpdateTaskRunGeo
2024-11-18 18:41:46.0796-INFO /home/directory/v2rayN-7.1.3/v2rayN-linux-64/bin/run_as_root.sh
2024-11-18 18:41:46.0810-DEBUG An error occurred trying to start process '/bin/pkexec' with working directory '/home/directory/v2rayN-7.1.3/v2rayN-linux-64'. No such file or directory,An error occurred trying to start process '/bin/pkexec' with working directory '/home/directory/v2rayN-7.1.3/v2rayN-linux-64'. No such file or directory
2024-11-18 18:41:46.0810-DEBUG at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
at ServiceLib.Handler.CoreHandler.RunProcess(CoreInfo coreInfo, String configPath, Boolean displayLog, Boolean mayNeedSudo)
2024-11-18 18:41:55.5393-INFO MyAppExit Begin
2024-11-18 18:41:56.5748-INFO MyAppExit End
2024-11-18 18:41:56.6316-INFO OnClosing -> ApplicationShutdown
2024-11-18 18:41:56.6316-INFO MyAppExit Begin
2024-11-18 18:42:03.8969-INFO v2rayN start up | v2rayN - V7.1.3 - X64 - 2024/11/18 | /home/directory/v2rayN-7.1.3/v2rayN-linux-64/v2rayN
2024-11-18 18:42:03.9124-INFO Unix 4.15.0.22 - 64
2024-11-18 18:42:05.3661-INFO UpdateTaskRunGeo
2024-11-18 18:42:33.6695-INFO /home/directory/v2rayN-7.1.3/v2rayN-linux-64/bin/run_as_root.sh
2024-11-18 18:42:33.6751-DEBUG An error occurred trying to start process '/bin/pkexec' with working directory '/home/directory/v2rayN-7.1.3/v2rayN-linux-64'. No such file or directory,An error occurred trying to start process '/bin/pkexec' with working directory '/home/directory/v2rayN-7.1.3/v2rayN-linux-64'. No such file or directory
2024-11-18 18:42:33.6768-DEBUG at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
at ServiceLib.Handler.CoreHandler.RunProcess(CoreInfo coreInfo, String configPath, Boolean displayLog, Boolean mayNeedSudo)
2024-11-18 18:43:05.3659-INFO UpdateTaskRunSubscription
2024-11-18 18:43:23.7997-INFO MyAppExit Begin
2024-11-18 18:43:23.8362-INFO MyAppExit End
2024-11-18 18:43:23.8384-INFO OnClosing -> ApplicationShutdown
2024-11-18 18:43:23.8384-INFO MyAppExit Begin
2024-11-18 18:44:54.0162-INFO v2rayN start up | v2rayN - V7.1.3 - X64 - 2024/11/18 | /home/directory/v2rayN-7.1.3/v2rayN-linux-64/v2rayN
2024-11-18 18:44:54.0320-INFO Unix 4.15.0.22 - 64
2024-11-18 18:44:55.6273-INFO UpdateTaskRunGeo
2024-11-18 18:45:03.2663-INFO /home/directory/v2rayN-7.1.3/v2rayN-linux-64/bin/run_as_root.sh
2024-11-18 18:45:03.2663-DEBUG An error occurred trying to start process '/bin/pkexec' with working directory '/home/directory/v2rayN-7.1.3/v2rayN-linux-64'. No such file or directory,An error occurred trying to start process '/bin/pkexec' with working directory '/home/directory/v2rayN-7.1.3/v2rayN-linux-64'. No such file or directory
2024-11-18 18:45:03.2663-DEBUG at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
at ServiceLib.Handler.CoreHandler.RunProcess(CoreInfo coreInfo, String configPath, Boolean displayLog, Boolean mayNeedSudo)
2024-11-18 18:45:55.6272-INFO UpdateTaskRunSubscription
2024-11-18 18:46:14.1900-INFO MyAppExit Begin
2024-11-18 18:46:14.2228-INFO MyAppExit End
2024-11-18 18:46:14.2248-INFO OnClosing -> ApplicationShutdown
2024-11-18 18:46:14.2248-INFO MyAppExit Begin

@lixiaodongsql
Copy link
Author

I am really sorry for posting many problems

@lixiaodongsql
Copy link
Author

lixiaodongsql commented Nov 18, 2024

Above is the contents of the file in the guiLogs of v2rayN 7.1.3 on Ubuntu 18.04 when I execute sudo ./v2rayN in Ubuntu 18.04 terminal and do not save sudo password in v2rayN 7.1.3

@lixiaodongsql
Copy link
Author

v2rayN 7.0.9 can normally work in Tun mode on Ubuntu 18.04

@lixiaodongsql
Copy link
Author

I think that the way of entering the sudo password to execute the command " sudo ./v2rayN " in the terminal in order to launch v2rayN program suits the habit of most of the Linux users.

@lixiaodongsql
Copy link
Author

Thank you so much for your help again

@lixiaodongsql
Copy link
Author

I think that the way of enabling Tun mode of v2rayN 7.0.9 also suits the habit of most of the Linux users

@lixiaodongsql
Copy link
Author

On Debian 12.7, I enter the sudo password to open the folder where I store Linux version v2rayN 7.2.0 program files as root, and then I right-click the v2rayN file in order to run v2rayN 7.2.0, on Debian 12.7 v2rayN 7.2.0 can work normally in the Tun mode in the way of v2rayN 7.0.9

@lixiaodongsql
Copy link
Author

On Ubuntu 18.04, I execute ./v2rayN of v2rayN 7.2.1 program files in the terminal, and I saved the sudo password in v2rayN 7.2.1 program, and then I enable the Tun mode of v2rayN 7.2.1 on Ubuntu 18.04 , An error occurred trying to start process '/bin/sudo' with working directory '/home/directory/v2rayN-7.2.1/v2rayN-linux-64'. No such file or directory is still displayed in the output of v2rayN 7.2.1

@lixiaodongsql
Copy link
Author

2024-11-24 12:15:42.3546-INFO v2rayN start up | v2rayN - V7.2.1 - X64 - 2024/11/24 | /home/directory/v2rayN-7.2.1/v2rayN-linux-64/v2rayN
2024-11-24 12:15:42.3712-INFO Unix 4.15.0.22 - 64
2024-11-24 12:15:44.2941-INFO UpdateTaskRunGeo
2024-11-24 12:16:44.2974-INFO UpdateTaskRunSubscription
2024-11-24 12:16:44.8114-INFO -S /home/directory/v2rayN-7.2.1/v2rayN-linux-64/bin/run_as_root.sh
2024-11-24 12:16:44.8114-DEBUG An error occurred trying to start process '/bin/sudo' with working directory '/home/directory/v2rayN-7.2.1/v2rayN-linux-64'. No such file or directory,An error occurred trying to start process '/bin/sudo' with working directory '/home/directory/v2rayN-7.2.1/v2rayN-linux-64'. No such file or directory
2024-11-24 12:16:44.8114-DEBUG at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
at ServiceLib.Handler.CoreHandler.RunProcess(CoreInfo coreInfo, String configPath, Boolean displayLog, Boolean mayNeedSudo)
2024-11-24 12:17:47.1925-INFO MyAppExit Begin
2024-11-24 12:17:47.2308-INFO MyAppExit End
2024-11-24 12:17:47.2308-INFO OnClosing -> ApplicationShutdown
2024-11-24 12:17:47.2308-INFO MyAppExit Begin

@lixiaodongsql
Copy link
Author

Above is the contents of the file in the guiLogs folder of v2rayN 7.2.1 program on Ubuntu 18.04

@lixiaodongsql
Copy link
Author

Could you please use the way of enabling Tun mode of v2rayN 7.0.9 in the next version v2rayN on Linux? Thank you very much for your help. I really appreciate it

@lixiaodongsql
Copy link
Author

lixiaodongsql commented Nov 24, 2024

On Ubuntu 18.04, there is no space in the name of the folder where I store Linux version v2rayN 7.2.1 program files .
What is the probable reason that " An error occurred trying to start process '/bin/sudo' with working directory '/home/directory/v2rayN-7.2.1/v2rayN-linux-64'. No such file or directory " is displayed in the output of v2rayN 7.2.1 on Ubuntu 18.04 ? Thank you so much for your help. I really appreciate it.

@lixiaodongsql
Copy link
Author

Could you please install Ubuntu 17.04 and Ubuntu 18.04 in VirtualBox or in VMware workstation in order to find out the probable reason that " An error occurred trying to start process '/bin/sudo' with working directory '/home/directory/v2rayN-7.2.1/v2rayN-linux-64'. No such file or directory " is displayed in the output of v2rayN 7.2.1 on Ubuntu 17.04 and on Ubuntu 18.04?
Thank you very much for your help. I really appreciate it.
https://old-releases.ubuntu.com/releases/17.04/
https://old-releases.ubuntu.com/releases/zesty/
https://old-releases.ubuntu.com/releases/18.04.0/

You can download the Ubuntu 17.04 install ISO image and Ubuntu 18.04 install image from the links above
Thank you so much for your help again.

@Cx330-dev
Copy link

If I enable TLS fragment, and if I use sing-box Core, v2rayN 7.0.9 can work normally in Tun mode on Ubuntu 18.04

I also tried TUN mode on Kali. The difference is that I didn’t enable sharding, but I still couldn’t access the Internet. I had to turn off TUN mode.

My Kali version is 2024.2 and v2RayN version is v7.1.3

@lixiaodongsql
Copy link
Author

On Debian 12.7, I enter the sudo password to open the folder where I store Linux version v2rayN 7.2.1 program files as root, and then I right-click the v2rayN file in order to run v2rayN 7.2.1, on Debian 12.7 v2rayN 7.2.1 can work in the Tun mode in the way of v2rayN 7.0.9

@2dust
Copy link
Owner

2dust commented Nov 27, 2024

@lopinv
Copy link

lopinv commented Nov 27, 2024

chmod +x ~/.Developer/v2rayN/./v2rayN
nohup ~/.Developer/v2rayN/./v2rayN >/dev/null 2>&1 & 

@lixiaodongsql
Copy link
Author

2024-11-27 20:12:01.5341-INFO v2rayN start up | v2rayN - V7.2.2 - X64 - 2024/11/27 | /home/directory/v2rayN-7.2.2/v2rayN-linux-64/v2rayN
2024-11-27 20:12:01.5513-INFO Unix 4.15.0.22 - 64
2024-11-27 20:12:03.5567-INFO UpdateTaskRunGeo
2024-11-27 20:12:59.1120-INFO MyAppExit Begin
2024-11-27 20:12:59.2556-INFO MyAppExit End
2024-11-27 20:12:59.2630-INFO OnClosing -> ApplicationShutdown
2024-11-27 20:12:59.2630-INFO MyAppExit Begin
2024-11-27 20:13:39.3207-INFO v2rayN start up | v2rayN - V7.2.2 - X64 - 2024/11/27 | /home/directory/v2rayN-7.2.2/v2rayN-linux-64/v2rayN
2024-11-27 20:13:39.3368-INFO Unix 4.15.0.22 - 64
2024-11-27 20:13:40.9593-INFO UpdateTaskRunGeo
2024-11-27 20:13:45.0541-DEBUG The SSL connection could not be established, see inner exception.,The SSL connection could not be established, see inner exception.
2024-11-27 20:13:45.0554-DEBUG at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.GetStringAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
at ServiceLib.Common.HttpClientHelper.GetAsync(HttpClient client, String url, CancellationToken token)
at ServiceLib.Services.DownloadService.DownloadStringAsync(String url, Boolean blProxy, String userAgent, Int32 timeout)
2024-11-27 20:13:45.0554-ERROR System.IO.IOException: Received an unexpected EOF or 0 bytes from the transport stream.
2024-11-27 20:13:45.1095-DEBUG Connection refused (127.0.0.1:10809),Connection refused (127.0.0.1:10809)
2024-11-27 20:13:45.1126-DEBUG at ServiceLib.Common.DownloaderHelper.<>c.b__3_0(Object sender, AsyncCompletedEventArgs value)
at Downloader.AbstractDownloadService.OnDownloadFileCompleted(AsyncCompletedEventArgs e) in C:\Users\bezzad\source\repos\Personal\Downloader\src\Downloader\AbstractDownloadService.cs:line 441
at Downloader.DownloadService.SendDownloadCompletionSignal(DownloadStatus state, Exception error) in C:\Users\bezzad\source\repos\Personal\Downloader\src\Downloader\DownloadService.cs:line 98
at Downloader.DownloadService.StartDownload(Boolean forceBuildStorage) in C:\Users\bezzad\source\repos\Personal\Downloader\src\Downloader\DownloadService.cs:line 75
at Downloader.DownloadService.StartDownload(Boolean forceBuildStorage) in C:\Users\bezzad\source\repos\Personal\Downloader\src\Downloader\DownloadService.cs:line 80
at Downloader.AbstractDownloadService.DownloadFileTaskAsync(String[] urls, CancellationToken cancellationToken) in C:\Users\bezzad\source\repos\Personal\Downloader\src\Downloader\AbstractDownloadService.cs:line 214
at ServiceLib.Common.DownloaderHelper.DownloadStringAsync(IWebProxy webProxy, String url, String userAgent, Int32 timeout)
at ServiceLib.Common.DownloaderHelper.DownloadStringAsync(IWebProxy webProxy, String url, String userAgent, Int32 timeout)
at ServiceLib.Services.DownloadService.DownloadStringViaDownloader(String url, Boolean blProxy, String userAgent, Int32 timeout)
2024-11-27 20:13:45.1126-ERROR System.Net.Http.HttpRequestException: Connection refused (127.0.0.1:10809)
2024-11-27 20:13:45.2545-INFO /home/directory/v2rayN-7.2.2/v2rayN-linux-64/bin/run_as_sudo.sh
2024-11-27 20:14:40.9641-INFO UpdateTaskRunSubscription
2024-11-27 20:35:05.5867-INFO MyAppExit Begin
2024-11-27 20:35:05.7482-INFO /home/directory/v2rayN-7.2.2-2024/v2rayN-linux-64/bin/kill_as_sudo.sh
2024-11-27 20:35:06.7785-INFO MyAppExit End
2024-11-27 20:35:06.8012-INFO OnClosing -> ApplicationShutdown
2024-11-27 20:35:06.8012-INFO MyAppExit Begin

@lixiaodongsql
Copy link
Author

Thank you very much for your help. I really appreciate it

@lixiaodongsql
Copy link
Author

On Ubuntu 18.04, I execute sudo ./v2rayN of Linux version v2rayN 7.2.2 program file in the terminal, and then I enable the Tun mode of v2rayN 7.2.2 , v2rayN 7.2.2 can work in Tun mode on Ubuntu 18.04

@lixiaodongsql
Copy link
Author

Thank you so much for your help again

@lixiaodongsql
Copy link
Author

lixiaodongsql commented Nov 27, 2024

On Ubuntu 18.04, I do not save sudo password in v2rayN 7.2.2 program and I enter sudo password in the terminal in order to execute sudo ./v2rayN of Linux version v2rayN 7.2.2 program files in the terminal, and then I enable the Tun mode of v2rayN 7.2.2 , v2rayN 7.2.2 can work in Tun mode on Ubuntu 18.04

@2dust
Copy link
Owner

2dust commented Nov 28, 2024

If the problem is solved, close issue

@lixiaodongsql
Copy link
Author

FATAL[0000] start service: initialize inbound/tun[tun-in]: configure tun interface: device or resource busy

@lixiaodongsql
Copy link
Author

lixiaodongsql commented Nov 28, 2024

On Ubuntu 17.04, yesterday evening I downloaded Linux version v2rayN 7.2.2, I do not save sudo password in v2rayN 7.2.2 program and I enter sudo password in the terminal in order to execute sudo ./v2rayN of Linux version v2rayN 7.2.2 program files in the terminal, and then I enable the Tun mode of v2rayN 7.2.2 , v2rayN 7.2.2 can work in Tun mode on Ubuntu 17.04

On Ubuntu 17.04, today I download Linux version v2rayN 7.2.2 again, I save the sudo password in v2rayN 7.2.2 program, and I execute ./v2rayN of Linux version v2rayN 7.2.2 program files which I download today in the terminal, and then I enable Tun mode of v2rayN 7.2.2, " [sudo] my username's password: sorry, please retry " is still displayed in the output of v2rayN 7.2.2
v2rayN 7.2.2 program which I save the sudo password in and which I run as non-administrator can work in Tun mode on Ubuntu 17.04. And then I exit the v2rayN 7.2.2 program which I downloaded today and which I ran as non-administrator and which I save the sudo password in

On Ubuntu 17.04, afterwards I enter the folder where I saved the Linux version v2rayN 7.2.2 program files yesterday evening on Ubuntu 17.04
and then I enter the sudo password in the terminal in order to execute sudo ./v2rayN of Linux version v2rayN 7.2.2 program files which I downloaded yesterday evening in the terminal, " FATAL[0000] start service: initialize inbound/tun[tun-in]: configure tun interface: device or resource busy " is displayed in the output of v2rayN 7.2.2 program which I downloaded yesterday evening and which I ran as administrator on Ubuntu 17.04

@lixiaodongsql
Copy link
Author

2024-11-28 00:12:08.5609-INFO /home/director/v2rayN-7.2.2-2024-11-27/v2rayN-linux-64/bin/kill_as_sudo.sh
2024-11-28 00:12:09.7035-INFO /home/directory/v2rayN-7.2.2-2024-11-27/v2rayN-linux-64/bin/run_as_sudo.sh
2024-11-28 00:13:41.7253-INFO MyAppExit Begin
2024-11-28 00:13:41.8635-INFO /home/directory/v2rayN-7.2.2-2024-11-27/v2rayN-linux-64/bin/kill_as_sudo.sh
2024-11-28 00:13:42.8808-INFO MyAppExit End
2024-11-28 00:13:42.9202-INFO OnClosing -> ApplicationShutdown
2024-11-28 00:13:42.9202-INFO MyAppExit Begin
2024-11-28 13:55:10.4756-INFO v2rayN start up | v2rayN - V7.2.2 - X64 - 2024/11/27 | /home/directory/v2rayN-7.2.2-2024-11-27/v2rayN-linux-64/v2rayN
2024-11-28 13:55:10.5071-INFO Unix 4.10.0.37 - 64
2024-11-28 13:55:13.3394-INFO UpdateTaskRunGeo
2024-11-28 13:55:16.5088-INFO /home/directory/v2rayN-7.2.2-2024-11-27/v2rayN-linux-64/bin/run_as_sudo.sh
2024-11-28 13:56:13.3434-INFO UpdateTaskRunSubscription
2024-11-28 14:04:33.4888-INFO MyAppExit Begin
2024-11-28 14:04:33.6422-INFO /home/directory/v2rayN-7.2.2-2024-11-27/v2rayN-linux-64/bin/kill_as_sudo.sh
2024-11-28 14:04:34.6697-INFO MyAppExit End
2024-11-28 14:04:34.6878-INFO OnClosing -> ApplicationShutdown
2024-11-28 14:04:34.6878-INFO MyAppExit Begin
2024-11-28 14:10:55.3017-INFO v2rayN start up | v2rayN - V7.2.2 - X64 - 2024/11/27 | /home/directory/v2rayN-7.2.2-2024-11-27/v2rayN-linux-64/v2rayN
2024-11-28 14:10:55.3181-INFO Unix 4.10.0.37 - 64
2024-11-28 14:10:57.0605-INFO UpdateTaskRunGeo
2024-11-28 14:11:00.2925-INFO /home/directory/v2rayN-7.2.2-2024-11-27/v2rayN-linux-64/bin/run_as_sudo.sh
2024-11-28 14:11:00.4262-DEBUG ,
2024-11-28 14:11:00.4262-DEBUG at ServiceLib.Handler.CoreHandler.RunProcess(CoreInfo coreInfo, String configPath, Boolean displayLog, Boolean mayNeedSudo)
2024-11-28 14:11:57.0689-INFO UpdateTaskRunSubscription
2024-11-28 14:13:24.9750-INFO MyAppExit Begin
2024-11-28 14:13:25.0357-INFO /home/directory/v2rayN-7.2.2-2024-11-27/v2rayN-linux-64/bin/kill_as_sudo.sh
2024-11-28 14:13:26.0621-INFO MyAppExit End
2024-11-28 14:13:26.0964-INFO OnClosing -> ApplicationShutdown
2024-11-28 14:13:26.0964-INFO MyAppExit Begin

@lixiaodongsql
Copy link
Author

Above is the contents of the file in the guiLogs folder of v2rayN 7.2.2 program files which I downloaded yesterday evening

@2dust
Copy link
Owner

2dust commented Nov 29, 2024

The problem of starting tun has been solved. This issue is closed.
Please open another issue for other problems with tun.

@2dust 2dust closed this as completed Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants