branch: beta4 kqueue() FileSystemWatcher has reached the maximum nunmber of files to watch. #138

Open
spboyer opened this Issue Apr 28, 2015 · 18 comments

Comments

Projects
None yet
@spboyer
Contributor

spboyer commented Apr 28, 2015

in web template getting the following error

$ dnx . kestrel

Browse to http://localhost:5001

An unhandled exception occurred while processing the request.

IOException: kqueue() FileSystemWatcher has reached the maximum nunmber of files to watch.
System.IO.KqueueMonitor.Add (System.String path, Boolean postEvents, System.Collections.Generic.List`1& fds) [0x00000] in <filename unknown>, line 0

System.IO.KqueueMonitor.Add (System.String path, Boolean postEvents, System.Collections.Generic.List`1& fds) [0x00000] in <filename unknown>
System.IO.KqueueMonitor.Scan (System.String path, Boolean postEvents, System.Collections.Generic.List`1& fds) [0x00000] in <filename unknown>
System.IO.KqueueMonitor.Setup () [0x00000] in <filename unknown>
System.IO.KqueueMonitor.DoMonitor () [0x00000] in <filename unknown>
--- End of stack trace from previous location where exception was thrown ---

empty, webapi running fine

@chrisdias @sayedihashimi @davidfowl

@spboyer

This comment has been minimized.

Show comment
Hide comment
@spboyer

spboyer Apr 28, 2015

Contributor

Yosemite OSX, mono 4.0.1

Contributor

spboyer commented Apr 28, 2015

Yosemite OSX, mono 4.0.1

@chrisdias

This comment has been minimized.

Show comment
Hide comment
@chrisdias

chrisdias Apr 28, 2015

i forgot i had this in my .bash_profile and it seems to fix the problem.

export MONO_MANAGED_WATCHER=disabled

@sayedihashimi this needs to be documented on the asp.net site

i forgot i had this in my .bash_profile and it seems to fix the problem.

export MONO_MANAGED_WATCHER=disabled

@sayedihashimi this needs to be documented on the asp.net site

@spboyer

This comment has been minimized.

Show comment
Hide comment
@spboyer

spboyer Apr 28, 2015

Contributor

added to bash_profile.
getting new error in web template

TypeLoadException: Could not load type 'Microsoft.Framework.Runtime.ILibraryExport' from assembly 'Microsoft.Framework.Runtime.Interfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
System.Lazy`1[System.Collections.Generic.List`1[Microsoft.CodeAnalysis.MetadataReference]].CreateValue () [0x00000] in <filename unknown>, line 0
System.Lazy`1[System.Collections.Generic.List`1[Microsoft.CodeAnalysis.MetadataReference]].CreateValue () [0x00000] in <filename unknown>
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>
System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>
System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <filename unknown>
Microsoft.AspNet.Mvc.Core.FilterActionInvoker+<InvokeResultAsync>d__44.MoveNext () [0x00000] in <filename unknown>
Contributor

spboyer commented Apr 28, 2015

added to bash_profile.
getting new error in web template

TypeLoadException: Could not load type 'Microsoft.Framework.Runtime.ILibraryExport' from assembly 'Microsoft.Framework.Runtime.Interfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
System.Lazy`1[System.Collections.Generic.List`1[Microsoft.CodeAnalysis.MetadataReference]].CreateValue () [0x00000] in <filename unknown>, line 0
System.Lazy`1[System.Collections.Generic.List`1[Microsoft.CodeAnalysis.MetadataReference]].CreateValue () [0x00000] in <filename unknown>
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>
System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>
System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <filename unknown>
Microsoft.AspNet.Mvc.Core.FilterActionInvoker+<InvokeResultAsync>d__44.MoveNext () [0x00000] in <filename unknown>
@sayedihashimi

This comment has been minimized.

Show comment
Hide comment
@sayedihashimi

sayedihashimi Apr 28, 2015

Member

Adding @davidfowl @glennc @danroth27

Do you guys know of any fix/workaround?

Member

sayedihashimi commented Apr 28, 2015

Adding @davidfowl @glennc @danroth27

Do you guys know of any fix/workaround?

@spboyer

This comment has been minimized.

Show comment
Hide comment
@spboyer

spboyer Apr 29, 2015

Contributor

Latest dnvm install this is still an issue.

$ dnvm list

Active Version              Runtime Arch Location             Alias
------ -------              ------- ---- --------             -----
                            mono         ~/.dnx/runtimes
       1.0.0-beta5-11624    mono         ~/.dnx/runtimes
  *    1.0.0-beta5-11649    mono         ~/.dnx/runtimes      default

@glennc @danroth27 @davidfowl @shanselman @sayedihashimi

Contributor

spboyer commented Apr 29, 2015

Latest dnvm install this is still an issue.

$ dnvm list

Active Version              Runtime Arch Location             Alias
------ -------              ------- ---- --------             -----
                            mono         ~/.dnx/runtimes
       1.0.0-beta5-11624    mono         ~/.dnx/runtimes
  *    1.0.0-beta5-11649    mono         ~/.dnx/runtimes      default

@glennc @danroth27 @davidfowl @shanselman @sayedihashimi

@spboyer

This comment has been minimized.

Show comment
Hide comment
@spboyer

spboyer Apr 30, 2015

Contributor

@davidfowl @migueldeicaza @chrisdias @sayedihashimi

The web template runs under 1.0.0-beta4, #140 is still valid on dnu build, be sure that you are setting the dnvm to default

Active Version              Runtime Arch Location             Alias
------ -------              ------- ---- --------             -----
  *    1.0.0-beta4          mono         ~/.dnx/runtimes      default
       1.0.0-beta5-11625    mono         ~/.dnx/runtimes
       1.0.0-beta5-11631    mono         ~/.dnx/runtimes
       1.0.0-beta5-11657    mono         ~/.dnx/runtimes
       1.0.0.0-beta4        mono         ~/.dnx/runtimes
Contributor

spboyer commented Apr 30, 2015

@davidfowl @migueldeicaza @chrisdias @sayedihashimi

The web template runs under 1.0.0-beta4, #140 is still valid on dnu build, be sure that you are setting the dnvm to default

Active Version              Runtime Arch Location             Alias
------ -------              ------- ---- --------             -----
  *    1.0.0-beta4          mono         ~/.dnx/runtimes      default
       1.0.0-beta5-11625    mono         ~/.dnx/runtimes
       1.0.0-beta5-11631    mono         ~/.dnx/runtimes
       1.0.0-beta5-11657    mono         ~/.dnx/runtimes
       1.0.0.0-beta4        mono         ~/.dnx/runtimes
@Spencerooni

This comment has been minimized.

Show comment
Hide comment
@Spencerooni

Spencerooni May 1, 2015

@chrisdias Just encountered this. Your suggestion nearly worked for me but I had to use export MONO_MANAGED_WATCHER=false not export MONO_MANAGED_WATCHER=disabled.

@chrisdias Just encountered this. Your suggestion nearly worked for me but I had to use export MONO_MANAGED_WATCHER=false not export MONO_MANAGED_WATCHER=disabled.

@geirsagberg

This comment has been minimized.

Show comment
Hide comment
@geirsagberg

geirsagberg May 9, 2015

Had the same problem, export MONO_MANAGED_WATCHER=false fixed it for me as well.

Had the same problem, export MONO_MANAGED_WATCHER=false fixed it for me as well.

@jrock2004

This comment has been minimized.

Show comment
Hide comment
@jrock2004

jrock2004 May 9, 2015

With false will it detect change or do you still need to restart after every change?

With false will it detect change or do you still need to restart after every change?

@geirsagberg

This comment has been minimized.

Show comment
Hide comment
@geirsagberg

geirsagberg May 9, 2015

It would seem changes are not detected, unfortunately, so this is hardly a permanent solution.

It would seem changes are not detected, unfortunately, so this is hardly a permanent solution.

@johnpapa

This comment has been minimized.

Show comment
Hide comment
@johnpapa

johnpapa May 10, 2015

export MONO_MANAGED_WATCHER=false fixes it for now, but I agree that the watcher should detect changes long term

export MONO_MANAGED_WATCHER=false fixes it for now, but I agree that the watcher should detect changes long term

@johnpapa

This comment has been minimized.

Show comment
Hide comment
@johnpapa

johnpapa May 10, 2015

any update on this @sayedihashimi or guidance?

any update on this @sayedihashimi or guidance?

@scionwest

This comment has been minimized.

Show comment
Hide comment
@scionwest

scionwest May 10, 2015

Using export MONO_MANAGED_WATCHER=false didn't solve the issue for me. Are there other work-arounds for this issue?

Using export MONO_MANAGED_WATCHER=false didn't solve the issue for me. Are there other work-arounds for this issue?

@geirsagberg

This comment has been minimized.

Show comment
Hide comment
@geirsagberg

geirsagberg May 10, 2015

It seems changes are not detected when using Kestrel regardless of whether MONO_MANAGED_WATCHER is true or false. Relevant thread: aspnet/Hosting#45

It seems changes are not detected when using Kestrel regardless of whether MONO_MANAGED_WATCHER is true or false. Relevant thread: aspnet/Hosting#45

@usersxm

This comment has been minimized.

Show comment
Hide comment
@usersxm

usersxm May 10, 2015

I am having the exact same problem as you.
captura de pantalla 2015-05-10 14 45 59

That was after doing the false/disable thing.. Did you solve the problem?

usersxm commented May 10, 2015

I am having the exact same problem as you.
captura de pantalla 2015-05-10 14 45 59

That was after doing the false/disable thing.. Did you solve the problem?

@peterblazejewicz

This comment has been minimized.

Show comment
Hide comment
@peterblazejewicz

peterblazejewicz May 10, 2015

Contributor

@usersxm I'm afraid that is still a valid problem and fixing it depends on 3rd party

Contributor

peterblazejewicz commented May 10, 2015

@usersxm I'm afraid that is still a valid problem and fixing it depends on 3rd party

@tpetricek tpetricek referenced this issue in fsharp/FAKE May 20, 2015

Closed

WatchChanges fails on Mac OSX #805

@ChidoYo

This comment has been minimized.

Show comment
Hide comment
@ChidoYo

ChidoYo Nov 16, 2015

Just wanted to upvote on what has been said. The following:
export MONO_MANAGED_WATCHER=false
Worked for me and I'm on OSX 10.11.1
I was getting the error above after installing new bower components.

ChidoYo commented Nov 16, 2015

Just wanted to upvote on what has been said. The following:
export MONO_MANAGED_WATCHER=false
Worked for me and I'm on OSX 10.11.1
I was getting the error above after installing new bower components.

@rolandjitsu

This comment has been minimized.

Show comment
Hide comment
@rolandjitsu

rolandjitsu Nov 25, 2015

In my case this issue occurs if I have for instance node_modules in the same place where the project is started. So if there would be a way for telling mono not to watch that folder, I think the issue would be fixed (at least in my case).

In my case this issue occurs if I have for instance node_modules in the same place where the project is started. So if there would be a way for telling mono not to watch that folder, I think the issue would be fixed (at least in my case).

@rmunn rmunn referenced this issue in fsprojects/FsReveal May 17, 2016

Open

Slide edits are not detected on Linux #95

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment