-
Notifications
You must be signed in to change notification settings - Fork 312
Cannot run ASP.NET 5 default app on Debian 8 Jessie #604
Comments
@CesarBS Didn't you see a bunch of hangs on mono? Did it look anything like this? |
To add, I ran the app on Windows Server 2012 (a local Hyper-V VM, not Azure one), using the same commands, app ran without problems. |
There were a bunch of mono hangs but nobody ever figured out why they were happening. I'd file a mono issue. Here's some help on debugging mono hangs: |
If you give @jldgit beer he may help you debug it 😄 |
@jldgit Tell me what to buy and where and I will send it right now! :D |
Haha, I'll take a look later tonight and see if I can get it to repro. Did you have code can share? |
Here you go (I did not even modified scaffolded application):
Startup.cs
appsettings.json
Should I attach Views and Controllers code? |
Best to provide a github repository with the failing app and instructions (specific and down to the mono version) |
Alright, I will provide it soon. ///EDIT: This is the repo: https://github.com/Alienwaren/failingmonoaspapp |
I was able to repro with that code example. Using the same environment. Steps to repro
So far it looks to be a mono bug, would need to try on a few more systems to be sure. |
Alright, I will try out other Linux distos. To be clear, the code works on Windows Server 2012/Windows 10 Pro. |
Just some extra context around this so it can be reviewed further. This thread is blocked by a manual reset event that is held by the thread when trying to compile Index.cshtml. Specifically it's blocked when trying to read the file to generate the SHA1 hash for the Razor engine. When the IAsyncResult is passed to the Using the scaffolding that includes other objects, like database and identity doesn't exhibit this behavior. The reason being is the AsyncResult shows a state of completed when it enters this code. Depending on the VM, the disks, the OS, etc., etc. this issue could crop up elsewhere. This is definitely something that needs to be reviewed by Mono as it's probably an edge case that shouldn't happen in a normal environment. BeginInvoke Managed Stack Trace
Native Stack Trace
Break Point on EndInvoke
|
Alright, I will post it to Mono repo. Will I need some other informations in order to sumbit the bug to Mono issue tracker? |
Closing this out. |
@Alienwaren Did you post it to Mono repo? What's the current status for this topic? |
@Alienwaren I don't know if you are still interested in this topic, but I finally made a workaround. I upgrade my Mono runtime to 4.2.3 and the error continues. Configure Mvc to use a wrapped synchronous IFileProvider instance instead of the builtin Thanks to details from @jldgit I understand it may be an issue from Mono. Someone reported one in Xamarin bugzilla, may be related to this one. |
Awesome, I will try it out :) |
Hello!
I wanted to play around with new ASP.NET 5 on Linux (Debian Jesse 8). It's an MS Azure VM A2 Basic Tier. (2 cores, 3.5GB RAM)
I've used
yo
to scaffold an app to play with. It ran without any problems. so I think the app scaffolded succesfully.I'm using Mono as runtime, version:
(Stable 4.2.2.30/996df3c Fri Jan 22 00:02:19 UTC 2016)
and Debian is running:Linux netrunnerdevelopment 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u3 (2016-01-17) x86_64 GNU/Linux
kernel.So, I ran
dnu restore
and then compiled the app usingdnu build
and it compiles without errors:but when I run
dnx web
the server starts, but the app is stuck at loading:I can't even kill it with
CTRL-C
, only usingkill -9 <pid>
.Any ideas what to do?
The text was updated successfully, but these errors were encountered: