Page MenuHomePhabricator

Different mono versions on "login server" and on grid
Closed, InvalidPublic

Description

I have a Bot written in C# running well enough on Mono. It works OK on dev.tools.wmflabs.org and on login.tools.wmflabs.org but fails when started with jsub. I think the mono version is different on the two platforms. I think the mono version should be the same for both environments, no? (BTW they are both q bit old' current version is 4.6.1.5

mono v3 on dev machine:

kotz@tools-bastion-02:~$ mono --version
Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-4ubuntu1.1)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           __thread
	SIGSEGV:       altstack
	Notifications: epoll
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug 
	LLVM:          supported, not enabled.
	GC:            sgen

mono v2 on grid:

tools.botsister@tools-bastion-02:~$ jsub mono --version
Your job 2391885 ("mono-sgen") has been submitted
tools.botsister@tools-bastion-02:~$ cat mono-sgen.out 
Mono JIT compiler version 2.10.8.1 (Debian 2.10.8.1-1ubuntu2.3)
Copyright (C) 2002-2011 Novell, Inc, Xamarin, Inc and Contributors. www.mono-project.com
	TLS:           __thread
	SIGSEGV:       altstack
	Notifications: epoll
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug 
	LLVM:          supported, not enabled.
	GC:            sgen

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
AlexMonk-WMF subscribed.

You forgot to specify the correct distribution for jsub. Leaving it unspecified defaults to precise, which is deprecated and will have everything on older versions. The login hosts run trusty:

krenair@tools-bastion-03:~$ jsub -l release=trusty mono --version
Your job 2392342 ("mono-sgen") has been submitted
krenair@tools-bastion-03:~$ cat mono-sgen.out
Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-4ubuntu1.1)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           __thread
	SIGSEGV:       altstack
	Notifications: epoll
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug 
	LLVM:          supported, not enabled.
	GC:            sgen

This should change soon, https://wikitech.wikimedia.org/wiki/Tools_Precise_deprecation looks outdated