I have a Service Fabric standalone cluster where I can connect to it with Connect-ServiceFabricCluster just fine, but whenever I run other commands such as Start-ServiceFabricClusterConfigurationUpgrade, it keeps timing out. I've tried running commands with longer timeouts (as long as 10 min) with the same results. Any ideas what I might be doing wrong?
This works..
PS C:\WINDOWS\system32> Connect-ServiceFabricCluster -ConnectionEndpoint "localhost:19000"
True
ConnectionEndpoint : {localhost:19000}
...
But these commands time out...
PS C:\WINDOWS\system32> Get-ServiceFabricClusterConfiguration -TimeoutSec 300
Get-ServiceFabricClusterConfiguration : Operation timed out.
At line:1 char:1
+ Get-ServiceFabricClusterConfiguration -TimeoutSec 300
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationTimeout: (Microsoft.Servi...usterConnection:ClusterConnection) [Get-ServiceFabr
icClusterConfiguration], TimeoutException
+ FullyQualifiedErrorId : GetClusterConfigurationErrorId,Microsoft.ServiceFabric.Powershell.GetClusterConfiguratio
n
Start-ServiceFabricClusterConfigurationUpgrade -ClusterConfigPath ClusterConfig.Unsecure.DevCluster.v2.json
Start-ServiceFabricClusterConfigurationUpgrade : Operation timed out.
At line:1 char:1
+ Start-ServiceFabricClusterConfigurationUpgrade -ClusterConfigPath Clu ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationTimeout: (Microsoft.Servi...usterConnection:ClusterConnection) [Start-ServiceFa
...gurationUpgrade], TimeoutException
+ FullyQualifiedErrorId : StartClusterConfigurationUpgradeErrorId,Microsoft.ServiceFabric.Powershell.StartClusterC
onfigurationUpgrade
I believe this a single node dev cluster? If so, it can't be upgraded and needs to be recreated instead.
You can upgrade your cluster to the new version only if you're using a
production-style node configuration, where each Service Fabric node is
allocated on a separate physical or virtual machine. If you have a
development cluster, where more than one Service Fabric node is on a
single physical or virtual machine, you must re-create the cluster
with the new version.
To fix:
Create backups for all desired service partitions.
Update the client tooling using the web platform installer.
Remove the old cluster and recreate it using the Local Cluster Manager tool (in the tray, if on Windows).
Redeploy applications.
Restore service backups.
Related
I am trying to use the Invoke-DscResource cmdlet in a series of tests (using Pester) to see if a configuration has been successfully applied to a VM.
This works 9/10 times, but sometimes the following error is thrown:
==> azure-arm.dsc_node: Cannot invoke the Invoke-DscResource cmdlet. The Consistency Check or Pull cmdlet is in progress and must return
==> azure-arm.dsc_node: before Invoke-DscResource can be invoked. Use -Force option if that is available to cancel the current operation.
==> azure-arm.dsc_node: + CategoryInfo : NotSpecified: (root/Microsoft/...gurationManager:String) [], CimException
==> azure-arm.dsc_node: + FullyQualifiedErrorId : MI RESULT 1
==> azure-arm.dsc_node: + PSComputerName : localhost
Is there a way to force the Invoke-DscResource cmdlet?
The problem is that Desired State Configuration cannot run at the same time as another process is changing the configuration of the machine.
I would guess that you are running Invoke-DscResource before the process that you are testing is complete.
Try putting a pause in your test.
as title said I've got some problems with adding node in a cassandra cluster.
To be more specific: i have to do a relation in which i take data on how good a Cassandra cluster scales adding various node, in particular i have to launch a little cassandra script that
-load a CSV
-add and remove a entry
-do some queries
-delete the stuffs done and reset the cluster
all on 1 up to 4 clusters and record the time it takes to execute the steps.
Now: i'm on a windows laptop but i managed to start cassandra also in a linux VM, all on a single node following (tell me if i'm spamming too much links) this tutorial:
https://www.youtube.com/watch?v=s1xc1HVsRk0&list=PLalrWAGybpB-L1PGA-NfFu2uiWHEsdscD&index=1
and i've tried without success to add new nodes following thoose:
http://www.learnmodeon.com/cassandra-cluster-setup-for-linux/
https://www.youtube.com/watch?v=q3pe8XHzztM&list=PLrwkeifIVAoSSRCeqi8Rfc2smuUadww-Y&index=2&t=0s
https://manthapavankumar.wordpress.com/2015/06/20/configuring-multi-node-cassandra-cluster-on-windows-machine/
https://blog.knoldus.com/running-multinode-cassandra-cluster-on-a-single-machine/
https://subscription.packtpub.com/book/big_data_and_business_intelligence/9781849515122/1/ch01lvl1sec11/running-multiple-instances-on-a-single-machine
https://www.youtube.com/watch?v=oHMJrhMtv3c
all not working(cassandra doesn't show other nodes or they tell me to modify file that doesn't exist on my computer like conf/log4j-server.properties)both on linux[mint 19] and windows 10
the version of Cassandra i'm using is 3.11.3 on both (but i think any version should be fine for the target of this project) and the python script works on single node in around 4 minutes total for a 10000+rows csv(tell me if I have to post it)
I'm out of ideas, Thank if you have some.
edit: i can launch only 1 node at time, if i try activate a second ine i get
VerifyPortsAreAvailable : Found a port already in use. Aborting startup
In D:\Program Files\apache-cassandra-3.11.3\bin\cassandra.ps1:98 car:9
+ VerifyPortsAreAvailable
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,VerifyPortsAreAvailable
VerifyPortsAreAvailable : TCP 127.0.0.1:7000 0.0.0.0:0 LISTENING
In D:\Program Files\apache-cassandra-3.11.3\bin\cassandra.ps1:98 car:9
+ VerifyPortsAreAvailable
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,VerifyPortsAreAvailable
on Windows and
Starting cassandra as root is user or group is not recommended - please start Cassandra using a different starting system user.
on Linux
If nodes are starting but they aren't seeing each other, you probably have your seed nodes configured incorrectly in cassandra.yaml. I have already explained the correct way to set up seed nodes on another question.
Regarding log4j-server.properties, it sounds like you are looking at some old documentation. Logging is now configured in logback.xml.
I'm trying to start a nested VM on Windows2016 VM deployed on azure ( Size used allows Nested Virtualization ) and after all guides followed I'm not sure what i could be missing since i Do have Hyper V installed:
Role manager:
Services:
Error when i try to start the VM:
Start-VM : 'sfm-azure-01' failed to start.
Failed to start the virtual machine 'sfm-azure-01' because one of the Hyper-V components is not running.
'sfm-azure-01' failed to start. (Virtual machine ID BA61E565-9B2B-4180-B79D-FD3F16882314)
The Virtual Machine Management Service failed to start the virtual machine 'sfm-azure-01' because one of the Hyper-V components is
not running (Virtual machine ID BA61E565-9B2B-4180-B79D-FD3F16882314).
At line:1 char:1
+ Start-VM -Name sfm-azure-01
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Start-VM], VirtualizationException
+ FullyQualifiedErrorId : OperationFailed,Microsoft.HyperV.PowerShell.Commands.StartVM
References used: https://learn.microsoft.com/azure/virtual-machines/windows/nested-virtualization
Did you try this script for enabling nest virtualisation.
It looks like it checks all the prerequisites.
https://github.com/charlieding/Virtualization-Documentation/tree/live/hyperv-tools/Nested
I'm trying to launch a BITS service download in a GPO Startup Script. Startup Scripts are started as the local SYSTEM account, which works well for background downloads as per Microsoft's documentation https://msdn.microsoft.com/en-us/library/windows/desktop/aa363152(v=vs.85).aspx
Sadly when I try to start a download (disregarding valid source or destination) I get the following error:
Start-BitsTransfer : The operation being requested was not performed because
the user has not logged on to the network. The specified service does not
exist. (Exception from HRESULT: 0x800704DD)
At line:1 char:1
+ Start-BitsTransfer -Source localhost -Destination c:\temp
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Start-BitsTransfer], COMException
+ FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.BackgroundIntelligentTransfer.Management.NewBitsTransferCommand
This is just a test, the actual BITS transfer is started within a c# application that is launched within the GPO Startup Script. Further tests with a manually created process through Sysinternals PSExec yield the same error.
Additional checks for security principals in whoami /all look fine:
User Name SID
=================== ========
nt authority\system S-1-5-18
GROUP INFORMATION
-----------------
...
CONSOLE LOGON Well-known group S-1-2-1
...
LOCAL Well-known group S-1-2-0
BUILTIN\Administrators Alias S-1-5-32-544
I checked for services BITS and SENS - all running.
To summarize:
How can i successfully launch a BITS download as SYSTEM in Startup Script?
How does the error "user has not logged on to the network" make sense, considering System account is always logged on? What is the meaning of "The specified service does not exist." - what service?
I setup a logserver on a Ubuntu machine. And I need to ship Windows Server 2012 Apache logs to logserver.
Now I am trying to setup filebeat on Windows server to ship logs to logserver: https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-getting-started.html
Version : filebeat-1.0.1-windows
But I failed to start filebeat on my server . It threw following error on power shell:
Start-Service : Service 'filebeat (filebeat)' cannot be started due to the following error: Cannot start service
filebeat on computer '.'.
At line:1 char:1
+ Start-Service filebeat
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service],
ServiceCommandException
+ FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand
Anyone have the solution?
I was having this problem with Windows 10. I ran the following in the command window and found I had a config error in my .yml file:
filebeat -c filebeat.yml -configtest
Once I cleaned that up, the service started.
Try opening an admin cmd and run the filebeat.exe, you should the errors that would prevent the service from starting.