Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

dnu and dnx commands fail silently with DNX Core on Travis / Linux builds #3007

Closed
dougbu opened this issue Oct 18, 2015 · 8 comments
Closed

Comments

@dougbu
Copy link
Member

dougbu commented Oct 18, 2015

This failure blocks fixing aspnet/Universe#290.

See https://travis-ci.org/aspnet/dnx/jobs/85979374 for an example.

info: Exec
info:   program: /usr/bin/env
info:   commandline: bash -c "source \"/home/travis/build/aspnet/dnx/packages/KoreBuild/build/dnvm.sh\" && dnvm use default -runtime coreclr && dnu --verbose restore --parallel src test samples"
info:   workingdir: /home/travis/build/aspnet/dnx
Adding /home/travis/.dnx/runtimes/dnx-coreclr-linux-x64.1.0.0-rc1-15910/bin to process PATH
info: Exec
info:   program: git
info:   commandline: submodule update --init
info:   workingdir: 

Note the dnvm use writes its usual successful output at line 1078. The immediately-following dnu --verbose restore command outputs nothing but apparently has exit code 0 (doesn't fail the build).

Ran this test with a branch (dougbu/dnxcore.restore.290) of current dev to run dnu restore with DNX Core and to add debugging output. Any expected failures now that all release fixes are in dev?

The same branch builds fine on Ubuntu 14.04 and Mint 17.02 (a Ubuntu 14.04 derivative). Can't report on Mac until Travis restarts those servers. Anyone have a Ubuntu 12.04 system to debug further?

One suitable workaround would be to use Ubuntu 14.04 machines on Travis. Is that possible?

@dougbu
Copy link
Member Author

dougbu commented Oct 18, 2015

This problem is more general. Look for example at the end of recent dev build https://travis-ci.org/aspnet/dnx/jobs/85845411. Not sure what dnx commands do anything but return a 0 exit code when using DNX Core on Ubuntu 12.04.

info: Adding /home/travis/build/aspnet/dnx/artifacts/test/dnx-coreclr-linux-x64/runtimes/dnx-coreclr-linux-x64.1.0.0-t151016235319/bin to the PATH
info: Exec
info:   program: dnx
info:   commandline: test -parallel none
info:   workingdir: test/Microsoft.Dnx.Compilation.CSharp.Tests
info: Exec
info:   program: dnx
info:   commandline: test -parallel none
info:   workingdir: test/Microsoft.Dnx.Compilation.Tests
info: Exec
info:   program: dnx
info:   commandline: test -parallel none
info:   workingdir: test/Microsoft.Dnx.Host.Tests
info: Exec
info:   program: dnx
info:   commandline: test -parallel none
info:   workingdir: test/Microsoft.Dnx.Runtime.Tests
info: Exec
info:   program: dnx
info:   commandline: test -parallel none
info:   workingdir: test/Microsoft.Dnx.Tooling.Tests
info: Exec
info:   program: dnx
info:   commandline: test -parallel none
info:   workingdir: test/Microsoft.Extensions.CommandLineUtils.Sources.Tests
The command "./build.sh --quiet verify" exited with 0.

@dougbu dougbu changed the title dnu restore fails silently with DNX Core on Travis / Linux builds dnu and dnx commands fail silently with DNX Core on Travis / Linux builds Oct 18, 2015
@dougbu
Copy link
Member Author

dougbu commented Oct 19, 2015

This bug is a combination of #2875, an incomplete .travis.yml file in the DNX repo and an apparent incompatibility with Ubuntu 12.04. With a more complete Travis configuration, Linux builds still fail but somewhat more noisily. Got OSX builds working with DNX Core doing the dnu restore however.

info: Exec
info:   program: /usr/bin/env
info:   commandline: bash -c ". \"/home/travis/build/aspnet/dnx/packages/KoreBuild/build/dnvm.sh\" && dnvm use default -runtime coreclr && dnu restore --quiet --parallel src test samples"
info:   workingdir: /home/travis/build/aspnet/dnx
Adding /home/travis/.dnx/runtimes/dnx-coreclr-linux-x64.1.0.0-rc1-15910/bin to process PATH
failed to locate libcoreclr with error libunwind-x86_64.so.8: cannot open shared object file: No such file or directory
fail: Exit code 1 from /usr/bin/env

Either dnu restore can't work with DNX Core on Ubuntu 12.04 or dougbu/dnxcore.restore.290 is still missing a dependency. See Travis build 4885.1 for example. Unfortunately my attempted build with the experimental Ubuntu 14.04 image (4886.1) failed while attempting to install Mono.

FYI we don't get any additional output without --quiet or with --verbose

@Scorpiion
Copy link

Hi, I tried to install ASP.NET 5 On Linux just now on a Ubuntu 15.10 setup. I also get silent fails.

I don't get any output at all when I run dnu --verbose restore in a ASP sample project.

@dougbu
Copy link
Member Author

dougbu commented Nov 20, 2015

@Scorpiion you need to install the libicu-dev package for .NET Core to work correctly on Linux. Unfortunately .NET Core is not compatible with the ICU version normally provided for Ubuntu 15.10: You need ICU v5.2. If you get that installed and visible to .NET Core, you're entering uncharted territory because only exactly Ubuntu 14.04 is a supported platform at the moment.

FYI there have been a few discussions around getting things going on Ubuntu 15.10. May be more information elsewhere in the various aspnet or dotnet issues lists.

(Thanks for the reminder. This bug should be closed.)

@dougbu dougbu closed this as completed Nov 20, 2015
@Scorpiion
Copy link

Okay, thanks for the quick reply @dougbu, appreciate it. I got some samples running with the mono version at least.

Looking forward to try out .NET Core more in the future. 👍

@moozzyk
Copy link
Contributor

moozzyk commented Nov 21, 2015

@Scorpiion See #3059

@Scorpiion
Copy link

Thanks for the link @moozzyk. 👍

@mooncowboy
Copy link

On 14.04 LTS I get the same error. Looking at the ouptut when export DNX_TRACE=1, I get:

Semaphore: ~ $ dnu
Loaded module: dnx.coreclr.so
Found export: CallApplicationMain

Unhandled Exception: System.ArgumentException: 'utf8' is not a supported encoding name. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method.
Parameter name: name
   at System.Globalization.EncodingTable.GetCodePageFromName(String name)
   at System.Text.Encoding.GetEncoding(String name)
   at System.ConsolePal.GetConsoleEncoding()
   at System.Console.CreateOutputWriter(Stream outputStream)
   at System.Console.EnsureInitialized[T](T& field, Func`1 initializer)
   at System.Console.WriteLine(String format, Object[] arg)
   at Microsoft.Dnx.Runtime.Logger.TraceInformation(String message, Object[] args)
   at DomainManager.Execute(Int32 argc, Char** argv, NativeBootstrapperContext* context)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants