Error: NoMethodError while building .NET Application

Bug #1321965 reported by Adrian Otto
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Solum
Won't Fix
Medium
Paul Czarkowski

Bug Description

See: http://lists.openstack.org/pipermail/openstack-dev/2014-May/035478.html

On May 21, 2014, at 8:52 AM, Rohit Mathur <email address hidden> wrote:

Dear Team,
While running a dot net application on Solum, i am facing an error while the process tries to discover the process types -

[-e:1:in `<main>': undefined method `[]' for nil:NilClass (NoMethodError)]

Also i have raised a bug for the same in the Solum community.
https://bugs.launchpad.net/solum/+bug/1319406
Please refer this for the logs.

If anyone know the solution then kindly let me know

Thanks and Regards,

Rohit Mathur| Associate Consultant
GlobalLogic India Limited, Noida SEZ -1
P +91.120.4342000.2371 M +91 8130988668
www.globallogic.com

http://www.globallogic.com/email_disclaimer.txt
_______________________________________________
OpenStack-dev mailing list
<email address hidden>
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Tags: defects errors
Revision history for this message
rohit mathur (rohit-mathur1) wrote :
Download full text (3.4 KiB)

PFB the yaml file which i am using for deploying the application and the logs which are generated.

YAML File:

name: ex1
description: dot net express.
artifacts:
- name: dotnetus
  artifact_type: application.heroku
  content:
    href: https://github.com/rohitmathur1/dot_net_solum.git

LOGS:

2014-05-22 11:28:50.674 | Starting: docker ps
2014/05/22 11:28:50 Get http:///var/run/docker.sock/v1.11/containers/json: dial unix /var/run/docker.sock: permission denied
2014-05-22 11:28:50.685 | Finished: docker ps [Elapsed: 0 sec]
2014-05-22 11:28:50.689 | Starting: glance index
2014-05-22 11:28:51.557 | Finished: glance index [Elapsed: 1 sec]
2014-05-22 11:28:51.563 | Starting: mkdir -p /dev/shm/apps/demo/02b34d28e063d36e431c18fcb550350f
2014-05-22 11:28:51.568 | Finished: mkdir -p /dev/shm/apps/demo/02b34d28e063d36e431c18fcb550350f [Elapsed: 0 sec]
2014-05-22 11:28:51.898 | ===> Building App
2014-05-22 11:28:52.121 | Starting: sudo docker attach d470df0807c590cc81f0c05816d3766e15bb2e9cad3187269ac339f1d8a97d5b
-----> .NET app detected
-----> Fetching fixed NuGet.targets
-----> Compiling Mono application
       XBuild Engine Version 12.0
       Mono, Version 3.2.8.0
       Copyright (C) 2005-2013 Various Mono authors

       Build started 05/22/2014 11:28:54.
       __________________________________________________
       Project "/tmp/build/FirstConsoleApplication.sln" (default target(s)):
       Target ValidateSolutionConfiguration:
       Building solution configuration "Release|x86".
       Target Build:
       Project "/tmp/build/FirstConsoleApplication/FirstConsoleApplication.csproj" (default target(s)):
       Target PrepareForBuild:
       Configuration: Release Platform: x86
       Created directory "obj/x86/Release/"
       Target GenerateSatelliteAssemblies:
       No input files were specified for target GenerateSatelliteAssemblies, skipping.
       Target CoreCompile:
       Tool /app/mono/bin/dmcs execution started with arguments: /noconfig /debug:pdbonly /optimize+ /out:obj/x86/Release/FirstConsoleApplication.exe Program.cs Properties/AssemblyInfo.cs obj/x86/Release/.NETFramework,Version=v4.0,Profile=Client.AssemblyAttribute.cs /target:exe /define:TRACE /platform:x86 /reference:/app/mono/lib/mono/4.0/System.dll /reference:/app/mono/lib/mono/4.0/System.Xml.Linq.dll /reference:/app/mono/lib/mono/4.0/System.Data.DataSetExtensions.dll /reference:/app/mono/lib/mono/4.0/Microsoft.CSharp.dll /reference:/app/mono/lib/mono/4.0/System.Data.dll /reference:/app/mono/lib/mono/4.0/System.Xml.dll /reference:/app/mono/lib/mono/4.0/System.Core.dll /warn:4
       Target _CopyAppConfigFile:
Copying file from '/tmp/build/FirstConsoleApplication/App.config' to '/tmp/cache/build/FirstConsoleApplication.exe.config'
       Target DeployOutputFiles:
       Copying file from '/tmp/build/FirstConsoleApplication/obj/x86/Release/FirstConsoleApplication.exe.mdb' to '/tmp/cache/build/FirstConsoleApplication.exe.mdb'
       Copying file from '/tmp/build/FirstConsoleApplication/obj/x86/Release/FirstConsoleApplication.exe' to '/tmp/cache/build/FirstConsoleApplication.exe'
       Done building project "/tmp/build/FirstConsoleApplication/FirstConsoleApplication.csproj"....

Read more...

Revision history for this message
rohit mathur (rohit-mathur1) wrote :

Hi Adrian,
I was going through some documents and found this link

http://stackoverflow.com/questions/10810311/nomethoderror-undefined-method-for-nilnilclass
http://mongoid.org/en/mongoid/docs/tips.html

So can it be that the issue which i am facing is because of an older version of ruby, if used for compilation.?
If yes, can we upgrade this and check?

Revision history for this message
Adrian Otto (aotto) wrote :

Rohit,

Paul has made some initial progress toward resolving this. We should be able to update you in a day or two with a solution. It may involve forking the Heroku build pack for Mono.

Adrian

Changed in solum:
assignee: nobody → Paul Czarkowski (paulcz)
Revision history for this message
Paul Czarkowski (paulcz) wrote :

I'm able to build the following app https://github.com/paulczar/dot_net_solum which is your app with an added Procfile.

I've also forked the mono buildpack with a fix to bin/release

this gets the build working, but the container still can't run. I'm not familiar enough with running mono apps ( nor with the buildpack ) to really know where to go next.

Revision history for this message
Adrian Otto (aotto) wrote :

Paul,

Thanks for your forward progress on this. Let's reach out to the creators of Mono to give them an opportunity to participate. It might also make sense to track down the author of the Mono build pack. I will send some introductions and see where that takes us.

Thanks,

Adrian

Revision history for this message
Adrian Otto (aotto) wrote :

The author of the build pack is apparently employed by Heroku, so he may not have an interest in helping with Solum. I reached out to the Mono developers.

Revision history for this message
Paul Czarkowski (paulcz) wrote : Re: [Bug 1321965] Re: Error: NoMethodError while building .NET Application

it also might be worth deploying the app to heroku and see if it works
there ... might help work out where the deficiency is.

On Thu, May 22, 2014 at 5:33 PM, Adrian Otto <email address hidden>wrote:

> The author of the build pack is apparently employed by Heroku, so he may
> not have an interest in helping with Solum. I reached out to the Mono
> developers.
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/1321965
>
> Title:
> Error: NoMethodError while building .NET Application
>
> Status in Solum - Application Lifecycle Management:
> Triaged
>
> Bug description:
> See: http://lists.openstack.org/pipermail/openstack-
> dev/2014-May/035478.html
>
> On May 21, 2014, at 8:52 AM, Rohit Mathur
> <email address hidden> wrote:
>
> Dear Team,
> While running a dot net application on Solum, i am facing an error while
> the process tries to discover the process types -
>
> [-e:1:in `<main>': undefined method `[]' for nil:NilClass
> (NoMethodError)]
>
> Also i have raised a bug for the same in the Solum community.
> https://bugs.launchpad.net/solum/+bug/1319406
> Please refer this for the logs.
>
> If anyone know the solution then kindly let me know
>
> Thanks and Regards,
>
> Rohit Mathur| Associate Consultant
> GlobalLogic India Limited, Noida SEZ -1
> P +91.120.4342000.2371 M +91 8130988668
> www.globallogic.com
>
> http://www.globallogic.com/email_disclaimer.txt
> _______________________________________________
> OpenStack-dev mailing list
> <email address hidden>
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/solum/+bug/1321965/+subscriptions
>

Adrian Otto (aotto)
Changed in solum:
milestone: 2014.1.2 → juno-1
Adrian Otto (aotto)
Changed in solum:
milestone: juno-1 → juno-2
Revision history for this message
Adrian Otto (aotto) wrote :

We will address .Net functionality by allowing users to submit Dockerfile based LPs. We do not plan to support a .Net LP separately.

Changed in solum:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.