Open jbelien opened 6 years ago
Probable fix ?
Run
dotnet add package System.Reflection.TypeExtensions
in src/Itinero.API
directory.
Other issue when I try to run ./run.sh
:
Microsoft (R) Build Engine version 15.3.409.57025 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
Itinero.API -> /home/debian/routing-api/src/Itinero.API/bin/Debug/netcoreapp1.0/Itinero.API.dll
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:03.26
Using launch settings from /home/debian/routing-api/src/Itinero.API/Properties/launchSettings.json...
It was not possible to find any compatible framework version
The specified framework 'Microsoft.NETCore.App', version '1.1.1' was not found.
- Check application dependencies and target a framework version installed at:
/
- Alternatively, install the framework version '1.1.1'.
EDIT: Fixed by 6764461317934acf172d79b19fbdcaf03f8b06ee
Error with ./run.sh
:
$Microsoft (R) Build Engine version 15.3.409.57025 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
Itinero.API -> /home/debian/routing-api/src/Itinero.API/bin/Debug/netcoreapp2.0/Itinero.API.dll
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:03.27
Using launch settings from /home/debian/routing-api/src/Itinero.API/Properties/launchSettings.json...
[Bootstrapper] information - Loading all routerdb's from path: /home/debian/routing-api/src/Itinero.API/data
[Bootstrapper] information - Loading instance belgium from: /home/debian/routing-api/src/Itinero.API/data/belgium.a.routerdb
Unhandled Exception: System.AggregateException: One or more errors occurred. (Unable to load DLL 'libuv': The specified module or one of its dependencies could not be found.
(Exception from HRESULT: 0x8007007E)) ---> System.DllNotFoundException: Unable to load DLL 'libuv': The specified module or one of its dependencies could not be found.
(Exception from HRESULT: 0x8007007E)
at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.Libuv.NativeMethods.uv_loop_size()
at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.UvLoopHandle.Init(Libuv uv)
at Microsoft.AspNetCore.Server.Kestrel.Internal.KestrelThread.ThreadStart(Object parameter)
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Server.Kestrel.Internal.KestrelEngine.Start(Int32 count)
at Microsoft.AspNetCore.Server.Kestrel.KestrelServer.Start[TContext](IHttpApplication`1 application)
at Microsoft.AspNetCore.Hosting.Internal.WebHost.Start()
at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host, CancellationToken token, String shutdownMessage)
at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host)
at Itinero.API.Program.Main(String[] args) in /home/debian/routing-api/src/Itinero.API/Program.cs:line 45
Fix for libuv
issue :
sudo apt-get install automake libtool
curl -sSL https://github.com/libuv/libuv/archive/v1.4.2.tar.gz | sudo tar zxfv - -C /usr/local/src
cd /usr/local/src/libuv-1.4.2
sudo sh autogen.sh
sudo ./configure
sudo make
sudo make install
sudo rm -rf /usr/local/src/libuv-1.4.2 && cd ~/
sudo ldconfig
Information found here :
Shouldn't be necessary to install the library manually ; issue is caused by mixing between 1.1 and 2.0.
Ok, thanks Jonathan.
I'll leave this issue open until I have the opportunity to test this on a fresh install.
I try to install and run everything on Ubuntu 16.04 and indeed no issue whatsoever with libuv
:)
Tried to install and run on Ubuntu 17.10, same error as above with libuv
:
$ ./run.sh
Microsoft (R) Build Engine version 15.5.180.51428 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
Restoring packages for /[...]/routing-api/src/Itinero.API/Itinero.API.csproj...
Restore completed in 446.17 ms for /[...]/routing-api/src/Itinero.API/Itinero.API.csproj.
Itinero.API -> /[...]/routing-api/src/Itinero.API/bin/Debug/netcoreapp2.0/Itinero.API.dll
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:02.88
Using launch settings from /[...]/routing-api/src/Itinero.API/Properties/launchSettings.json...
[Bootstrapper] information - Loading all routerdb's from path: /[...]/routing-api/src/Itinero.API/data
[Bootstrapper] information - Loading instance netherlands from: /[...]/routing-api/src/Itinero.API/data/netherlands.c.cf.routerdb
Unhandled Exception: System.AggregateException: One or more errors occurred. (Unable to load DLL 'libuv': The specified module or one of its dependencies could not be found.
(Exception from HRESULT: 0x8007007E)) ---> System.DllNotFoundException: Unable to load DLL 'libuv': The specified module or one of its dependencies could not be found.
(Exception from HRESULT: 0x8007007E)
at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.Libuv.NativeMethods.uv_loop_size()
at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.UvLoopHandle.Init(Libuv uv)
at Microsoft.AspNetCore.Server.Kestrel.Internal.KestrelThread.ThreadStart(Object parameter)
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Server.Kestrel.Internal.KestrelEngine.Start(Int32 count) at Microsoft.AspNetCore.Server.Kestrel.KestrelServer.Start[TContext](IHttpApplication`1 application)
at Microsoft.AspNetCore.Hosting.Internal.WebHost.Start()
at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host, CancellationToken token, String shutdownMessage)
at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host)
at Itinero.API.Program.Main(String[] args) in /[...]/routing-api/src/Itinero.API/Program.cs:line 45
Tried to fix it by manually installing the missing package, as suggested somewhere else, with
dotnet add src/Itinero.API/Itinero.API.csproj package 'Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv'`
Now the error is different:
$ ./run.sh
Microsoft (R) Build Engine version 15.5.180.51428 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
Restoring packages for /[...]/routing-api/src/Itinero.API/Itinero.API.csproj...
Restore completed in 441.63 ms for /[...]/routing-api/src/Itinero.API/Itinero.API.csproj.
Itinero.API -> /[...]/routing-api/src/Itinero.API/bin/Debug/netcoreapp2.0/Itinero.API.dll
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:02.97
Using launch settings from /[...]/routing-api/src/Itinero.API/Properties/launchSettings.json...
Unhandled Exception: System.TypeLoadException: Method 'ConfigureAppConfiguration' in type 'Microsoft.AspNetCore.Hosting.WebHostBuilder' from assembly 'Microsoft.AspNetCore.Hosting, Version=1.0.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' does not have an implementation.
Any ideas?
Hi,
I tried to install
routing-api
on a Debian 9 server. No problem to install .NET core following https://www.microsoft.com/net/core#linuxdebianBut when I execute
./build.sh
, here is the error I have (see hereunder). Unfortunately, I not used enough to .NET to know how can I fix it. Could you help me ?Thanks