I am trying to follow the instructions at https://azure.microsoft.com/en-us/documentation/articles/service-fabric-cluster-creation-for-windows-server/#plan-and-prepare-for-cluster-deployment to create a dev cluster on a test machine. I am using the sample ClusterConfig.Unsecure.DevCluster.json file. However creation failed with following exception:
Create Cluster failed with exception: System.AggregateException: One or more errors occurred. ---> System.NullReferenceE
xception: Object reference not set to an instance of an object.
at System.Fabric.DeploymentManager.d__a.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Fabric.DeploymentManager.d__0.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at Microsoft.ServiceFabric.Powershell.ClusterCmdletBase.NewCluster(String clusterConfigurationFilePath, String fabric
PackageSourcePath, Boolean rollbackOnFailure)
---> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object.
at System.Fabric.DeploymentManager.d__a.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Fabric.DeploymentManager.d__0.MoveNext()<---
Is there any setting I missed?
The requirements appear to be met:
•Minimum of 2 GB memory is recommended
•Network connectivity – Make sure that the machines are on a secure network/or networks
•Windows Server 2012 R2 or Windows Server 2012 (you need to have KB2858668 installed for this).
•.NET Framework 4.5.1 or higher, full install
•Windows PowerShell 3.0
•The cluster administrator deploying and configuring the cluster must have administrator privileges on each of the computers.
•RemoteRegistry service should be running on all the machines.
Thanks!
I found out that I need to uninstall Azure Service Fabric SDK. Apparently the cluster machine used for testing are not meant to be used to developer Service Fabric Applications or Services?
Related
I'm currently trying to set up a build machine for continuous integration.
Our TFS project collection resides on one machine (TFSServer), while we've installed the build service, controller and agents on a different machine (TFSBuild).
When I queue a build, I get the following error:
TF215097: An error occurred while initializing a build for build definition
Exception Message: One or more errors occurred. (type AggregateException)
Exception Stack Trace: at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at Microsoft.TeamFoundation.Build.Client.FileContainerHelper.GetFile(TfsTeamProjectCollection projectCollection, String itemPath, Stream outputStream)
...
This seems to happen when the controller? tries to retrieve the build process template from the TFS server.
The inner exception is the following:
Exception Message: No connection could be made because the target machine actively refused it 127.0.0.1:8080 (type SocketException)
...
This is where I get confused, because a connection to localhost was attempted. I would've expected that the call be made to TFSServer instead.
Am I misunderstanding something? Or should I look in a different direction to solve my issue?
Edit: I have this feeling that the problem is caused because I had initially installed TFS Server on the build machine, and that some cached value points to the localhost server which used to exist, but not anymore...
Edit 2: I was not able to set up a controller on the build machine, for some reason it keeps looking for the build process template locally instead of the TFS server. So instead, I set up the controller on the TFS server, and the agents on the build machine and it seems to work fine.
Your build service might be still pointing to previous TFS server URL which was installed on the same build server. You can check this setting by launching TFS Administration Console and clicking Build configuration, then update it to point to the Team Project Collection configured on another box.
I'm trying to connect my TeamCity project to my TFS project with a free account (a windows live account). But I'm having a little bit a trouble doing this. I'm getting the error TF30063 (You are not authorized to access /DefaultCollection/).
I've tried a lot of things, I even follow the instruction of this question -http://youtrack.jetbrains.com/issue/TW-20909-, but no luck...
I already have:
- Set admin permission to all members to my TFS project
- Put the project on my computer in a public folder
- Checked every url, user and password inputs on the TeamCity config page
- Tested in more than one TFS account
- Checked if all projects were in the same domain
- I've tested in a network that doesn't uses proxy and one that does
Neither of these configuration seem to make a difference... The only lead I have to why this problem is happening is because I'm using the Windows Live (free) TFS account and not a paid licensed one... Can that be it?
Any help would be appreciated... Cheers!
Here is the full error:
Failed for the root 'DimasTeste' #16: TFS failed. ExitCode: 111, command: C:\TeamCity\webapps\ROOT\WEB-INF\plugins\tfs\bin\tfs-native.exe ##C:\TeamCity\temp\TC-TFS-108-6176_396\command.params, in file: {https://budiedimas.visualstudio.com/DefaultCollection/, /user: /password: /hash:S, /noProxy, C:\TeamCity\temp\TC-TFS-108-6176_393.result, GetCurrentVersion}, completed in: 2 second(s)
stdout: TFS Native Verifier v8.0 Copyright (C) 2006-2013 JetBrains s.r.o.
Running under .NET Framework 4.0.30319.18052
INFO -
INFO - Use Team Explorer 2012
INFO -
TFS Native Accessor v8.0 Copyright (C) 2006-2013 JetBrains s.r.o.
INFO - Connecting to server https://budiedimas.visualstudio.com/DefaultCollection/
INFO - WebProxy is disabled
Get current version:
Server='https://budiedimas.visualstudio.com/DefaultCollection/'
Username='dimas_budie#hotmail.com'
ERROR - TF30063: You are not authorized to access https://budiedimas.visualstudio.com/DefaultCollection/.
System.Exception: TF30063: You are not authorized to access https://budiedimas.visualstudio.com/DefaultCollection/. ---> Microsoft.TeamFoundation.TeamFoundationServerUnauthorizedException: TF30063: You are not authorized to access https://budiedimas.visualstudio.com/DefaultCollection/.
em Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.EnsureTokenProvider(HttpWebResponse webResponse)
em Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.SendRequest()
em Microsoft.TeamFoundation.Client.Channels.TfsHttpRequestChannel.Request(TfsMessage message, TimeSpan timeout)
em Microsoft.TeamFoundation.Client.Channels.TfsHttpClientBase.Invoke(TfsClientOperation operation, Object[] parameters, TimeSpan timeout, Object[]& outputs)
em Microsoft.TeamFoundation.Framework.Client.Registration.GetRegistrationEntries(String toolId)
em Microsoft.TeamFoundation.Framework.Client.RegistrationProxy.GetRegistrationEntries(String toolId)
em Microsoft.TeamFoundation.Framework.Client.RegistrationService.GetInstanceId()
em Microsoft.TeamFoundation.Framework.Client.RegistrationService.get_InstanceClientCacheDirectory()
em Microsoft.TeamFoundation.Framework.Client.RegistrationService..ctor(TfsTeamProjectCollection tfsObject)
em Microsoft.TeamFoundation.Client.TfsTeamProjectCollection.CreateServiceProxy(Type serviceType)
em Microsoft.TeamFoundation.Client.TfsTeamProjectCollection.GetServiceInstance(Type serviceType, Object serviceInstance)
em Microsoft.TeamFoundation.Client.TfsConnection.GetService(Type serviceType)
em Microsoft.TeamFoundation.Framework.Client.PreFrameworkServerDataProvider.FindServiceLocation(String serviceType, String toolId)
em Microsoft.TeamFoundation.Framework.Client.PreFrameworkServerDataProvider.LocationForCurrentConnection(String serviceType, Guid serviceIdentifier)
em Microsoft.TeamFoundation.Client.TfsConnection.EnsureProviderConnected()
em JetBrains.TeamCity.Tfs.Command.Do() na c:\BuildAgent\work\23f504c63c17dfdf\TfsNativeAccessor\src\Command.cs:linha 28
em JetBrains.TeamCity.Tfs.Program.Main(String[] args) na c:\BuildAgent\work\23f504c63c17dfdf\TfsNativeAccessor\src\Program.cs:linha 143
--- Fim do rastreamento de pilha de exce‡äes internas ---
em JetBrains.TeamCity.Tfs.Program.Main(String[] args) na c:\BuildAgent\work\23f504c63c17dfdf\TfsNativeAccessor\src\Program.cs:linha 438
You should enable alternate credentials (basic authentication) for your account.
http://tfs.visualstudio.com/en-us/news/2012-aug-27/
Go to your profile -> credentials -> enable alternate credentials. Then use them in TeamCity.
Team Foundation Service is supported only on TC 7.1.4+.
Which version are you running?
http://blogs.jetbrains.com/teamcity/2013/02/07/teamcity-7-1-4-build-24331-is-ready/comment-page-1/#comment-38321
I have published the website to sitecloud.cytanium.com (ASP.net MVC3+MYSQL+EntityFramework). Please help me out with this.
The Error I am facing on login is :
Server Error in '/' Application.
Unable to find the requested .Net Framework Data Provider. It may not be installed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be installed.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be installed.]
System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName) +1425695
System.Data.EntityClient.EntityConnection.GetFactory(String providerString) +27
[ArgumentException: The specified store provider cannot be found in the configuration, or is not valid.]
System.Data.EntityClient.EntityConnection.GetFactory(String providerString) +92
System.Data.EntityClient.EntityConnection.ChangeConnectionString(String newConnectionString) +246
...........................
Unable to find the requested .Net Framework Data Provider. It may not be installed.
You should install provider for MYSQL on the server. Connector/Net or some other.
Same question:
C# MySQL Connector works in IDE, not after publish?
I developed my application in visual studio 2008 and i deployed it on many computers with windows paltform. Its working fine but there is one mac book who has virtual windows 7 over it. my clickonce appliaction is working fine for the first time on this machine when it is installed. but after closing it when user start it again it is giving the following error. I have googled it but could not find the proper answer. Can anyone help?
PLATFORM VERSION INFO
Windows : 6.1.7601.65536 (Win32NT)
Common Language Runtime : 4.0.30319.296
System.Deployment.dll : 4.0.30319.1 (RTMRel.030319-0100)
clr.dll : 4.0.30319.296 (RTMGDR.030319-2900)
dfdll.dll : 4.0.30319.1 (RTMRel.030319-0100)
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of \\.psf\Home\Desktop\MyApplication.appref-ms| resulted in exception. Following failure messages were detected:
+ Invalid URI: The hostname could not be parsed.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
No phase information is available.
ERROR DETAILS
Following errors were detected during this operation.
* [01/03/2013 10:58:47] System.UriFormatException
- Invalid URI: The hostname could not be parsed.
- Source: System
- Stack trace:
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at System.Uri..ctor(String uriString)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.
The answer is explained in the error: "\.psf\Home\Desktop\MyApplication.appref-ms| resulted in exception". It can't parse that as a URL or a network share.
So how are you installing your application? Are you hosting it on a webserver or a fileshare, or taking it on a cd and copying it to the machine and installing it? What is your installation URL in the Publish window for the project properties?
After creating a db using Database Configuration Assistant, I go to Enterprise Manager, log into it, and it tells me, that java.lang.Exception: Exception in sending Request :: null. OracleDBConsole for this db, and iSQLPlus services are started. When I run %ORACLE_HOME%\bin\emctl status dbconsole, it says
EM Daemon is not running.
How do I deal with this? How do I start the EM daemon?
Try this command:
%ORACLE_HOME%\bin\emctl start dbconsole