Skip to content
This repository was archived by the owner on Nov 19, 2022. It is now read-only.
This repository was archived by the owner on Nov 19, 2022. It is now read-only.

MONO Server Freezes After 2 Days #7

Description

@marek-safar

From @mysteryx93 on February 11, 2018 0:10

I had been having issues with MONO taking 100% CPU on both Ubuntu and Debian with Apache2 and mod_mono. As a last resort, I switched Apache2 to worker mode and started the MONO servers applications manually. It's working smoothly for a day or two, then the MONO servers stop responding. This might be the same issue as before, but reacting differently -- freezing instead of taking 100% CPU.

However, this time I have detailed log.

First this entry appears 3 times

(info) Auto generated encryption keys not saved: System.Security.SecurityException: No access to the given key ---> System.UnauthorizedAccessException: Access to the path "/var/www/.mono/registry" is denied.
  at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x0005e] in <2e7c1c96edae44d496118948ca617c11>:0 
  at System.IO.Directory.CreateDirectory (System.String path) [0x0008f] in <2e7c1c96edae44d496118948ca617c11>:0 
  at System.IO.DirectoryInfo.Create () [0x00000] in <2e7c1c96edae44d496118948ca617c11>:0 
  at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo.Create()
  at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00036] in <2e7c1c96edae44d496118948ca617c11>:0 
  at System.IO.Directory.CreateDirectory (System.String path) [0x0008f] in <2e7c1c96edae44d496118948ca617c11>:0 
  at Microsoft.Win32.KeyHandler..ctor (Microsoft.Win32.RegistryKey rkey, System.String basedir, System.Boolean is_volatile) [0x00038] in <2e7c1c96edae44d496118948ca617c11>:0 
   --- End of inner exception stack trace ---
  at Microsoft.Win32.KeyHandler..ctor (Microsoft.Win32.RegistryKey rkey, System.String basedir, System.Boolean is_volatile) [0x0004d] in <2e7c1c96edae44d496118948ca617c11>:0 
  at Microsoft.Win32.KeyHandler..ctor (Microsoft.Win32.RegistryKey rkey, System.String basedir) [0x00000] in <2e7c1c96edae44d496118948ca617c11>:0 
  at Microsoft.Win32.KeyHandler.Lookup (Microsoft.Win32.RegistryKey rkey, System.Boolean createNonExisting) [0x0008e] in <2e7c1c96edae44d496118948ca617c11>:0 
  at Microsoft.Win32.UnixRegistryApi.OpenSubKey (Microsoft.Win32.RegistryKey rkey, System.String keyname, System.Boolean writable) [0x00000] in <2e7c1c96edae44d496118948ca617c11>:0 
  at Microsoft.Win32.RegistryKey.OpenSubKey (System.String name, System.Boolean writable) [0x0001b] in <2e7c1c96edae44d496118948ca617c11>:0 
  at (wrapper remoting-invoke-with-check) Microsoft.Win32.RegistryKey.OpenSubKey(string,bool)
  at System.Web.Configuration.MachineKeyRegistryStorage.OpenRegistryKey (System.String path, System.Boolean write) [0x00021] in <52b8d38f1da445f7ad770be558c9fed4>:0 
  at System.Web.Configuration.MachineKeyRegistryStorage.Store (System.Byte[] buf, System.Web.Configuration.MachineKeyRegistryStorage+KeyType kt) [0x0002f] in <52b8d38f1da445f7ad770be558c9fed4>:0 

(Just fixed permissions on that folder)

Then the log says this tons of times

Failed to receive record.
Terminating connection.

And then this once

WARNING: WebConfigurationManager's LRUcache evictions count reached its max size
Cache Size: 100 (overridable via MONO_ASPNET_WEBCONFIG_CACHESIZE)

The rest of the log is pages and pages and pages of

Failed to receive record.
Terminating connection.

Any idea what's going on here and how to fix it?

Copied from original issue: mono/mono#6941

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions