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

Open
1 task done
lixiaodongsql opened this issue Nov 17, 2024 · 25 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

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

2 participants