Mono 2.10.1 apache: поврежден поток команд, последняя команда была -1 - PullRequest
5 голосов
/ 16 марта 2011

При запуске тестового моно сервера, сразу же сайт выдает довольно много ошибок.Я особенно обеспокоен ошибкой

[error] (70014)End of file found: read_data failed
[error] Command stream corrupted, last command was -1

, поскольку она возникает около десятка раз при запуске, а затем один или несколько раз за запрос страницы.какие-либо идеи, что вызывает это?Кроме того, возникает ошибка

No access to the given key

, несмотря на то, что я явно установил MONO_REGISTRY_PATH в каталог, принадлежащий www-data, и я даже однажды пробовал chmod 777 -R.Любая помощь здесь будет отличной.Полный журнал ошибок после перезапуска приведен ниже.

[Wed Mar 16 10:32:42 2011] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.5 with Suhosin-Patch mod_ssl/2.2.14 OpenSSL/0.9.8k mod_mono/2.10 configured -- resuming normal operations
Listening on: /tmp/mod_mono_server_global
Root directory: /
Listening on: /tmp/mod_mono_server_global
Root directory: /
Listening on: /tmp/mod_mono_server_global
Root directory: /
Error: Address already in use
Error: Address already in use
mod-mono-server4
Listening on: /tmp/mod_mono_server_www.tunewiki.com
Root directory: /srv/www/tunewikiweb
mod-mono-server4
Listening on: /tmp/mod_mono_server_www.tunewiki.com
Root directory: /srv/www/tunewikiweb
Error: There's already a server listening on /tmp/mod_mono_server_www.tunewiki.com
[Wed Mar 16 10:32:48 2011] [error] (70014)End of file found: read_data failed
[Wed Mar 16 10:32:48 2011] [error] Command stream corrupted, last command was -1
... (several lines) ...
[Wed Mar 16 10:34:24 2011] [error] (70014)End of file found: read_data failed
[Wed Mar 16 10:34:24 2011] [error] Command stream corrupted, last command was -1
(info) Auto generated encryption keys not saved: System.Security.SecurityException: No access to the given key
  at Microsoft.Win32.KeyHandler..ctor (Microsoft.Win32.RegistryKey rkey, System.String basedir, Boolean is_volatile) [0x00000] in <filename unknown>:0 
  at Microsoft.Win32.KeyHandler..ctor (Microsoft.Win32.RegistryKey rkey, System.String basedir) [0x00000] in <filename unknown>:0 
  at Microsoft.Win32.KeyHandler.Lookup (Microsoft.Win32.RegistryKey rkey, Boolean createNonExisting) [0x00000] in <filename unknown>:0 
  at Microsoft.Win32.UnixRegistryApi.OpenSubKey (Microsoft.Win32.RegistryKey rkey, System.String keyname, Boolean writable) [0x00000] in <filename unknown>:0 
  at Microsoft.Win32.RegistryKey.OpenSubKey (System.String name, Boolean writable) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) Microsoft.Win32.RegistryKey:OpenSubKey (string,bool)
  at System.Web.Configuration.MachineKeyRegistryStorage.OpenRegistryKey (System.String path, Boolean write) [0x00000] in <filename unknown>:0 
  at System.Web.Configuration.MachineKeyRegistryStorage.Store (System.Byte[] buf, KeyType kt) [0x00000] in <filename unknown>:0 
(info) Auto generated encryption keys not saved: System.Security.SecurityException: No access to the given key
  at Microsoft.Win32.KeyHandler..ctor (Microsoft.Win32.RegistryKey rkey, System.String basedir, Boolean is_volatile) [0x00000] in <filename unknown>:0 
  at Microsoft.Win32.KeyHandler..ctor (Microsoft.Win32.RegistryKey rkey, System.String basedir) [0x00000] in <filename unknown>:0 
  at Microsoft.Win32.KeyHandler.Lookup (Microsoft.Win32.RegistryKey rkey, Boolean createNonExisting) [0x00000] in <filename unknown>:0 
  at Microsoft.Win32.UnixRegistryApi.OpenSubKey (Microsoft.Win32.RegistryKey rkey, System.String keyname, Boolean writable) [0x00000] in <filename unknown>:0 
  at Microsoft.Win32.RegistryKey.OpenSubKey (System.String name, Boolean writable) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) Microsoft.Win32.RegistryKey:OpenSubKey (string,bool)
  at System.Web.Configuration.MachineKeyRegistryStorage.OpenRegistryKey (System.String path, Boolean write) [0x00000] in <filename unknown>:0 
  at System.Web.Configuration.MachineKeyRegistryStorage.Store (System.Byte[] buf, KeyType kt) [0x00000] in <filename unknown>:0 
[Wed Mar 16 10:34:48 2011] [error] (70014)End of file found: read_data failed
[Wed Mar 16 10:34:48 2011] [error] Command stream corrupted, last command was -1
[Wed Mar 16 10:34:48 2011] [error] (70014)End of file found: read_data failed
[Wed Mar 16 10:34:48 2011] [error] Command stream corrupted, last command was -1
... (repeats per page request) ...
...