Ubuntu Problems

Hello Guys,

i tried to setup Openbullet 2 on my Ubuntu v-server but i didnt managed to get it successfully runned so could someone please help me when i run “docker run -p 8069:5000 -v UserData:/app/UserData -it openbullet/openbullet2:latest” it works perfectly fine and after i logged in the Docker will be closed and it throws me out this Error:

 at OpenBullet2.Services.MetricsService.<>c.<GetCurrentNetUpload>b__31_0(NetworkInterface i) in C:\Users\scarf\source\repos\OpenBullet2\OpenBullet2\Services\MetricsService.cs:line 85
   at System.Linq.Enumerable.SelectArrayIterator`2.MoveNext()
   at System.Linq.Enumerable.Sum(IEnumerable`1 source)
   at OpenBullet2.Services.MetricsService.GetCurrentNetUpload(NetworkInterface[] interfaces) in C:\Users\scarf\source\repos\OpenBullet2\OpenBullet2\Services\MetricsService.cs:line 85
   at OpenBullet2.Services.MetricsService.UpdateNetworkUsage() in C:\Users\scarf\source\repos\OpenBullet2\OpenBullet2\Services\MetricsService.cs:line 76
   at OpenBullet2.Pages.Index.<StartPeriodicRefresh>b__34_2(Object _) in C:\Users\scarf\source\repos\OpenBullet2\OpenBullet2\Pages\Index.razor.cs:line 62
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__140_1(Object state)
   at System.Threading.QueueUserWorkItemCallback.<>c.<.cctor>b__6_0(QueueUserWorkItemCallback quwi)
   at System.Threading.ExecutionContext.RunForThreadPoolUnsafe[TState](ExecutionContext executionContext, Action`1 callback, TState& state)
   at System.Threading.QueueUserWorkItemCallback.Execute()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()

Also i would like to ask (if you managed to help me by solving this problem) is it possiable to run it with putty closed? since i never used it before i heard “screen” should be solve this but i dont know how to use it.

Sincely,
ConfigAPI

You cut the exception, please sent also the first line of the exception otherwise I cannot know what’s going on. Anyways seems something related to network interfaces, maybe the dummy ones that docker sets up aren’t liked by OB2. I can add a fix for this but please send the entire exception thanks.

just run screen dotnet .\openbullet.dll and that will run it on a screen itll keep running here is a post on it

1 Like

If you want to run docker without having the interactive session open just remove -it from the command and you’re gucci.

info: Microsoft.Hosting.Lifetime[0]
Now listening on: http://0.0.0.0:5000
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Production
info: Microsoft.Hosting.Lifetime[0]
Content root path: /app
Unhandled exception. System.IO.DirectoryNotFoundException: Could not find a part of the path ‘/sys/class/net/eth0/tx_queue_len’.
at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func2 errorRewriter) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize) at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks) at System.IO.File.InternalReadAllText(String path, Encoding encoding) at System.IO.File.ReadAllText(String path) at System.Net.NetworkInformation.StringParsingHelpers.ParseRawIntFile(String filePath) at System.Net.NetworkInformation.LinuxIPInterfaceStatistics..ctor(String name) at System.Net.NetworkInformation.LinuxNetworkInterface.GetIPv4Statistics() at OpenBullet2.Services.MetricsService.<>c.<GetCurrentNetUpload>b__31_0(NetworkInterface i) in C:\Users\scarf\source\repos\OpenBullet2\OpenBullet2\Services\MetricsService.cs:line 85 at System.Linq.Enumerable.SelectArrayIterator2.MoveNext()
at System.Linq.Enumerable.Sum(IEnumerable1 source) at OpenBullet2.Services.MetricsService.GetCurrentNetUpload(NetworkInterface[] interfaces) in C:\Users\scarf\source\repos\OpenBullet2\OpenBullet2\Services\MetricsService.cs:line 85 at OpenBullet2.Services.MetricsService.UpdateNetworkUsage() in C:\Users\scarf\source\repos\OpenBullet2\OpenBullet2\Services\MetricsService.cs:line 76 at OpenBullet2.Pages.Index.<StartPeriodicRefresh>b__34_2(Object _) in C:\Users\scarf\source\repos\OpenBullet2\OpenBullet2\Pages\Index.razor.cs:line 62 at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__140_1(Object state) at System.Threading.QueueUserWorkItemCallback.<>c.<.cctor>b__6_0(QueueUserWorkItemCallback quwi) at System.Threading.ExecutionContext.RunForThreadPoolUnsafe[TState](ExecutionContext executionContext, Action1 callback, TState& state)
at System.Threading.QueueUserWorkItemCallback.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
root@h2925488:~#

Alright perfect I will push a fix in tomorrow’s update

1 Like