replaysMike / Binner

Open source parts inventory system for makers, electronics hobby, and professional engineers
https://binner.io
GNU General Public License v3.0
268 stars 41 forks source link

latest Binner do not start #98

Closed devzwf closed 1 year ago

devzwf commented 1 year ago

Getting this with 2.2.2

2023-02-11T10:36:44.361647106Z %      Binner 2.2.2.0      %
2023-02-11T10:36:44.366642499Z p%%%%%%%%%%%%%%%%%%%%%%%%%%%o%
2023-02-11T10:36:44.373363158Z O/S: Linux 5.15.0-56-generic #62-Ubuntu SMP Tue Nov 22 19:54:14 UTC 2022 (X64)  Runtime: .NET 7.0.0
2023-02-11T10:36:44.375062154Z Uri: https://localhost:8090/
2023-02-11T10:36:44.375328087Z 
2023-02-11T10:36:44.574657560Z Configuration Result:
2023-02-11T10:36:44.574694613Z [Success] Name Binner
2023-02-11T10:36:44.574704034Z [Success] Description Hosts the Binner Web Service
2023-02-11T10:36:44.574712936Z [Success] ServiceName Binner
2023-02-11T10:36:44.575439248Z Topshelf v4.3.0.0, .NET 7.0.0 (7.0.0)
2023-02-11T10:36:44.588922155Z Topshelf.Runtime.Windows.WindowsHostEnvironment Error: 0 : Unable to get parent process (ignored), System.DllNotFoundException: Unable to load shared library 'kernel32.dll' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable: 
2023-02-11T10:36:44.588979113Z /app/kernel32.dll.so: cannot open shared object file: No such file or directory
2023-02-11T10:36:44.588992063Z /app/libkernel32.dll.so: cannot open shared object file: No such file or directory
2023-02-11T10:36:44.589002371Z /app/kernel32.dll: cannot open shared object file: No such file or directory
2023-02-11T10:36:44.589012456Z /app/libkernel32.dll: cannot open shared object file: No such file or directory
2023-02-11T10:36:44.589022498Z 
2023-02-11T10:36:44.589030136Z    at Topshelf.Runtime.Windows.Kernel32.CreateToolhelp32Snapshot(UInt32 dwFlags, UInt32 th32ProcessID)
2023-02-11T10:36:44.589061658Z    at Topshelf.Runtime.Windows.WindowsHostEnvironment.GetParent(Process child)
2023-02-11T10:36:44.600432198Z The Binner service is now running, press Control+C to exit.
2023-02-11T10:36:44.645316558Z 2023-02-11 10:36:44.6258|INFO|Binner.Web.ServiceHost.BinnerWebHostService|Loading configuration at /app/appsettings.json|
2023-02-11T10:36:44.826508129Z 2023-02-11 10:36:44.8259|INFO|Binner.Web.ServiceHost.BinnerWebHostService|Building the WebHost on 0.0.0.0:8090 ...|
2023-02-11T10:36:44.855118798Z .Net Core bundle path: /app/
2023-02-11T10:36:44.855141907Z Config file location: /app/appsettings.json
2023-02-11T10:36:45.164572525Z 2023-02-11 10:36:45.1564|ERROR|Binner.Web.ServiceHost.BinnerWebHostService|Binner had an error starting up!|System.TypeLoadException: Method 'CreateOAuthRequestAsync' in type 'Binner.StorageProvider.MySql.MySqlStorageProvider' from assembly 'Binner.StorageProvider.MySql, Version=1.0.26.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
2023-02-11T10:36:45.164914467Z    at Binner.Common.StorageProviders.StorageProviderFactory..ctor()
2023-02-11T10:36:45.165086807Z    at DynamicMethod(Object[], Scope)
2023-02-11T10:36:45.165107271Z    at LightInject.PerContainerLifetime.GetInstance(GetInstanceDelegate createInstance, Scope scope, Object[] arguments)
2023-02-11T10:36:45.165119970Z    at LightInject.ServiceFactoryExtensions.GetInstance[TService](IServiceFactory factory)
2023-02-11T10:36:45.165142333Z    at Binner.Web.Configuration.StartupConfiguration.ConfigureIoC(IServiceContainer container, IServiceCollection services) in C:\projects\binner\Binner\Binner.Web\Configuration\StartupConfiguration.IoC.cs:line 44
2023-02-11T10:36:45.165157775Z    at Binner.Web.WebHost.Startup.ConfigureServices(IServiceCollection services) in C:\projects\binner\Binner\Binner.Web\WebHost\Startup.cs:line 62
2023-02-11T10:36:45.165169860Z    at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
2023-02-11T10:36:45.165187886Z    at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
2023-02-11T10:36:45.165199157Z    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
2023-02-11T10:36:45.165211812Z    at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
2023-02-11T10:36:45.165223208Z    at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass14_0.<ConfigureServices>g__ConfigureServicesWithContainerConfiguration|0(IServiceCollection services)
2023-02-11T10:36:45.165243726Z    at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
2023-02-11T10:36:45.165255134Z    at Microsoft.AspNetCore.Hosting.WebHost.EnsureApplicationServices()
2023-02-11T10:36:45.165264653Z    at Microsoft.AspNetCore.Hosting.WebHost.Initialize()
2023-02-11T10:36:45.165273722Z    at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
2023-02-11T10:36:45.165282916Z    at Binner.Web.ServiceHost.BinnerWebHostService.InitializeWebHostAsync() in C:\projects\binner\Binner\Binner.Web\ServiceHost\BinnerWebHostService.cs:line 136
2023-02-11T10:36:45.165897012Z Service Stop requested, exiting.
2023-02-11T10:36:45.166481957Z Stopping the Binner service
2023-02-11T10:36:45.167144170Z The Binner service has stopped.
2023-02-11T10:36:45.246762642Z 
replaysMike commented 1 year ago

Neat. I wonder if one of the libs was locked when you updated. The storage provider looks to be behind by 3 versions - 1.0.29 is the latest. I’ll double check the build to see if something went wrong on my end

replaysMike commented 1 year ago

Found the issue, it's on my end. One of the project files failed to get updated, and I don't even understand how that passed the build system. Rolling out fix in v2.2.3 :-/

One of my goals in the next 2 weeks is to get a test pipeline in place, along with integration tests. It's going to be time consuming, but is badly needed with the complexity of the builds.