Unable to start dfservice, Compute emulator is shutdown

已答复 Unable to start dfservice, Compute emulator is shutdown

  • Friday, May 18, 2012 7:54 AM
     
     

    Hi,

    I have created a test application and a Windows Azure deployment project.

    I am using Windows Azure 1.6

    When I am running the application, after some time it is giving me error 'Unable to start dfservice'.

    I set the environment variable '_CSRUN_STATE_DIRECTORY' to a path on C drive. Reboot the system.

    Under administrative account I ran the command prompt and run 'CSRun.exe /devfabric:start' to start the emulator. but no success.

    It is still giving me 'Compute emulator is shut down'.

    Please help me to resolve the issue.

    Thank You

All Replies

  • Friday, May 18, 2012 8:48 AM
    Moderator
     
     Answered

    Hi,

    Please change '_CSRUN_STATE_DIRECTORY' to a folder that under the C drive, do not let this variable end with slash (\). Such as C:\test.

    Have a try.

    BR,

    Arwind


    Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com Microsoft One Code Framework

  • Monday, May 28, 2012 6:53 AM
     
     

    Respected Sir,

    As per your instruction, I set environment variable to "C:\TempSetEnvVariable" path where it creates file "_nextid" CNT file.

    But still it is giving me 'Compute emulator is shut down'.

    I am using "Windows 7 - 32 bit)

    Please help me to resolve the issue.

    Thank You

  • Monday, May 28, 2012 8:13 AM
    Moderator
     
     

    Hi,

    Please try to install Azure SDK in 64-system. Thank you.

    BR,

    Arwind


    Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com Microsoft One Code Framework

  • Monday, May 28, 2012 9:13 AM
     
     

    Does it matters whether I am using 32-bit or else 64-it ?

    Because my processor is 32-bit only.

    Thank You.

  • Monday, May 28, 2012 9:28 AM
    Moderator
     
     

    64-bit system is recommended, you have to do extra installations in 32-bit system to make azure works, please refer to this article and check if some hotfixed has been installed in your machine (In "System requirements"):

    http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=28045

    Just for a doubt, can Azure emulators work fine at your computer?

    BR,

    Arwind


    Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com Microsoft One Code Framework

  • Monday, May 28, 2012 9:51 AM
     
     

    Storage Emulator works fine but "Compute Emulator" does not.

    The hotfix given does not apply to my PC.

    Thank You.

  • Monday, May 28, 2012 10:02 AM
    Moderator
     
     

    Hi,

    Did not get some more details exception message during the compute emulator shutdown? For example, create a simple hello world application in local and run it (Set Azure project as the startup project). I believe more information can help us fix this problem.

    BR,

    Arwind


    Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com Microsoft One Code Framework

  • Monday, May 28, 2012 10:13 AM
     
     

    The first screen shows the application start error message. At first the Compute Emulator starts and after seconds of time it suddenly shut downs.

    After a min or two, the second error message displays "unable to connect to dfservice" and there application stops.

    Thank You.

  • Monday, May 28, 2012 10:39 AM
     
     

    Dear Sir,

    did you get those screens ?

    Thank You.

  • Monday, May 28, 2012 10:40 AM
     
     
    Yes, the screens are visible. Could you confirm if the user account name that you are logged into contains spaces?

    I hope it helps!! If you found this post useful, Please "Mark as Answer" or "Vote as Helpful". Thanks! Vaibhav Gujral.

  • Monday, May 28, 2012 10:48 AM
     
     

    No Sir, Account Name is "Amol" and User Env. Variable is set in "C:\A" folder.

    Thank You.

  • Monday, May 28, 2012 11:43 AM
     
     

    Respected Sir,

    Please help me to resolve the issue so as to proceed learning.

    Thank You.

  • Monday, May 28, 2012 1:07 PM
    Moderator
     
      Has Code

    Hello Amol,

    It looks like a strange problem, you compute emulator could not work normally, as far as i know, Windows Azure emulator will use ports 12000-12002, would you like to check if these ports was already in use? If so, please try to modify DevFc.exe.config file with other ports:

    Resolution
    1. Determine if any of the following ports are being used by a non-Windows service: 15095, 15096, 15097, 15098, 15099, or 15100.
    2. Navigate to the installation directory of the Compute Emulator. By default the Compute Emulator is installed at C:\Program Files\Windows Azure Emulator\emulator\devfabric.
    3. In the DevFc.exe.config file, locate the add port entry that contains the conflicting port value and modify the value to use a non-conflicting port. The DevFc.exe.config file entries that can be affected are:

      • <add key="ManagementServicePort" value="15095" />
      • <add key="RepositoryServicePort" value="15096" />
      • <add key="AgentCallbackPort" value="15097" />
      • <add key="AgentPort" value="15098" />
      • <add key="PxeResponderPort" value="15100" />
    4. In the DfService.exe.config file, locate the dfservice element and modify the ManagementServicePort or RepositoryServicePort attribute to use a non-conflicting port.

      • <dfservice    ManagementServicePort="15095"    RepositoryServicePort="15096"   />
    5. Press F5 to restart the application or run the CSRun Command-Line Tool.

    If it still not works, find this path

     c:\users\<username>\AppData\Local\dftmp\DevFCLogs 

    to see if there's more details logs about this error.

    You can also try to re-install Azure SDK or test the application in another machine and have a try.

    BR,

    Arwind


    Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com Microsoft One Code Framework


  • Monday, May 28, 2012 1:10 PM
     
     

    Ok Sir....I'll try and get back to you.

    Thank You.

  • Friday, July 13, 2012 8:57 PM
     
     

    Hi Amol,

    I experienced the exact same problem you had and spent 4+ hours trying to figure it out and finally came across the problem.

    My WCF RIA Services was out of date, by quite a bit.  I updated to the same version my colleagues were using(since they weren't having this issue).  My version was 1.0.numbers. and I updated to version 4.1.60144.0 and everything started working again.

    Good luck to you sir.