[Ironruby-core] Crontab Issues

Rob Britton rob.s.brit at gmail.com
Mon Dec 5 10:12:49 EST 2011


I'm not entirely sure if this is an IronRuby or a Mono issue, but here
goes! I have a test suite that we're running on my Ubuntu server that works
fine when I SSH in and run it manually, but when it tries to run from a
cron job I get the following exceptions:

**************************
WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v1.1.4322

** (/home/rob/code/ironlangs/bin/
Release/ir.exe:4798): WARNING **: Missing method .ctor in assembly
/home/rob/code/ironlangs/bin/Release/Microsoft.Scripting.dll, type
System.Diagnostics.CodeAnalysis.SuppressMessageAttribute

** (/home/rob/code/ironlangs/bin/Release/ir.exe:4798): WARNING **: The
class System.Diagnostics.CodeAnalysis.SuppressMessageAttribute could not be
loaded, used in Microsoft.Scripting

** (/home/rob/code/ironlangs/bin/Release/ir.exe:4798): WARNING **: Can't
find custom attr constructor image:
/home/rob/code/ironlangs/bin/Release/Microsoft.Scripting.dll mtoken:
0x0a00008c

** (/home/rob/code/ironlangs/bin/Release/ir.exe:4798): WARNING **: Missing
method .ctor in assembly
/home/rob/code/ironlangs/bin/Release/Microsoft.Scripting.dll, type
System.Diagnostics.CodeAnalysis.SuppressMessageAttribute

** (/home/rob/code/ironlangs/bin/Release/ir.exe:4798): WARNING **: Can't
find custom attr constructor image:
/home/rob/code/ironlangs/bin/Release/Microsoft.Scripting.dll mtoken:
0x0a00008c

** (/home/rob/code/ironlangs/bin/Release/ir.exe:4798): WARNING **: Missing
method .ctor in assembly
/home/rob/code/ironlangs/bin/Release/Microsoft.Scripting.dll, type
System.Diagnostics.CodeAnalysis.SuppressMessageAttribute

** (/home/rob/code/ironlangs/bin/Release/ir.exe:4798): WARNING **: Can't
find custom attr constructor image:
/home/rob/code/ironlangs/bin/Release/Microsoft.Scripting.dll mtoken:
0x0a00008c

** (/home/rob/code/ironlangs/bin/Release/ir.exe:4798): WARNING **: The
class System.OperatingSystem could not be loaded, used in mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

** (/home/rob/code/ironlangs/bin/Release/ir.exe:4798): WARNING **: The
class System.OperatingSystem could not be loaded, used in mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

** (/home/rob/code/ironlangs/bin/Release/ir.exe:4798): WARNING **: The
class System.OperatingSystem could not be loaded, used in mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

Unhandled Exception: System.TypeInitializationException: An exception was
thrown by the type initializer for
Microsoft.Scripting.PlatformAdaptationLayer ---> System.TypeLoadException:
Could not load type 'System.OperatingSystem' from assembly 'mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
 at Microsoft.Scripting.PlatformAdaptationLayer..cctor () [0x00000] in
<filename unknown>:0
 --- End of inner exception stack trace ---
 at IronRuby.Hosting.RubyConsoleHost..ctor () [0x00000] in <filename
unknown>:0
 at Host..ctor () [0x00000] in <filename unknown>:0
 at Host.Main (System.String[] args) [0x00000] in <filename unknown>:0
**************************************************

Does anybody know why this might happen?

Thanks,
Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20111205/550f6877/attachment.html>


More information about the Ironruby-core mailing list